src/views/dnc/base/modules/DeviceStructure/Permission/UserPermissionTransfer.vue
@@ -48,7 +48,10 @@
        that.targetKeys = []
        dncApi.getDeviceTreeHasPermissionUserApi(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
@@ -65,8 +68,6 @@
          isAssignSonNode: isAssignSonNode ? 1 : 2,
          userIdArray: moveKeys
        }
        console.log('params--------------------------', params)
        console.log(targetKeys, direction, moveKeys)
        if (direction === 'right') {
          method = dncApi.assignDeviceDeviceTreePermissionToUser
        } else {
@@ -80,7 +81,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: '消息',