fix:mtask减少接口请求
This commit is contained in:
parent
59e5f391bd
commit
373fc37648
|
@ -27,7 +27,7 @@
|
|||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="可用批" v-if="mgroup_name!='切片'">
|
||||
<el-table-column label="可用批" v-if="mgroupName!='切片'">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
link
|
||||
|
@ -50,15 +50,6 @@
|
|||
@click="mtask_submit(scope.row)"
|
||||
>提交
|
||||
</el-button>
|
||||
<!-- <el-button
|
||||
link
|
||||
size="small"
|
||||
v-auth="'mtask.submit'"
|
||||
type="primary"
|
||||
v-if="scope.row.state == 20 "
|
||||
@click="mtask_deliver(scope.row)"
|
||||
>分配
|
||||
</el-button> -->
|
||||
</template>
|
||||
</el-table-column>
|
||||
</scTable>
|
||||
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue