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