Browse Source

查询后,点击重置,列表无数据

CzRger 2 months ago
parent
commit
aecbc50980
1 changed files with 2 additions and 2 deletions
  1. 2 2
      snowy-admin-web/src/views/yqyc/general-ledger/two/index.vue

+ 2 - 2
snowy-admin-web/src/views/yqyc/general-ledger/two/index.vue

@@ -287,13 +287,13 @@ const options = {
 const loadData = (parameter) => {
   tableRef.value.clearSelected()
   // warehouseTime范围查询条件重载
-  if (searchFormStateReal.value.warehouseTime) {
+  if (searchFormStateReal.value.warehouseTime?.length > 0) {
     searchFormStateReal.value.startWarehouseTime = proxy.$util.YMDHms(searchFormStateReal.value.warehouseTime[0])
     searchFormStateReal.value.endWarehouseTime = proxy.$util.YMDHms(searchFormStateReal.value.warehouseTime[1])
     delete searchFormStateReal.value.warehouseTime
   }
   // accountTime范围查询条件重载
-  if (searchFormStateReal.value.accountTime) {
+  if (searchFormStateReal.value.accountTime?.length > 0) {
     searchFormStateReal.value.startAccountTime = proxy.$util.YMDHms(searchFormStateReal.value.accountTime[0])
     searchFormStateReal.value.endAccountTime = proxy.$util.YMDHms(searchFormStateReal.value.accountTime[1])
     delete searchFormStateReal.value.accountTime