diff --git a/project/xiushan/apps/creditScore/scoreSupermarket/storeManagement.vue b/project/xiushan/apps/creditScore/scoreSupermarket/storeManagement.vue index b19ad66c..c27238ab 100644 --- a/project/xiushan/apps/creditScore/scoreSupermarket/storeManagement.vue +++ b/project/xiushan/apps/creditScore/scoreSupermarket/storeManagement.vue @@ -114,7 +114,8 @@ - + @@ -216,7 +217,8 @@ export default { }, peopleAjaxUrl: "/admin/user/page", authDialog: false, - form: {} + form: {}, + operators: [] }; }, @@ -268,15 +270,17 @@ export default { statusChage(row) { this.authDialog = true - this.form = JSON.parse(JSON.stringify(row)) + let store = JSON.parse(JSON.stringify(row)) + this.form = {...store, operators: store.operators?.map(e => e.id)} }, handleAuth() { - let {operators} = this.form - this.form.operators = operators.map(id => ({id})) - this.instance.post(`/app/appvillagerintegralshop/addOrUpdate`, this.form).then((res) => { + let form = JSON.parse(JSON.stringify(this.form)) + form.operators = this.operators.map(({id, name}) => ({id, name})) + this.instance.post(`/app/appvillagerintegralshop/addOrUpdate`, form).then((res) => { if (res?.code == 0) { this.$message.success("授权成功!") this.authDialog = false + this.getList() } }) }, diff --git a/project/xiushan/components/AiUserPicker.vue b/project/xiushan/components/AiUserPicker.vue index 82c71607..9459120d 100644 --- a/project/xiushan/components/AiUserPicker.vue +++ b/project/xiushan/components/AiUserPicker.vue @@ -1,6 +1,6 @@