src/views/dnc/base/modules/ProductStructure/Permission/UserPermissionTransfer.vue
@@ -42,9 +42,18 @@
    },
    methods: {
      getHasPermissionUserByApi() {
        const that = this
        that.spinning = true
        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
          })
      },
@@ -58,20 +67,10 @@
          isAssignSonNode: isAssignSonNode ? 1 : 2,
          userIdArray: moveKeys
        }
        console.log('params--------------------------', params)
        console.log(targetKeys, direction, moveKeys)
        if (direction === 'right') {
          method = dncApi.assignPermissionToUser
        } else {
          method = dncApi.removePermissionFromUser
          const adminId = dataSource.find(item => item.username === 'admin').id
          if (moveKeys.includes(adminId)) {
            $notification.warning({
              message: '消息',
              description: '不能移除管理员权限'
            })
            return
          }
        }
        that.spinning = true
        method(params)
@@ -81,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: '消息',