From a96e9c262ebadc2e7e731b28aa5035b0dd2a7aad Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 15 十一月 2023 17:13:13 +0800
Subject: [PATCH] 1.0

---
 src/views/common/ztt-table.vue |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/views/common/ztt-table.vue b/src/views/common/ztt-table.vue
index 209e67a..54ffcda 100644
--- a/src/views/common/ztt-table.vue
+++ b/src/views/common/ztt-table.vue
@@ -327,7 +327,11 @@
               <template v-else>
                 <template v-if="!item.render">
                   <template v-if="item.formatter">
+                    <div v-if="item.isTag" style="margin: 2px;text-align: center;">
+                      <el-tag :type="scope.row[item.prop]==0?'success':'info'">{{item.formatter(scope.row, item, scope.row[item.prop])}}</el-tag>
+                    </div>
                     <span
+                      v-else
                       v-html="
                         item.formatter(scope.row, item, scope.row[item.prop])
                       "

--
Gitblit v1.9.3