首页通过资源申请跳转 默认进入政务云资源tab

This commit is contained in:
a0049873 2022-11-14 09:51:46 +08:00
parent 11a959022c
commit cb60a8736d
3 changed files with 519 additions and 520 deletions

View File

@ -1784,6 +1784,7 @@
Cardsname.value = name
newQuery.select = Cardsname.value
newQuery.type = ''
newQuery.zwy = ''
router
.replace({
query: newQuery,

View File

@ -1024,6 +1024,7 @@
}
//
let formPage = router.currentRoute.value.query.formPage || ''
let zwy = router.currentRoute.value.query.zwy || ''
// --
let facilitiesType = router.currentRoute.value.query.facilitiesType || ''
onMounted(() => {
@ -1053,11 +1054,16 @@
roomYuyue.value = false
roomResult.value = true
onSearch()
} else {
//
if (zwy) {
tabClick(0, '政务云资源')
} else {
tabClick(0, '城市云脑会客厅')
}
}
}
}
mybus.off('getListByParentId')
mybus.on('getListByParentId', (parentId) => {

View File

@ -13,14 +13,7 @@
<p></p>
<p>能力上架</p>
<!-- <a-button type="primary" >Open Modal</a-button> -->
<a-modal
v-model:visible="visible"
class="shangjia-class"
>
<a-modal v-model:visible="visible" class="shangjia-class">
<div class="ant-modal-title" id="vcDialogTitle1">
<!-- <div class="showBg"></div> -->
能力上架申请
@ -54,9 +47,7 @@
:key="item"
@click="componentTypeValueFunction(item)"
:class="
componentTypeValue == item
? 'ability-to-type-down'
: ''
componentTypeValue == item ? 'ability-to-type-down' : ''
"
>
{{ item }}
@ -67,10 +58,8 @@
<a-button class="shenqing" @click="handleOk">申请</a-button>
<a-button class="quxiao" @click="handlecancel">取消</a-button>
</template>
</a-modal>
</div>
</div>
</div>
</template>
@ -197,7 +186,10 @@ function jumpPage() {
// store.commit('WorkDynList', {
// selectCardsnum: '',
// })
console.log('选中===================>', store.getters['home/selectCardsnum'])
console.log(
'选中===================>',
store.getters['home/selectCardsnum']
)
// router.push({ path: '/DetailsPageconetent' })
router.push({
path: '/WorkDynList',
@ -243,6 +235,7 @@ const applyResource = () => {
path: '/DetailsPageconetent',
query: {
select: '基础设施',
zwy: true,
},
})
}
@ -277,7 +270,6 @@ const applyResource = () => {
color: #0058e1;
border-radius: 2px;
border: 1px #0058e1 solid;
}
}
.ant-modal-body {