This commit is contained in:
parent
9fba918f72
commit
59eb050d11
|
|
@ -189,11 +189,11 @@
|
|||
},
|
||||
|
||||
closeCustomersDialog(form) {
|
||||
this.$refs[form].resetFields();
|
||||
Object.keys(this.dialog.form).forEach(key => this.dialog.form[key] = '')
|
||||
this.dialog.form.roles = [];
|
||||
this.dialog.form.locale = @json($admin_language['code'] ?? 'en');
|
||||
this.dialog.show = false
|
||||
this.$refs[form].resetFields();
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@
|
|||
|
||||
<el-form-item>
|
||||
<el-button type="primary" @click="submit('form')">保存</el-button>
|
||||
<el-button @click="closeDialog('form')">取消</el-button>
|
||||
<el-button @click="dialog.show = false">取消</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-dialog>
|
||||
|
|
@ -129,16 +129,7 @@
|
|||
this.dialog.index = index
|
||||
|
||||
if (type == 'edit') {
|
||||
let brand = this.brands.data[index];
|
||||
|
||||
this.dialog.form = {
|
||||
id: brand.id,
|
||||
name: brand.name,
|
||||
logo: brand.logo,
|
||||
logo: brand.logo,
|
||||
first: brand.first,
|
||||
status: brand.status,
|
||||
}
|
||||
this.dialog.form = this.brands.data[index]
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -181,10 +172,9 @@
|
|||
},
|
||||
|
||||
closeDialog(form) {
|
||||
this.$refs[form].resetFields();
|
||||
Object.keys(this.dialog.form).forEach(key => this.dialog.form[key] = '')
|
||||
this.dialog.form.status = 1
|
||||
this.dialog.show = false
|
||||
this.$refs[form].resetFields();
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -167,9 +167,9 @@
|
|||
},
|
||||
|
||||
closeCustomersDialog(form) {
|
||||
this.$refs[form].resetFields();
|
||||
Object.keys(this.dialog.form).forEach(key => this.dialog.form[key] = '')
|
||||
this.dialog.show = false
|
||||
this.$refs[form].resetFields();
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -200,11 +200,11 @@
|
|||
},
|
||||
|
||||
closeCustomersDialog(form) {
|
||||
this.$refs[form].resetFields();
|
||||
Object.keys(this.dialog.form).forEach(key => this.dialog.form[key] = '')
|
||||
this.dialog.form.name = {};
|
||||
this.dialog.form.description = {};
|
||||
this.dialog.show = false
|
||||
this.$refs[form].resetFields();
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -162,9 +162,9 @@
|
|||
},
|
||||
|
||||
closeCustomersDialog(form) {
|
||||
this.$refs[form].resetFields();
|
||||
Object.keys(this.dialog.form).forEach(key => this.dialog.form[key] = '')
|
||||
this.dialog.show = false
|
||||
this.$refs[form].resetFields();
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -204,10 +204,10 @@
|
|||
},
|
||||
|
||||
closeCustomersDialog(form) {
|
||||
this.$refs[form].resetFields();
|
||||
Object.keys(this.dialog.form).forEach(key => this.dialog.form[key] = '')
|
||||
this.dialog.form.tax_rules = []
|
||||
this.dialog.show = false
|
||||
this.$refs[form].resetFields();
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -179,10 +179,10 @@
|
|||
},
|
||||
|
||||
closeCustomersDialog(form) {
|
||||
this.$refs[form].resetFields();
|
||||
Object.keys(this.dialog.form).forEach(key => this.dialog.form[key] = '')
|
||||
this.dialog.form.type = 'percent';
|
||||
this.dialog.show = false
|
||||
this.$refs[form].resetFields();
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue