能力分类进入能力集市,应用领域有选中时,展开

This commit is contained in:
guoyue 2022-10-25 17:53:17 +08:00
parent b561eff3ea
commit 05899ab616
1 changed files with 4 additions and 3 deletions

View File

@ -817,14 +817,14 @@ export default defineComponent({
if (!val) { if (!val) {
return return
} }
// todo
if (val.name === queryName.value) { if (val.name === queryName.value) {
if ( if (
val.selectedTags && val.selectedTags &&
val.selectedTags.indexOf(selectSubType) == -1 val.selectedTags.indexOf(selectSubType) == -1
) { ) {
val.selectedTags = [selectSubType] val.selectedTags = [selectSubType]
// changeShrink(queryName.value) //
changeShrink(queryName.value)
} else { } else {
val.selectedTags && val.selectedTags &&
val.selectedTags.splice( val.selectedTags.splice(
@ -1279,7 +1279,7 @@ export default defineComponent({
let info = { attrType: queryName.value, attrValue: selectSubType } let info = { attrType: queryName.value, attrValue: selectSubType }
paramsGetResources.infoList.push(info) paramsGetResources.infoList.push(info)
} }
// changeShrink(queryName.value) changeShrink(queryName.value)
paramsGetResources.type = select paramsGetResources.type = select
console.log('paramsGetResources---onMounted--------->', paramsGetResources); console.log('paramsGetResources---onMounted--------->', paramsGetResources);
} }
@ -1295,6 +1295,7 @@ export default defineComponent({
if (searchValue.value && !select) { if (searchValue.value && !select) {
globalSearch() globalSearch()
} else { } else {
//
judgeHasSubSelectType() judgeHasSubSelectType()
getAppResources2() getAppResources2()
listKey.value++ listKey.value++