Przeglądaj źródła

预定-查询参数修正

zhuli 3 tygodni temu
rodzic
commit
d9fa8d88cf

+ 5 - 5
src/views/appoinmentManagement/appoinmentInfo.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="table-box appointment-info">
     <!-- 筛选:点击搜索后生效(与翻页联动) -->
-    <div class="filter-bar">
+    <div class="filter-bar" style="width: 800px">
       <div class="filter-row">
         <span class="filter-label">预订日期</span>
         <el-date-picker
@@ -11,14 +11,14 @@
           start-placeholder="请选择"
           end-placeholder="请选择"
           value-format="YYYY-MM-DD"
-          style="width: 160px"
+          style="width: 60px"
         />
         <el-button type="primary" @click="handleSearch"> 搜索 </el-button>
         <el-button @click="handleReset"> 重置 </el-button>
       </div>
     </div>
 
-    <ProTable ref="proTable" :columns="columns" :request-api="getTableList" :init-param="initParam">
+    <ProTable ref="proTable" :columns="columns" :request-api="getTableList" :init-param="initParam" :pagination="false">
       <template #tableHeader>
         <div class="table-header">
           <el-button type="primary" @click="handleNew"> 新建 </el-button>
@@ -359,8 +359,8 @@ async function getTableList(params: any) {
     req.status = listFilter.status;
   }
   if (listFilter.startDate && listFilter.endDate) {
-    req.startDate = listFilter.startDate;
-    req.endDate = listFilter.endDate;
+    req.dateFrom = listFilter.startDate;
+    req.dateTo = listFilter.endDate;
   }
   try {
     const res: any = await reservationList(req);