fix:bx页面方法变动
This commit is contained in:
parent
beb6343180
commit
780a088642
|
@ -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) => {});
|
||||
},
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue