From 5f182ea1fc14ddf9da357df3cfed859479b9205f Mon Sep 17 00:00:00 2001 From: Yueng <14617246+YuengMeYuuer@user.noreply.gitee.com> Date: Fri, 6 Sep 2024 00:38:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B5=84=E4=BA=A7=E6=8E=88?= =?UTF-8?q?=E6=9D=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/property/asDisplay.js | 2 +- src/api/property/asauth.js | 32 ++++++++++++++++++++++++++++- src/views/property/asauth/index.vue | 21 +++++++++++-------- 3 files changed, 44 insertions(+), 11 deletions(-) diff --git a/src/api/property/asDisplay.js b/src/api/property/asDisplay.js index 38c5b41..6714614 100644 --- a/src/api/property/asDisplay.js +++ b/src/api/property/asDisplay.js @@ -2,7 +2,7 @@ import request from '@/utils/request' export function getExtractDataTableNameList() { return request({ - url: '/property/dataRunName/extractDataTableName', + url: '/property/dataRunName/extractDataTableNameShow', method: 'post', }) } diff --git a/src/api/property/asauth.js b/src/api/property/asauth.js index 0b9bb92..73f15be 100644 --- a/src/api/property/asauth.js +++ b/src/api/property/asauth.js @@ -3,7 +3,7 @@ import request from '@/utils/request' export function getExtractDataTableNameList() { return request({ - url: '/property/dataRunName/extractDataTableNames', + url: '/property/dataRunName/extractDataTableName', method: 'post', }) } @@ -40,3 +40,33 @@ export function delUserAssetAuthorization(data) { data:data }) } + +// -------------------------------------------------------- + +/** + * 查询资产赋权用户信息 + * @param data 参数信息 + * @returns {*} 响应结果 + */ +export function findUserIdList(data) { + return request({ + url: '/property/dataRunName/findUserIdList', + method: 'POST', + data + }) +} + +/** + * 查询资产赋权部门信息 + * @param data 参数信息 + * @returns {*} 响应结果 + */ +export function findDeptIdList(data) { + return request({ + url: '/property/dataRunName/findDeptIdList', + method: 'POST', + data + }) +} + + diff --git a/src/views/property/asauth/index.vue b/src/views/property/asauth/index.vue index d26fcaa..f3506d8 100644 --- a/src/views/property/asauth/index.vue +++ b/src/views/property/asauth/index.vue @@ -189,12 +189,14 @@ export default { parseTime, //部门switch状态变化 handleDeptAccreditChange(deptId, value) { - this.AssetImPowerListReq.basicId = this.tableBasic.basicId - this.AssetImPowerListReq.tableId = this.tableBasic.id - this.AssetImPowerListReq.deptId = deptId + if (this.tableBasic.children != null) { + this.AssetImPowerListReq.basicId = this.tableBasic.basicId + this.AssetImPowerListReq.deptId = deptId this.AssetImPowerListReq.tableId = null; } else { + this.AssetImPowerListReq.tableId = this.tableBasic.id + this.AssetImPowerListReq.deptId = deptId this.AssetImPowerListReq.basicId = null; } @@ -227,12 +229,13 @@ export default { handleAccreditChange(userId, value) { console.log("userId的值::" + userId); console.log("value的值:" + value) - this.AssetImPowerListReq.basicId = this.tableBasic.basicId - this.AssetImPowerListReq.tableId = this.tableBasic.id - this.AssetImPowerListReq.userId = userId if (this.tableBasic.children != null) { + this.AssetImPowerListReq.basicId = this.tableBasic.basicId + this.AssetImPowerListReq.userId = userId this.AssetImPowerListReq.tableId = null; } else { + this.AssetImPowerListReq.tableId = this.tableBasic.id + this.AssetImPowerListReq.userId = userId this.AssetImPowerListReq.basicId = null; } @@ -334,12 +337,12 @@ export default { */ handleNodeClick(data) { this.tableBasic = data - this.AssetImPowerListReq.tableId = this.tableBasic.id - this.AssetImPowerListReq.basicId = this.tableBasic.basicId - this.AssetImPowerListReq.deptId = this.tableBasic.deptId if (this.tableBasic.children != null) { + this.AssetImPowerListReq.basicId = this.tableBasic.basicId + this.AssetImPowerListReq.deptId = this.tableBasic.deptId this.AssetImPowerListReq.tableId = null; } else { + this.AssetImPowerListReq.tableId = this.tableBasic.id this.AssetImPowerListReq.basicId = null; } /**