Commit 82f90742 authored by liwei's avatar liwei

修改了单位管理 添加了小程序选项

parent 02ad72f2
......@@ -354,6 +354,7 @@ export default {
handleUpdate(row) {
this.reset()
this.form = JSON.parse(JSON.stringify(row))
this.form.wechatType = this.form.wechatType.split(',')
this.open = true
this.title = '修改商家'
// const that = this
......@@ -399,13 +400,28 @@ export default {
}
})
if (this.form.businessId !== undefined) {
updateSysUnit(this.form).then(response => {
const params = {
businessId: this.form.businessId,
wechatType: this.form.wechatType.join(','),
unitName: this.form.unitName,
userId: this.form.userId,
remarks: this.form.remarks,
flag: '1'
}
updateSysUnit(params).then(response => {
this.msgSuccess('修改成功')
this.open = false
this.getList()
})
} else {
addSysUnit(this.form).then(response => {
const addParams = {
wechatType: this.form.wechatType.join(','),
unitName: this.form.unitName,
userId: this.form.userId,
remarks: this.form.remarks,
flag: '1'
}
addSysUnit(addParams).then(response => {
this.msgSuccess('新增成功')
this.open = false
this.getList()
......
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