添加资产授权
parent
53ea1aa2e0
commit
5f182ea1fc
|
@ -2,7 +2,7 @@ import request from '@/utils/request'
|
||||||
|
|
||||||
export function getExtractDataTableNameList() {
|
export function getExtractDataTableNameList() {
|
||||||
return request({
|
return request({
|
||||||
url: '/property/dataRunName/extractDataTableName',
|
url: '/property/dataRunName/extractDataTableNameShow',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ import request from '@/utils/request'
|
||||||
|
|
||||||
export function getExtractDataTableNameList() {
|
export function getExtractDataTableNameList() {
|
||||||
return request({
|
return request({
|
||||||
url: '/property/dataRunName/extractDataTableNames',
|
url: '/property/dataRunName/extractDataTableName',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -40,3 +40,33 @@ export function delUserAssetAuthorization(data) {
|
||||||
data: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
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -189,12 +189,14 @@ export default {
|
||||||
parseTime,
|
parseTime,
|
||||||
//部门switch状态变化
|
//部门switch状态变化
|
||||||
handleDeptAccreditChange(deptId, value) {
|
handleDeptAccreditChange(deptId, value) {
|
||||||
this.AssetImPowerListReq.basicId = this.tableBasic.basicId
|
|
||||||
this.AssetImPowerListReq.tableId = this.tableBasic.id
|
|
||||||
this.AssetImPowerListReq.deptId = deptId
|
|
||||||
if (this.tableBasic.children != null) {
|
if (this.tableBasic.children != null) {
|
||||||
|
this.AssetImPowerListReq.basicId = this.tableBasic.basicId
|
||||||
|
this.AssetImPowerListReq.deptId = deptId
|
||||||
this.AssetImPowerListReq.tableId = null;
|
this.AssetImPowerListReq.tableId = null;
|
||||||
} else {
|
} else {
|
||||||
|
this.AssetImPowerListReq.tableId = this.tableBasic.id
|
||||||
|
this.AssetImPowerListReq.deptId = deptId
|
||||||
this.AssetImPowerListReq.basicId = null;
|
this.AssetImPowerListReq.basicId = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -227,12 +229,13 @@ export default {
|
||||||
handleAccreditChange(userId, value) {
|
handleAccreditChange(userId, value) {
|
||||||
console.log("userId的值::" + userId);
|
console.log("userId的值::" + userId);
|
||||||
console.log("value的值:" + value)
|
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) {
|
if (this.tableBasic.children != null) {
|
||||||
|
this.AssetImPowerListReq.basicId = this.tableBasic.basicId
|
||||||
|
this.AssetImPowerListReq.userId = userId
|
||||||
this.AssetImPowerListReq.tableId = null;
|
this.AssetImPowerListReq.tableId = null;
|
||||||
} else {
|
} else {
|
||||||
|
this.AssetImPowerListReq.tableId = this.tableBasic.id
|
||||||
|
this.AssetImPowerListReq.userId = userId
|
||||||
this.AssetImPowerListReq.basicId = null;
|
this.AssetImPowerListReq.basicId = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -334,12 +337,12 @@ export default {
|
||||||
*/
|
*/
|
||||||
handleNodeClick(data) {
|
handleNodeClick(data) {
|
||||||
this.tableBasic = 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) {
|
if (this.tableBasic.children != null) {
|
||||||
|
this.AssetImPowerListReq.basicId = this.tableBasic.basicId
|
||||||
|
this.AssetImPowerListReq.deptId = this.tableBasic.deptId
|
||||||
this.AssetImPowerListReq.tableId = null;
|
this.AssetImPowerListReq.tableId = null;
|
||||||
} else {
|
} else {
|
||||||
|
this.AssetImPowerListReq.tableId = this.tableBasic.id
|
||||||
this.AssetImPowerListReq.basicId = null;
|
this.AssetImPowerListReq.basicId = null;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue