fix:bx日志相关改动

This commit is contained in:
shijing 2024-12-26 09:39:19 +08:00
parent 2956be3702
commit e133dc7cf8
1 changed files with 17 additions and 13 deletions

View File

@ -171,6 +171,10 @@ export default {
type: String,
default: "",
},
mgroupId:{
type: String,
default: "",
}
},
name: "mlog",
components: {
@ -203,31 +207,31 @@ export default {
that.params.mgroup = "";
that.apiObj = null;
that.mgroup_name = newval;
console.log("mgroup_name",this.mgroup_name);
console.log("newval",newval);
console.log("odlval",odlval);
that.getMgroupInfo();
// that.getMgroupInfo();
},
},
},
mounted() {
this.mgroup_name = this.mgroupName;
this.getMgroupInfo();
console.log("mgroupName",this.mgroupName);
let that = this;
that.params.mgroup =that.mgroupId;
that.apiObj = that.$API.wpm.mlog.list;
// this.mgroup_name = this.mgroupName;
// this.getMgroupInfo();
// console.log("mgroupName",this.mgroupName);
},
methods: {
getMgroupInfo(){
let that = this;
that.$API.mtm.mgroup.list.req({ page: 0, name: that.mgroup_name }).then((res) => {
that.$API.mtm.mgroup.item.req(that.mgroupId).then((res) => {
if (res.length < 1) {
that.$message.error("获取工段错误");
return;
}
that.mgroupId = res[1].id;
that.deptId = res[1].belong_dept;
that.processId = res[1].process;
that.processCate = res[1].process_cate;
that.params.mgroup = res[1].id;
that.mgroupId = res.id;
that.deptId = res.belong_dept;
that.processId = res.process;
that.processCate = res.process_cate;
that.params.mgroup = res.id;
that.apiObj = that.$API.wpm.mlog.list;
that.$refs.table.refresh();
});