Przeglądaj źródła

单位考评目标修订详情页面增加导入和导出功能(包含任务中心详情);

SunZehao 1 rok temu
rodzic
commit
d47b6d7cf6

+ 8 - 8
src/components/assessment/evaluationAmendmentNewFrom.vue

@@ -530,7 +530,7 @@ export default {
         responseData(datas) {
             if (datas.message === '成功') {
                 this.$message({
-                    message: '考评目标详情信息保存成功',
+                    message: '考评修订详情信息保存成功',
                     type: 'success'
                 });
             } else {
@@ -547,7 +547,7 @@ export default {
                 if (datas) {
                     if (datas.message === '成功') {
                         that.$message({
-                            message: '考评目标详情信息保存成功',
+                            message: '考评修订详情信息保存成功',
                             type: 'success'
                         });
                     } else {
@@ -561,24 +561,24 @@ export default {
             })
         },
         handleImport() {
-            this.$refs.importPage.upload.title = "考评目标详情信息导入"
+            this.$refs.importPage.upload.title = "考评修订详情信息导入"
             this.$refs.importPage.upload.open = true
-            this.$refs.importPage.upload.url = '/responsibility-indicator-info/import-excel'
+            this.$refs.importPage.upload.url = '/evaluation-revision/import-excel'
         },
         successImport(val) {
-            that.getTableData(that.addstageId)
+            this.getTableData(this.addstageId)
         },
         handleExport() {
             let that = this
-            let url = 'responsibility-indicator-info/download-excel'
+            let url = 'evaluation-revision/download-excel'
             let params = {
-                responsibilityId: that.rowMsg.id,
+                reviseId: that.rowMsg.id,
                 binSection: that.binSectionStr,
                 binStage: that.addstageId
             }
             apiGetExportMsg(url,params).then(datas =>{
                 let blob = new Blob([datas])
-                saveAs(blob, '考评目标详情数据导出.xlsx')
+                saveAs(blob, '考评修订详情数据导出.xlsx')
             }).catch((r) => {
                 console.error(r)
             })

+ 5 - 1
src/components/evaluationknowledgePage/scoringRulesNewPage.vue

@@ -39,7 +39,11 @@
                     <el-table-column label="业务阶段" prop="binStageName" />
                     <el-table-column label="指标类型" prop="indicatorTypeName" width="200" />
                     <el-table-column label="指标名称" prop="indicatorName" width="300" />
-                    <el-table-column label="考评周期" prop="evaluationCycle" />
+                    <el-table-column label="考评周期" prop="evaluationCycle">
+                        <template #default="scope">
+                            <span>{{scope.row.evaluationCycle==='YDKP'?'月度考评':scope.row.evaluationCycle==='JDKP'?'季度考评':'年度考评'}}</span>
+                        </template>
+                    </el-table-column>
                     <el-table-column label="指标单位" prop="unit" />
                     <el-table-column label="是否专项" prop="isAdditional" />
                     <el-table-column label="描述" width="250">

+ 5 - 5
src/components/taskCenter/taskEvaluationAmendmentFrom.vue

@@ -442,7 +442,7 @@ export default {
             let addObj = {
                 organizationId: that.userMes.unitId,
                 // organizationId: "23079300",
-                organizationEvaluationId: that.rowMsg.id,
+                organizationEvaluationId: that.rowkeyId,
                 indicatorId: that.isClickTagId,
                 binSection: that.binSectionStr,
                 binStage: that.addstageId,
@@ -508,16 +508,16 @@ export default {
         handleImport() {
             this.$refs.importPage.upload.title = "考评目标详情信息导入"
             this.$refs.importPage.upload.open = true
-            this.$refs.importPage.upload.url = '/responsibility-indicator-info/import-excel'
+            this.$refs.importPage.upload.url = '/evaluation-revision/import-excel'
         },
         successImport(val) {
-            that.getTableData(that.addstageId)
+            this.getTableData(this.addstageId)
         },
         handleExport() {
             let that = this
-            let url = 'responsibility-indicator-info/download-excel'
+            let url = 'evaluation-revision/download-excel'
             let params = {
-                responsibilityId: that.rowMsg.id,
+                reviseId: that.rowkeyId,
                 binSection: that.binSectionStr,
                 binStage: that.addstageId
             }