From c4ae6d603a821ba570f992e0a50e3c0819d6395e Mon Sep 17 00:00:00 2001 From: guoyue Date: Sun, 9 Oct 2022 13:52:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=E8=B4=AD=E7=89=A9?= =?UTF-8?q?=E8=BD=A6=E7=AD=89=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/AbilityToApplyFor.vue | 6 +- front/src/views/home/apply.vue | 1543 ++++++++--------- front/src/views/home/infrastructurePage.vue | 14 +- .../components/PurchaseVehicle.vue | 53 +- .../personalCenter/components/asideMenu.vue | 237 +-- 5 files changed, 895 insertions(+), 958 deletions(-) diff --git a/front/src/views/home/AbilityToApplyFor.vue b/front/src/views/home/AbilityToApplyFor.vue index 4f23d218..84cf6400 100644 --- a/front/src/views/home/AbilityToApplyFor.vue +++ b/front/src/views/home/AbilityToApplyFor.vue @@ -89,11 +89,15 @@ {{ val.type }} + +
{{ val.description || ((val.note1 || '') && - (JSON.parse(val.note1)[0].channelName || '--') + + (JSON.parse(val.note1) && JSON.parse(val.note1)[0] && JSON.parse(val.note1)[0].channelName || '--') + '等' + JSON.parse(val.note1).length + '个摄像头') || diff --git a/front/src/views/home/apply.vue b/front/src/views/home/apply.vue index 074472f4..71624d81 100644 --- a/front/src/views/home/apply.vue +++ b/front/src/views/home/apply.vue @@ -8,159 +8,69 @@
- +
- - + + - - + +
- - + + - - + + - - - - + + + + {{ item.name }}
- + - + - - + +
- - + +
- + " type="primary" html-type="cancle" @click="resetFields()"> 退出申请 - + " type="primary" html-type="submit" @click="processStartHandle()"> 提交申请
@@ -211,306 +112,242 @@
diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index ac566f31..1912d8a3 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -453,14 +453,14 @@ 批量预览 - 添加至申购车 - + --> ', 444); + } else if (name == '政务云资源') { room.value = true tableHeight.value = 600 @@ -1479,7 +1481,12 @@ mapSearchParam.value.labelCodes.push(item.labelCode) }) } - console.log('选中的标签code', mapSearchParam.value) + // todo + mapSearchParam.value.gpsX = '' + mapSearchParam.value.gpsY = '' + mapSearchParam.value.radius = '' + mapSearchParam.value.type = '' + console.log('mapSearchParam----->查询条件', mapSearchParam.value) mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + '' emits('add', 1) getCamera() @@ -1863,7 +1870,6 @@ mapSearchParam.value.parentId || '70be8c5b664f4bcf869d82f2e8335051', pageNum: mapSearchParam.value.pageNum, pageSize: mapSearchParam.value.pageSize, - name: mapSearchParam.value.cameraName || '', longitude: mapSearchParam.value.gpsX || '', latitude: mapSearchParam.value.gpsY || '', radius: mapSearchParam.value.radius || '', diff --git a/front/src/views/personalCenter/components/PurchaseVehicle.vue b/front/src/views/personalCenter/components/PurchaseVehicle.vue index 84244d7d..9f6affdc 100644 --- a/front/src/views/personalCenter/components/PurchaseVehicle.vue +++ b/front/src/views/personalCenter/components/PurchaseVehicle.vue @@ -93,8 +93,11 @@ :checked="val.checked" @click.stop="checkedDept(val)" > - - {{ val.deptName + '(' + val.count + ')' }} + + {{ val.deptName}} + + + {{ val.deptName + '(' + val.count + ')' }}
@@ -113,13 +116,13 @@ @@ -144,8 +147,9 @@ {{ item.type }} + - 加购时间:{{ item.time }} + 加购时间:{{ item.time }} { getList('init') @@ -498,7 +503,8 @@ pageSize: pageSize.value, name: name.value, }).then((res) => { - console.log('res-----selectResourceCarGroupByDept------->', res); + console.log('res---获取信息--------->', res); + let statistics = 0 res.data.data.list.map((val) => { val.initLoading = true @@ -541,13 +547,19 @@ // 通过deptid查询列表 const getListByDeptId = (item) => { console.log(item, 'item') - if (item.children && item.children.length == 0) { - selectResourceListByDept({ + if (item.children.length == 0) { + let _obj = { pageNum: item.pageNum, pageSize: item.pageSize, - deptId: item.deptId, + deptId: item.deptId || '', name: name.value, - }).then((res) => { + } + // 西海岸 todo + if(whoShow.itShowXiHaiAn) { + _obj.key = item.deptName + } + selectResourceListByDept(_obj).then((res) => { + console.log('res----根据部门查询-------->', res); // console.log( // '根据部门查询=============>', // item, @@ -625,16 +637,17 @@ } // 点击部门多选框 const checkedDept = (item) => { - // console.log( - // '点击部门多选框==================>', - // item, - // checkedList.value, - // checkAll.value - // ) + console.log( + '点击部门多选框==================>', + item, + checkedList.value, + checkAll.value + ) item.checked = !item.checked if (item.checked) { if (item.children.length > 0) { item.children.map((val) => { + console.log('val.id------------>', val.id); if (checkedListAbility.value.indexOf(val.id) == -1) { checkedListAbility.value.push(val.id) item.checkedList.push(val.id) @@ -822,8 +835,15 @@ } else { let arr = [] let delArr = [] + console.log('list.value------------>', list.value); + list.value.map((val) => { val.arr = val.children.filter((item) => { + if(whoShow.itShowXiHaiAn) { + item.type = '基础设施'; + item.resourceName = '摄像头列表'; + item.resourceId = '1522550195055828996'; + } console.log('选择的数据=============>', item) if (checkedListAbility.value.indexOf(item.id) > -1) { if (item.delFlag == 0) { @@ -841,6 +861,7 @@ if (arr.length > 0) { console.log('一键申请===================>', arr) localStorage.setItem('applyList', JSON.stringify(arr)) + return; router.push({ path: '/apply', }) diff --git a/front/src/views/personalCenter/components/asideMenu.vue b/front/src/views/personalCenter/components/asideMenu.vue index 8e64a0a8..1b47ce7d 100644 --- a/front/src/views/personalCenter/components/asideMenu.vue +++ b/front/src/views/personalCenter/components/asideMenu.vue @@ -1,136 +1,137 @@