From f54169dfa36dcca068f45ae7bbb44b96ebcc5a7d Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Fri, 5 Aug 2022 17:02:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=E6=8C=82=E8=BD=BDBUG?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=20=20=20=20=20=20=E5=89=8D=E5=8F=B0?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E8=B5=84=E6=BA=90=E4=B8=8A=E9=99=90=E6=94=B9?= =?UTF-8?q?=E4=B8=BA1000?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/src/views/modules/ability/bsabilityai.vue | 8 ++++++-- front/src/views/home/infrastructurePage.vue | 10 +++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue index 11b91214..1cf82d5d 100644 --- a/back/src/views/modules/ability/bsabilityai.vue +++ b/back/src/views/modules/ability/bsabilityai.vue @@ -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('算法类别') diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index a17d0296..434d5966 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -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