forked from JointCloud/JCC-RIP
add dictionary management list
This commit is contained in:
parent
46a5fe7545
commit
56aa35be26
|
@ -149,6 +149,10 @@
|
||||||
"createVirtualmachine": "创建虚拟机",
|
"createVirtualmachine": "创建虚拟机",
|
||||||
"createHpcbase": "创建超算基础模板",
|
"createHpcbase": "创建超算基础模板",
|
||||||
"createAibase": "创建智算任务",
|
"createAibase": "创建智算任务",
|
||||||
"dict": "字典"
|
"dict": "字典",
|
||||||
|
"dictName": "字典名称",
|
||||||
|
"dictCode": "code",
|
||||||
|
"type": "类型",
|
||||||
|
"status": "状态"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -149,6 +149,10 @@
|
||||||
"createVirtualmachine": "创建虚拟机",
|
"createVirtualmachine": "创建虚拟机",
|
||||||
"createHpcbase": "创建超算基础模板",
|
"createHpcbase": "创建超算基础模板",
|
||||||
"createAibase": "创建智算任务",
|
"createAibase": "创建智算任务",
|
||||||
"dict": "字典"
|
"dict": "字典",
|
||||||
|
"dictName": "字典名称",
|
||||||
|
"dictCode": "code",
|
||||||
|
"type": "类型",
|
||||||
|
"status": "状态"
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
export function getDictList(params) {
|
||||||
|
return request({
|
||||||
|
url: '/pcm/v1/dicts',
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
|
@ -13,8 +13,11 @@
|
||||||
class="multipleTable"
|
class="multipleTable"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:filter-map="filterMap"
|
:filter-map="filterMap"
|
||||||
:get-list-action="getAppList"
|
:get-list-action="getDictList"
|
||||||
:default-sort="{prop: 'existTime', order: 'ascending'}"
|
:pagination="true"
|
||||||
|
list-key="list"
|
||||||
|
page-key="pageNum"
|
||||||
|
limit-key="pageSize"
|
||||||
tooltip-effect="dark"
|
tooltip-effect="dark"
|
||||||
>
|
>
|
||||||
<template v-slot:filterBtns>
|
<template v-slot:filterBtns>
|
||||||
|
@ -27,12 +30,12 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from '@/components/list'
|
import List from '@/components/list'
|
||||||
import { getAppList } from '@/api/task/task'
|
import { getDictList } from '@/api/common/setting'
|
||||||
export default {
|
export default {
|
||||||
components: { List },
|
components: { List },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
getAppList
|
getDictList
|
||||||
// columns: []
|
// columns: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -60,18 +63,13 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
setColumn() {
|
setColumn() {
|
||||||
return [
|
return [
|
||||||
{ prop: 'name', label: this.$t('page.taskName'), sortable: true, formatter: (row) => { return <a onClick={() => this.viewDetail(row)}>{row.name}</a> } },
|
{ prop: 'dictName', label: this.$t('page.dictName'), sortable: true },
|
||||||
{
|
{ prop: 'dictCode', label: this.$t('page.dictCode') },
|
||||||
prop: 'status',
|
{ prop: 'description', label: this.$t('page.description') },
|
||||||
label: this.$t('page.jobStatus'),
|
{ prop: 'status', label: this.$t('page.status'), sortable: true },
|
||||||
width: 120
|
{ prop: 'type', label: this.$t('page.type'), sortable: true },
|
||||||
},
|
{ prop: 'createTime', label: this.$t('page.createTime'), sortable: true, formatter: (row) => {
|
||||||
{ prop: 'policy', label: this.$t('page.policy') },
|
return <div>{row.createTime}</div>
|
||||||
{ prop: 'synergyStatus', label: this.$t('page.synergyStatus'), sortable: true },
|
|
||||||
{ prop: 'adapter', label: this.$t('page.adapter'), sortable: true },
|
|
||||||
{ prop: 'cluster', label: this.$t('page.cluster'), sortable: true },
|
|
||||||
{ prop: 'startTime', label: this.$t('page.startTime'), sortable: true, formatter: (row) => {
|
|
||||||
return <div>{row.startTime}</div>
|
|
||||||
} },
|
} },
|
||||||
{ prop: 'more', label: this.$t('page.more'), formatter: (row) => {
|
{ prop: 'more', label: this.$t('page.more'), formatter: (row) => {
|
||||||
const txt = this.$t('page.viewDetail')
|
const txt = this.$t('page.viewDetail')
|
||||||
|
|
Loading…
Reference in New Issue