1. 调整计划列表展示项
2. 调整设备列表展示项
This commit is contained in:
39
src/views/plan/PlanList.vue
Normal file
39
src/views/plan/PlanList.vue
Normal file
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<el-table :data="planList">
|
||||
<el-table-column prop="executeType" label="执行类型">
|
||||
<template #default="{ row }">
|
||||
<el-tag
|
||||
v-if="row.executeType === 'manual'"
|
||||
type=""
|
||||
class="full-width-tag"
|
||||
>
|
||||
手动
|
||||
</el-tag>
|
||||
<el-tag
|
||||
v-else-if="row.executeType === 'auto-infinite'"
|
||||
type="success"
|
||||
class="full-width-tag"
|
||||
>
|
||||
自动(无限执行)
|
||||
</el-tag>
|
||||
<el-tag
|
||||
v-else-if="row.executeType === 'auto-limited'"
|
||||
type="warning"
|
||||
class="full-width-tag"
|
||||
>
|
||||
自动({{ row.executeTimes }}次)
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.full-width-tag {
|
||||
/* 移除默认的宽度限制和文本溢出处理 */
|
||||
max-width: none !important;
|
||||
overflow: visible !important;
|
||||
white-space: normal !important;
|
||||
word-wrap: break-word !important;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user