From 9d1348a9b11771f357cf1e67e3cd6917ce58e22a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=BC=9F=E5=BA=9A?= Date: Sat, 2 Apr 2022 15:01:29 +0800 Subject: [PATCH] =?UTF-8?q?up=20=E5=BC=80=E5=8F=91=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E9=99=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/doc-width-nav.vue | 6 +- src/components/wangE.vue | 81 ++++++++++++++++++- .../technical-support/doc-manage/detail.vue | 66 +++++---------- 3 files changed, 101 insertions(+), 52 deletions(-) diff --git a/src/components/doc-width-nav.vue b/src/components/doc-width-nav.vue index 950e651..e878903 100644 --- a/src/components/doc-width-nav.vue +++ b/src/components/doc-width-nav.vue @@ -26,9 +26,9 @@
- -
- - 点击上传附件 - -
-
+ +
取消 @@ -48,10 +38,8 @@ export default { return { title: "", content: "", - doc_file: [], - anotherData: { - directory: "file", - } + fileList: [], + fileArray: [] }; }, computed: { @@ -75,7 +63,7 @@ export default { if (data.data.doc_file && data.data.doc_file != "") { arr = data.data.doc_file.split(",") arr.forEach(e => { - this.doc_file.push({ + this.fileArray.push({ name: helper.downloadFileFormatNew(e), url: e }) @@ -91,8 +79,8 @@ export default { }, submitAction() { let arr = []; - if (this.doc_file && this.doc_file.length > 0 ) { - this.doc_file.forEach(e => { + if (this.fileList && this.fileList.length > 0 ) { + this.fileList.forEach(e => { arr.push(e.url) }) } @@ -116,31 +104,17 @@ export default { this.$message.error("保存失败"); }); }, - getNewListOne(res,file) { - if (res.success == 1) { - this.doc_file.push( - { - name: file.name, - url: res.data - } - ) - } + getNewList(fileList) { + this.fileList = fileList; }, - handleRemove(file) { - this.doc_file.forEach((item, i) => { - if (item.url === file.url) { - this.doc_file.splice(i, 1); - } - }); - } }, }; -- 2.26.0