zhaowei
2025-07-15 86f0166e2a759e6ec2c34b0dd0b388bafa80cedd
src/views/dnc/base/modules/ProductStructure/Permission/UserPermissionTransfer.vue
@@ -47,7 +47,10 @@
        that.targetKeys = []
        dncApi.getHasPermissionUserApi(this.currentTreeNodeInfo)
          .then(res => {
            if (res.success) this.targetKeys = res.list.map(item => item.id)
            if (res.success) {
              that.targetKeys = res.list.map(item => item.id)
              if (that.targetKeys.includes(that.dataSource.find(item => item.username === 'admin').id)) that.$emit('setAdminDisabled')
            }
          })
          .finally(() => {
            that.spinning = false
@@ -64,8 +67,6 @@
          isAssignSonNode: isAssignSonNode ? 1 : 2,
          userIdArray: moveKeys
        }
        console.log('params--------------------------', params)
        console.log(targetKeys, direction, moveKeys)
        if (direction === 'right') {
          method = dncApi.assignPermissionToUser
        } else {
@@ -79,7 +80,8 @@
                message: '消息',
                description: res.message
              })
              this.targetKeys = targetKeys
              that.targetKeys = targetKeys
              if (targetKeys.includes(that.dataSource.find(item => item.username === 'admin').id)) that.$emit('setAdminDisabled')
            } else {
              $notification.error({
                message: '消息',