parent
29f8b37c05
commit
f4ccfa60d4
|
@ -27,13 +27,13 @@
|
|||
header-cell-class-name="home-table-cell"
|
||||
element-loading-background="#FFFFFF">
|
||||
<!--序号-->
|
||||
<el-table-column prop="index" :label="$t('home.new_case.index')" width="50" show-overflow-tooltip>
|
||||
<el-table-column prop="index" :label="$t('home.new_case.index')" width="100" show-overflow-tooltip>
|
||||
<template v-slot:default="{ row }">
|
||||
{{ row.index }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!--名称-->
|
||||
<el-table-column prop="name" :label="$t('commons.name')" show-overflow-tooltip min-width="200">
|
||||
<el-table-column prop="name" :label="$t('commons.name')" min-width="200" show-overflow-tooltip>
|
||||
<template v-slot:default="{ row }">
|
||||
<span class="redirectColumn">
|
||||
{{ row.name }}
|
||||
|
@ -41,7 +41,7 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<!--任务类型-->
|
||||
<el-table-column prop="taskGroup" :label="$t('home.table.task_type')" min-width="100" show-overflow-tooltip>
|
||||
<el-table-column prop="taskGroup" :label="$t('home.table.task_type')" width="100" show-overflow-tooltip>
|
||||
<template v-slot:default="scope">
|
||||
<span class="el-dropdown-link">
|
||||
<basic-status-label :value="scope.row.taskGroup" />
|
||||
|
@ -49,29 +49,20 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<!--运行规则-->
|
||||
<el-table-column prop="rule" :label="$t('home.table.run_rule')" min-width="120" show-overflow-tooltip />
|
||||
<!--任务状态-->
|
||||
<el-table-column prop="status" :label="$t('home.table.task_status')" width="100">
|
||||
<el-table-column prop="status" :label="$t('home.table.task_status')" min-width="80">
|
||||
<template v-slot:default="scope">
|
||||
<div>
|
||||
<el-switch
|
||||
v-model="scope.row.taskStatus"
|
||||
style="margin-left: 16px"
|
||||
class="captcha-img"
|
||||
@change="closeTaskConfirm(scope.row)"></el-switch>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!--创建人-->
|
||||
<el-table-column prop="creator" :label="$t('home.table.create_user')" width="100" show-overflow-tooltip />
|
||||
<!--运行规则-->
|
||||
<el-table-column prop="rule" :label="$t('home.table.run_rule')" min-width="150" show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
|
||||
<!--更新时间-->
|
||||
<el-table-column :label="$t('home.table.update_time')" width="170">
|
||||
<template v-slot:default="scope">
|
||||
{{ scope.row.updateTime | datetimeFormat }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!--下次更新时间-->
|
||||
<el-table-column :label="$t('home.table.next_execution_time')" width="170">
|
||||
<template v-slot:default="scope">
|
||||
|
@ -79,6 +70,8 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<!--创建人-->
|
||||
<el-table-column prop="creator" :label="$t('home.table.create_user')" width="200" show-overflow-tooltip />
|
||||
<template #empty>
|
||||
<div
|
||||
style="
|
||||
|
@ -96,6 +89,7 @@
|
|||
</el-table>
|
||||
<home-table-pagination
|
||||
:change="search"
|
||||
v-if="tableData.length > 0"
|
||||
:current-page.sync="currentPage"
|
||||
:page-size.sync="pageSize"
|
||||
layout="prev, pager, next, sizes"
|
||||
|
|
|
@ -33,16 +33,14 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<!--名称-->
|
||||
<el-table-column prop="name" :label="$t('commons.name')" show-overflow-tooltip min-width="170">
|
||||
<el-table-column prop="name" :label="$t('commons.name')" min-width="200" show-overflow-tooltip>
|
||||
<template v-slot:default="{ row }">
|
||||
<span class="redirectColumn">
|
||||
{{ row.name }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!--路径-->
|
||||
<el-table-column prop="path" :label="$t('home.new_case.path')" min-width="260" show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
|
||||
<!--状态-->
|
||||
<el-table-column prop="status" :label="$t('home.new_case.api_status')" width="100">
|
||||
<template v-slot:default="scope">
|
||||
|
@ -51,13 +49,15 @@
|
|||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!--路径-->
|
||||
<el-table-column prop="path" :label="$t('home.new_case.path')" min-width="200" show-overflow-tooltip />
|
||||
<!--更新时间-->
|
||||
<el-table-column :label="$t('home.new_case.update_time')" min-width="170">
|
||||
<el-table-column :label="$t('home.new_case.update_time')" width="170">
|
||||
<template v-slot:default="scope">
|
||||
{{ scope.row.updateTime | datetimeFormat }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="caseTotal" :label="$t('home.new_case.relation_case')" align="right" width="120">
|
||||
<el-table-column prop="caseTotal" :label="$t('home.new_case.relation_case')" align="right" width="100">
|
||||
<template v-slot:default="{ row }">
|
||||
<el-link
|
||||
style="color: #783887; width: 100%"
|
||||
|
@ -75,7 +75,7 @@
|
|||
prop="scenarioTotal"
|
||||
:label="$t('home.new_case.relation_scenario')"
|
||||
align="right"
|
||||
width="140">
|
||||
width="100">
|
||||
<template v-slot:default="{ row }">
|
||||
<el-link
|
||||
style="color: #783887; width: 100%"
|
||||
|
@ -94,7 +94,7 @@
|
|||
<div
|
||||
style="
|
||||
width: 100%;
|
||||
height: 144px;
|
||||
height: 200px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
|
@ -106,6 +106,7 @@
|
|||
</template>
|
||||
</el-table>
|
||||
<home-table-pagination
|
||||
v-if="tableData.length > 0"
|
||||
:change="search"
|
||||
:current-page.sync="currentPage"
|
||||
:page-size.sync="pageSize"
|
||||
|
|
Loading…
Reference in New Issue