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