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

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, params,
}) })
} }
// 西--
export function selectResourceListByDeptName(params) {
return request({
url: '/resourcecar/selectResourceListByDeptName',
method: 'get',
params,
})
}
// //
export function queryApplicationRelByResourceId(params) { export function queryApplicationRelByResourceId(params) {
return request({ return request({

File diff suppressed because it is too large Load Diff

View File

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