fix:bx页面方法变动

This commit is contained in:
shijing 2024-12-31 09:20:39 +08:00
parent beb6343180
commit 780a088642
2 changed files with 13 additions and 12 deletions

View File

@ -98,6 +98,7 @@ export default {
mounted() {
this.getMtask();
this.getMaterial();
this.form.mlog = this.mlog;
},
methods: {
open() {
@ -135,8 +136,7 @@ export default {
});
if (arr.length > 0) {
that.form.wm_in = arr[0].id;
that.form.mlog = that.mlog;
that.form.mtask = that.mtask;
// that.form.mtask = that.mtask;
//
that.submit();
}else{
@ -150,6 +150,7 @@ export default {
that.form.mlog = that.mlog;
that.$API.wpm.mlogb.in.req(that.form).then((res) => {
that.$message.success("添加成功");
that.$emit("success");
that.wm_in = '';
}).catch((err) => {});
},

View File

@ -143,15 +143,15 @@ export default {
};
},
watch: {
mgroupName: {
handler: function (newval,odlval) {
let that = this;
that.params.mgroup = "";
that.apiObj = null;
that.mgroup_name = newval;
that.getMgroupInfo();
},
},
// mgroupName: {
// handler: function (newval,odlval) {
// let that = this;
// that.params.mgroup = "";
// that.apiObj = null;
// that.mgroup_name = newval;
// that.getMgroupInfo();
// },
// },
},
mounted() {
this.getMgroupInfo();
@ -160,7 +160,7 @@ export default {
getMgroupInfo(){
let that = this;
that.$API.mtm.mgroup.list
.req({ page: 0, name: that.mgroup_name })
.req({ page: 0, name: that.mgroupName })
.then((res) => {
if(res.length>0){
that.mgroupId = res[0].id;