BUG修改
This commit is contained in:
parent
ce1de07732
commit
704cfb08dd
|
@ -143,7 +143,7 @@
|
|||
show-size-changer
|
||||
show-less-items
|
||||
show-quick-jumper
|
||||
:showTotal="total => `共 ${total} 项`"
|
||||
:showTotal="(total) => `共 ${total} 项`"
|
||||
:total="resourceTotal"
|
||||
:page-size-options="pageSizeOptions"
|
||||
@change="pageChange"
|
||||
|
@ -514,7 +514,11 @@
|
|||
<template v-if="Cardsname == '基础设施'">
|
||||
<infrastructureApplication></infrastructureApplication>
|
||||
</template>
|
||||
<div class="talk-monitor" @click="openMonitor">
|
||||
<div
|
||||
class="talk-monitor"
|
||||
@click="openMonitor"
|
||||
v-if="Cardsname != '基础设施'"
|
||||
>
|
||||
<a-tooltip>
|
||||
<template #title>问答机器人</template>
|
||||
<i></i>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* @Author: Light
|
||||
* @Date: 2022-11-18 11:53:43
|
||||
* @LastEditors: Light
|
||||
* @LastEditTime: 2022-11-23 10:32:10
|
||||
* @LastEditTime: 2022-11-24 15:43:35
|
||||
* @Description: 告诉大家这是什么
|
||||
-->
|
||||
<template>
|
||||
|
@ -282,6 +282,7 @@
|
|||
}
|
||||
}
|
||||
const handleOk = () => {
|
||||
console.log('id', instanceId.value)
|
||||
endProcess({ instanceId: instanceId.value }).then((res) => {
|
||||
if (res.data.code == 0) {
|
||||
message.success('撤销成功')
|
||||
|
|
|
@ -137,17 +137,26 @@
|
|||
getApplyCameraListXha().then(res => {
|
||||
let flag = true
|
||||
if (res.data.code == 0) {
|
||||
res.data.data.map((val) => {
|
||||
val.cameraInfo = JSON.parse(val.cameraInfo)
|
||||
console.log('applyNowapplyNow',val.cameraInfo);
|
||||
if(flag && val.cameraInfo.channelId == item.channelId){
|
||||
flag = false
|
||||
}
|
||||
})
|
||||
if(res.data.data.length >=10 ){
|
||||
message.warning('最多只能申请10个感知资源!')
|
||||
return
|
||||
}else{
|
||||
res.data.data.map((val) => {
|
||||
val.cameraInfo = JSON.parse(val.cameraInfo)
|
||||
console.log('applyNowapplyNow',val.cameraInfo);
|
||||
if(flag && val.cameraInfo.channelId == item.channelId){
|
||||
flag = false
|
||||
}
|
||||
})
|
||||
}
|
||||
if(flag){
|
||||
willApplyCameraSelect().then(res => {
|
||||
if (res.data.code == 0) {
|
||||
res.data.data.map(val => {
|
||||
willApplyCameraSelect().then(res1 => {
|
||||
if (res1.data.code == 0) {
|
||||
if(res.data.data.length+res1.data.data.length>=10){
|
||||
message.warning('最多只能申请10个感知资源!')
|
||||
return
|
||||
}
|
||||
res1.data.data.map(val => {
|
||||
if(item.channelId == val.channelId){
|
||||
item.id = val.id
|
||||
}
|
||||
|
@ -184,7 +193,7 @@
|
|||
}
|
||||
})
|
||||
}else{
|
||||
message.warning('该摄像头已申请!')
|
||||
message.warning('该感知资源已申请!')
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue