Commit 3fe6f406 authored by Junling Bu's avatar Junling Bu
Browse files

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

parent 4ba784b1
...@@ -410,7 +410,7 @@ export const asyncRouterMap = [ ...@@ -410,7 +410,7 @@ export const asyncRouterMap = [
{ {
path: 'notice', path: 'notice',
component: () => import('@/views/sys/notice'), component: () => import('@/views/sys/notice'),
name: 'notice', name: 'sysNotice',
meta: { meta: {
perms: ['GET /admin/notice/list', 'POST /admin/notice/create', 'POST /admin/notice/update', 'POST /admin/notice/delete'], perms: ['GET /admin/notice/list', 'POST /admin/notice/create', 'POST /admin/notice/update', 'POST /admin/notice/delete'],
title: '通知管理', title: '通知管理',
......
...@@ -248,10 +248,14 @@ export default { ...@@ -248,10 +248,14 @@ export default {
checkPermission, checkPermission,
getList() { getList() {
this.listLoading = true 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.start = this.listQuery.timeArray[0]
this.listQuery.end = this.listQuery.timeArray[1] this.listQuery.end = this.listQuery.timeArray[1]
} else {
this.listQuery.start = null
this.listQuery.end = null
} }
listOrder(this.listQuery).then(response => { listOrder(this.listQuery).then(response => {
this.list = response.data.data.list this.list = response.data.data.list
this.total = response.data.data.total this.total = response.data.data.total
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment