From 4281bc515655eb46bbc67b3a5ea96d16dfa411c2 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Tue, 1 Nov 2022 10:43:16 +0800 Subject: [PATCH 01/14] =?UTF-8?q?=E5=90=8E=E5=8F=B0-=E8=83=BD=E5=8A=9B?= =?UTF-8?q?=E6=8C=82=E6=8E=A5-=E7=BB=84=E4=BB=B6=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=EF=BC=9A=E6=9F=A5=E4=B8=8D=E5=88=B0=E6=95=B0=E6=8D=AE=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E5=B0=B1=E6=AD=A3=E5=B8=B8=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E6=9A=82=E6=97=A0=E6=95=B0=E6=8D=AE=E5=B0=B1=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=EF=BC=8C=E6=B2=A1=E5=BF=85=E8=A6=81=E8=BF=99=E6=A0=B7=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/modules/ability/bsabilityai.vue | 2 +- .../modules/ability/bsabilityservice.vue | 2 +- .../algorithm/algorithm-management.vue | 2 +- .../src/views/modules/canassigncase/index.vue | 170 +++++++++--------- 4 files changed, 88 insertions(+), 88 deletions(-) diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue index 41bbff3c..12f6a410 100644 --- a/back/src/views/modules/ability/bsabilityai.vue +++ b/back/src/views/modules/ability/bsabilityai.vue @@ -514,7 +514,7 @@ export default { this.total = 0 return this.$message.error(res.msg) } - if (res.data.list.length !== 0) { + if (res.data.list.length >= 0) { this.dataList = res.data.list this.total = this.mixinViewModuleOptions.getDataListIsPage ? res.data.total diff --git a/back/src/views/modules/ability/bsabilityservice.vue b/back/src/views/modules/ability/bsabilityservice.vue index cf592690..668a0668 100644 --- a/back/src/views/modules/ability/bsabilityservice.vue +++ b/back/src/views/modules/ability/bsabilityservice.vue @@ -393,7 +393,7 @@ export default { this.total = 0 return this.$message.error(res.msg) } - if (res.data.list.length !== 0) { + if (res.data.list.length >= 0) { this.dataList = res.data.list this.total = this.mixinViewModuleOptions.getDataListIsPage ? res.data.total diff --git a/back/src/views/modules/algorithm/algorithm-management.vue b/back/src/views/modules/algorithm/algorithm-management.vue index 839664ba..3dba3e36 100644 --- a/back/src/views/modules/algorithm/algorithm-management.vue +++ b/back/src/views/modules/algorithm/algorithm-management.vue @@ -249,7 +249,7 @@ export default { this.total = 0 return this.$message.error(res.msg) } - if (res.data.list.length !== 0) { + if (res.data.list.length >= 0) { this.dataList = res.data.list this.total = this.mixinViewModuleOptions.getDataListIsPage ? res.data.total diff --git a/back/src/views/modules/canassigncase/index.vue b/back/src/views/modules/canassigncase/index.vue index 9489a202..b6d2f5cc 100644 --- a/back/src/views/modules/canassigncase/index.vue +++ b/back/src/views/modules/canassigncase/index.vue @@ -131,54 +131,54 @@ diff --git a/front/src/views/home/components/DetailsView_backL.vue b/front/src/views/home/components/DetailsView_backL.vue index f1985325..af0b7beb 100644 --- a/front/src/views/home/components/DetailsView_backL.vue +++ b/front/src/views/home/components/DetailsView_backL.vue @@ -2,7 +2,7 @@
- 能力集市 + 能力超市  /  查看详情
diff --git a/front/src/views/home/components/header.vue b/front/src/views/home/components/header.vue index bac92f97..9acd5daa 100644 --- a/front/src/views/home/components/header.vue +++ b/front/src/views/home/components/header.vue @@ -10,8 +10,8 @@
-

城市云脑通用能力服务平台

-

(United Capacity System)

+

政务信息系统生态运营平台

+

(Government information ecological operation platform)

{ - if(res.data.data.superAdmin =='1'){ + if (res.data.data.superAdmin == '1') { backFlag.value = true } else { - res.data.data.roleIdList.map((val) => { - getRole(val).then((role) => { - if (role.data.data.name === '后台管理员') { - backFlag.value = true - } + res.data.data.roleIdList.map((val) => { + getRole(val).then((role) => { + if (role.data.data.name === '后台管理员') { + backFlag.value = true + } + }) }) - }) } }) console.log('navList------------>', navList) @@ -209,7 +209,7 @@ path: '/abilityStatistics', }) break - case '能力集市': + case '能力超市': router.push({ path: '/DetailsPageconetent', query: { diff --git a/front/src/views/home/constantData/showData.js b/front/src/views/home/constantData/showData.js index 85602f8a..defad213 100644 --- a/front/src/views/home/constantData/showData.js +++ b/front/src/views/home/constantData/showData.js @@ -1,15 +1,22 @@ +/* + * @Author: Light + * @Date: 2022-09-14 10:48:25 + * @LastEditors: Light + * @LastEditTime: 2022-11-01 15:56:52 + * @Description: 告诉大家这是什么 + */ export const titleNameArray = [ { photo: require('@/assets/newHome/banner-yy.png'), - name: '应用资源', + name: '应用系统', }, { photo: require('@/assets/newHome/banner-zj.png'), - name: '组件服务', + name: 'GIS图层', }, { photo: require('@/assets/newHome/banner-jc.png'), - name: '基础设施', + name: '视频资源', }, { photo: require('@/assets/newHome/banner-sj.png'), @@ -17,7 +24,7 @@ export const titleNameArray = [ }, { photo: require('@/assets/newHome/banner-zs.png'), - name: '知识库', + name: '云网资源', }, ] diff --git a/front/src/views/home/detailsPageconetentTree.vue b/front/src/views/home/detailsPageconetentTree.vue index d3bd2e2f..59b2e2eb 100644 --- a/front/src/views/home/detailsPageconetentTree.vue +++ b/front/src/views/home/detailsPageconetentTree.vue @@ -128,11 +128,11 @@ title: 'name', } const store = useStore() - // 用户信息 - const user = ref({ - deptName: store.getters['user/deptName'], - deptId: store.getters['user/deptId'], - }) + // 用户信息 + const user = ref({ + deptName: store.getters['user/deptName'], + deptId: store.getters['user/deptId'], + }) const showKey = ref(0) const treeData = ref([]) const init = () => { @@ -145,7 +145,7 @@ if (select === '123') { select = '' } - + console.log( '获取url中的select=====================>', router.currentRoute.value.query.select @@ -169,6 +169,7 @@ } switch (val.type) { case '市级': + case '省级': case '企业': case '其他': generateChildren(val, obj) @@ -186,33 +187,33 @@ return sortArr.indexOf(a.key) - sortArr.indexOf(b.key) }) //根据不同的权限展示不同的能力超市左侧树 - // let deptId=user.value.deptId - // treeData.value.forEach((child) => { - // let childern=child.children - // childern.forEach((childs) => {//第一层:市级 - // if(childs.key==deptId ){ - // childs.show=true - // child.show=true - // mybus.emit('paramsGetResources', [childs.key]) - // selectId.value =childs.key - // } - // if(childs.children && childs.children.length>0){//第二层 区级 - // let qu=childs.children - // qu.forEach((qu) => { - // if(qu.key==deptId ){ - // qu.show=true - // childs.show=true - // child.show=true - // mybus.emit('paramsGetResources', [qu.key]) - // selectId.value = qu.key - // } - // }) - // } - // }) - - // }) + // let deptId=user.value.deptId + // treeData.value.forEach((child) => { + // let childern=child.children + // childern.forEach((childs) => {//第一层:市级 + // if(childs.key==deptId ){ + // childs.show=true + // child.show=true + // mybus.emit('paramsGetResources', [childs.key]) + // selectId.value =childs.key + // } + // if(childs.children && childs.children.length>0){//第二层 区级 + // let qu=childs.children + // qu.forEach((qu) => { + // if(qu.key==deptId ){ + // qu.show=true + // childs.show=true + // child.show=true + // mybus.emit('paramsGetResources', [qu.key]) + // selectId.value = qu.key + // } + // }) + // } + // }) + + // }) console.log('左侧树结构数据======================>', treeData.value) - + showKey.value++ }) } @@ -222,7 +223,6 @@ }) // 生成children const generateChildren = (val, obj) => { - if (val.dataList.length > 0) { val.dataList.forEach((child) => { let children = { @@ -232,14 +232,13 @@ total: child.deptCount, key: child.deptId, } - + obj.children.push(children) }) } } // 区级特殊处理 const generateChildren2 = (val, obj) => { - if (val.dataList.length > 0) { val.dataList.forEach((dis) => { let children = { @@ -259,7 +258,7 @@ select: false, key: child.deptId, } - + children.children.push(children2) }) } diff --git a/front/src/views/instructionManual/components/TheOverallProcess.vue b/front/src/views/instructionManual/components/TheOverallProcess.vue index a09fb3e8..7ccb7c2b 100644 --- a/front/src/views/instructionManual/components/TheOverallProcess.vue +++ b/front/src/views/instructionManual/components/TheOverallProcess.vue @@ -5,7 +5,7 @@
- 能力集市 + 能力超市 能力查阅 审核发布/下架 申请 diff --git a/front/src/views/instructionManual/components/menuBook.vue b/front/src/views/instructionManual/components/menuBook.vue index d27eb5fe..0a70ab56 100644 --- a/front/src/views/instructionManual/components/menuBook.vue +++ b/front/src/views/instructionManual/components/menuBook.vue @@ -257,7 +257,7 @@ path: '/DetailsPageconetent', query: { // select: '组件服务', - select: DETAIL_PAGE_CONTENT_DEFAULT_TAB + select: DETAIL_PAGE_CONTENT_DEFAULT_TAB, }, }) window.location.href = newpage.href diff --git a/front/src/views/newHome/components/CapabilityConvergence.vue b/front/src/views/newHome/components/CapabilityConvergence.vue index 5cfa10e3..11b4f681 100644 --- a/front/src/views/newHome/components/CapabilityConvergence.vue +++ b/front/src/views/newHome/components/CapabilityConvergence.vue @@ -7,20 +7,7 @@
-
组件服务
-
- {{ item.name + '-' + item.num + '项' }} -
-
查看更多
-
-
-
应用资源
+
应用系统
- {{ item.name + '-' + item.num + '项' }} + + {{ index + 1 }}-{{ item.name }}
-
查看更多
+
查看更多
-
基础设施
+
GIS图层
+
+ + {{ index + 1 }}-{{ item.name }} +
+
查看更多
+
+
+
视频资源
- {{ + + {{ index + 1 }}-{{ item.name }}
-
查看更多
+
查看更多
数据资源
@@ -63,12 +66,13 @@ :class="index == 4 ? 'name-last' : ''" @click="selectOne3(item.name)" > + {{ index + 1 }}-{{ item.name }}
查看更多
-
知识库
+
云网资源
{{ index + 1 }}-{{ item.name }}
-
查看更多
+
查看更多
@@ -104,7 +108,7 @@ const jcList = ref([]) const sjList = ref([]) const yyList = ref([]) - // 知识库模块数据 + // 云网资源模块数据 const zsList = ref([]) // const jcList = ref([]) const paramsGetResources = { @@ -131,131 +135,196 @@ const getAppResources = (type, obj) => { paramsGetResources.type = type if (type === '数据资源' && !whoShow1.value.itShowBaoTou) { - getDataResource({ - serviceName: paramsGetResources.name || '', //资源名称 - orderField: whoShow1.value.itShowQingDao ? 'fbrq' : 'createTime', //排序字段 - orderType: paramsGetResources.orderType.toLowerCase(), //排序方式:desc,asc - pageNum: paramsGetResources.pageNum, //页码 - pageSize: paramsGetResources.pageSize, //分页大小 - }).then((res) => { - console.log('数据资源==================>', res.data.data) - if (whoShow1.value.itShowQingDao) { - res.data.data.data.forEach((val) => { - val.id = val.guid // id - val.name = val.zyname // 名字 - val.sjlCount = val.sjcczl // 数据量 - val.applyCount = val.syqk // 申请量 - val.deptName = val.TGBM // 部门 - val.createDate = val.fbrq // 发布时间 - val.description = val.xgxt // 描述 - }) - obj.value = res.data.data.data || [] - object.sjNum = res.data.data.rows - } else if (whoShow1.value.itShowXiHaiAn) { - res.data.data.list.forEach((val) => { - val.id = val.serviceId // id - val.name = val.serviceName // 名字 - val.sjlCount = val.requestQuantity // 数据量 - val.applyCount = val.requestCount // 申请量 - val.deptName = val.departmentName // 部门 - val.createTime = val.createTime.split('.')[0] - val.createDate = val.createTime // 发布时间 - }) - obj.value = res.data.data.list || [] - object.sjNum = res.data.data.total - } - }) + sjList.value = [ + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + ] + // getDataResource({ + // serviceName: paramsGetResources.name || '', //资源名称 + // orderField: whoShow1.value.itShowQingDao ? 'fbrq' : 'createTime', //排序字段 + // orderType: paramsGetResources.orderType.toLowerCase(), //排序方式:desc,asc + // pageNum: paramsGetResources.pageNum, //页码 + // pageSize: paramsGetResources.pageSize, //分页大小 + // }).then((res) => { + // console.log('数据资源==================>', res.data.data) + // if (whoShow1.value.itShowQingDao) { + // res.data.data.data.forEach((val) => { + // val.id = val.guid // id + // val.name = val.zyname // 名字 + // val.sjlCount = val.sjcczl // 数据量 + // val.applyCount = val.syqk // 申请量 + // val.deptName = val.TGBM // 部门 + // val.createDate = val.fbrq // 发布时间 + // val.description = val.xgxt // 描述 + // }) + // obj.value = res.data.data.data || [] + // object.sjNum = res.data.data.rows + // } else if (whoShow1.value.itShowXiHaiAn) { + // res.data.data.list.forEach((val) => { + // val.id = val.serviceId // id + // val.name = val.serviceName // 名字 + // val.sjlCount = val.requestQuantity // 数据量 + // val.applyCount = val.requestCount // 申请量 + // val.deptName = val.departmentName // 部门 + // val.createTime = val.createTime.split('.')[0] + // val.createDate = val.createTime // 发布时间 + // }) + // obj.value = res.data.data.list || [] + // object.sjNum = res.data.data.total + // } + // }) } else { let type = paramsGetResources.type - if (type == '基础设施') { - jcList.value = [] - selectInfrastructureList().then((res) => { - console.log('基础设施------res------>', res) - for (const key in res.data.data) { - if (whoShow1.value.itShowXiHaiAn) { - if (key === '视频资源') { - jcList.value.push({ - name: key, - num: res.data.data[key], - }) - } - } else { - jcList.value.push({ - name: key, - num: res.data.data[key], - }) - } - } - // jcList.value.push({ - // name: '会客厅', - // num: 4, - // }) - // 西海岸-单兵设备、无人机 获取数量 - if (whoShow1.value.itShowXiHaiAn) { - getSoldierData('无人机') - .then((res) => { - let { total = 0 } = res.data.data - jcList.value.push({ - name: '无人机', - num: total, - }) - }) - .catch((err) => { - console.log('err--无人机---------->', err) - }) - getSoldierData('单兵设备') - .then((res) => { - let { total = 0 } = res.data.data - jcList.value.push({ - name: '单兵设备', - num: total, - }) - }) - .catch((err) => { - console.log('err--单兵设备---------->', err) - }) - } - }) - } else if (type == '组件服务') { - zjList.value = [] - selectCollectComponentList().then((res) => { - console.log('组件服务----res-------->', res) - for (const key in res.data.data) { - console.log('key------------>', key) - zjList.value.push({ - name: key, - num: res.data.data[key], - }) - } - console.log('zjList------------>', zjList) - }) - } else if (type == '应用资源') { - yyList.value = [] - selectCollectResourceList().then((res) => { - console.log('应用资源---res--------->', res) - for (const key in res.data.data) { - yyList.value.push({ - name: key, - num: res.data.data[key], - }) - } - }) + if (type == '视频资源') { + jcList.value = [ + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + ] + // selectInfrastructureList().then((res) => { + // console.log('视频资源------res------>', res) + // for (const key in res.data.data) { + // if (whoShow1.value.itShowXiHaiAn) { + // if (key === '视频资源') { + // jcList.value.push({ + // name: key, + // num: res.data.data[key], + // }) + // } + // } else { + // jcList.value.push({ + // name: key, + // num: res.data.data[key], + // }) + // } + // } + // // jcList.value.push({ + // // name: '会客厅', + // // num: 4, + // // }) + // // 西海岸-单兵设备、无人机 获取数量 + // if (whoShow1.value.itShowXiHaiAn) { + // getSoldierData('无人机') + // .then((res) => { + // let { total = 0 } = res.data.data + // jcList.value.push({ + // name: '无人机', + // num: total, + // }) + // }) + // .catch((err) => { + // console.log('err--无人机---------->', err) + // }) + // getSoldierData('单兵设备') + // .then((res) => { + // let { total = 0 } = res.data.data + // jcList.value.push({ + // name: '单兵设备', + // num: total, + // }) + // }) + // .catch((err) => { + // console.log('err--单兵设备---------->', err) + // }) + // } + // }) + } else if (type == 'GIS图层') { + zjList.value = [ + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + ] + // selectCollectComponentList().then((res) => { + // console.log('GIS图层----res-------->', res) + // for (const key in res.data.data) { + // console.log('key------------>', key) + // zjList.value.push({ + // name: key, + // num: res.data.data[key], + // }) + // } + // console.log('zjList------------>', zjList) + // }) + } else if (type == '应用系统') { + yyList.value = [ + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + { + name: '阿斯蒂芬', + }, + ] + // selectCollectResourceList().then((res) => { + // console.log('应用系统---res--------->', res) + // for (const key in res.data.data) { + // yyList.value.push({ + // name: key, + // num: res.data.data[key], + // }) + // } + // }) } else { pageWithAttrs(paramsGetResources).then((res) => { console.log('object个数======>', type) obj.value = res.data.data.records switch (type) { - case '组件服务': + case 'GIS图层': assignmentMethod('zjNum', res) break - case '应用资源': + case '应用系统': assignmentMethod('yyNum', res) break - case '基础设施': + case '视频资源': assignmentMethod('jcNum', res) break - case '知识库': + case '云网资源': assignmentMethod('zsNum', res) break } @@ -308,11 +377,11 @@ const assignmentMethod = (type, res) => { object[type] = res.data.data.total } - getAppResources('组件服务', zjList) - getAppResources('应用资源', yyList) - getAppResources('基础设施', jcList) + getAppResources('GIS图层', zjList) + getAppResources('应用系统', yyList) + getAppResources('视频资源', jcList) getAppResources('数据资源', sjList) - getAppResources('知识库', zsList) + getAppResources('云网资源', zsList) function jumpPage(type) { // 点击内存入store @@ -345,7 +414,7 @@ path: '/DetailsPageconetent', query: { type: name, - select: '组件服务', + select: 'GIS图层', }, }) } @@ -354,7 +423,7 @@ path: '/DetailsPageconetent', query: { type: name, - select: '应用资源', + select: '应用系统', }, }) } @@ -371,7 +440,7 @@ path: '/DetailsPageconetent', query: { type: names, - select: '基础设施', + select: '视频资源', }, }) } diff --git a/front/src/views/newHome/components/Header.vue b/front/src/views/newHome/components/Header.vue index 2bad4823..576186a8 100644 --- a/front/src/views/newHome/components/Header.vue +++ b/front/src/views/newHome/components/Header.vue @@ -36,7 +36,7 @@ const route = useRoute() const navList = ref([ { name: '共享门户', key: 'home' }, - { name: '能力集市', key: 'DetailsPageconetent' }, + { name: '能力超市', key: 'DetailsPageconetent' }, { name: '能力统计', key: 'abilityStatistics' }, { name: '技术文档', key: 'developmentGuide' }, { name: '需求中心', key: 'demandCenter' }, @@ -77,7 +77,7 @@ path: '/abilityStatistics', }) break - case '能力集市': + case '能力超市': router.push({ path: '/DetailsPageconetent', query: { diff --git a/front/src/views/newHome/components/Navigation.vue b/front/src/views/newHome/components/Navigation.vue index 2c24745d..d98492ba 100644 --- a/front/src/views/newHome/components/Navigation.vue +++ b/front/src/views/newHome/components/Navigation.vue @@ -161,13 +161,13 @@ const store = useStore() const router = useRouter() const topList = ref([ - '组件服务', - '应用资源', - '基础设施', + '应用系统', + 'GIS图层', + '视频资源', '数据资源', - '知识库', + '云网资源', ]) - const select = ref(whoShow.itShowQingDao ? '' : '组件服务') + const select = ref(whoShow.itShowQingDao ? '' : '应用系统') let applicationDataList = ref([]) let technosphereDataList = ref([]) const fabubumen = ref([ @@ -283,14 +283,14 @@ } const mohuchaxun = ref('组件服务') function onSearch() { - // if (text.value) { - snum.value.str = text.value - console.log('===================>', text.value) - store.commit('home/selectCardsData', snum.value) - router.push({ - path: '/DetailsPageconetent', - query: snum.value, - }) + // if (text.value) { + snum.value.str = text.value + console.log('===================>', text.value) + store.commit('home/selectCardsData', snum.value) + router.push({ + path: '/DetailsPageconetent', + query: snum.value, + }) // } else { // message.warning('请输入查询内容!') // } diff --git a/front/src/views/newHome/components/Navigation2.vue b/front/src/views/newHome/components/Navigation2.vue index 08310675..d64223ab 100644 --- a/front/src/views/newHome/components/Navigation2.vue +++ b/front/src/views/newHome/components/Navigation2.vue @@ -1,21 +1,10 @@