西海岸:个人中心只留申购车和我的申请功能

This commit is contained in:
guoyue 2022-10-09 15:46:38 +08:00
parent af1c03d3ed
commit 4a104177bf
3 changed files with 890 additions and 953 deletions

View File

@ -236,6 +236,14 @@ export function selectResourceListByDept(params) {
params,
})
}
// 西--
export function selectResourceListByDeptName(params) {
return request({
url: '/resourcecar/selectResourceListByDeptName',
method: 'get',
params,
})
}
//
export function queryApplicationRelByResourceId(params) {
return request({

File diff suppressed because it is too large Load Diff

View File

@ -21,25 +21,27 @@ export default defineComponent({
components: {},
setup() {
const itShowXiHaiAn = whoShow.itShowXiHaiAn;
const car = {
title: '申购车',
img: require('@/assets/personalCenter/demand.png'),
imgActive: require('@/assets/personalCenter/demandactive.png'),
key: 'PurchaseVehicle',
}
const apply = {
title: '我的申请',
img: require('@/assets/personalCenter/apply.png'),
imgActive: require('@/assets/personalCenter/applyactive.png'),
key: 'apply',
}
let menuList = [
{
title: '申购车',
img: require('@/assets/personalCenter/demand.png'),
imgActive: require('@/assets/personalCenter/demandactive.png'),
key: 'PurchaseVehicle',
},
car,
{
title: '我的发布',
img: require('@/assets/personalCenter/push.png'),
imgActive: require('@/assets/personalCenter/pushactive.png'),
key: 'push',
},
{
title: '我的申请',
img: require('@/assets/personalCenter/apply.png'),
imgActive: require('@/assets/personalCenter/applyactive.png'),
key: 'apply',
},
apply,
{
title: '我的收藏',
img: require('@/assets/personalCenter/collect.png'),
@ -66,9 +68,8 @@ export default defineComponent({
},
]
// 西
if(itShowXiHaiAn) {
let _newArr = JSON.parse(JSON.stringify(menuList))
menuList = _newArr.splice(0, 1)
if (itShowXiHaiAn) {
menuList = [car, apply]
}
const selectedKeys = ref(['apply'])
@ -82,9 +83,9 @@ export default defineComponent({
}
onMounted(() => {
if(menuList[1]) {
if (menuList[1]) {
handleClick(menuList[1])
}else {
} else {
handleClick(menuList[0])
}
})