From 9a4b1cb24f1997c49ebab8728c28490d4b6f8848 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期一, 18 三月 2024 11:07:28 +0800 Subject: [PATCH] 销售订单查询修改 --- src/views/common/ztt-table.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/common/ztt-table.vue b/src/views/common/ztt-table.vue index 0701521..2cf2e16 100644 --- a/src/views/common/ztt-table.vue +++ b/src/views/common/ztt-table.vue @@ -150,6 +150,7 @@ v-on="$listeners" :highlight-current-row="true" :row-key="rowKey" + :tree-props="{children: 'children', hasChildren: 'hasChildren'}" @row-dblclick="dbClickRow" @row-contextmenu="contextMenu" @header-click="headClick" @@ -182,6 +183,7 @@ v-if="options.multiSelect && !isEdit" style="width: 55px;" :selectable="selectHandle" + > </el-table-column> <!--鍗曢�夋--> @@ -324,7 +326,7 @@ <template v-else> <template v-if="!item.render"> <template v-if="item.formatter"> - <span v-if="item.isTag" style="text-align: center;"> + <span v-if="item.isTag&&scope.row[item.prop]!=null" style="text-align: center;"> <el-tag style="width:60px;margin: 3px;" :type="scope.row[item.prop] == 0 ? 'success' : 'info'"> <span v-html="item.formatter(scope.row, item, scope.row[item.prop])"></span> </el-tag> @@ -571,7 +573,9 @@ //闇�瑕佸悎骞剁殑瀛楁闆嗗悎 mergeSpanArr: { type: Array, - default: [] + default: ()=>{ + return [] + } }, toolbarMaxLength: { type: Number, -- Gitblit v1.9.3