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