From 1a30d552ad7bdbeb1762e66b65331d45c75244d4 Mon Sep 17 00:00:00 2001 From: jackal <13856223047@163.com> Date: Sat, 20 Apr 2024 14:30:43 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=8D=8F=E8=AE=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=AF=BC=E5=87=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../claimAndRefund/receive/agreement.vue | 19 ++++++++++++------- sgzb-ui/vue.config.js | 4 ++-- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue b/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue index 53d6634e..72345a8d 100644 --- a/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue +++ b/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue @@ -576,6 +576,7 @@ export default { // 多选框选中数据 handleSelectionChange(selection) { this.ids = selection.map(item => item.agreementId) + console.log(this.ids) this.single = selection.length != 1 this.multiple = !selection.length }, @@ -662,13 +663,17 @@ export default { }, /** 导出按钮操作 */ handleExport() { - this.download( - 'material/agreementInfo/export', - { - ...this.queryParams, - }, - `协议_${new Date().getTime()}.xlsx` - ) + if (this.ids.length) { + this.download( + 'material/agreementInfo/export', + { + dataCondition: this.ids, + }, + `协议_${new Date().getTime()}.xlsx` + ) + } else { + this.$modal.msgWarning('请选择要导出的数据') + } }, }, } diff --git a/sgzb-ui/vue.config.js b/sgzb-ui/vue.config.js index f82635e5..b0c5767e 100644 --- a/sgzb-ui/vue.config.js +++ b/sgzb-ui/vue.config.js @@ -44,8 +44,8 @@ module.exports = { // target: `http://10.40.92.8:8080`, //超 // target: `http://10.40.92.81:8080`, //韩 - target: `http://10.40.92.74:8080`,//旭/ - // target: `http://10.40.92.153:8080`, //帅 + // target: `http://10.40.92.74:8080`,//旭/ + target: `http://10.40.92.153:8080`, //帅 // target: `http://10.40.92.14:8080`, //福 //******** 注意事项 ********* */