政务云资源模糊查
This commit is contained in:
parent
778122d249
commit
9fe01b9d10
|
@ -510,9 +510,9 @@
|
|||
:resourceTotal="resourceTotal"
|
||||
></KnowledgeBase>
|
||||
</div>
|
||||
<div v-if="Cardsname == '基础设施'">
|
||||
<template v-if="Cardsname == '基础设施'">
|
||||
<infrastructureApplication></infrastructureApplication>
|
||||
</div>
|
||||
</template>
|
||||
<div class="talk-monitor" @click="openMonitor">
|
||||
<a-tooltip>
|
||||
<template #title>问答机器人</template>
|
||||
|
@ -1286,21 +1286,27 @@
|
|||
.replace({
|
||||
query: newQuery,
|
||||
})
|
||||
.then(() => {})
|
||||
mybus.emit('changeRoomInput', searchValue.value)
|
||||
if (
|
||||
whoShow1.value.itShowQingDao &&
|
||||
paramsGetResources.type == '基础设施'
|
||||
) {
|
||||
console.log('camera2', camera)
|
||||
camera.value.getCamera(true, searchValue.value)
|
||||
} else {
|
||||
if (storageSearchInfo) {
|
||||
getAppResources('分页查询')
|
||||
} else {
|
||||
getAppResources()
|
||||
}
|
||||
}
|
||||
.then(() => {
|
||||
mybus.emit('changeRoomInput', searchValue.value)
|
||||
if (
|
||||
whoShow1.value.itShowQingDao &&
|
||||
paramsGetResources.type == '基础设施'
|
||||
) {
|
||||
console.log('camera2', camera)
|
||||
let selectType = router.currentRoute.value.query.selectType
|
||||
if (selectType == '政务云资源') {
|
||||
camera.value.getGovernmentCloud()
|
||||
} else {
|
||||
camera.value.getCamera(true, searchValue.value)
|
||||
}
|
||||
} else {
|
||||
if (storageSearchInfo) {
|
||||
getAppResources('分页查询')
|
||||
} else {
|
||||
getAppResources()
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
const getAppResources = (switchIndex) => {
|
||||
if (!globalFlag.value) {
|
||||
|
|
|
@ -1566,6 +1566,15 @@
|
|||
selectedList.value = []
|
||||
if (clickList.value[indexFather].content.indexOf(name) != -1) {
|
||||
if (name == '视频资源') {
|
||||
let newQuery = JSON.parse(
|
||||
JSON.stringify(router.currentRoute.value.query)
|
||||
)
|
||||
newQuery.selectType = name
|
||||
router
|
||||
.replace({
|
||||
query: newQuery,
|
||||
})
|
||||
.then(() => {})
|
||||
room.value = true
|
||||
tableHeight.value = 330
|
||||
showMap.value = true
|
||||
|
@ -1575,6 +1584,15 @@
|
|||
selectType.value = '视频资源'
|
||||
console.log('444------------>', 444)
|
||||
} else if (name == '政务云资源') {
|
||||
let newQuery = JSON.parse(
|
||||
JSON.stringify(router.currentRoute.value.query)
|
||||
)
|
||||
newQuery.selectType = name
|
||||
router
|
||||
.replace({
|
||||
query: newQuery,
|
||||
})
|
||||
.then(() => {})
|
||||
room.value = true
|
||||
tableHeight.value = 600
|
||||
showMap.value = false
|
||||
|
@ -1594,7 +1612,25 @@
|
|||
pagination.value.total = 0
|
||||
selectType.value = '感知资源'
|
||||
} else if (name == '城市云脑会客厅') {
|
||||
let newQuery = JSON.parse(
|
||||
JSON.stringify(router.currentRoute.value.query)
|
||||
)
|
||||
newQuery.selectType = name
|
||||
router
|
||||
.replace({
|
||||
query: newQuery,
|
||||
})
|
||||
.then(() => {})
|
||||
} else if (name == '视频会议') {
|
||||
let newQuery = JSON.parse(
|
||||
JSON.stringify(router.currentRoute.value.query)
|
||||
)
|
||||
newQuery.selectType = name
|
||||
router
|
||||
.replace({
|
||||
query: newQuery,
|
||||
})
|
||||
.then(() => {})
|
||||
room.value = true
|
||||
tableHeight.value = 600
|
||||
showMap.value = false
|
||||
|
@ -1614,6 +1650,15 @@
|
|||
}
|
||||
} else {
|
||||
if (name == '视频资源') {
|
||||
let newQuery = JSON.parse(
|
||||
JSON.stringify(router.currentRoute.value.query)
|
||||
)
|
||||
newQuery.selectType = name
|
||||
router
|
||||
.replace({
|
||||
query: newQuery,
|
||||
})
|
||||
.then(() => {})
|
||||
selectType.value = '视频资源'
|
||||
wrjFlag.value = false
|
||||
tableHeight.value = 330
|
||||
|
@ -1654,6 +1699,15 @@
|
|||
emits('add', 1)
|
||||
getCamera()
|
||||
} else if (name == '政务云资源') {
|
||||
let newQuery = JSON.parse(
|
||||
JSON.stringify(router.currentRoute.value.query)
|
||||
)
|
||||
newQuery.selectType = name
|
||||
router
|
||||
.replace({
|
||||
query: newQuery,
|
||||
})
|
||||
.then(() => {})
|
||||
selectType.value = '政务云资源'
|
||||
tableHeight.value = 600
|
||||
showMap.value = false
|
||||
|
@ -1686,6 +1740,15 @@
|
|||
wrjFlag.value = false
|
||||
emits('add', 2)
|
||||
} else if (name == '视频会议') {
|
||||
let newQuery = JSON.parse(
|
||||
JSON.stringify(router.currentRoute.value.query)
|
||||
)
|
||||
newQuery.selectType = name
|
||||
router
|
||||
.replace({
|
||||
query: newQuery,
|
||||
})
|
||||
.then(() => {})
|
||||
selectType.value = '视频会议'
|
||||
tableHeight.value = 600
|
||||
showMap.value = false
|
||||
|
@ -1728,6 +1791,15 @@
|
|||
pagination.value.current = 1
|
||||
getSoldierData(indexFather, name)
|
||||
} else if (name == '城市云脑会客厅') {
|
||||
let newQuery = JSON.parse(
|
||||
JSON.stringify(router.currentRoute.value.query)
|
||||
)
|
||||
newQuery.selectType = name
|
||||
router
|
||||
.replace({
|
||||
query: newQuery,
|
||||
})
|
||||
.then(() => {})
|
||||
showMap.value = false
|
||||
dataSource.value = []
|
||||
dataSource2.value = []
|
||||
|
@ -2150,10 +2222,6 @@
|
|||
})
|
||||
}
|
||||
}
|
||||
defineExpose({
|
||||
getCamera,
|
||||
reSetSearch,
|
||||
})
|
||||
//加入申购车
|
||||
const addShoppingCart = () => {
|
||||
if (selectedList.value.length > 0) {
|
||||
|
@ -2323,10 +2391,11 @@
|
|||
}
|
||||
const governmentCloud = reactive({ data: [], total: 0, current: 1 })
|
||||
const getGovernmentCloud = (page) => {
|
||||
let roomStr = router.currentRoute.value.query.str
|
||||
getPolicyCloudService({
|
||||
limit: 5,
|
||||
page: page || 1,
|
||||
name: '',
|
||||
name: roomStr || '',
|
||||
type: clickList.value[1].content[0],
|
||||
}).then((res) => {
|
||||
console.log('获取政务云资源======》', res.data.data)
|
||||
|
@ -2394,6 +2463,12 @@
|
|||
message.warning(err)
|
||||
})
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
getCamera,
|
||||
reSetSearch,
|
||||
getGovernmentCloud,
|
||||
})
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
.infrastructrueBox {
|
||||
|
|
Loading…
Reference in New Issue