From a079bdcd4698ceb3660deae47a6fcc6603584b8c Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期一, 17 三月 2025 10:49:47 +0800 Subject: [PATCH] 下单样式修改 --- src/components/Table/lims-table.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/Table/lims-table.vue b/src/components/Table/lims-table.vue index dcfa7cc..e3e0b71 100644 --- a/src/components/Table/lims-table.vue +++ b/src/components/Table/lims-table.vue @@ -30,7 +30,8 @@ </div> <!-- 鍥剧墖 --> <div v-else-if="item.dataType == 'image'"> - <img :src="javaApi + '/img/' + item.prop" alt="" style="width: 40px; height: 40px; margin-top: 10px" /> + <img :src="javaApi + '/img/' + scope.row[item.prop]" alt="" + style="width: 40px; height: 40px; margin-top: 10px" /> </div> <!-- tag --> @@ -229,7 +230,7 @@ }, rowStyle: { type: Object || Function, - default: () => { }, + default: () => null, }, tableData: { type: Array, @@ -260,6 +261,9 @@ }, mounted() { this.calculateSpanInfo(); + this.$nextTick(() => { + this.$refs.multipleTable.doLayout(); + }); }, methods: { getWidth(row) { @@ -323,7 +327,6 @@ this.$emit("pagination", { page: page, limit: limit }); }, indexMethod(index) { - // return index * 2; return (this.page.current - 1) * this.page.size + index + 1; }, // 鐐瑰嚮鍗曞厓鏍糽ink浜嬩欢 @@ -442,7 +445,7 @@ } >>>.el-table__body-wrapper::-webkit-scrollbar { - height: 14px; + height: 10px; /* 璁剧疆婊氬姩鏉″搴� */ } </style> -- Gitblit v1.9.3