From 38f3a931edad42c5712c710a77f922259dfc64dd Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期五, 06 九月 2024 12:30:37 +0800 Subject: [PATCH] 链接类型查询模板 --- 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