后台挂载BUG修改 前台视频资源上限改为1000

This commit is contained in:
a0049873 2022-08-05 17:02:55 +08:00
parent a25df90421
commit f54169dfa3
2 changed files with 11 additions and 7 deletions

View File

@ -762,10 +762,14 @@ export default {
this.notFilled.push('部门联系人电话')
}
if (this.radio === '智能算法' && !this.submitFrom.apiUrl) {
this.notFilled.push('服务接口')
if ((this.submitFrom.infoList.filter(val => val.attrType === '使用方式')[0].attrValue === '调用接口')) {
this.notFilled.push('服务接口')
}
}
if (this.radio === '智能算法' && !this.submitFrom.apiMethodType) {
this.notFilled.push('接口请求方式')
if ((this.submitFrom.infoList.filter(val => val.attrType === '使用方式')[0].attrValue === '调用接口')) {
this.notFilled.push('接口请求方式')
}
}
if (this.radio === '智能算法' && (!this.submitFrom.infoList.filter(val => val.attrType === '算法类别')[0] || !this.submitFrom.infoList.filter(val => val.attrType === '算法类别')[0].attrValue)) {
this.notFilled.push('算法类别')

View File

@ -266,7 +266,7 @@
current: 1,
pageSize: 10, //10
showSizeChanger: true,
pageSizeOptions: ['10','30', '50','100'], //
pageSizeOptions: ['10', '30', '50', '100', '1000'], //
})
const mapSearchParam = ref({
//
@ -709,8 +709,8 @@
const onSelectChange = (record, selected, selectedRows, nativeEvent) => {
console.log('hahhahah', record, selected, selectedRows, nativeEvent)
if (selected) {
if (selectedRowKeys.value.length == 100) {
message.warning('最多只能添加100个摄像头!')
if (selectedRowKeys.value.length == 1000) {
message.warning('最多只能添加1000个摄像头!')
} else {
selectedList.value.push(record)
selectedRowKeys.value.push(record.channelCode || record.channelId)
@ -734,8 +734,8 @@
selectedList.value.push(val)
selectedRowKeys.value.push(val.channelCode || val.channelId)
})
if (selectedRowKeys.value.length > 100) {
message.warning('最多只能添加100个摄像头!')
if (selectedRowKeys.value.length > 1000) {
message.warning('最多只能添加1000个摄像头!')
changeRows.map((val) => {
selectedList.value = selectedList.value.filter(
(item) => item.idtCameraChannel !== val.idtCameraChannel