Browse Source

fix: 客服许可状态

zhengxy 1 year ago
parent
commit
50c1cd6238
1 changed files with 3 additions and 1 deletions
  1. 3 1
      project/src/components/license/createTaskDrawer.vue

+ 3 - 1
project/src/components/license/createTaskDrawer.vue

@@ -180,10 +180,12 @@ export default {
180 180
             this.onChangeCorpid(a.corpid, aIdx)
181 181
           })
182 182
           await this.$nextTick()
183
+
183 184
           this.form.account_list.forEach(async (a, aIdx) => {
184 185
             await this.$nextTick()
185 186
             this.onChangeUserIdRes(account_list[aIdx].user_id_res, a.corpid, aIdx)
186 187
           })
188
+
187 189
           this.handleGetUserDetailByReslist(list)
188 190
         }
189 191
       } catch (error) {
@@ -196,7 +198,7 @@ export default {
196 198
       await this.$nextTick()
197 199
       this.form.account_list.forEach(corp => {
198 200
         corp.user_list.forEach(user => {
199
-          const crtUser = list.find(l => l.user_id === user.user_id)
201
+          const crtUser = list.find(l => `${l.corpid}_${l.user_id}` === `${user.corpid}_${user.user_id}`)
200 202
           this.$set(user, 'status', crtUser.status)
201 203
         })
202 204
       });