fix[litemall-admin]: 订单管理时间过滤查询bug

This commit is contained in:
Junling Bu
2020-03-08 14:31:23 +08:00
parent 4ba784b1e5
commit 3fe6f406c8
2 changed files with 6 additions and 2 deletions

View File

@@ -410,7 +410,7 @@ export const asyncRouterMap = [
{
path: 'notice',
component: () => import('@/views/sys/notice'),
name: 'notice',
name: 'sysNotice',
meta: {
perms: ['GET /admin/notice/list', 'POST /admin/notice/create', 'POST /admin/notice/update', 'POST /admin/notice/delete'],
title: '通知管理',

View File

@@ -248,10 +248,14 @@ export default {
checkPermission,
getList() {
this.listLoading = true
if (this.listQuery.timeArray.length === 2) {
if (this.listQuery.timeArray && this.listQuery.timeArray.length === 2) {
this.listQuery.start = this.listQuery.timeArray[0]
this.listQuery.end = this.listQuery.timeArray[1]
} else {
this.listQuery.start = null
this.listQuery.end = null
}
listOrder(this.listQuery).then(response => {
this.list = response.data.data.list
this.total = response.data.data.total