From d44b083e83ce8e17b681fa8e3f4ea3ed0f1572ec Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期六, 27 七月 2024 09:59:26 +0800
Subject: [PATCH] 修改班次分页
---
src/components/view/b1-report-preparation.vue | 24 ++++++++++++++----------
1 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/src/components/view/b1-report-preparation.vue b/src/components/view/b1-report-preparation.vue
index ab65de2..1aeb786 100644
--- a/src/components/view/b1-report-preparation.vue
+++ b/src/components/view/b1-report-preparation.vue
@@ -153,12 +153,10 @@
<script>
import ValueTable from '../tool/value-table.vue'
- import Word from '../tool/word.vue'
import onlyoffice from '../tool/onlyoffice.vue'
export default {
components: {
ValueTable,
- Word,
onlyoffice
},
data() {
@@ -332,8 +330,8 @@
// }
},
methods: {
- refreshTable() {
- this.$refs['ValueTable'].selectList()
+ refreshTable(e) {
+ this.$refs['ValueTable'].selectList(e)
},
refresh() {
this.componentData.entity = this.HaveJson(this.entityCopy)
@@ -438,13 +436,14 @@
document.body.appendChild(link);
link.click();
},
+ // 杩樺師鎿嶄綔
handleRestore(row) {
this.$axios.post(this.$api.insReport.upReportUrl, {
id: row.id
}).then(res => {
if (res.code === 200) {
this.$message.success('鎿嶄綔鎴愬姛')
- this.refreshTable()
+ this.refreshTable('page')
}
})
},
@@ -466,6 +465,7 @@
}
this.issuedVisible = true;
},
+ // 瀹℃牳閫氳繃
subIssued() {
this.loadingIssued = true;
this.$axios.post(this.$api.insReport.examineReport, {
@@ -477,7 +477,7 @@
return
}
this.$message.success('鎻愪氦鎴愬姛')
- this.refreshTable()
+ this.refreshTable('page')
this.currentInfo = null;
this.issuedVisible = false;
}).catch(e => {
@@ -503,6 +503,7 @@
}
this.approveVisible = true;
},
+ // 鎵瑰噯閫氳繃
subApprove() {
this.loadingApprove = true;
this.$axios.post(this.$api.insReport.ratifyReport, {
@@ -515,11 +516,12 @@
return
}
this.$message.success('宸叉壒鍑�')
- this.refreshTable()
+ this.refreshTable('page')
this.currentInfo = null;
this.approveVisible = false;
})
},
+ // 鎻愪氦鎿嶄綔
handleSubmit(row) {
this.$confirm('鏄惁鎻愪氦褰撳墠鎶ュ憡?', "鎻愪氦", {
confirmButtonText: "鎻愪氦",
@@ -533,12 +535,13 @@
return
}
this.$message.success('鎻愪氦鎴愬姛')
- this.refreshTable()
+ this.refreshTable('page')
}).catch(e => {
this.$message.error('鎻愪氦澶辫触')
})
}).catch(() => {})
},
+ // 瀹℃牳涓嶉�氳繃鍘熷洜鎻愪氦
handleIssuedReason() {
if (!this.reason) {
return this.$message.error('璇疯緭鍏ュ師鍥�')
@@ -554,7 +557,7 @@
return
}
this.$message.success('鎿嶄綔鎴愬姛')
- this.refreshTable()
+ this.refreshTable('page')
this.currentInfo = null;
this.reason = '';
this.issuedVisible = false;
@@ -564,6 +567,7 @@
this.loadingIssuedReason = false;
})
},
+ // 涓嶆壒鍑嗗師鍥犳彁浜�
handleApproveReason() {
if (!this.reason) {
return this.$message.error('璇疯緭鍏ュ師鍥�')
@@ -579,7 +583,7 @@
return
}
this.$message.success('鎿嶄綔鎴愬姛')
- this.refreshTable()
+ this.refreshTable('page')
this.currentInfo = null;
this.reason = '';
this.issuedVisible = false;
--
Gitblit v1.9.3