fix: 去除不需要的文件
parent
1ffb6347a6
commit
1ffdcfde72
|
@ -123,7 +123,7 @@
|
|||
|
||||
<script>
|
||||
import { getGroup } from 'views/resource/ctstack/services/sgroups.js'
|
||||
import { getKey } from 'views/resource/ctstack/services/keypairs.js'
|
||||
import { getKey } from 'views/resource/ctstack/services/key.js'
|
||||
import { computed } from 'vue'
|
||||
const mountList = [
|
||||
{ name: '/var/lib/docker', value: '/var/lib/docker' },
|
||||
|
|
|
@ -137,7 +137,7 @@
|
|||
<script>
|
||||
import { getRegion, getZone } from 'views/resource/ctstack/services/regions.js'
|
||||
import { getGroup } from 'views/resource/ctstack/services/sgroups.js'
|
||||
import { getKey } from 'views/resource/ctstack/services/keypairs.js'
|
||||
import { getKey } from 'views/resource/ctstack/services/key.js'
|
||||
import { conditionImage } from 'views/resource/ctstack/services/image.js'
|
||||
import { queryAvailable } from 'views/resource/ctstack/services/cbs.js'
|
||||
// import flavor from '../../../components/flavor'
|
||||
|
|
|
@ -174,7 +174,7 @@
|
|||
|
||||
<script>
|
||||
import { getGroup } from 'views/resource/ctstack/services/sgroups.js'
|
||||
import { getKey } from 'views/resource/ctstack/services/keypairs.js'
|
||||
import { getKey } from 'views/resource/ctstack/services/key.js'
|
||||
import { queryAvailable } from 'views/resource/ctstack/services/cbs.js'
|
||||
import { computed } from 'vue'
|
||||
|
||||
|
|
|
@ -1,52 +0,0 @@
|
|||
import { request } from '@cmp/cmp-element'
|
||||
import { wrapperParams, downloadFile } from 'utils'
|
||||
// 弹性IP
|
||||
const elasticipsUrl = '/cmp/plugins/ctstack/v1/elasticips'
|
||||
export function getElasticips(params) {
|
||||
return request.get(elasticipsUrl, {
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function getElasticipsDetail(id) {
|
||||
return request.get(`${elasticipsUrl}/${id}`)
|
||||
}
|
||||
|
||||
export function getElasticipsFrees(params) {
|
||||
return request.get(`${elasticipsUrl}/frees`, {
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
export function getListEip(params) {
|
||||
return request.get(`${elasticipsUrl}/frees`, {
|
||||
params: wrapperParams(params)
|
||||
})
|
||||
}
|
||||
export function unreleaseElasticips(params) {
|
||||
return request.post(`${elasticipsUrl}`, params)
|
||||
}
|
||||
export function releaseElasticips(id) {
|
||||
return request.delete(`${elasticipsUrl}/${id}`)
|
||||
}
|
||||
export function checkElasticips(id) {
|
||||
return request.get(`${elasticipsUrl}/${id}`)
|
||||
}
|
||||
export function associateElasticipsIp(id, params) {
|
||||
return request.patch(`${elasticipsUrl}/${id}`, params)
|
||||
}
|
||||
export function disAssociateElasticipsIp(params, id) {
|
||||
return request.patch(`${elasticipsUrl}/${id}`, params)
|
||||
}
|
||||
export function editElasticipsIp(id, params) {
|
||||
return request.put(`${elasticipsUrl}/${id}`, wrapperParams(params))
|
||||
}
|
||||
export function editBandwidth(id, params) {
|
||||
return request.put(`${elasticipsUrl}/bandwidth/${id}`, params)
|
||||
}
|
||||
|
||||
export function getSantIps(params) {
|
||||
return request.get(`${elasticipsUrl}/natgateway`, {
|
||||
params
|
||||
})
|
||||
}
|
|
@ -1,27 +0,0 @@
|
|||
import { request } from '@cmp/cmp-element'
|
||||
import { wrapperParams, downloadFile } from 'utils'
|
||||
const url = '/cmp/plugins/ctstack/v1/keypairs'
|
||||
|
||||
export function getKey(params) {
|
||||
return request.get(url, { params })
|
||||
}
|
||||
|
||||
export function removeKey(id) {
|
||||
return request.delete(`${url}/${id}`)
|
||||
}
|
||||
|
||||
export function createKey(params) {
|
||||
return request.post(url, wrapperParams(params))
|
||||
}
|
||||
|
||||
export function detailKey(id) {
|
||||
return request.get(`${url}/${id}`)
|
||||
}
|
||||
|
||||
export function modifyKey(params) {
|
||||
return request.put(`${url}/${params.id}`, wrapperParams(params))
|
||||
}
|
||||
|
||||
export function keyBindVm(params) {
|
||||
return request.patch(`${url}/${params.keypairId}`, wrapperParams(params))
|
||||
}
|
Loading…
Reference in New Issue