From c89052ab9c80b1e3d18921a97e8a66eba377f77c Mon Sep 17 00:00:00 2001 From: shijing Date: Sun, 25 Jun 2023 14:00:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=8F=9C=E5=8D=95=E5=90=8D?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/router/index.js | 2 +- .../views/supervisionNew/basicGoalDept.vue | 11 +- client/src/views/supervisionNew/mytask.vue | 42 ++--- client/src/views/supervisionNew/mytaskDo.vue | 158 ------------------ client/src/views/supervisionNew/taskdo.vue | 8 +- 5 files changed, 33 insertions(+), 188 deletions(-) delete mode 100644 client/src/views/supervisionNew/mytaskDo.vue diff --git a/client/src/router/index.js b/client/src/router/index.js index aebe060..09b0c32 100644 --- a/client/src/router/index.js +++ b/client/src/router/index.js @@ -211,7 +211,7 @@ export const asyncRoutes = [ path: 'basicGoal', name: 'basicGoal', component: () => import('@/views/supervisionNew/basicGoal.vue'), - meta: { title: '年度基础目标' , perms: ['task2']} + meta: { title: '集团年度目标' , perms: ['task2']} }, { path: 'basicGoalDept', diff --git a/client/src/views/supervisionNew/basicGoalDept.vue b/client/src/views/supervisionNew/basicGoalDept.vue index bb7a428..41486d7 100644 --- a/client/src/views/supervisionNew/basicGoalDept.vue +++ b/client/src/views/supervisionNew/basicGoalDept.vue @@ -18,7 +18,7 @@ >搜索 - + @@ -37,13 +37,13 @@ - + /> --> @@ -67,11 +67,14 @@ goal_key__in:'pgoal_1,pgoal_2,pgoal_3,pgoal_4,pgoal_5', }, taskList:[], + heightTable:null, listLoading:false }; }, mounted(){ this.getList(); + let height = document.getElementsByClassName('app-main')[0].clientHeight; + this.heightTable = height-90; }, methods:{ checkPermission, diff --git a/client/src/views/supervisionNew/mytask.vue b/client/src/views/supervisionNew/mytask.vue index b66874f..7af223c 100644 --- a/client/src/views/supervisionNew/mytask.vue +++ b/client/src/views/supervisionNew/mytask.vue @@ -903,29 +903,29 @@ import user from "@/store/modules/user"; obj.goal_name = item.goal_name; obj.goal_file = item.goal_file; obj.goal_value_b = item.goal_value_b; - if(item.id){ - updatePgoalDept(item.id,obj).then(res=>{ - this.saveLoading = false; - console.log(res) - if(res.code>=200){ - this.$message.success('保存成功') - } - }).catch(()=>{ - this.saveLoading = false; - }) + if(item.goal_file!==null&&item.goal_file!==''){ + if(item.id){ + updatePgoalDept(item.id,obj).then(res=>{ + this.saveLoading = false; + if(res.code>=200){ + this.$message.success('保存成功') + } + }).catch(()=>{ + this.saveLoading = false; + }) + }else{ + createPgoalDept(obj).then(res=>{ + this.saveLoading = false; + if(res.code>=200){ + this.$message.success('保存成功') + } + }).catch(()=>{ + this.saveLoading = false; + }) + } }else{ - createPgoalDept(obj).then(res=>{ - // debugger; - console.log(res) - this.saveLoading = false; - if(res.code>=200){ - this.$message.success('保存成功') - } - }).catch(()=>{ - this.saveLoading = false; - }) + this.$message.warning('请上传实施细则文件') } - }, handlePreview(file) { if ("url" in file) { diff --git a/client/src/views/supervisionNew/mytaskDo.vue b/client/src/views/supervisionNew/mytaskDo.vue deleted file mode 100644 index 027cdb0..0000000 --- a/client/src/views/supervisionNew/mytaskDo.vue +++ /dev/null @@ -1,158 +0,0 @@ - - - diff --git a/client/src/views/supervisionNew/taskdo.vue b/client/src/views/supervisionNew/taskdo.vue index 91afce7..b0db175 100644 --- a/client/src/views/supervisionNew/taskdo.vue +++ b/client/src/views/supervisionNew/taskdo.vue @@ -141,7 +141,7 @@ > -->