From ad02be39ac051924dbd80ef003fa0ca403712eb0 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 14 三月 2025 09:26:31 +0800
Subject: [PATCH] 项检分析分页修改
---
src/views/CNAS/systemManagement/customerSatisfaction/index.vue | 24 +++++-------------------
1 files changed, 5 insertions(+), 19 deletions(-)
diff --git a/src/views/CNAS/systemManagement/customerSatisfaction/index.vue b/src/views/CNAS/systemManagement/customerSatisfaction/index.vue
index 414a023..8e371d5 100644
--- a/src/views/CNAS/systemManagement/customerSatisfaction/index.vue
+++ b/src/views/CNAS/systemManagement/customerSatisfaction/index.vue
@@ -144,8 +144,8 @@
page: {
size: 20,
current: 1,
+ total: 0,
},
- total: 0,
tableColumn1: [
{
label: '闄勪欢鍚嶇О',
@@ -197,8 +197,8 @@
page1: {
size: 20,
current: 1,
+ total: 0,
},
- total1: 0,
formDialog: false,
upLoading: false,
currentInfo: {},
@@ -218,9 +218,8 @@
this.tableLoading = true
pageClientSatisfaction({ ...entity, ...page }).then(res => {
this.tableLoading = false
- if (res.code === 201) return
this.tableData = res.data.records
- this.total = res.data.total
+ this.page.total = res.data.total
}).catch(err => {
console.log('err---', err);
this.tableLoading = false
@@ -229,9 +228,8 @@
this.tableLoading1 = true
pageAnalyseFile({ ...entity, ...page }).then(res => {
this.tableLoading1 = false
- if (res.code === 201) return
this.tableData1 = res.data.records
- this.total1 = res.data.total
+ this.page1.total = res.data.total
}).catch(err => {
console.log('err---', err);
this.tableLoading1 = false
@@ -286,7 +284,6 @@
this.tableLoading = true
delClientSatisfaction({ clientSatisfactionId: row.clientSatisfactionId }).then(res => {
this.tableLoading = false
- if (res.code === 201) return
this.$message.success('鍒犻櫎鎴愬姛')
this.searchList()
}).catch(err => {
@@ -307,17 +304,7 @@
},
// 涓嬭浇瀹㈡埛绂忓缓
upload(row) {
- let url = '';
- if (row.type == 1) {
- url = this.javaApi + '/img/' + row.fileUrl
- file.downloadIamge(url, row.fileName)
- } else {
- url = this.javaApi + '/word/' + row.fileUrl
- const link = document.createElement('a');
- link.href = url;
- link.download = row.fileName;
- link.click();
- }
+ this.$download.saveAs(row.fileUrl, row.fileName);
},
// 鍒犻櫎瀹㈡埛鍒嗘瀽闄勪欢
delFile(row) {
@@ -329,7 +316,6 @@
this.tableLoading = true
delAnalyseFile({ analyseFileId: row.analyseFileId }).then(res => {
this.tableLoading = false
- if (res.code === 201) return
this.$message.success('鍒犻櫎鎴愬姛')
this.searchList()
}).catch(err => {
--
Gitblit v1.9.3