Commit 5b2b3eca by huaying

fix: 活码新增

parent 0479cff0
......@@ -70,6 +70,7 @@ export default {
async onSubmit(event) {
if (this.memberType == 1) {
this.form.clerkIdList = ['-1'];
this.form.hmUserNum = this.hmMemberNum;
}
let obj = {
...event,
......@@ -82,7 +83,7 @@ export default {
clerkIdList: [],
hmUserNum: null //多人活码人数
};
// this.$router.go(-1);
this.$router.go(-1);
} else {
return this.$message.error(res.data.message);
}
......
......@@ -86,7 +86,6 @@ export default {
this.data = this.detailCode.clerkList;
that.loading = false;
});
console.log(this.form.clerkIdList, 'this.form.clerkIdList');
}
},
async onSubmit(event) {
......@@ -94,7 +93,6 @@ export default {
...event,
...this.form
};
console.log(obj, this.form, '父组件,整体表单数据');
if (this.$route.query.hmId) {
obj = {
...obj,
......@@ -102,7 +100,6 @@ export default {
};
// 编辑
await postJsonRequest('/haoban-manage3-web/hm/qrcode/update', obj).then(res => {
console.log(res, '编辑');
if (res.data.code == 0) {
this.form = {
hmType: 1,
......@@ -118,7 +115,6 @@ export default {
} else {
// 新增
await postJsonRequest('/haoban-manage3-web/hm/qrcode/add', obj).then(res => {
console.log(res, '新增');
if (res.data.code == 0) {
this.form = {
hmType: 1,
......
......@@ -88,7 +88,6 @@ export default {
},
methods: {
saveTagPop(data) {
console.log(data);
this.data = data;
},
onLoadmore() {
......@@ -135,7 +134,6 @@ export default {
save() {
this.$refs.form.validate(async valid => {
if (valid) {
console.log(this.form, '子组件');
this.form.passFlag = this.form.passFlag ? 1 : 0;
this.$emit('sumbit', this.form);
}
......@@ -146,7 +144,6 @@ export default {
actCodeData: {
handler: function(val) {
if (val) {
console.log(val, 'val');
this.form.hmGroupId = val.hmGroupId;
this.form.passFlag = val.passFlag == 1 ? true : false;
this.form.memberLabelId = val.memberLabelId ? val.memberLabelId : '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment