From fcfd509a549e5e71b35d6a727aba2a2647aff656 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期二, 10 九月 2024 17:56:12 +0800 Subject: [PATCH] 按钮设计对话框:删除、调整为上级按钮、调整为下级按钮接口上传。 --- Source/plt-web/plt-web-ui/src/components/PLT-basic-component/upload-file.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 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 ea6985d..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 @@ -22,6 +22,7 @@ </ul> <Divider left="30px" text="閫夋嫨鏂囦欢鍚庝細鑷姩涓婁紶"></Divider> <el-upload + :name="fileName" :action="fileUrl" :before-upload="beforeUpload" :data="fileData" @@ -51,6 +52,10 @@ fileType: { type: Array, default: () => [] + }, + fileName: { + type: String, + default: () => "file" }, // 瀵硅瘽妗嗗ご閮ㄥ悕绉� title: { @@ -120,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