From b20a3683ab1bfcced7fc216b5d7c50a9a4ecdcf1 Mon Sep 17 00:00:00 2001 From: zyn Date: Sun, 23 Apr 2023 13:37:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/creatProcess/qbrk-product/step1.vue | 40 +----------------- .../pages/creatProcess/qbrk/step1-2.vue | 41 +------------------ .../pages/creatProcess/qbrk/step1.vue | 41 +------------------ 3 files changed, 5 insertions(+), 117 deletions(-) diff --git a/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue b/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue index a96f24657..b76bf9111 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk-product/step1.vue @@ -218,12 +218,7 @@ >
-
- {{ item.name }} - - - -
+
{{ item.name }}
- {{ item.name }} - - - + @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" + class="fileClass">{{ item.name }}
@@ -2923,39 +2919,6 @@ this.$preview(attId) } }, - handleFilePreview2(file, type) { - let attId = "" - if (file && file.id) { - attId = file.id - } else { - attId = file.response.data.id - } - if (file.name == this.form.standName) { - let fileName = "" - let fileNam2 = "" - if (this.form.standName && this.form.standName !== '') { - fileName = this.form.standName + '-企业标准.docx' - fileNam2 = this.form.standName - } else { - fileName = '企业标准.docx' - fileNam2 = '企业标准' - } - let form = JSON.parse(JSON.stringify(this.form)) - form.standCode = '' - form.issueDate = '' - this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form) - return - } - if (type === 'down') { - if (attId) { - window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId) - } else { - this.$message.warning('文件不存在,下载失败') - } - } else { - this.$preview(attId) - } - }, handleFilePreviewOne(file, type) { let id = "" let fileName = "" diff --git a/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue b/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue index 8c6a67db9..f7993f0d7 100644 --- a/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue +++ b/src/pages/processCenter/pages/creatProcess/qbrk/step1.vue @@ -209,12 +209,8 @@
- {{ item.name }} - - - + @click="handleFilePreview(item)" style="color: #409eff;cursor:pointer" + class="fileClass">{{ item.name }}
@@ -2893,39 +2889,6 @@ this.$preview(attId) } }, - handleFilePreview2(file, type) { - let attId = "" - if (file && file.id) { - attId = file.id - } else { - attId = file.response.data.id - } - if (file.name == this.form.standName) { - let fileName = "" - let fileNam2 = "" - if (this.form.standName && this.form.standName !== '') { - fileName = this.form.standName + '-企业标准.docx' - fileNam2 = this.form.standName - } else { - fileName = '企业标准.docx' - fileNam2 = '企业标准' - } - let form = JSON.parse(JSON.stringify(this.form)) - form.standCode = '' - form.issueDate = '' - this.$onlineEditPreview(file.id, fileNam2, this.$store.getters.userInfo.userId, this.$store.getters.userInfo.userName, form) - return - } - if (type === 'down') { - if (attId) { - window.open('/api/att/attFile/downloadFileForSarNew?fileId=' + attId) - } else { - this.$message.warning('文件不存在,下载失败') - } - } else { - this.$preview(attId) - } - }, // 导入标准数据成功后执行 importFileSuccess(response, file, fileList) { // 上传成功后判断是否是两条数据是的话替换掉旧数据