From fe8ebc6854c6773ef45be85a24764f9bb59b8dad Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期二, 14 十一月 2023 17:52:36 +0800 Subject: [PATCH] modified: src/views/plan/customerorder/index.vue --- 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