mirror of
https://gitee.com/elegant_wings/dbd-meeting-html.git
synced 2025-06-21 04:29:36 +08:00
延长会话有效期到14天,导出工单数据加筛选条件
This commit is contained in:
parent
c251517e24
commit
f232fa9d63
@ -58,7 +58,7 @@ const user = {
|
||||
return new Promise((resolve, reject) => {
|
||||
login(userInfo).then(response => {
|
||||
const result = response
|
||||
storage.set(ACCESS_TOKEN, result.token, 12 * 60 * 60 * 1000)
|
||||
storage.set(ACCESS_TOKEN, result.token, 14 * 24 * 60 * 60 * 1000)//14天过期
|
||||
commit('SET_TOKEN', result.token)
|
||||
resolve(response)
|
||||
}).catch(error => {
|
||||
|
@ -456,7 +456,21 @@ export default {
|
||||
}
|
||||
const startDate = this.dateRange[0].format('YYYY-MM-DD')
|
||||
const endDate = this.dateRange[1].format('YYYY-MM-DD')
|
||||
exportRepair({ startDate: startDate, endDate: endDate }).then(res => {
|
||||
|
||||
exportRepair({
|
||||
'explain': this.queryParam.explain,
|
||||
'sn': this.queryParam.sn,
|
||||
'typeId': this.queryParam.typeId,
|
||||
'deviceId': this.queryParam.deviceId,
|
||||
'status': this.queryParam.status,
|
||||
'repairLevel': this.queryParam.repairLevel,
|
||||
'beginTime': startDate,
|
||||
'endTime': endDate,
|
||||
'evalService': this.queryParam.evalService,
|
||||
'timeout': this.queryParam.timeout,
|
||||
'remark': this.queryParam.remark,
|
||||
'name': this.queryParam.name
|
||||
}).then(res => {
|
||||
this.exportExcel('工单数据', res)
|
||||
})
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user