From f4bdceb42aef38f1cd9431ae5addd37bec4cf60b Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 28 十一月 2024 06:07:21 +0800 Subject: [PATCH] 新的流程页面对接自带的流程页面,查询表单使用同一个接口,其接口内部做判定、流程推进详情页面 --- src/components/FileUpload/index.vue | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index e00f7af..6ae8059 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -153,7 +153,7 @@ // 涓婁紶鎴愬姛鍥炶皟 handleUploadSuccess(res, file) { if (res.code === 200) { - this.uploadList.push({ name: res.fileName, url: res.fileName }); + this.uploadList.push({ name: res.newFileName, originalName: res.originalFilename , url: res.fileName }); this.uploadedSuccessfully(); } else { this.number--; @@ -166,7 +166,9 @@ // 鍒犻櫎鏂囦欢 handleDelete(index) { this.fileList.splice(index, 1); - this.$emit("input", this.listToString(this.fileList)); + // this.$emit("input", this.listToString(this.fileList)); + //淇敼涓鸿繑鍥炴暟缁� + this.$emit("input", this.fileList); }, // 涓婁紶缁撴潫澶勭悊 uploadedSuccessfully() { @@ -174,7 +176,9 @@ this.fileList = this.fileList.concat(this.uploadList); this.uploadList = []; this.number = 0; - this.$emit("input", this.listToString(this.fileList)); + // this.$emit("input", this.listToString(this.fileList)); + //淇敼涓鸿繑鍥炴暟缁� + this.$emit("input", this.fileList); this.$modal.closeLoading(); } }, -- Gitblit v1.8.0