diff --git a/back/package.json b/back/package.json index e9ac8253..ced391e7 100644 --- a/back/package.json +++ b/back/package.json @@ -34,6 +34,7 @@ "lodash": "^4.17.19", "monaco-editor": "^0.20.0", "monaco-editor-webpack-plugin": "^1.9.0", + "pinyin-pro": "^3.11.0", "qs": "^6.9.4", "quill": "^1.3.7", "sass": "^1.51.0", diff --git a/back/public/index.html b/back/public/index.html index 3e830a61..c8f9e70b 100644 --- a/back/public/index.html +++ b/back/public/index.html @@ -1,8 +1,8 @@ @@ -27,7 +27,8 @@ 'isTab': true, // 是否通过tab展示内容? 'iframeURL': '' // 是否通过iframe嵌套展示内容? (以http[s]://开头, 自动匹配) }; - window.SITE_CONFIG['frontUrl'] = 'http://15.2.21.243:9796/#/vueTemplateDemo'; + window.SITE_CONFIG['frontUrl'] = 'http://localhost:8080/#/vueTemplateDemo'; + // window.SITE_CONFIG['frontUrl'] = 'http://15.2.21.243:9796/#/vueTemplateDemo'; // window.SITE_CONFIG['frontUrl'] = 'http://124.222.94.39:9796/#/vueTemplateDemo'; // window.SITE_CONFIG['frontUrl'] = 'http://15.72.183.90:7008/#/vueTemplateDemo'; // window.SITE_CONFIG['frontUrl'] = 'http://10.134.135.9:9797/#/vueTemplateDemo'; @@ -45,7 +46,7 @@ // window.SITE_CONFIG['apiURL'] = 'http://124.222.94.39:8888/renren-admin'; // window.SITE_CONFIG['apiURL'] = 'http://10.16.5.35:8888/renren-admin'; window.SITE_CONFIG['apiURL'] = 'http://15.2.21.236:8888/renren-admin'; - window.SITE_CONFIG['previewUrl'] = 'http://15.2.21.236:9796/'; + window.SITE_CONFIG['previewUrl'] = 'http://localhost:8080/'; // window.SITE_CONFIG['apiURL'] = 'http://15.2.23.141:8000/renren-admin'; // WebSocket地址 window.SITE_CONFIG['socketURL'] ='ws://localhost:8080/renren-admin/websocket'; diff --git a/back/src/views/main-navbar.vue b/back/src/views/main-navbar.vue index adb8b4fe..f624e6cd 100644 --- a/back/src/views/main-navbar.vue +++ b/back/src/views/main-navbar.vue @@ -100,25 +100,25 @@ diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue index 7c1de008..5a49469a 100644 --- a/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue +++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmNavigation.vue @@ -111,7 +111,8 @@ item.attrType === '技术文档' || item.attrType === '服务商' || item.attrType === '服务商联系人' || - item.attrType === '服务商联系电话' + item.attrType === '服务商联系电话' || + item.attrType === '服务接口' ) { list.value.push('使用方式') } @@ -164,7 +165,8 @@ item.attrType === '技术文档' || item.attrType === '服务商' || item.attrType === '服务商联系人' || - item.attrType === '服务商联系电话' + item.attrType === '服务商联系电话' || + item.attrType === '服务接口' ) { list.value.push('使用方式') } diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue index ae318480..36dfbb5c 100644 --- a/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue +++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue @@ -287,7 +287,7 @@ message.config({ top: '100px', // 距离顶部的位置 }) - message.error('暂未上传使用手册') + message.error('暂未开放使用手册') } } function SDKClick() { @@ -300,7 +300,7 @@ message.config({ top: '100px', // 距离顶部的位置 }) - message.error('SDK安装包') + message.error('暂未上传SDK安装包') } } diff --git a/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue b/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue index ae406496..59c5ffc3 100644 --- a/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue +++ b/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue @@ -204,7 +204,7 @@ message.config({ top: '100px', // 距离顶部的位置 }) - message.error('暂未上传接口文档') + message.error('暂未开放技术文档') } } function technicalNew() { @@ -228,7 +228,7 @@ message.config({ top: '100px', // 距离顶部的位置 }) - message.error('暂未上传使用手册') + message.error('暂未开放新手指引') } } diff --git a/front/src/views/home/DetailsPageconetent.vue b/front/src/views/home/DetailsPageconetent.vue index c6643333..ea3343c6 100644 --- a/front/src/views/home/DetailsPageconetent.vue +++ b/front/src/views/home/DetailsPageconetent.vue @@ -104,7 +104,7 @@ /> -
@@ -127,7 +127,7 @@
- + --> @@ -232,10 +232,13 @@ v-else-if="whoShow1 && whoShow1.itShowXiHaiAn" > -
+
-
+
+ +
+
{{ item.name }}
-
模糊搜索 @@ -266,10 +269,17 @@ class="resultListSearchInput" /> +
-
- - +
+
+
+ + {{ item.name }} +
+
+
+ +
+
{{ item.name }} @@ -741,7 +775,13 @@ orderField: 'total', // total 综合 visits 访问量 applyCount 申请量 score 评分 collectCount 收藏量 orderType: 'DESC', // ASC 升序 DESC 降序 } - + //西海岸查询参数 + let paramsGetResources2 = ref({ + regionId: '70be8c5b664f4bcf869d82f2e8335051', + pageNum: 1, + pageSize: currentPageSize.value, + name: '', + }) // 查询 const onSearch = () => { loading.value = true @@ -820,6 +860,12 @@ currentPage.value = 1 currentPageSize.value = 5 // 重置查询条件 + paramsGetResources2.value = { + regionId: '70be8c5b664f4bcf869d82f2e8335051', + pageNum: 1, + pageSize: currentPageSize.value, + name: '', + } paramsGetResources.districtId = '' paramsGetResources.deptIds = [] paramsGetResources.pageNum = 1 @@ -955,12 +1001,18 @@ searchValue.value, searchValue.value.length ) - if (searchValue.value.length >= 2) { + if ( + searchValue.value.length >= 2 && + paramsGetResources.type !== '基础设施' + ) { str = searchValue.value.substring(0, 2) console.log('str================>', str) r = re.test(str) } - if (searchValue.value.length > 1 && r) { + if ( + (searchValue.value.length > 1 && r) || + paramsGetResources.type === '基础设施' + ) { //switchIndex这个参数是下面的分页传过来的参数 paramsGetResources.name = searchValue.value paramsGetResources.type = Cardsname.value @@ -1016,7 +1068,11 @@ loading.value = false } }) - } else if (paramsGetResources.type !== '数据资源') { + } else if ( + paramsGetResources.type !== '数据资源' && + (paramsGetResources.type !== '基础设施' || + !whoShow1.value.itShowXiHaiAn) + ) { if (switchIndex != '分页查询') { paramsGetResources.pageNum = 1 } @@ -1038,6 +1094,16 @@ // getShoppingCartList(res.data.data.records) } }) + } else if ( + paramsGetResources.type === '基础设施' && + whoShow1.value.itShowXiHaiAn + ) { + if (switchIndex != '分页查询') { + paramsGetResources.pageNum = 1 + } + paramsGetResources2.value.pageNum = paramsGetResources.pageNum + paramsGetResources2.value.pageSize = paramsGetResources.pageSize + paramsGetResources2.value.name = paramsGetResources.name } } else { message.error('请以两位以上汉字或数字开头') @@ -1098,7 +1164,11 @@ loading.value = false } }) - } else if (paramsGetResources.type !== '数据资源') { + } else if ( + paramsGetResources.type !== '数据资源' && + (paramsGetResources.type !== '基础设施' || + !whoShow1.value.itShowXiHaiAn) + ) { if (switchIndex != '分页查询') { paramsGetResources.pageNum = 1 } @@ -1116,6 +1186,15 @@ // getShoppingCartList(res.data.data.records) } }) + } else if ( + paramsGetResources.type === '基础设施' || + whoShow1.value.itShowXiHaiAn + ) { + if (switchIndex != '分页查询') { + paramsGetResources.pageNum = 1 + } + paramsGetResources2.value.pageNum = paramsGetResources.pageNum + paramsGetResources2.value.pageSize = paramsGetResources.pageSize } } } @@ -1141,6 +1220,10 @@ resourceList.data = list }) } + mybus.on('getCameraByParentId', (ids) => { + paramsGetResources2.value.regionId = ids + getAppResources() + }) mybus.on('paramsGetResources', (ids) => { if (ids && ids.length > 0) { paramsGetResources.deptIds = ids @@ -1333,6 +1416,7 @@ detailsPageInfrastructureTree, }, beforeUnmount() { + mybus.off('getCameraByParentId') mybus.off('selectCardsitem') mybus.off('paramsGetResources') mybus.off('changeCondition') diff --git a/front/src/views/home/apply.vue b/front/src/views/home/apply.vue index c58a256b..74cfa2f4 100644 --- a/front/src/views/home/apply.vue +++ b/front/src/views/home/apply.vue @@ -459,7 +459,17 @@ obj.system.push({ resourceId: sxt.idtCameraChannel + '', resourceName: sxt.channelName, - cameraId: sxt.channelId, + cameraId: sxt.channelId, // 改接口后删除 + channelCode: sxt.channelCode, + channelId: sxt.channelId, + channelName: sxt.channelName, + checkStatus: sxt.checkStatus + '', + gpsX: sxt.gpsX, + gpsY: sxt.gpsY, + idtCameraChannel: sxt.idtCameraChannel + '', + nodeName: sxt.nodeName, + parentId: sxt.parentId, + status: sxt.status + '', }) }) submitApply(obj).then((res) => { diff --git a/front/src/views/home/components/header.vue b/front/src/views/home/components/header.vue index 36fd4337..bb59648a 100644 --- a/front/src/views/home/components/header.vue +++ b/front/src/views/home/components/header.vue @@ -122,6 +122,7 @@ import { mynotice } from '@/api/home' import { useStore } from 'vuex' import { getSgcTotal } from '@/api/home' + import Cookies from 'js-cookie' import mybus from '@/myplugins/mybus' const store = useStore() const router = useRouter() @@ -201,12 +202,12 @@ path: '/capabilityCloud', }) break - case '开发指南': - router.push({ - path: '/developmentGuide', - }) - break - case '指导手册': + // case '技术文档': + // router.push({ + // path: '/developmentGuide', + // }) + // break + case '技术文档': router.push({ path: '/instructionManual', }) @@ -222,6 +223,7 @@ }) break case '后台管理': + Cookies.remove('JSESSIONID') window.open(window.SITE_CONFIG.backUrl + '/#/workBench-workBench') // window.reload('http://15.2.21.238:9797') break diff --git a/front/src/views/home/components/searchResultList.vue b/front/src/views/home/components/searchResultList.vue index cb4ddee6..e7510cd5 100644 --- a/front/src/views/home/components/searchResultList.vue +++ b/front/src/views/home/components/searchResultList.vue @@ -67,6 +67,16 @@ " />
+
+ +
-
+
+ +
+
发布时间: - @@ -969,6 +976,14 @@ color: #0087ff; } } + .name { + max-width: 4.15rem; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + -o-text-overflow: ellipsis; + word-break: break-all; + } .name:hover { color: #0087ff; } @@ -1044,5 +1059,10 @@ :deep(.ant-list-item-meta-title) { display: flex; justify-content: space-between; + align-items: center; + div { + display: flex; + align-items: center; + } }