zhengnaiwen_citu 5 tháng trước cách đây
mục cha
commit
6495db51fd
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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>