forked from JointCloud/JCC-RIP
fix virtual machine page
This commit is contained in:
parent
44f7360604
commit
03c1af0635
|
@ -57,6 +57,7 @@
|
|||
"virtualMachine": "虚拟机",
|
||||
"volume": "卷",
|
||||
"image": "镜像",
|
||||
"network": "网络",
|
||||
"namespace": "命名空间",
|
||||
"virtualMachineMana": "虚拟机管理",
|
||||
"systemManagement": "系统管理",
|
||||
|
|
|
@ -57,6 +57,7 @@
|
|||
"virtualMachine": "虚拟机",
|
||||
"volume": "卷",
|
||||
"image": "镜像",
|
||||
"network": "网络",
|
||||
"namespace": "命名空间",
|
||||
"virtualMachineMana": "虚拟机管理",
|
||||
"systemManagement": "系统管理",
|
||||
|
|
|
@ -16,40 +16,45 @@ const virtualMachineRouter = {
|
|||
meta: { title: 'overview', icon: 'gailan', affix: true }
|
||||
},
|
||||
{
|
||||
path: 'virtual-machine',
|
||||
path: 'instance',
|
||||
component: emptyLayout,
|
||||
redirect: 'virtual-machine',
|
||||
redirect: 'instance',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: () => import('@/views/virtualMachine/virtualMachine/list.vue'),
|
||||
name: 'virtual-machine',
|
||||
component: () => import('@/views/virtualMachine/instance/list'),
|
||||
name: 'instance',
|
||||
meta: { title: 'virtualMachine', icon: 'xunijiguanli-xuniji', affix: true },
|
||||
hidden: false
|
||||
},
|
||||
{
|
||||
path: 'create',
|
||||
component: () => import('@/views/virtualMachine/virtualMachine/edit.vue'),
|
||||
name: 'virtualMachineCreate',
|
||||
meta: { activeMenu: '/virtual/virtual-machine' },
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: 'edit',
|
||||
component: () => import('@/views/virtualMachine/virtualMachine/edit.vue'),
|
||||
name: 'virtualMachineEdit',
|
||||
meta: { activeMenu: '/virtual/virtual-machine' },
|
||||
component: () => import('@/views/virtualMachine/instance/edit'),
|
||||
meta: { activeMenu: '/virtual/instance' },
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: 'detail',
|
||||
component: () => import('@/views/virtualMachine/virtualMachine/detail.vue'),
|
||||
name: 'detail',
|
||||
meta: { activeMenu: '/virtual/virtual-machine' },
|
||||
component: () => import('@/views/virtualMachine/instance/detail'),
|
||||
meta: { activeMenu: '/virtual/instance' },
|
||||
hidden: true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'network',
|
||||
component: emptyLayout,
|
||||
redirect: 'network',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
component: () => import('@/views/virtualMachine/network/list'),
|
||||
name: 'network',
|
||||
meta: { title: 'network', icon: 'mingmingkongjian', affix: true },
|
||||
hidden: false
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'dataVolume',
|
||||
component: emptyLayout,
|
||||
|
|
|
@ -6,25 +6,40 @@
|
|||
<span class="tips title-tips">
|
||||
{{ $t('page.taskDescription') }}</span>
|
||||
</el-card>
|
||||
<el-card>
|
||||
<List
|
||||
ref="multipleTable"
|
||||
:key="$i18n.locale"
|
||||
class="multipleTable"
|
||||
:columns="columns"
|
||||
:filter-map="filterMap"
|
||||
:get-list-action="getDictList"
|
||||
:pagination="true"
|
||||
list-key="list"
|
||||
page-key="pageNum"
|
||||
limit-key="pageSize"
|
||||
tooltip-effect="dark"
|
||||
>
|
||||
<template v-slot:filterBtns>
|
||||
<el-button size="medium" type="primary" @click="createItem">{{ $t('message.create') }}</el-button>
|
||||
</template>
|
||||
</List>
|
||||
</el-card>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="5">
|
||||
<el-card>
|
||||
<p>字典列表</p>
|
||||
<el-button size="medium" type="primary" @click="createDict">{{ $t('message.create') }}</el-button>
|
||||
|
||||
<el-radio-group v-model="selectedDict" size="mini">
|
||||
<el-radio label="1" border>备选项1</el-radio>
|
||||
<el-radio label="2" border>备选项2</el-radio>
|
||||
</el-radio-group>
|
||||
</el-card>
|
||||
|
||||
</el-col>
|
||||
<el-col :span="19">
|
||||
<el-card>
|
||||
<p>字典列表</p>
|
||||
<el-button size="medium" type="primary" @click="createItem">新增字典项</el-button>
|
||||
|
||||
<List
|
||||
ref="multipleTable"
|
||||
:key="$i18n.locale"
|
||||
class="multipleTable"
|
||||
:columns="columns"
|
||||
:get-list-action="getDictList"
|
||||
:pagination="true"
|
||||
list-key="list"
|
||||
page-key="pageNum"
|
||||
limit-key="pageSize"
|
||||
tooltip-effect="dark"
|
||||
/>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -35,7 +50,8 @@ export default {
|
|||
components: { List },
|
||||
data() {
|
||||
return {
|
||||
getDictList
|
||||
getDictList,
|
||||
selectedDict: ''
|
||||
// columns: []
|
||||
}
|
||||
},
|
||||
|
|
|
@ -48,15 +48,15 @@ module.exports = {
|
|||
},
|
||||
'^/jcc-': {
|
||||
ws: false,
|
||||
target: 'https://dev.jointcloud.net/apis',
|
||||
target: 'https://dev.jointcloud.net/',
|
||||
// target: 'https://jointcloud.net/apis',
|
||||
changeOrigin: true,
|
||||
secure: false
|
||||
},
|
||||
'^/pcm': {
|
||||
ws: false,
|
||||
// target: 'https://pcm.jointcloud.net/',
|
||||
target: 'https://mock.apifox.com/m1/4000164-0-default/',
|
||||
target: 'https://jcos.jointcloud.net:443/',
|
||||
// target: 'https://mock.apifox.com/m1/4000164-0-default/',
|
||||
// target: 'https://jointcloud.net/apis',
|
||||
changeOrigin: true,
|
||||
secure: false
|
||||
|
|
Loading…
Reference in New Issue