Browse Source

fix: 修复过滤模板中绑定设备探查滚的设备分页显示

yanglzh 3 weeks ago
parent
commit
94f9951611
3 changed files with 3 additions and 3 deletions
  1. 1 0
      src/api/projects/index.ts
  2. 0 1
      src/i18n/index.ts
  3. 2 2
      src/views/iot/projects/filter/bindDevice.vue

+ 1 - 0
src/api/projects/index.ts

@@ -19,6 +19,7 @@ export default {
     editStatus: (data: object) => put('/projects/devDeviceAttributeTemplates/editStatus', data),
     detail: (id: string) => get('/projects/devDeviceAttributeTemplates/getById', { id }),
     getBindDevices: (params: object) => get('/projects/devDeviceAttributeTemplates/getBindDevices', params),
+    getBindDevicesForPage: (params: object) => get('/projects/devDeviceAttributeTemplates/getBindDevicesForPage', params),
     unBindDevices: (data: object) => post('/projects/devDeviceAttributeTemplates/unBindDevices', data),
     attr: {
       list: (params: object) => get('/projects/devDeviceAttributeValues/list', params),

+ 0 - 1
src/i18n/index.ts

@@ -159,7 +159,6 @@ const messages = {
 			projects: pagesProjectsZhtw,
 			property: pagesPropertyZhtw,
 			dateCenter: pagesDateCenterZhtw,
-			assistant: pagesAssistantZhtw,
 			dataAnalysis: pagesDataAnalysisZhtw,
 			certificate: pagesCertificateZhtw,
 			alarmCenter: pagesAlarmCenterZhtw,

+ 2 - 2
src/views/iot/projects/filter/bindDevice.vue

@@ -18,7 +18,7 @@
         </template>
       </el-table-column>
     </el-table>
-    <!-- <pagination v-if="params.total" :total="params.total" v-model:page="params.pageNum" v-model:limit="params.pageSize" @pagination="getList()" /> -->
+    <pagination v-if="params.total" :total="params.total" v-model:page="params.pageNum" v-model:limit="params.pageSize" @pagination="getList()" />
     <bindDeviceForm ref="editFormRef" :hasBindKeys="hasBindKeys" @get-list="getList(1)"></bindDeviceForm>
   </el-dialog>
 </template>
@@ -31,7 +31,7 @@ import bindDeviceForm from './bindDeviceForm.vue';
 import { useSearch } from '/@/hooks/useCommon';
 import { ElMessage } from 'element-plus';
 
-const { params, tableData, getList, loading } = useSearch<any[]>(api.template.getBindDevices, '', { code: '' });
+const { params, tableData, getList, loading } = useSearch<any[]>(api.template.getBindDevicesForPage, 'Data', { code: '' });
 const { t } = useI18n();
 
 const isShowDialog = ref(false);