diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index 8b593e72..a17d0296 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -264,8 +264,9 @@ const pagination = ref({ total: 0, current: 1, - pageSize: 300, //每页中显示10条数据 + pageSize: 10, //每页中显示10条数据 showSizeChanger: true, + pageSizeOptions: ['10','30', '50','100'], //每页中显示的数据 }) const mapSearchParam = ref({ // 地图搜索初始化数据 @@ -708,8 +709,8 @@ const onSelectChange = (record, selected, selectedRows, nativeEvent) => { console.log('hahhahah', record, selected, selectedRows, nativeEvent) if (selected) { - if (selectedRowKeys.value.length == 300) { - message.warning('最多只能添加300个摄像头!') + if (selectedRowKeys.value.length == 100) { + message.warning('最多只能添加100个摄像头!') } else { selectedList.value.push(record) selectedRowKeys.value.push(record.channelCode || record.channelId) @@ -733,8 +734,8 @@ selectedList.value.push(val) selectedRowKeys.value.push(val.channelCode || val.channelId) }) - if (selectedRowKeys.value.length > 300) { - message.warning('最多只能添加300个摄像头!') + if (selectedRowKeys.value.length > 100) { + message.warning('最多只能添加100个摄像头!') changeRows.map((val) => { selectedList.value = selectedList.value.filter( (item) => item.idtCameraChannel !== val.idtCameraChannel