fix
Showing
1 changed file
with
86 additions
and
76 deletions
| ... | @@ -458,83 +458,93 @@ const tablePageChange = (info) => { | ... | @@ -458,83 +458,93 @@ const tablePageChange = (info) => { |
| 458 | getTableData(); | 458 | getTableData(); |
| 459 | }; | 459 | }; |
| 460 | 460 | ||
| 461 | const formItems = ref([{ | 461 | const formItems = ref([ |
| 462 | label: '资产名称', | 462 | { |
| 463 | type: 'select', | 463 | label: '资产名称', |
| 464 | placeholder: '请选择', | 464 | type: 'select', |
| 465 | field: 'registerGuid', | 465 | placeholder: '请选择', |
| 466 | default: '', | 466 | field: 'registerGuid', |
| 467 | block: true, | 467 | default: '', |
| 468 | options: assetListData.value, | 468 | block: true, |
| 469 | props: { | 469 | options: assetListData.value, |
| 470 | value: 'guid', | 470 | props: { |
| 471 | label: 'damName' | 471 | value: 'guid', |
| 472 | label: 'damName' | ||
| 473 | }, | ||
| 474 | visible: true, | ||
| 475 | required: true | ||
| 476 | }, | ||
| 477 | { | ||
| 478 | label: '附件上传', | ||
| 479 | tip: '支持格式:xls .xlsx .doc .docx .rar .zip', | ||
| 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 | }, | ||
| 491 | required: true, | ||
| 492 | block: true, | ||
| 493 | visible: true, | ||
| 494 | default: [], | ||
| 495 | field: 'costAssessmentFile', | ||
| 496 | }, | ||
| 497 | // 质量评分 type: input | ||
| 498 | { | ||
| 499 | label: '质量评分', | ||
| 500 | type: 'input', | ||
| 501 | focusValue: true, | ||
| 502 | placeholder: '请输入', | ||
| 503 | field: 'qualityScore', | ||
| 504 | inputType: 'scoreNumber', | ||
| 505 | default: '', | ||
| 506 | clearable: true, | ||
| 507 | required: true, | ||
| 508 | block: false, | ||
| 509 | visible: false | ||
| 510 | }, | ||
| 511 | // 评估时间范围 | ||
| 512 | { | ||
| 513 | label: "数据时间范围", | ||
| 514 | type: "date-picker", | ||
| 515 | field: "evaluationRange", | ||
| 516 | default: '', | ||
| 517 | placeholder: "开始时间~结束时间", | ||
| 518 | clearable: true, | ||
| 519 | required: true, | ||
| 520 | visible: false | ||
| 521 | }, | ||
| 522 | // | ||
| 523 | { | ||
| 524 | label: '质量评估结果', | ||
| 525 | type: 'textarea', | ||
| 526 | placeholder: '请输入质量评估结果', | ||
| 527 | field: 'evaluationNote', | ||
| 528 | default: '', | ||
| 529 | maxlength: 250, | ||
| 530 | block: true, | ||
| 531 | focusValue: true, | ||
| 532 | clearable: true, | ||
| 533 | required: true, | ||
| 534 | visible: false | ||
| 535 | }, | ||
| 536 | { | ||
| 537 | label: '质量报告上传', | ||
| 538 | tip: '支持格式:pdf,单个文件不能超过200MB ', | ||
| 539 | type: 'upload-file', | ||
| 540 | required: true, | ||
| 541 | accept: '.pdf, .png', | ||
| 542 | block: true, | ||
| 543 | default: [], | ||
| 544 | templateUrl: null, | ||
| 545 | field: 'evaluationFile', | ||
| 546 | visible: false | ||
| 472 | }, | 547 | }, |
| 473 | visible: true, | ||
| 474 | required: true | ||
| 475 | }, { | ||
| 476 | label: '附件上传', | ||
| 477 | tip: '支持格式:.doc .docx .rar', | ||
| 478 | type: 'upload-file', | ||
| 479 | required: true, | ||
| 480 | accept: '.doc, .docx, .rar, .png', | ||
| 481 | block: true, | ||
| 482 | default: [], | ||
| 483 | templateUrl: null, | ||
| 484 | field: 'costAssessmentFile', | ||
| 485 | }, | ||
| 486 | // 质量评分 type: input | ||
| 487 | { | ||
| 488 | label: '质量评分', | ||
| 489 | type: 'input', | ||
| 490 | focusValue: true, | ||
| 491 | placeholder: '请输入', | ||
| 492 | field: 'qualityScore', | ||
| 493 | inputType: 'scoreNumber', | ||
| 494 | default: '', | ||
| 495 | clearable: true, | ||
| 496 | required: true, | ||
| 497 | block: false, | ||
| 498 | visible: false | ||
| 499 | }, | ||
| 500 | // 评估时间范围 | ||
| 501 | { | ||
| 502 | label: "数据时间范围", | ||
| 503 | type: "date-picker", | ||
| 504 | field: "evaluationRange", | ||
| 505 | default: '', | ||
| 506 | placeholder: "开始时间~结束时间", | ||
| 507 | clearable: true, | ||
| 508 | required: true, | ||
| 509 | visible: false | ||
| 510 | }, | ||
| 511 | // | ||
| 512 | { | ||
| 513 | label: '质量评估结果', | ||
| 514 | type: 'textarea', | ||
| 515 | placeholder: '请输入质量评估结果', | ||
| 516 | field: 'evaluationNote', | ||
| 517 | default: '', | ||
| 518 | maxlength: 250, | ||
| 519 | block: true, | ||
| 520 | focusValue: true, | ||
| 521 | clearable: true, | ||
| 522 | required: true, | ||
| 523 | visible: false | ||
| 524 | }, | ||
| 525 | { | ||
| 526 | label: '质量报告上传', | ||
| 527 | tip: '支持格式:pdf,单个文件不能超过200MB ', | ||
| 528 | type: 'upload-file', | ||
| 529 | required: true, | ||
| 530 | accept: '.pdf, .png', | ||
| 531 | block: true, | ||
| 532 | default: [], | ||
| 533 | templateUrl: null, | ||
| 534 | field: 'evaluationFile', | ||
| 535 | visible: false | ||
| 536 | }, | ||
| 537 | |||
| 538 | ]); | 548 | ]); |
| 539 | 549 | ||
| 540 | const formRules = ref({ | 550 | const formRules = ref({ | ... | ... |
-
Please register or sign in to post a comment