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/outDocumenRecordt.vue | 41 +---------------------------------------- 1 files changed, 1 insertions(+), 40 deletions(-) diff --git a/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue b/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue index cc13d08..b00e8cb 100644 --- a/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue +++ b/src/views/CNAS/systemManagement/documentRecords/outDocumenRecordt.vue @@ -249,45 +249,6 @@ this.getList0() }, methods: { - getPower() { - let power = JSON.parse(sessionStorage.getItem('power')) - let add = false - let del = false - let up = false; - let sub = false - let ratify = false - for (var i = 0; i < power.length; i++) { - if (power[i].menuMethod == 'addManageRecordVerify') { - add = true - } - if (power[i].menuMethod == 'delManageRecordVerify') { - del = true - } - if (power[i].menuMethod == 'exportManageRecordVerify') { - up = true - } - if (power[i].menuMethod == 'submitManageRecordTotal') { - sub = true - } - if (power[i].menuMethod == 'ratifyManageRecordTotal') { - ratify = true - } - } - if (!ratify) { - this.componentData.do.splice(3, 1) - } - if (!sub) { - this.componentData.do.splice(2, 1) - } - if (!del) { - this.componentData0.do.splice(1, 1) - } - if (!add) { - this.componentData0.do.splice(0, 1) - } - this.addPower = add - this.upPower = up - }, openAdd(title, row) { this.title = title; if (row) { @@ -393,7 +354,7 @@ }).catch(err => { }); }, handleDown0(row) { - this.$download.downloadFileFromUrl(row.url, '澶栨潵鏂囦欢纭璁板綍') + this.$download.saveAs(row.url, '澶栨潵鏂囦欢纭璁板綍') }, // 鎻愪氦 handleSubmit(row) { -- Gitblit v1.9.3