diff --git a/front/src/api/personalCenter.js b/front/src/api/personalCenter.js index 7b65fd5f..5410444e 100644 --- a/front/src/api/personalCenter.js +++ b/front/src/api/personalCenter.js @@ -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({ diff --git a/front/src/views/personalCenter/components/PurchaseVehicle.vue b/front/src/views/personalCenter/components/PurchaseVehicle.vue index c889ef03..66a7bc81 100644 --- a/front/src/views/personalCenter/components/PurchaseVehicle.vue +++ b/front/src/views/personalCenter/components/PurchaseVehicle.vue @@ -12,75 +12,22 @@
- +
- - + + 批量删除 - + 批量删除 - + 批量收藏 - + 一键申请
@@ -89,59 +36,45 @@
- + {{ val.deptName}} - {{ val.deptName + '(' + val.count + ')' }} + {{ val.deptName + '(' + val.count + ')' }}
- + - +
- - + + diff --git a/front/src/views/personalCenter/components/asideMenu.vue b/front/src/views/personalCenter/components/asideMenu.vue index d87f933f..3a5883a7 100644 --- a/front/src/views/personalCenter/components/asideMenu.vue +++ b/front/src/views/personalCenter/components/asideMenu.vue @@ -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 = [ + car, { - title: '申购车', - img: require('@/assets/personalCenter/demand.png'), - imgActive: require('@/assets/personalCenter/demandactive.png'), - key: 'PurchaseVehicle', - }, - { 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]) } })