spring
2025-04-02 235f0b0e3605082bb2127dc6d87f4a7eef33c6de
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);
      }