+
{{ userInfo.realNameShow }}
@@ -899,12 +915,12 @@
tabClick(0, '视频资源')
} else {
// 默认选中
- if(formPage && formPage == 'noticePage') {
+ if (formPage && formPage == 'noticePage') {
tabClick(0, '城市云脑会客厅')
roomYuyue.value = false
roomResult.value = true
onSearch()
- }else {
+ } else {
tabClick(0, '政务云资源')
}
}
@@ -958,7 +974,7 @@
let clickList = ref([]) //存储点击的tab
if (!isXiHaiAn) {
tabList.value.push({
- title: '视频标签',
+ title: '政务云资源',
content: [],
})
}
@@ -1383,6 +1399,7 @@
'点击tab================>',
indexFather,
name,
+ clickList.value,
clickList.value[indexFather]
)
@@ -1397,7 +1414,7 @@
tabList.value[1].title = '视频标签'
}
selectType.value = '视频资源'
- console.log('444------------>', 444);
+ console.log('444------------>', 444)
} else if (name == '政务云资源') {
room.value = true
tableHeight.value = 600
@@ -1579,8 +1596,11 @@
clickList.value[1].content = []
}
clickList.value[indexFather].content[0] = name
- console.log('clickList.value[indexFather].content[0]------------>', clickList.value[indexFather].content[0]);
-
+ console.log(
+ 'clickList.value[indexFather].content[0]------------>',
+ clickList.value[indexFather].content[0]
+ )
+
if (tabList.value[1]) {
tabList.value[1].title = ''
tabList.value[1].content = []
@@ -1814,22 +1834,32 @@
// 西海岸-视频资源loading
const loadingCamera = ref(false)
const getCamera = (flag, str) => {
- loadingCamera.value = true;
+ loadingCamera.value = true
if (flag) {
mapSearchParam.value.cameraName = str
}
console.log('初始化调用')
- console.log('不选左侧树的时候不调用接口', mapSearchParam.value)
+ console.log(
+ '不选左侧树的时候不调用接口',
+ mapSearchParam.value,
+ selectType.value
+ )
if (!whoShow1.value.itShowXiHaiAn) {
- getCameraByParentId(mapSearchParam.value).then((res) => {
- console.log('res--查询摄像头---------->', res);
- loadingCamera.value = false;
- dataSource.value = res.data.data
- pagination.value.total = res.data.count
- }).catch(err => {
- loadingCamera.value = false;
- message.error(err)
- })
+ if (selectType.value == '视频资源') {
+ getCameraByParentId(mapSearchParam.value)
+ .then((res) => {
+ console.log('res--查询摄像头---------->', res)
+ loadingCamera.value = false
+ dataSource.value = res.data.data
+ pagination.value.total = res.data.count
+ })
+ .catch((err) => {
+ loadingCamera.value = false
+ message.error(err)
+ })
+ } else {
+ loadingCamera.value = false
+ }
} else {
let params = {
regionId:
@@ -1866,15 +1896,17 @@
}
}
}
- getCameraByCondition(params).then((res) => {
- console.log('res--查询摄像头---------->', res);
- loadingCamera.value = false;
- dataSource.value = res.data.data
- pagination.value.total = res.data.count
- }).catch(err => {
- loadingCamera.value = false;
- message.error(err)
- })
+ getCameraByCondition(params)
+ .then((res) => {
+ console.log('res--查询摄像头---------->', res)
+ loadingCamera.value = false
+ dataSource.value = res.data.data
+ pagination.value.total = res.data.count
+ })
+ .catch((err) => {
+ loadingCamera.value = false
+ message.error(err)
+ })
}
}
defineExpose({
@@ -1884,7 +1916,7 @@
const addShoppingCart = () => {
if (selectedList.value.length > 0) {
let _arr = []
- selectedList.value.map(v => {
+ selectedList.value.map((v) => {
_arr.push({
delFlag: '0',
resourceId: v.idtCameraChannel,
@@ -1892,7 +1924,7 @@
})
})
xhaAddCart(_arr).then((res) => {
- if(res.data.code !== 0) {
+ if (res.data.code !== 0) {
return message.error(res.data.msg)
}
message.success('添加申购车成功!')
@@ -1929,7 +1961,7 @@
},
])
// 西海岸--状态展示
- if(isXiHaiAn) {
+ if (isXiHaiAn) {
columns.value.splice(2, 0, {
title: '状态',
dataIndex: 'status',
@@ -2085,236 +2117,104 @@
}
diff --git a/front/src/views/newHome/index.vue b/front/src/views/newHome/index.vue
index 3b524c7e..fc959896 100644
--- a/front/src/views/newHome/index.vue
+++ b/front/src/views/newHome/index.vue
@@ -1,8 +1,8 @@
@@ -32,21 +32,21 @@
import HomeFooter from '@/views/newHome/components/Footer'