From 5d77f3004b88c8e4247d62e7b77a3227c0b1fae2 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 13 三月 2025 09:45:23 +0800
Subject: [PATCH] 原材料原始记录未跳转页面
---
src/views/CNAS/process/uncertainty/index.vue | 37 +------------------------------------
1 files changed, 1 insertions(+), 36 deletions(-)
diff --git a/src/views/CNAS/process/uncertainty/index.vue b/src/views/CNAS/process/uncertainty/index.vue
index 8aca44f..f5dc83f 100644
--- a/src/views/CNAS/process/uncertainty/index.vue
+++ b/src/views/CNAS/process/uncertainty/index.vue
@@ -144,40 +144,10 @@
this.getList()
},
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 == 'doProcessEvaluate') {
- up = true
- }
- if (power[i].menuMethod == 'addProcessEvaluate') {
- add = true
- }
- if (power[i].menuMethod == 'delProcessEvaluate') {
- del = true
- }
- if (power[i].menuMethod == 'exportProcessEvaluate') {
- out = true
- }
- }
- if (!del) {
- this.componentData.do.splice(1, 1)
- }
- if (!up) {
- this.componentData.do.splice(0, 1)
- }
- this.outPower = out
- this.addPower = add
- },
handleDown0() {
this.outLoading = true
exportProcessEvaluate(this.queryParams).then(res => {
this.outLoading = false
- if (res.code === 201) return
const blob = new Blob([res], { type: 'application/octet-stream' });
this.$download.saveAs(blob, '娴嬮噺涓嶇‘瀹氬害鐨勮瘎瀹�.xlsx');
})
@@ -187,7 +157,7 @@
this.$message.warning('鏆傛棤鏂囦欢')
return
}
- this.$download.downloadFileFromUrl(row.reportUrl, row.reportName);
+ this.$download.saveAs(row.reportUrl, row.reportName);
},
beforeUpload(file) {
if (file.size > 1024 * 1024 * 10) {
@@ -223,10 +193,6 @@
evaluateUser: this.userId
}).then((res) => {
this.addLoading = false;
- if (res.code == 201) {
- this.$message.error('璇勪环澶辫触');
- return;
- }
this.$message.success('璇勪环鎴愬姛');
this.addDialogVisible = false;
this.refreshTable()
@@ -274,7 +240,6 @@
})
.then(() => {
delProcessEvaluate({ id: row.id }).then((res) => {
- if (res.code == 201) return;
this.$message.success("鍒犻櫎鎴愬姛");
this.refresh();
});
--
Gitblit v1.9.3