Browse Source

优化页面

master
李磊 3 years ago
parent
commit
dba6e21c2b
  1. 6
      src/utils/common.js
  2. 2
      src/views/borrow/returned.vue

6
src/utils/common.js

@ -4,6 +4,7 @@ import router from '../router'
import Utils from './contact.js' import Utils from './contact.js'
import preview from './preview' import preview from './preview'
import Vue from 'vue' import Vue from 'vue'
import qs from 'qs'
export default { export default {
// 原始记录预览 // 原始记录预览
@ -144,8 +145,11 @@ export default {
url: '/print/batchGeneratePDF', url: '/print/batchGeneratePDF',
method: 'post', method: 'post',
data: { data: {
ids: id, ids: [id],
generateType: viewType generateType: viewType
},
paramsSerializer: function(data) {
return qs.stringify(data, { indices: false })
} }
}).then(() => { }).then(() => {
console.info('重新生成成功') console.info('重新生成成功')

2
src/views/borrow/returned.vue

@ -175,7 +175,7 @@ export default {
}, },
returnFn(row) { returnFn(row) {
console.log(row) console.log(row)
const currentTime = this.formatter.getNowTime() const currentTime = this.formatter.dateFormat('YYYY-MM-dd HH:mm:ss')
const data = { const data = {
guihuanTime: currentTime, guihuanTime: currentTime,
id: row.id, id: row.id,

Loading…
Cancel
Save