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

View File

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