修复应用领域不能选中bug
This commit is contained in:
parent
4a2e8f4a62
commit
99f962c74f
|
@ -495,8 +495,8 @@ export default defineComponent({
|
||||||
DETAIL_PAGE_CONTENT_DEFAULT_TAB
|
DETAIL_PAGE_CONTENT_DEFAULT_TAB
|
||||||
console.log('select------------>', select)
|
console.log('select------------>', select)
|
||||||
// 例如:组件服务是大类型,selectSubType是组件服务的智能算法或图层服务等...
|
// 例如:组件服务是大类型,selectSubType是组件服务的智能算法或图层服务等...
|
||||||
const selectSubType = router.currentRoute.value.query.type || ''
|
let selectSubType = router.currentRoute.value.query.type || ''
|
||||||
const queryName = ref('')
|
let queryName = ref('')
|
||||||
const str = router.currentRoute.value.query.str
|
const str = router.currentRoute.value.query.str
|
||||||
const searchValue = ref(str)
|
const searchValue = ref(str)
|
||||||
const searchType = ref(str)
|
const searchType = ref(str)
|
||||||
|
@ -818,17 +818,16 @@ export default defineComponent({
|
||||||
console.log('val.selectedTags---123--------->', val.selectedTags);
|
console.log('val.selectedTags---123--------->', val.selectedTags);
|
||||||
let _index = val.selectedTags.findIndex(v => v == selectSubType)
|
let _index = val.selectedTags.findIndex(v => v == selectSubType)
|
||||||
val.selectedTags.splice(_index, 1, selectSubType)
|
val.selectedTags.splice(_index, 1, selectSubType)
|
||||||
changeShrink(queryName.value)
|
// changeShrink(queryName.value)
|
||||||
// val.selectedTags &&
|
// val.selectedTags &&
|
||||||
// val.selectedTags.splice(
|
// val.selectedTags.splice(
|
||||||
// val.selectedTags.indexOf(selectSubType),
|
// val.selectedTags.indexOf(selectSubType),
|
||||||
// 1
|
// 1
|
||||||
// )
|
// )
|
||||||
}
|
}
|
||||||
} else {
|
if(val.name == '应用领域' && val.selectedTags.length > 0) {
|
||||||
if (val.name == '应用领域' && val.selectedTags.length > 0) {
|
changeShrink(queryName.value)
|
||||||
changeShrink(val.name)
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -1457,6 +1456,9 @@ export default defineComponent({
|
||||||
router.currentRoute.value.query.appLiCation = ''
|
router.currentRoute.value.query.appLiCation = ''
|
||||||
tecHnosphere = router.currentRoute.value.query.tecHnosphere
|
tecHnosphere = router.currentRoute.value.query.tecHnosphere
|
||||||
appLiCation = router.currentRoute.value.query.appLiCation
|
appLiCation = router.currentRoute.value.query.appLiCation
|
||||||
|
// 清空
|
||||||
|
storageSearchInfo = null
|
||||||
|
selectSubType = ''
|
||||||
let newQuery = JSON.parse(
|
let newQuery = JSON.parse(
|
||||||
JSON.stringify(router.currentRoute.value.query)
|
JSON.stringify(router.currentRoute.value.query)
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue