Commit 3a833a58 authored by 张伯涛's avatar 张伯涛

商家管理模块修改

parent 2d66ee6d
......@@ -339,20 +339,20 @@ export default {
this.form = JSON.parse(JSON.stringify(row))
this.open = true
this.title = '修改商家'
const that = this
const businessId = JSON.parse(JSON.stringify(row.userId))
this.getUserList()
queryUnitAdminByBusinessId(businessId).then(res => {
if (res.code === 200) {
if (res.data) {
const userUnitList = that.userUnit
console.log('userUnitList', userUnitList)
that.userList = JSON.parse(JSON.stringify(userUnitList))
that.userList.push(res.data)
console.log('item', that.userList)
}
}
})
// const that = this
// const businessId = JSON.parse(JSON.stringify(row.userId))
// this.getUserList()
// queryUnitAdminByBusinessId(businessId).then(res => {
// if (res.code === 200) {
// if (res.data) {
// const userUnitList = that.userUnit
// console.log('userUnitList', userUnitList)
// that.userList = JSON.parse(JSON.stringify(userUnitList))
// that.userList.push(res.data)
// console.log('item', that.userList)
// }
// }
// })
},
// 改变状态
handleStatusChange(row) {
......
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