fix:mtask减少接口请求
This commit is contained in:
parent
59e5f391bd
commit
373fc37648
|
@ -27,7 +27,7 @@
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="可用批" v-if="mgroup_name!='切片'">
|
<el-table-column label="可用批" v-if="mgroupName!='切片'">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-button
|
<el-button
|
||||||
link
|
link
|
||||||
|
@ -50,15 +50,6 @@
|
||||||
@click="mtask_submit(scope.row)"
|
@click="mtask_submit(scope.row)"
|
||||||
>提交
|
>提交
|
||||||
</el-button>
|
</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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</scTable>
|
</scTable>
|
||||||
|
@ -103,6 +94,14 @@ export default {
|
||||||
type: String,
|
type: String,
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
|
mgroupId:{
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
|
deptId:{
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
deliverDrawer,
|
deliverDrawer,
|
||||||
|
@ -130,14 +129,6 @@ export default {
|
||||||
34: "danger",
|
34: "danger",
|
||||||
40: "success",
|
40: "success",
|
||||||
},
|
},
|
||||||
// state_: {
|
|
||||||
// 10: "创建中",
|
|
||||||
// 20: "已下达",
|
|
||||||
// 30: "生产中",
|
|
||||||
// 34: "已终止",
|
|
||||||
// 40: "已提交",
|
|
||||||
// },
|
|
||||||
deptId: null,
|
|
||||||
mgroup_name:'',
|
mgroup_name:'',
|
||||||
deliverShow:false,
|
deliverShow:false,
|
||||||
};
|
};
|
||||||
|
@ -154,7 +145,11 @@ export default {
|
||||||
// },
|
// },
|
||||||
},
|
},
|
||||||
mounted() {
|
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: {
|
methods: {
|
||||||
getMgroupInfo(){
|
getMgroupInfo(){
|
||||||
|
@ -165,8 +160,6 @@ export default {
|
||||||
if(res.length>0){
|
if(res.length>0){
|
||||||
that.mgroupId = res[0].id;
|
that.mgroupId = res[0].id;
|
||||||
that.deptId = res[0].belong_dept;
|
that.deptId = res[0].belong_dept;
|
||||||
that.processId = res[0].process;
|
|
||||||
that.processCate = res[0].process_cate;
|
|
||||||
that.params.mgroup = res[0].id;
|
that.params.mgroup = res[0].id;
|
||||||
that.apiObj = this.$API.pm.mtask.list;
|
that.apiObj = this.$API.pm.mtask.list;
|
||||||
that.$refs.table.refresh();
|
that.$refs.table.refresh();
|
||||||
|
|
Loading…
Reference in New Issue