Commit 82f90742 authored by liwei's avatar liwei

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

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