2c28a99b by xukangle

fix

1 parent 39fc4c42
...@@ -458,7 +458,8 @@ const tablePageChange = (info) => { ...@@ -458,7 +458,8 @@ const tablePageChange = (info) => {
458 getTableData(); 458 getTableData();
459 }; 459 };
460 460
461 const formItems = ref([{ 461 const formItems = ref([
462 {
462 label: '资产名称', 463 label: '资产名称',
463 type: 'select', 464 type: 'select',
464 placeholder: '请选择', 465 placeholder: '请选择',
...@@ -472,19 +473,29 @@ const formItems = ref([{ ...@@ -472,19 +473,29 @@ const formItems = ref([{
472 }, 473 },
473 visible: true, 474 visible: true,
474 required: true 475 required: true
475 }, { 476 },
477 {
476 label: '附件上传', 478 label: '附件上传',
477 tip: '支持格式:.doc .docx .rar', 479 tip: '支持格式:xls .xlsx .doc .docx .rar .zip',
478 type: 'upload-file', 480 type: 'upload-file',
481 accept: '.xls, .xlsx, .doc, .docx, .rar, .zip',
482 templateUrl: 'auto',
483 templateClick: () => {
484 const link = document.createElement('a');
485 link.href = "/files/数据质量评价.docx";
486 link.download = '数据质量评价.docx';
487 document.body.appendChild(link);
488 link.click();
489 link.remove();
490 },
479 required: true, 491 required: true,
480 accept: '.doc, .docx, .rar, .png',
481 block: true, 492 block: true,
493 visible: true,
482 default: [], 494 default: [],
483 templateUrl: null,
484 field: 'costAssessmentFile', 495 field: 'costAssessmentFile',
485 }, 496 },
486 // 质量评分 type: input 497 // 质量评分 type: input
487 { 498 {
488 label: '质量评分', 499 label: '质量评分',
489 type: 'input', 500 type: 'input',
490 focusValue: true, 501 focusValue: true,
...@@ -496,9 +507,9 @@ const formItems = ref([{ ...@@ -496,9 +507,9 @@ const formItems = ref([{
496 required: true, 507 required: true,
497 block: false, 508 block: false,
498 visible: false 509 visible: false
499 }, 510 },
500 // 评估时间范围 511 // 评估时间范围
501 { 512 {
502 label: "数据时间范围", 513 label: "数据时间范围",
503 type: "date-picker", 514 type: "date-picker",
504 field: "evaluationRange", 515 field: "evaluationRange",
...@@ -507,9 +518,9 @@ const formItems = ref([{ ...@@ -507,9 +518,9 @@ const formItems = ref([{
507 clearable: true, 518 clearable: true,
508 required: true, 519 required: true,
509 visible: false 520 visible: false
510 }, 521 },
511 // 522 //
512 { 523 {
513 label: '质量评估结果', 524 label: '质量评估结果',
514 type: 'textarea', 525 type: 'textarea',
515 placeholder: '请输入质量评估结果', 526 placeholder: '请输入质量评估结果',
...@@ -521,8 +532,8 @@ const formItems = ref([{ ...@@ -521,8 +532,8 @@ const formItems = ref([{
521 clearable: true, 532 clearable: true,
522 required: true, 533 required: true,
523 visible: false 534 visible: false
524 }, 535 },
525 { 536 {
526 label: '质量报告上传', 537 label: '质量报告上传',
527 tip: '支持格式:pdf,单个文件不能超过200MB ', 538 tip: '支持格式:pdf,单个文件不能超过200MB ',
528 type: 'upload-file', 539 type: 'upload-file',
...@@ -533,8 +544,7 @@ const formItems = ref([{ ...@@ -533,8 +544,7 @@ const formItems = ref([{
533 templateUrl: null, 544 templateUrl: null,
534 field: 'evaluationFile', 545 field: 'evaluationFile',
535 visible: false 546 visible: false
536 }, 547 },
537
538 ]); 548 ]);
539 549
540 const formRules = ref({ 550 const formRules = ref({
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!