diff --git a/src/views/wpm_bx/mtask.vue b/src/views/wpm_bx/mtask.vue index a00b9406..8e2106c9 100644 --- a/src/views/wpm_bx/mtask.vue +++ b/src/views/wpm_bx/mtask.vue @@ -27,7 +27,7 @@ - + @@ -103,6 +94,14 @@ export default { type: String, default: "", }, + mgroupId:{ + type: String, + default: "", + }, + deptId:{ + type: String, + default: "", + } }, components: { deliverDrawer, @@ -130,14 +129,6 @@ export default { 34: "danger", 40: "success", }, - // state_: { - // 10: "创建中", - // 20: "已下达", - // 30: "生产中", - // 34: "已终止", - // 40: "已提交", - // }, - deptId: null, mgroup_name:'', deliverShow:false, }; @@ -154,7 +145,11 @@ export default { // }, }, mounted() { - this.getMgroupInfo(); + let that = this; + that.params.mgroup = that.mgroupId; + that.apiObj = this.$API.pm.mtask.list; + that.$refs.table.refresh(); + // this.getMgroupInfo(); }, methods: { getMgroupInfo(){ @@ -165,8 +160,6 @@ export default { if(res.length>0){ that.mgroupId = res[0].id; that.deptId = res[0].belong_dept; - that.processId = res[0].process; - that.processCate = res[0].process_cate; that.params.mgroup = res[0].id; that.apiObj = this.$API.pm.mtask.list; that.$refs.table.refresh();