西海岸:能力集市--默认选中基础设施

This commit is contained in:
guoyue 2022-09-29 17:21:54 +08:00
parent 48bfe71c6f
commit bafe53bc67
4 changed files with 15 additions and 3 deletions

View File

@ -459,4 +459,11 @@ export function soldierApply(data) {
method: 'post',
data,
})
}
// 西--
export function getMaxApplyNum(number) {
return request({
url: '/processForm/tabilityapplication/canApply/' + number,
method: 'get',
})
}

View File

@ -507,4 +507,5 @@ export const RECOURCE_G_ICON = {
}
// -tab
export const DETAIL_PAGE_CONTENT_DEFAULT_TAB = '应用资源'
// 西-
export const DETAIL_PAGE_CONTENT_DEFAULT_TAB = whoShow.itShowXiHaiAn ? '基础设施' : '应用资源'

View File

@ -739,6 +739,7 @@
//
import infrastructurePage from '@/views/home/infrastructurePage.vue'
import detailsPageInfrastructureTree from '@/views/home/detailsPageInfrastructureTree.vue'
import { DETAIL_PAGE_CONTENT_DEFAULT_TAB } from '@/global/GlobalConfig.js'
import { message } from 'ant-design-vue'
import {
@ -781,7 +782,8 @@
let currentPageSize = ref(5)
const pageSizeOptions = ref(['5', '10', '20', '50'])
const router = useRouter()
let select = router.currentRoute.value.query.select || '应用资源'
// let select = router.currentRoute.value.query.select || ''
let select = router.currentRoute.value.query.select || DETAIL_PAGE_CONTENT_DEFAULT_TAB
const select2 = router.currentRoute.value.query.select
const str = router.currentRoute.value.query.str
const searchValue = ref(str)

View File

@ -100,6 +100,8 @@
import mybus from '@/myplugins/mybus'
import { useRouter } from 'vue-router'
import { UpOutlined, DownOutlined } from '@ant-design/icons-vue'
import { DETAIL_PAGE_CONTENT_DEFAULT_TAB } from '@/global/GlobalConfig.js'
export default defineComponent({
setup() {
const selectedKeys = ref([])
@ -118,7 +120,7 @@
'router.currentRoute.value.query.select',
router.currentRoute.value.query.select
)
let select = router.currentRoute.value.query.select
let select = router.currentRoute.value.query.select || DETAIL_PAGE_CONTENT_DEFAULT_TAB
if (select === '123') {
select = ''
}