|
879 | 879 | import { ref, reactive, toRaw, nextTick, h } from 'vue' |
880 | 880 | import { Button } from 'ant-design-vue' |
881 | 881 | import { api } from '@/api' |
| 882 | +import { isAdmin } from '@/role' |
882 | 883 | import _ from 'lodash' |
883 | 884 | import { mixin, mixinDevice } from '@/utils/mixin.js' |
884 | 885 | import store from '@/store' |
@@ -1170,6 +1171,7 @@ export default { |
1170 | 1171 | return _.map(this.affinityGroups, 'id') |
1171 | 1172 | }, |
1172 | 1173 | params () { |
| 1174 | + const listAll = isAdmin() |
1173 | 1175 | return { |
1174 | 1176 | serviceOfferings: { |
1175 | 1177 | list: 'listServiceOfferings', |
@@ -1217,25 +1219,31 @@ export default { |
1217 | 1219 | domainid: this.owner.domainid, |
1218 | 1220 | projectid: this.owner.projectid, |
1219 | 1221 | keyword: undefined, |
1220 | | - listall: false |
| 1222 | + listall: listAll |
1221 | 1223 | } |
1222 | 1224 | }, |
1223 | 1225 | sshKeyPairs: { |
1224 | 1226 | list: 'listSSHKeyPairs', |
1225 | 1227 | options: { |
1226 | 1228 | page: 1, |
1227 | 1229 | pageSize: 10, |
| 1230 | + account: this.owner.account, |
| 1231 | + domainid: this.owner.domainid, |
| 1232 | + projectid: this.owner.projectid, |
1228 | 1233 | keyword: undefined, |
1229 | | - listall: false |
| 1234 | + listall: listAll |
1230 | 1235 | } |
1231 | 1236 | }, |
1232 | 1237 | userDatas: { |
1233 | 1238 | list: 'listUserData', |
1234 | 1239 | options: { |
1235 | 1240 | page: 1, |
1236 | 1241 | pageSize: 10, |
| 1242 | + account: this.owner.account, |
| 1243 | + domainid: this.owner.domainid, |
| 1244 | + projectid: this.owner.projectid, |
1237 | 1245 | keyword: undefined, |
1238 | | - listall: false |
| 1246 | + listall: listAll |
1239 | 1247 | } |
1240 | 1248 | }, |
1241 | 1249 | networks: { |
|
0 commit comments