From 15a79f18ace29e0c69d68c7fb5e3079b395ffecd Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期五, 14 三月 2025 10:20:21 +0800 Subject: [PATCH] 外来文件确认记录分页修改 --- src/views/CNAS/process/reportResults/index.vue | 38 +------------------------------------- 1 files changed, 1 insertions(+), 37 deletions(-) diff --git a/src/views/CNAS/process/reportResults/index.vue b/src/views/CNAS/process/reportResults/index.vue index 4b58fd3..fcc583a 100644 --- a/src/views/CNAS/process/reportResults/index.vue +++ b/src/views/CNAS/process/reportResults/index.vue @@ -185,35 +185,6 @@ this.getAuthorizedPerson() }, methods: { - getPower() { - let power = JSON.parse(sessionStorage.getItem('power')) - let up = false - let del = false - let add = false - let out = false - for (var i = 0; i < power.length; i++) { - if (power[i].menuMethod == 'doProcessReport') { - up = true - } - if (power[i].menuMethod == 'addProcessReport') { - add = true - } - if (power[i].menuMethod == 'delProcessReport') { - del = true - } - if (power[i].menuMethod == 'exportProcessReport') { - out = true - } - } - if (!up) { - this.componentData.do.splice(1, 1) - } - if (!del) { - this.componentData.do.splice(0, 1) - } - this.outPower = out - this.addPower = add - }, handleDown() { if (this.mutilSelect.length == 0) { this.$message.warning('璇烽�夋嫨瑕佸鍑虹殑鏁版嵁') @@ -222,7 +193,7 @@ this.outLoading = true exportProcessReport({ ids: this.mutilSelect.map(m => m.id) }).then(res => { this.outLoading = false - this.$download.downloadFileFromUrl(res.data, "鎶ュ憡缁撴灉"); + this.$download.saveAs(res.data, "鎶ュ憡缁撴灉"); }) }, openAdd() { @@ -290,9 +261,6 @@ if (this.title == '鏂板') { addProcessReport(addInfo).then(res => { this.addLoading = false - if (res.code == 201) { - return - } this.addDialogVisible = false this.$message({ type: 'success', @@ -303,9 +271,6 @@ } else { doProcessReport(addInfo).then(res => { this.addLoading = false - if (res.code == 201) { - return - } this.addDialogVisible = false this.$message({ type: 'success', @@ -333,7 +298,6 @@ }) .then(() => { delProcessReport({ id: row.id }).then((res) => { - if (res.code == 201) return; this.$message.success("鍒犻櫎鎴愬姛"); this.refresh(); }); -- Gitblit v1.9.3