BUG修改

This commit is contained in:
a0049873 2022-11-14 17:48:35 +08:00
parent 16214e4cb2
commit cccea9db0b
2 changed files with 26 additions and 22 deletions

View File

@ -904,6 +904,9 @@
searchValue.value = ''
globalFlag.value = false
globalData.data = []
if (Cardsname.value == '基础设施') {
camera.value.reSetSearch()
}
}
paramsGetResources.name = searchValue.value
//
@ -932,8 +935,10 @@
mybus.emit('chongzhi')
console.log(
'paramsGetResources---chongzhi-重置-------->',
paramsGetResources
paramsGetResources,
flag
)
getAppResources()
}
//
@ -1196,25 +1201,20 @@
return sortArr.indexOf(a) - sortArr.indexOf(b)
})
console.log('arr', arr, Cardsname.value)
// if (Cardsname.value === arr[0]) {
// getAppResources2()
// } else {
// changeCards(arr[0])
// }
if (arr[0]) {
changeCards(arr[0])
if (Cardsname.value === arr[0] && arr[0] == '基础设施') {
getAppResources2()
} else {
changeCards('应用资源')
changeCards(arr[0])
}
if (!mapFlag) {
return
}
if (paramsGetResources.type == '基础设施') {
console.log('camera1', camera.value)
camera.value.getCamera(true, searchValue.value)
} else {
getAppResources()
}
// if (paramsGetResources.type == '') {
// console.log('camera1', camera.value)
// camera.value.getCamera(true, searchValue.value)
// } else {
// getAppResources()
// }
console.log(
'paramsGetResources--globalSearch---------->',
paramsGetResources

View File

@ -55,12 +55,12 @@
size="large"
@search="onSearch"
/>
<a-button
<!-- <a-button
style="width: 0.8rem; height: 0.36rem; margin-left: 0.7rem"
@click="reSetSearch"
>
重置
</a-button>
</a-button> -->
</div>
</div>
<div v-if="roomYuyue">
@ -945,10 +945,6 @@
const fileList = ref([])
const useForm = Form.useForm
const roomInput = ref('')
let roomStr = router.currentRoute.value.query.str
if (roomStr) {
roomInput.value = roomStr
}
const rulesRef = reactive({
bookDate: [
{
@ -1028,6 +1024,12 @@
// --
let facilitiesType = router.currentRoute.value.query.facilitiesType || ''
onMounted(() => {
console.log('基础设施初始化')
let roomStr = router.currentRoute.value.query.str
if (roomStr) {
roomInput.value = roomStr
getCamera()
}
//
handleUser()
if (jcssType.value) {
@ -1264,6 +1266,7 @@
}
//
const reSetSearch = () => {
console.log('重置')
roomInput.value = ''
searchData()
chengguoSearch()
@ -2025,7 +2028,7 @@
if (flag) {
mapSearchParam.value.cameraName = str
}
console.log('初始化调用')
console.log('初始化调用', flag)
console.log(
'不选左侧树的时候不调用接口',
mapSearchParam.value,
@ -2098,6 +2101,7 @@
}
defineExpose({
getCamera,
reSetSearch,
})
//
const addShoppingCart = () => {