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 @@
@@ -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 @@