From dba6e21c2b6a0420f9f66152b78d68fc8ae1da53 Mon Sep 17 00:00:00 2001 From: zichen1019 <1510748736@qq.com> Date: Mon, 30 Aug 2021 10:28:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/common.js | 6 +++++- src/views/borrow/returned.vue | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/utils/common.js b/src/utils/common.js index 7106a25..7757c14 100644 --- a/src/utils/common.js +++ b/src/utils/common.js @@ -4,6 +4,7 @@ import router from '../router' import Utils from './contact.js' import preview from './preview' import Vue from 'vue' +import qs from 'qs' export default { // 原始记录预览 @@ -144,8 +145,11 @@ export default { url: '/print/batchGeneratePDF', method: 'post', data: { - ids: id, + ids: [id], generateType: viewType + }, + paramsSerializer: function(data) { + return qs.stringify(data, { indices: false }) } }).then(() => { console.info('重新生成成功') diff --git a/src/views/borrow/returned.vue b/src/views/borrow/returned.vue index baa0a1a..bae7b26 100644 --- a/src/views/borrow/returned.vue +++ b/src/views/borrow/returned.vue @@ -175,7 +175,7 @@ export default { }, returnFn(row) { console.log(row) - const currentTime = this.formatter.getNowTime() + const currentTime = this.formatter.dateFormat('YYYY-MM-dd HH:mm:ss') const data = { guihuanTime: currentTime, id: row.id,