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/dashboard/index.vue b/client/src/views/dashboard/index.vue index 4dd59f3..b7cdf9b 100644 --- a/client/src/views/dashboard/index.vue +++ b/client/src/views/dashboard/index.vue @@ -122,7 +122,7 @@ 质量风险管理库

- 集团公司基础质量风险管理库.wlsx + 集团公司基础质量风险管理库.xlsx

基础质量风险管理库引用文件.rar diff --git a/client/src/views/supervisionNew/basicGoalDept.vue b/client/src/views/supervisionNew/basicGoalDept.vue index c51db61..41486d7 100644 --- a/client/src/views/supervisionNew/basicGoalDept.vue +++ b/client/src/views/supervisionNew/basicGoalDept.vue @@ -3,38 +3,22 @@

- 搜索 - 重置
- + @@ -53,13 +37,13 @@ - + /> --> @@ -83,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, @@ -117,13 +104,15 @@ //获取任务列表===》获取任务id getList(){ let that = this; + that.dataList.results = []; + that.dataList.count =0; that.listLoading = true; if(that.listQuery.year==''){ - that.listQuery.year = new Date().getFullYear(); + let date = new Date(); + that.listQuery.year = date.getFullYear()+''; } that.listQuery.page=0; getPgoalDeptList(that.listQuery).then((res) => { - debugger; if (res.data) { let data0 = res.data; let data =data0.filter(item=>{ @@ -136,7 +125,6 @@ {year:that.listQuery.year,dept_name:'集团',dept:'000',pgoal_1:'',pgoal_2:'',pgoal_3:'',pgoal_4:'',pgoal_5:''} ]; for(let i=0;i-1){ }else{ @@ -163,16 +151,18 @@ } } that.dataList.results = dataList; - that.listLoading = false; } + that.listLoading = false; + }else{ + that.listLoading = false; } }); }, - resetFilter(){ - this.listQuery.search = ''; - this.getList(); + yearChange(value){ + let year = new Date(value).getFullYear()+''; + this.listQuery.year = year; }, handleFilter(){ this.getList(); 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/task.vue b/client/src/views/supervisionNew/task.vue index 5fc34aa..77b9c98 100644 --- a/client/src/views/supervisionNew/task.vue +++ b/client/src/views/supervisionNew/task.vue @@ -3,7 +3,7 @@
-->