From c733b4fc98e348f4f60f71a291c3acfa6d7d4ce9 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 24 四月 2025 10:38:59 +0800
Subject: [PATCH] 网分仪调整
---
src/components/Table/lims-table.vue | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/components/Table/lims-table.vue b/src/components/Table/lims-table.vue
index f3f3b41..d6cfd4f 100644
--- a/src/components/Table/lims-table.vue
+++ b/src/components/Table/lims-table.vue
@@ -83,7 +83,7 @@
:before-upload="(file) => beforeUpload(file, scope.$index)"
:on-change="(file, fileList) => handleChange(file, fileList, scope.$index)"
:on-error="(error, file, fileList) => onError(error, file, fileList, scope.$index)"
- :on-success="(response, file, fileList) => handleSuccessUp(response, file, fileList, scope.$index)"
+ :on-success="(response, file, fileList) => handleSuccessUp(response, file, fileList, scope.$index, o)"
:on-exceed="onExceed" :show-file-list="false">
<el-button :size="o.size ? o.size : 'small'" type="text"
:disabled="o.disabled ? o.disabled(scope.row) : false">{{ o.name }}</el-button>
@@ -345,7 +345,7 @@
setCurrent(row) {
this.$refs.multipleTable.setCurrentRow();
},
- handleSuccessUp(response, file, fileList, index) {
+ handleSuccessUp(response, file, fileList, index, o) {
if (response.code == 200) {
// 娓呴櫎鏂囦欢鍒楄〃骞舵洿鏂板綋鍓嶆枃浠�
if (this.uploadRefs[index]) {
@@ -355,7 +355,10 @@
this.$message.success("涓婁紶鎴愬姛");
// 閲嶇疆缁勪欢鐘舵��
this.resetUploadComponent(index);
-
+ // 鎴愬姛鍚庡洖璋冨嚱鏁�
+ if (o.handleSuccessUp) {
+ o.handleSuccessUp()
+ }
} else {
this.$message.error(response.message);
}
@@ -515,4 +518,8 @@
.lims-table .highlight-danger-row-border td:last-child {
border-right: 4px solid #f56c6c;
}
+
+>>>.is-disabled {
+ color: #C0C4CC !important;
+}
</style>
--
Gitblit v1.9.3