改成100个

This commit is contained in:
a0049873 2022-08-04 15:14:55 +08:00
parent 6d79448ebe
commit f2b714a915
1 changed files with 6 additions and 5 deletions

View File

@ -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