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; } /**