首页通过资源申请跳转 默认进入政务云资源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 Cardsname.value = name
newQuery.select = Cardsname.value newQuery.select = Cardsname.value
newQuery.type = '' newQuery.type = ''
newQuery.zwy = ''
router router
.replace({ .replace({
query: newQuery, query: newQuery,

View File

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

View File

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