Просмотр исходного кода

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

CzRger месяцев назад: 7
Родитель
Сommit
aecbc50980
1 измененных файлов с 2 добавлено и 2 удалено
  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