zhengnaiwen_citu 5 月之前
父节点
当前提交
6495db51fd
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/views/system/workflow/index.vue

+ 3 - 0
src/views/system/workflow/index.vue

@@ -9,6 +9,9 @@
       @page-change="paginationChange"
       @sort-change="onSortChange"
     >
+      <template #status="{ row }">
+        <el-tag :type="row.status === 0 ? 'success' : 'danger'" size="small">{{ row.status === 0 ? '启用' : '禁用'}}</el-tag>
+      </template>
       <template #card-tools>
         <m-button type="orange" size="small" icon="el-icon-plus" @click="onAdd">新增</m-button>
       </template>