yanghao 1 week ago
parent
commit
75fa188ae7
2 changed files with 19 additions and 15 deletions
  1. 14 0
      src/api/pms/iotopeationfill/index.ts
  2. 5 15
      src/views/pms/iotopeationfill/index.vue

+ 14 - 0
src/api/pms/iotopeationfill/index.ts

@@ -42,6 +42,15 @@ export interface IotOpeationFillVO {
   noGasTasks: any
 }
 
+export interface IotOperationRecordPageParams {
+  pageNo: number
+  pageSize: number
+  deptId?: number | string
+  fillContent?: string
+  orderStatus?: string | number | null
+  createTime?: string[]
+}
+
 // 运行记录填报 API
 export const IotOpeationFillApi = {
   // 查询运行记录填报分页
@@ -56,6 +65,11 @@ export const IotOpeationFillApi = {
   getIotOpeationFillPage1: async (params: any) => {
     return await request.get({ url: `/rq/iot-opeation-fill/page1`, params })
   },
+
+  getOperationRecordPage: async (params: IotOperationRecordPageParams) => {
+    return await request.get({ url: `/rq/iot-opeation-fill/page2`, params })
+  },
+
   getDeviceData: async (params: any) => {
     return await request.get({ url: `/rq/iot-opeation-fill/countPage`, params })
   },

+ 5 - 15
src/views/pms/iotopeationfill/index.vue

@@ -18,9 +18,9 @@
       label-width="68px"
       class="operation-fill-query bg-white dark:bg-[#1d1e1f] rounded-lg shadow px-6 py-3 min-w-0">
       <div class="query-row">
-        <el-form-item :label="t('operationFill.name')" prop="orderName">
+        <el-form-item :label="t('operationFill.name')" prop="fillContent">
           <el-input
-            v-model="queryParams.orderName"
+            v-model="queryParams.fillContent"
             :placeholder="t('operationFill.nameHolder')"
             clearable
             @keyup.enter="handleQuery"
@@ -302,14 +302,9 @@ const rootDeptId = 156
 const userDeptId = useUserStore().getUser.deptId
 
 interface QueryParams extends PageParam {
-  orderName?: string
-  inspectOrderTitle?: string
-  inspectOrderCode?: string
-  status?: string
-  remark?: string
+  fillContent?: string
   createTime: string[]
   deptId?: number | string
-  deviceIds?: string
   orderStatus?: string | number | null
 }
 
@@ -328,14 +323,9 @@ const total = ref(0) // 列表的总页数
 const queryParams = reactive<QueryParams>({
   pageNo: 1,
   pageSize: 10,
-  orderName: undefined,
-  inspectOrderTitle: undefined,
-  inspectOrderCode: undefined,
-  status: undefined,
-  remark: undefined,
+  fillContent: undefined,
   createTime: [],
   deptId: userDeptId,
-  deviceIds: undefined,
   orderStatus: undefined
   //userId:useUserStore().getUser.id
 })
@@ -414,7 +404,7 @@ const handleDeptNodeClick = async (row: Tree) => {
 const getList = async () => {
   loading.value = true
   try {
-    const data = await IotOpeationFillApi.getIotOpeationFillPage1(queryParams)
+    const data = await IotOpeationFillApi.getOperationRecordPage(queryParams)
     list.value = data.list
     total.value = data.total
   } finally {