|
@@ -74,7 +74,7 @@
|
|
|
</template>
|
|
|
|
|
|
<template #statusSlot="{ row }">
|
|
|
- <status-indicator pulse :type="row.status === 1 ? 'success' : 'danger'"></status-indicator>
|
|
|
+ <status-indicator pulse :type="row.status === 0 ? 'danger' : 'success'"></status-indicator>
|
|
|
</template>
|
|
|
|
|
|
<template #actionSlot="{ row }">
|
|
@@ -93,14 +93,16 @@
|
|
|
<Edit />
|
|
|
</el-icon>
|
|
|
</el-tooltip>
|
|
|
- <el-divider direction="vertical"></el-divider>
|
|
|
- <el-popconfirm title="确定删除吗?" @confirm="deleteTemplateItem([row.id])">
|
|
|
- <template #reference>
|
|
|
- <el-icon class="ibt0">
|
|
|
- <Delete />
|
|
|
- </el-icon>
|
|
|
- </template>
|
|
|
- </el-popconfirm>
|
|
|
+ <div v-if="row.status !== 3">
|
|
|
+ <el-divider direction="vertical"></el-divider>
|
|
|
+ <el-popconfirm title="确定删除吗?" @confirm="deleteTemplateItem([row.id])">
|
|
|
+ <template #reference>
|
|
|
+ <el-icon class="ibt0">
|
|
|
+ <Delete />
|
|
|
+ </el-icon>
|
|
|
+ </template>
|
|
|
+ </el-popconfirm>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</LeTable>
|