From c4a1108d64e8e8b24e1b805d84d2dd482a37dd79 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 11 三月 2025 19:08:11 +0800
Subject: [PATCH] 检验下单代码迁移:下单功能
---
src/components/Table/lims-table.vue | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/src/components/Table/lims-table.vue b/src/components/Table/lims-table.vue
index 9f948f0..2d5fce6 100644
--- a/src/components/Table/lims-table.vue
+++ b/src/components/Table/lims-table.vue
@@ -13,7 +13,7 @@
:row-style="rowStyle"
:row-key="rowKey"
:span-method="spanMethod"
- stripe
+ :stripe="stripe"
style="width: 100%"
tooltip-effect="dark"
@row-click="rowClick"
@@ -217,11 +217,13 @@
<!-- 鍙偣鍑荤殑鏂囧瓧 -->
<div
v-else-if="item.dataType == 'link'"
- class="cell link"
+ class="cell"
style="width: 100%"
- @click="goLink(scope.row, item.linkMethod)"
+ @click="goLink(scope.row, item.linkEvent)"
>
- <span v-if="!item.formatData">{{ scope.row[item.prop] }}</span>
+ <span class="link" v-if="!item.formatData">
+ {{ scope.row[item.prop] }}
+ </span>
</div>
<!-- 榛樿绾睍绀烘暟鎹� -->
<div v-else class="cell" style="width: 100%">
@@ -354,6 +356,10 @@
type: Boolean,
default: false,
},
+ stripe: {
+ type: Boolean,
+ default: false,
+ },
headerCellStyle: {
type: Object,
default: () => {
@@ -470,11 +476,11 @@
return (this.page.current - 1) * this.page.size + index + 1;
},
// 鐐瑰嚮鍗曞厓鏍糽ink浜嬩欢
- goLink(row, linkMethod) {
- if (!linkMethod) {
+ goLink(row, linkEvent) {
+ if (!linkEvent) {
return this.$message.warning("璇烽厤缃甽ingk浜嬩欢");
}
- this.$parent[linkMethod](row);
+ linkEvent.vueComponent[linkEvent.method](row);
},
// 鍚堝苟鍗曞厓鏍�
calculateSpanInfo() {
--
Gitblit v1.9.3