...
|
...
|
@@ -594,12 +594,11 @@ export default { |
|
|
|
|
|
if (arr.length == 1) {
|
|
|
// 查询文件的权限
|
|
|
proxy.$http.get(`/inspection-report/doc/doc/auth/getGrant`, {docId: arr[0].id}, function (res) {
|
|
|
proxy.$http.get(`/inspection-report/file/auth/getGrant`, {docId: arr[0].id}, function (res) {
|
|
|
if (res && res.code == 0) {
|
|
|
// {roleIds: ["1"], usernames: ["admin"]}
|
|
|
let map = res.map;
|
|
|
if (map) {
|
|
|
let all = res.map.roleIds.concat(res.map.usernames);
|
|
|
let all = map.allIds;
|
|
|
userFileRight.value = all;
|
|
|
}
|
|
|
}
|
...
|
...
|
|