From 58192a194d0667ebb880a16cbde36363fdc1d535 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 07 三月 2025 15:03:59 +0800 Subject: [PATCH] 删除无用代码 修改前端下载方法 --- src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue | 46 +--------------------------------------------- 1 files changed, 1 insertions(+), 45 deletions(-) diff --git a/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue b/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue index d64c541..2b0c02c 100644 --- a/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue +++ b/src/views/CNAS/systemManagement/documentRecords/approvalRecord.vue @@ -193,50 +193,6 @@ this.getAuthorizedPerson() }, methods: { - getPower() { - let power = JSON.parse(sessionStorage.getItem('power')) - let add = false - let del = false - let up = false; - let out = false; - let check = false - let ratify = false - for (var i = 0; i < power.length; i++) { - if (power[i].menuMethod == 'addManageRecordCheck') { - add = true - } - if (power[i].menuMethod == 'delManageRecordCheck') { - del = true - } - if (power[i].menuMethod == 'exportInManageRecordCheck') { - up = true - } - if (power[i].menuMethod == 'checkManageRecordCheck') { - check = true - } - if (power[i].menuMethod == 'ratifyManageRecordCheck') { - ratify = true - } - if (power[i].menuMethod == 'exportOutManageRecordCheck') { - out = true - } - } - if (!ratify) { - this.componentData.do.splice(3, 1) - } - if (!check) { - this.componentData.do.splice(2, 1) - } - if (!add) { - this.componentData.do.splice(1, 1) - } - if (!del) { - this.componentData.do.splice(0, 1) - } - this.addPower = add - this.outPower = out - this.upPower = up - }, getList() { this.tableLoading = true; let param = { ...this.queryParams, ...this.page }; @@ -283,7 +239,7 @@ // queryParams exportOutManageRecordCheck(this.queryParams).then(res => { this.outLoading = false - this.$download.downloadFileFromUrl(res.data, '鏂囦欢瀹℃壒璁板綍') + this.$download.saveAs(res.data, '鏂囦欢瀹℃壒璁板綍') }) }, getAuthorizedPerson() { -- Gitblit v1.9.3