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

✨ feat: 运行记录列表接入 page2 分页接口

Zimo 1 неделя назад
Родитель
Сommit
3774c4159d
2 измененных файлов с 5 добавлено и 5 удалено
  1. 1 1
      api/recordFilling.js
  2. 4 4
      pages/recordFilling/list.vue

+ 1 - 1
api/recordFilling.js

@@ -2,7 +2,7 @@ import { request } from "@/utils/request.js";
 
 export function getRecordFillingList(params) {
   return request({
-    url: "/rq/iot-opeation-fill/page1",
+    url: "/rq/iot-opeation-fill/page2",
     method: "GET",
     params,
   });

+ 4 - 4
pages/recordFilling/list.vue

@@ -151,7 +151,7 @@
         <view class="filter-item">
           <view class="filter-label">工单名称</view>
           <uni-easyinput
-            v-model="orderName"
+            v-model="fillContent"
             :input-border="false"
             :styles="inputStyles"
             :placeholderStyle="placeholderStyle"
@@ -205,7 +205,7 @@ getStrDictOptions("operation_fill_order_status").map((item) => {
 });
 console.log("🚀 ~ getDataDictList ~ fillStatusDict:", fillStatusDict);
 
-const orderName = ref("");
+const fillContent = ref("");
 const getRecentWeekRange = () => [
   dayjs().subtract(6, "day").startOf("day").format("YYYY-MM-DD HH:mm:ss"),
   dayjs().endOf("day").format("YYYY-MM-DD HH:mm:ss"),
@@ -236,7 +236,7 @@ const queryList = (pageNo, pageSize) => {
     pageNo,
     pageSize,
     deptId: getDeptId(),
-    orderName: orderName.value,
+    fillContent: fillContent.value,
     createTime: createTime.value,
   })
     .then((res) => {
@@ -261,7 +261,7 @@ const closeFilterPopup = () => {
   filterPopup.value?.close();
 };
 const resetFilter = () => {
-  orderName.value = "";
+  fillContent.value = "";
   createTime.value = getRecentWeekRange();
 };
 const navigatorDetail = (item, type) => {