From 1381576d5e4285aa104ed7412e2c1c0101fddb14 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Mon, 23 Oct 2023 15:03:50 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E5=B9=B4=E5=BA=A6=E5=88=B6=E4=BF=AE?= =?UTF-8?q?=E8=AE=A2=E8=AE=A1=E5=88=92=EF=BC=88=E5=90=84=E9=83=A8=E9=97=A8?= =?UTF-8?q?=E4=B8=BB=E5=8A=A8=E4=B8=8A=E6=8A=A5=EF=BC=89=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/OnlyTableForm.vue | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/OnlyTableForm.vue b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/OnlyTableForm.vue index ac0025df..bf65f520 100644 --- a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/OnlyTableForm.vue +++ b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/OnlyTableForm.vue @@ -134,7 +134,7 @@ export default { title: this.$t('enterpriseStandardLibrary.plan.revisionType'), align: 'center', width: 180, - dataIndex: 'applicationCategory_dictText', + dataIndex: 'projectType_dictText', scopedSlots: { customRender: 'text' } }, { // 原企标编号 @@ -169,56 +169,56 @@ export default { title: this.$t('enterpriseStandardLibrary.plan.authDepartment'), align: 'center', width: 180, - dataIndex: 'authDeparts', + dataIndex: 'authDept_dictText', scopedSlots: { customRender: 'text' } }, { // 企业标准代号 title: this.$t('enterpriseStandardLibrary.plan.enterpriseStandardCode'), align: 'center', width: 180, - dataIndex: 'enStandardCode', + dataIndex: 'enStandardCode_dictText', scopedSlots: { customRender: 'text' } }, { // 配合单位 title: this.$t('enterpriseStandardLibrary.plan.suitUnit'), align: 'center', width: 180, - dataIndex: 'cooperateDeparts', + dataIndex: 'cooperationUnit_dictText', scopedSlots: { customRender: 'text' } }, { // 主起草人 title: this.$t('enterpriseStandardLibrary.plan.principalDrafter'), align: 'center', width: 180, - dataIndex: 'mainDraftingUser', + dataIndex: 'mainDraftingUser_dictText', scopedSlots: { customRender: 'text' } }, { // 主起草单位 title: this.$t('enterpriseStandardLibrary.plan.mainDraftingUnit'), align: 'center', width: 180, - dataIndex: 'mainDraftingUnit', + dataIndex: 'mainDraftingUnit_dictText', scopedSlots: { customRender: 'text' } }, { // 主起草单位负责人 title: this.$t('enterpriseStandardLibrary.plan.headOfMainDraftingUnit'), align: 'center', width: 180, - dataIndex: 'mainDraftingUnitResponsiblePerson', + dataIndex: 'mainDraftingUnitResponsiblePerson_dictText', scopedSlots: { customRender: 'text' } }, { // 隶属工作组 title: this.$t('workCenter.revisionPlanActivelyReport.affiliatedWorkingGroup'), align: 'center', width: 180, - dataIndex: 'affiliatedWorkingGroup', + dataIndex: 'workGroup_dictText', scopedSlots: { customRender: 'text' } }, { // 标准推进人 title: this.$t('enterpriseStandardLibrary.plan.standardPusher'), align: 'center', width: 180, - dataIndex: 'standardPromoter', + dataIndex: 'standardPromoter_dictText', scopedSlots: { customRender: 'text' } }, { // 草稿计划完成日期 @@ -261,8 +261,8 @@ export default { selectedRowKeys: [], selectionRows: [], url: { - list: '', - downTemplateUrl: '' + downTemplateUrl: '/process/es/annualReport/templateDownload', + importExcelUrl: '/process/es/annualReport/importExcel' }, modalType: '' // 是在新增还是在编辑,编辑的时候放正在编辑的下标 } @@ -341,7 +341,8 @@ export default { } else { this.$message.success(info.file.response.message || `${info.file.name} 文件上传成功`) } - this.loadData() + this.dataSource = Object.assign([], this.dataSource, info.file.response.result) + // this.dataSource.push(info.file.response.result) } else { this.$message.error(`${info.file.name} ${info.file.response.message}.`) }