From fa88edda7b1e6523e64b2642c6291a1a4866bd43 Mon Sep 17 00:00:00 2001
From: yuxc <yuxc@vci-tech.com>
Date: 星期五, 13 九月 2024 11:12:28 +0800
Subject: [PATCH] 1、新增删除Action分类接口。 2、新增查询Action参数列表数据接口。
---
Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue
index 3c3da9d..7e23662 100644
--- a/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue
+++ b/Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue
@@ -2,7 +2,6 @@
<el-dialog
v-dialogDrag
:close-on-click-modal="false"
- :destroy-on-close="true"
:title="title"
:visible.sync="visible"
width="40%"
@@ -23,6 +22,7 @@
</ul>
<Divider left="30px" text="閫夋嫨鏂囦欢鍚庝細鑷姩涓婁紶"></Divider>
<el-upload
+ :name="fileName"
:action="fileUrl"
:before-upload="beforeUpload"
:data="fileData"
@@ -52,6 +52,10 @@
fileType: {
type: Array,
default: () => []
+ },
+ fileName: {
+ type: String,
+ default: () => "file"
},
// 瀵硅瘽妗嗗ご閮ㄥ悕绉�
title: {
@@ -121,11 +125,10 @@
},
// 鏂囦欢涓婁紶鎴愬姛
onSuccess(resbonse) {
- console.log(resbonse);
if (resbonse.code === 200) {
this.$message.success("瀵煎叆鎴愬姛锛�");
this.visible = false;
- this.$emit('updata');
+ this.$emit('updata',resbonse);
} else {
this.$message.error(resbonse.msg);
}
--
Gitblit v1.9.3