|
928 | 928 | import { ref, reactive, toRaw, nextTick, h } from 'vue' |
929 | 929 | import { Button, message } from 'ant-design-vue' |
930 | 930 | import { getAPI, postAPI } from '@/api' |
| 931 | +import { isAdmin } from '@/role' |
931 | 932 | import _ from 'lodash' |
932 | 933 | import { mixin, mixinDevice } from '@/utils/mixin.js' |
933 | 934 | import store from '@/store' |
@@ -1232,6 +1233,7 @@ export default { |
1232 | 1233 | return _.map(this.affinityGroups, 'id') |
1233 | 1234 | }, |
1234 | 1235 | params () { |
| 1236 | + const listAll = isAdmin() |
1235 | 1237 | return { |
1236 | 1238 | serviceOfferings: { |
1237 | 1239 | list: 'listServiceOfferings', |
@@ -1279,25 +1281,31 @@ export default { |
1279 | 1281 | domainid: this.owner.domainid, |
1280 | 1282 | projectid: this.owner.projectid, |
1281 | 1283 | keyword: undefined, |
1282 | | - listall: false |
| 1284 | + listall: listAll |
1283 | 1285 | } |
1284 | 1286 | }, |
1285 | 1287 | sshKeyPairs: { |
1286 | 1288 | list: 'listSSHKeyPairs', |
1287 | 1289 | options: { |
1288 | 1290 | page: 1, |
1289 | 1291 | pageSize: 10, |
| 1292 | + account: this.owner.account, |
| 1293 | + domainid: this.owner.domainid, |
| 1294 | + projectid: this.owner.projectid, |
1290 | 1295 | keyword: undefined, |
1291 | | - listall: false |
| 1296 | + listall: listAll |
1292 | 1297 | } |
1293 | 1298 | }, |
1294 | 1299 | userDatas: { |
1295 | 1300 | list: 'listUserData', |
1296 | 1301 | options: { |
1297 | 1302 | page: 1, |
1298 | 1303 | pageSize: 10, |
| 1304 | + account: this.owner.account, |
| 1305 | + domainid: this.owner.domainid, |
| 1306 | + projectid: this.owner.projectid, |
1299 | 1307 | keyword: undefined, |
1300 | | - listall: false |
| 1308 | + listall: listAll |
1301 | 1309 | } |
1302 | 1310 | }, |
1303 | 1311 | networks: { |
|
0 commit comments