Procházet zdrojové kódy

根据甲方需求,修改部门相关渲染逻辑

SunZehao před 1 rokem
rodič
revize
26a83f2e50

+ 2 - 1
src/components/assessment/assessmentApplicationFrom.vue

@@ -337,6 +337,7 @@ export default {
         },
         handleImport() {
             this.$refs.importPage.upload.title = "绩效结果考核申报导入"
+            this.$refs.importPage.upload.data = {id: this.rowMsg.id}
             this.$refs.importPage.upload.open = true
             this.$refs.importPage.upload.url = '/evaluation-dept-ad/import'
         },
@@ -351,7 +352,7 @@ export default {
             let colums = []
             colums = [
                 // { header: 'ID', key: 'id', width: 26, hidden: true },
-                { header: '申报ID', key: 'assessmentDeclarationId', width: 26, hidden: true },
+                // { header: '申报ID', key: 'assessmentDeclarationId', width: 26, hidden: true },
                 { header: '人员编号', key: 'employeeNo', width: 26 },
                 // { header: '员工ID', key: 'employeeId', width: 26 },
                 { header: '员工名称', key: 'employeeName', width: 26 },

+ 4 - 3
src/components/assessment/evaluationDeptBusinessFrom.vue

@@ -304,7 +304,8 @@ export default {
             })
         },
         handleImport() {
-            this.$refs.importPage.upload.title = "本部部门业绩指标计划信息导入"
+            this.$refs.importPage.upload.title = "本部部门业绩指标考核信息导入"
+            this.$refs.importPage.upload.data = {id: this.rowMsg.id}
             this.$refs.importPage.upload.open = true
             this.$refs.importPage.upload.url = '/evaluation-dept-plan/import'
         },
@@ -318,8 +319,8 @@ export default {
             //根据数据自己调整
             let colums = []
             colums = [
-                { header: 'ID', key: 'id', width: 26 },
-                { header: '业务ID', key: 'businessPlanId', width: 26 },
+                // { header: 'ID', key: 'id', width: 26 },
+                // { header: '业务ID', key: 'businessPlanId', width: 26 },
                 { header: '部门ID', key: 'deptId', width: 26 },
                 { header: '部门名称', key: 'deptName', width: 26 },
                 { header: '部门编码', key: 'deptCode', width: 26 },

+ 1 - 1
src/components/assessment/evaluationDeptRatingPage.vue

@@ -601,7 +601,7 @@ export default {
             //根据数据自己调整
             let colums = []
             colums = [
-                { header: 'ID', key: 'id', width: 26 },
+                { header: 'ID', key: 'id', width: 26, hidden: true },
                 { header: '考评部门', key: 'deptName', width: 26 },
                 { header: '考评年度', key: 'annual', width: 26 },
                 { header: '一月', key: 'jan', width: 15 },

+ 3 - 2
src/components/assessment/evaluationDeptStartFrom.vue

@@ -351,6 +351,7 @@ export default {
         },
         handleImport() {
             this.$refs.importPage.upload.title = "本部部门业绩指标计划信息导入"
+            this.$refs.importPage.upload.data = {id: this.rowMsg.id}
             this.$refs.importPage.upload.open = true
             this.$refs.importPage.upload.url = '/evaluation-dept-plan/import'
         },
@@ -364,8 +365,8 @@ export default {
             //根据数据自己调整
             let colums = []
             colums = [
-                { header: 'ID', key: 'id', width: 26 },
-                { header: '业务ID', key: 'businessPlanId', width: 26 },
+                // { header: 'ID', key: 'id', width: 26 },
+                // { header: '业务ID', key: 'businessPlanId', width: 26 },
                 { header: '部门编码', key: 'deptId', width: 26 },
                 { header: '部门名称', key: 'deptName', width: 26 },
                 // { header: '部门编码', key: 'deptCode', width: 26 },

+ 7 - 4
src/components/taskCenter/taskCenterDeptBusinessFrom.vue

@@ -191,7 +191,8 @@ export default {
             },
             departData: [],
             instanceChild: {},
-            userMes: {}
+            userMes: {},
+            importId: ''
         }
     },
     created() {
@@ -216,6 +217,7 @@ export default {
             this.dialogVisible = true
             this.instanceChild = datas
             this.activeName = 'first'
+            this.importId = id
             this.getDetails(id)
             this.rowMsg = row
 
@@ -366,7 +368,8 @@ export default {
             })
         },
         handleImport() {
-            this.$refs.importPage.upload.title = "本部部门业绩指标计划信息导入"
+            this.$refs.importPage.upload.title = "本部部门业绩指标考核信息导入"
+            this.$refs.importPage.upload.data = {id: this.importId}
             this.$refs.importPage.upload.open = true
             this.$refs.importPage.upload.url = '/evaluation-dept-plan/import'
         },
@@ -380,8 +383,8 @@ export default {
             //根据数据自己调整
             let colums = []
             colums = [
-                { header: 'ID', key: 'id', width: 26 },
-                { header: '业务ID', key: 'businessPlanId', width: 26 },
+                // { header: 'ID', key: 'id', width: 26 },
+                // { header: '业务ID', key: 'businessPlanId', width: 26 },
                 { header: '部门ID', key: 'deptId', width: 26 },
                 { header: '部门名称', key: 'deptName', width: 26 },
                 { header: '部门编码', key: 'deptCode', width: 26 },

+ 6 - 3
src/components/taskCenter/taskCenterDeptStartFrom.vue

@@ -206,7 +206,8 @@ export default {
                 total: 0
             },
             departData: [],
-            instanceChild: {}
+            instanceChild: {},
+            importId: ''
         }
     },
     created() {
@@ -230,6 +231,7 @@ export default {
             this.dialogVisible = true
             this.instanceChild = datas
             this.activeName = 'first'
+            this.importId = id
             this.getDetails(id)
             this.getDepartmentFromTreeData(row)
             this.rowMsg = row
@@ -423,6 +425,7 @@ export default {
         },
         handleImport() {
             this.$refs.importPage.upload.title = "本部部门业绩指标计划信息导入"
+            this.$refs.importPage.upload.data = {id: this.importId}
             this.$refs.importPage.upload.open = true
             this.$refs.importPage.upload.url = '/evaluation-dept-plan/import'
         },
@@ -436,8 +439,8 @@ export default {
             //根据数据自己调整
             let colums = []
             colums = [
-                { header: 'ID', key: 'id', width: 26 },
-                { header: '业务ID', key: 'businessPlanId', width: 26 },
+                // { header: 'ID', key: 'id', width: 26 },
+                // { header: '业务ID', key: 'businessPlanId', width: 26 },
                 { header: '部门编码', key: 'deptId', width: 26 },
                 { header: '部门名称', key: 'deptName', width: 26 },
                 // { header: '部门编码', key: 'deptCode', width: 26 },