fix: 去除不需要的文件

develop
时启龙 2024-09-06 14:31:22 +08:00
parent 1ffb6347a6
commit 1ffdcfde72
5 changed files with 3 additions and 82 deletions

View File

@ -123,7 +123,7 @@
<script> <script>
import { getGroup } from 'views/resource/ctstack/services/sgroups.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 { computed } from 'vue' import { computed } from 'vue'
const mountList = [ const mountList = [
{ name: '/var/lib/docker', value: '/var/lib/docker' }, { name: '/var/lib/docker', value: '/var/lib/docker' },

View File

@ -137,7 +137,7 @@
<script> <script>
import { getRegion, getZone } from 'views/resource/ctstack/services/regions.js' import { getRegion, getZone } from 'views/resource/ctstack/services/regions.js'
import { getGroup } from 'views/resource/ctstack/services/sgroups.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 { conditionImage } from 'views/resource/ctstack/services/image.js'
import { queryAvailable } from 'views/resource/ctstack/services/cbs.js' import { queryAvailable } from 'views/resource/ctstack/services/cbs.js'
// import flavor from '../../../components/flavor' // import flavor from '../../../components/flavor'

View File

@ -174,7 +174,7 @@
<script> <script>
import { getGroup } from 'views/resource/ctstack/services/sgroups.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 { queryAvailable } from 'views/resource/ctstack/services/cbs.js' import { queryAvailable } from 'views/resource/ctstack/services/cbs.js'
import { computed } from 'vue' import { computed } from 'vue'

View File

@ -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
})
}

View File

@ -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))
}