From ca7a40da4382c849b2beb6e8413c6a35a7899c55 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期五, 26 四月 2024 14:49:53 +0800 Subject: [PATCH] 编辑薪资方案的接口联调+重组工种的数据用于工种的反显 --- src/components/makepager/TableCommonView.vue | 21 +++++++++++++++++---- 1 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/components/makepager/TableCommonView.vue b/src/components/makepager/TableCommonView.vue index 350d107..cf7f976 100644 --- a/src/components/makepager/TableCommonView.vue +++ b/src/components/makepager/TableCommonView.vue @@ -42,6 +42,7 @@ <template slot="header"> {{ item.label }} + <span v-if="item.weekDay"> - {{item.weekDay}}</span> <span v-if="item.iconRight"> <i :class="item.iconRight" @@ -95,8 +96,17 @@ <span v-else-if="item.isCommonClick && scope.row[item.prop]" class="sel-name" - @click="selCommonClick(scope.row)" - >{{ scope.row[item.prop] }}</span + @click="selCommonClick(scope.row,item.prop,item)" + > + <div v-if="item.isCallMethod"> + <span :class="item.isClass ? item.getClassName(scope.row[item.prop], scope.row) : ''"> + + <span v-if="item.isIcon" v-html="item.getCallMethod(scope.row[item.prop], scope.row)"></span> + <span v-else>{{ item.getCallMethod(scope.row[item.prop], scope.row) }}</span> + </span> + </div> + <span v-else>{{ scope.row[item.prop] }}</span> + </span > <div v-else-if="item.isProductName" class="product-view"> <ul v-if="scope.row.products && scope.row.products.length > 0"> @@ -400,8 +410,8 @@ this.$emit("selServiceOrderClick", row) }, // 鍏叡锛堥攢鍞満浼氥�佹姤浠峰崟銆侀攢鍞�诲崟銆侀攢鍞瓙鍗曘�傘�傘�傦級 - selCommonClick(row) { - this.$emit("selCommonClick", row) + selCommonClick(row,prop,item) { + this.$emit("selCommonClick", row,prop,item) }, // 琛岀偣鍑� tableRowClick(row, column, event) { @@ -479,6 +489,9 @@ font-weight: bold; } } + .el-table__fixed-body-wrapper{ + top:37px!important; + } } ::v-deep .el-table .cell { -- Gitblit v1.8.0