改成100个
This commit is contained in:
parent
6d79448ebe
commit
f2b714a915
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue