This commit is contained in:
ann 2024-07-24 10:25:29 +08:00
parent 9bd4593f68
commit 7e99bb8fb6
1 changed files with 33 additions and 20 deletions

View File

@ -47,6 +47,33 @@
</div> </div>
</li> </li>
</ul> </ul>
<!-- <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="智算部署任务" name="first">用户管理</el-tab-pane> -->
<!-- -->
<!-- <el-tab-pane label="" name="second">
<List
ref="multipleTable"
:key="$i18n.locale"
class="multipleTable"
:columns="columns"
:filter-map="filterMap"
:get-list-action="getAiTaskList"
:default-sort="{prop: 'existTime', order: 'ascending'}"
:pagination="true"
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-tab-pane> -->
<!-- </el-tabs> -->
</el-card>
<el-card>
<el-tabs v-model="activeName" type="card" @tab-click="handleClick"> <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
<el-tab-pane label="智算部署任务" name="first"> <el-tab-pane label="智算部署任务" name="first">
<List <List
@ -67,25 +94,7 @@
</template> </template>
</List> </List>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="智算应用任务" name="first"> <el-tab-pane label="智算应用任务" name="second" />
<List
ref="multipleTable"
:key="$i18n.locale"
class="multipleTable"
:columns="columns"
:filter-map="filterMap"
:get-list-action="getAiTaskList"
:default-sort="{prop: 'existTime', order: 'ascending'}"
:pagination="true"
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-tab-pane>
</el-tabs> </el-tabs>
</el-card> </el-card>
</div> </div>
@ -101,7 +110,8 @@ export default {
data() { data() {
return { return {
getAiTaskList, getAiTaskList,
strategyList: [] strategyList: [],
activeName: 'first'
// columns: [] // columns: []
} }
}, },
@ -189,6 +199,9 @@ export default {
createItem() { createItem() {
this.$router.push({ path: `create` }) this.$router.push({ path: `create` })
}, },
handleClick() {
console.log('switch')
},
handleDeploy(row, type) { handleDeploy(row, type) {
const { adapterId, clusterId, id } = row const { adapterId, clusterId, id } = row
const data = { adapterId, clusterId, id } const data = { adapterId, clusterId, id }