From 4a104177bf18142829cc0b2111eb7ab2f1ece428 Mon Sep 17 00:00:00 2001 From: guoyue Date: Sun, 9 Oct 2022 15:46:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=EF=BC=9A=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=B8=AD=E5=BF=83=E5=8F=AA=E7=95=99=E7=94=B3=E8=B4=AD?= =?UTF-8?q?=E8=BD=A6=E5=92=8C=E6=88=91=E7=9A=84=E7=94=B3=E8=AF=B7=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/api/personalCenter.js | 8 + .../components/PurchaseVehicle.vue | 1800 ++++++++--------- .../personalCenter/components/asideMenu.vue | 35 +- 3 files changed, 890 insertions(+), 953 deletions(-) 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]) } })