fix:bx页面方法变动
This commit is contained in:
parent
beb6343180
commit
780a088642
|
@ -98,6 +98,7 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getMtask();
|
this.getMtask();
|
||||||
this.getMaterial();
|
this.getMaterial();
|
||||||
|
this.form.mlog = this.mlog;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open() {
|
open() {
|
||||||
|
@ -135,8 +136,7 @@ export default {
|
||||||
});
|
});
|
||||||
if (arr.length > 0) {
|
if (arr.length > 0) {
|
||||||
that.form.wm_in = arr[0].id;
|
that.form.wm_in = arr[0].id;
|
||||||
that.form.mlog = that.mlog;
|
// that.form.mtask = that.mtask;
|
||||||
that.form.mtask = that.mtask;
|
|
||||||
//提交
|
//提交
|
||||||
that.submit();
|
that.submit();
|
||||||
}else{
|
}else{
|
||||||
|
@ -150,6 +150,7 @@ export default {
|
||||||
that.form.mlog = that.mlog;
|
that.form.mlog = that.mlog;
|
||||||
that.$API.wpm.mlogb.in.req(that.form).then((res) => {
|
that.$API.wpm.mlogb.in.req(that.form).then((res) => {
|
||||||
that.$message.success("添加成功");
|
that.$message.success("添加成功");
|
||||||
|
that.$emit("success");
|
||||||
that.wm_in = '';
|
that.wm_in = '';
|
||||||
}).catch((err) => {});
|
}).catch((err) => {});
|
||||||
},
|
},
|
||||||
|
|
|
@ -143,15 +143,15 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
mgroupName: {
|
// mgroupName: {
|
||||||
handler: function (newval,odlval) {
|
// handler: function (newval,odlval) {
|
||||||
let that = this;
|
// let that = this;
|
||||||
that.params.mgroup = "";
|
// that.params.mgroup = "";
|
||||||
that.apiObj = null;
|
// that.apiObj = null;
|
||||||
that.mgroup_name = newval;
|
// that.mgroup_name = newval;
|
||||||
that.getMgroupInfo();
|
// that.getMgroupInfo();
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getMgroupInfo();
|
this.getMgroupInfo();
|
||||||
|
@ -160,7 +160,7 @@ export default {
|
||||||
getMgroupInfo(){
|
getMgroupInfo(){
|
||||||
let that = this;
|
let that = this;
|
||||||
that.$API.mtm.mgroup.list
|
that.$API.mtm.mgroup.list
|
||||||
.req({ page: 0, name: that.mgroup_name })
|
.req({ page: 0, name: that.mgroupName })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if(res.length>0){
|
if(res.length>0){
|
||||||
that.mgroupId = res[0].id;
|
that.mgroupId = res[0].id;
|
||||||
|
|
Loading…
Reference in New Issue