BUG修改
This commit is contained in:
parent
16214e4cb2
commit
cccea9db0b
|
@ -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
|
||||||
|
|
|
@ -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 = () => {
|
||||||
|
|
Loading…
Reference in New Issue