From d055a89f09b0cbeac3ad770d3db352a56f7a16c0 Mon Sep 17 00:00:00 2001 From: chenchenzai Date: Mon, 21 Nov 2022 11:15:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=E8=A7=86=E9=A2=91?= =?UTF-8?q?=E7=9B=91=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- back/public/config/basicConfig.js | 80 +++--- .../src/views/modules/ability/bsabilityai.vue | 37 +++ .../modules/ability/bsabilityservice.vue | 37 +++ front/public/static/config/basicConfig.js | 229 ++++++++--------- front/src/api/file.js | 12 +- front/src/supermap/map-showResource.js | 2 + .../views/capacityOnTheShelf/Algorithm.vue | 2 +- front/src/views/home/DetailsPageconetent.vue | 71 +++--- .../components/GovernmentCloudResources.vue | 43 +++- front/src/views/home/components/H5Player.vue | 2 +- front/src/views/home/components/header.vue | 44 +--- .../home/components/searchResultList.vue | 18 +- front/src/views/home/detailBack.vue | 32 ++- front/src/views/home/details.vue | 13 +- .../home/detailsPageInfrastructureTreeXha.vue | 239 +++++++++++++++--- front/src/views/home/infrastructurePage.vue | 107 +++++++- .../components/CameraPopupOnMap.vue | 39 +-- .../views/home/videoSurveillance/index.vue | 90 +++++-- 18 files changed, 766 insertions(+), 331 deletions(-) diff --git a/back/public/config/basicConfig.js b/back/public/config/basicConfig.js index 86da66bc..d8d4dbe2 100644 --- a/back/public/config/basicConfig.js +++ b/back/public/config/basicConfig.js @@ -7,45 +7,45 @@ */ var _global = {} var CONFIGITEM = { - // version: 'qingdao', // 青岛 - // version: 'xihaian', // 西海岸 - version: 'dev', // 测试 - // version: 'frp', // 内网穿透 - // version: 'xihaian', // 开发 - vNum: 'v0.8.7.2', - configData: { - // 青岛市大数据局 - qingdao: { - previewUrl: 'http://15.72.183.90:7008/', - apiURL: 'http://15.72.183.90:8000/ucs-admin', - websocketURL: 'ws://15.72.183.90:8000/ucs-admin/websocket' - }, - // 西海岸大数据局 - xihaian: { - previewUrl: 'http://10.134.135.9:9796/', - // apiURL: 'http://10.134.135.9:8888/ucs-admin', - // apiURL: 'http://10.16.5.35:8888/ucs-admin', // 李志成-研发 - apiURL: 'http://192.168.124.236:8888/ucs-admin', - // apiURL: 'http://192.168.124.254:8888/ucs-admin', // 李志成-远雄 - websocketURL: 'ws://10.134.135.9:8888/ucs-admin/websocket' - }, - // 测试 - test: { - previewUrl: 'http://192.168.124.243:9796/', - apiURL: 'http://192.168.124.243:8888/ucs-admin', - websocketURL: 'ws://192.168.124.243:8888/ucs-admin/websocket' - }, - // 内网穿透 - frp: { - previewUrl: 'http://124.222.94.39:9796/', - apiURL: 'http://124.222.94.39:8888/ucs-admin', - websocketURL: 'ws://124.222.94.39:8888/ucs-admin/websocket' - }, - dev: { - previewUrl: 'http://localhost:8080/', - apiURL: 'http://192.168.124.243:8888/ucs-admin', - websocketURL: 'ws://192.168.124.243:8888/ucs-admin/websocket' + // version: 'qingdao', // 青岛 + // version: 'xihaian', // 西海岸 + version: 'dev', // 测试 + // version: 'frp', // 内网穿透 + // version: 'xihaian', // 开发 + vNum: 'v0.8.7.2', + configData: { + // 青岛市大数据局 + qingdao: { + previewUrl: 'http://15.72.183.90:7008/', + apiURL: 'http://15.72.183.90:8000/ucs-admin', + websocketURL: 'ws://15.72.183.90:8000/ucs-admin/websocket' + }, + // 西海岸大数据局 + xihaian: { + previewUrl: 'http://10.134.135.9:9796/', + // apiURL: 'http://10.134.135.9:8888/ucs-admin', + // apiURL: 'http://10.16.5.35:8888/ucs-admin', // 李志成-研发 + apiURL: 'http://192.168.124.236:8888/ucs-admin', + // apiURL: 'http://192.168.124.254:8888/ucs-admin', // 李志成-远雄 + websocketURL: 'ws://10.134.135.9:8888/ucs-admin/websocket' + }, + // 测试 + test: { + previewUrl: 'http://192.168.124.243:9796/', + apiURL: 'http://192.168.124.243:8888/ucs-admin', + websocketURL: 'ws://192.168.124.243:8888/ucs-admin/websocket' + }, + // 内网穿透 + frp: { + previewUrl: 'http://124.222.94.39:9796/', + apiURL: 'http://124.222.94.39:8888/ucs-admin', + websocketURL: 'ws://124.222.94.39:8888/ucs-admin/websocket' + }, + dev: { + previewUrl: 'http://localhost:8080/', + apiURL: 'http://192.168.124.233:8888/ucs-admin', + websocketURL: 'ws://192.168.124.233:8888/ucs-admin/websocket' + } } - } } -_global.config = CONFIGITEM.configData[CONFIGITEM.version] +_global.config = CONFIGITEM.configData[CONFIGITEM.version] \ No newline at end of file diff --git a/back/src/views/modules/ability/bsabilityai.vue b/back/src/views/modules/ability/bsabilityai.vue index 09636f2a..53dd6b22 100644 --- a/back/src/views/modules/ability/bsabilityai.vue +++ b/back/src/views/modules/ability/bsabilityai.vue @@ -157,6 +157,13 @@ @click="deleteHandle2(scope.row.id)" >{{ $t('delete') }} + 完全删除 详情 @@ -256,6 +263,7 @@ export default { mixins: [mixinViewModule], data () { return { + superAdmin: '', required: ['归属部门', '部门联系人', '部门联系人电话', '应用领域', '共享条件', '算法名称', '算法描述', '图层名称', '图层描述', '组件名称', '组件描述', '组件地址', '服务地址', '服务接口', '接口请求方式', '算法类别'], notFilled: [], insertList: [], @@ -317,6 +325,10 @@ export default { created () { this.dataForm.name = '' this.dataForm.type = '组件服务' + this.$http.get('/sys/user/info').then(res => { + console.log('res', res.data.data) + this.superAdmin = res.data.data.superAdmin + }) }, mounted () { // window.addEventListener('resize', this.a) @@ -671,6 +683,31 @@ export default { arr.push('常见问题') this.$refs.putOnTheShelf.submit(arr) }, + // 完全删除 + deleteCompletely (row) { + console.log('完全删除===', row) + this.$confirm('确认是否删除?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$http.post('/resource/delResBySuAd?id=' + row.id).then(res => { + console.log('删除结果', res.data) + if (res.data.code == 0) { + this.$message({ + type: 'success', + message: '删除成功!' + }) + } + this.getDataList() + }) + }).catch(() => { + // this.$message({ + // type: 'info', + // message: '已取消删除' + // }); + }) + }, submitData () { console.log('提交11111111111===============>', this.putOnTheShelfList, this.submitFrom) const arr = [] diff --git a/back/src/views/modules/ability/bsabilityservice.vue b/back/src/views/modules/ability/bsabilityservice.vue index f3f404db..a9886b3c 100644 --- a/back/src/views/modules/ability/bsabilityservice.vue +++ b/back/src/views/modules/ability/bsabilityservice.vue @@ -145,6 +145,13 @@ @click="deleteHandle2(scope.row.id)" >{{ $t("delete") }} + 完全删除 详情 @@ -234,6 +241,7 @@ export default { mixins: [mixinViewModule], data () { return { + superAdmin: '', required: ['归属部门', '部门联系人', '部门联系人电话', '应用领域', '共享条件', '应用名称', '应用描述', '应用类型'], notFilled: [], mixinViewModuleOptions: { @@ -286,6 +294,10 @@ export default { created () { this.dataForm.name = '' this.dataForm.type = '应用资源' + this.$http.get('/sys/user/info').then(res => { + console.log('res', res.data.data) + this.superAdmin = res.data.data.superAdmin + }) }, mounted () { // window.addEventListener('resize', this.a) @@ -522,6 +534,31 @@ export default { // 将数据传递给引入的组件 }) }, + // 完全删除 + deleteCompletely (row) { + console.log('完全删除===', row) + this.$confirm('确认是否删除?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$http.post('/resource/delResBySuAd?id=' + row.id).then(res => { + console.log('删除结果', res.data) + if (res.data.code == 0) { + this.$message({ + type: 'success', + message: '删除成功!' + }) + } + this.getDataList() + }) + }).catch(() => { + // this.$message({ + // type: 'info', + // message: '已取消删除' + // }); + }) + }, // 应用与基础设施 applyAndInfrastructure (val) { const type = '基础设施' diff --git a/front/public/static/config/basicConfig.js b/front/public/static/config/basicConfig.js index 1659fe20..b6641aa4 100644 --- a/front/public/static/config/basicConfig.js +++ b/front/public/static/config/basicConfig.js @@ -7,122 +7,117 @@ */ var _global = {} var CONFIGITEM = { - // version: 'qingdao', //青岛 - // version: 'xihaian', // 西海岸 - version: 'dev', // 开发 - // version: 'zhanTingDev', // 展厅dev (2022-09-13:姜永超让添加) - // version: 'qingdao', // 测试 - //version: 'frp', // 内网穿透 - vNum: 'v0.8.15.2', - configData: { - // 青岛市大数据局 - qingdao: { - loginInfo: { - // 视频平台登陆信息 - loginIp: '10.132.191.3', - loginPort: '8320', - userName: 'ynszdz', - userPwd: 'Admin@123', - }, - backUrl: 'http://15.72.183.90:8001', - previewUrl: 'http://15.72.183.90:7008/', - //frontUrl: 'http://15.72.183.90:7008/document/#/devModelFile/', - apiURL: 'http://15.72.183.90:8000/ucs-admin', - websocketURL: '15.72.183.90:8000/ucs-admin', - // websocketURL: '192.168.124.233:8888/ucs-admin', - POI_URL: - 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', + // version: 'qingdao', //青岛 + version: 'xihaian', // 西海岸 + //version: 'dev', // 开发 + // version: 'zhanTingDev', // 展厅dev (2022-09-13:姜永超让添加) + // version: 'qingdao', // 测试 + //version: 'frp', // 内网穿透 + vNum: 'v0.8.15.2', + configData: { + // 青岛市大数据局 + qingdao: { + loginInfo: { + // 视频平台登陆信息 + loginIp: '10.132.191.3', + loginPort: '8320', + userName: 'ynszdz', + userPwd: 'Admin@123', + }, + backUrl: 'http://15.72.183.90:8001', + previewUrl: 'http://15.72.183.90:7008/', + //frontUrl: 'http://15.72.183.90:7008/document/#/devModelFile/', + apiURL: 'http://15.72.183.90:8000/ucs-admin', + websocketURL: '15.72.183.90:8000/ucs-admin', + // websocketURL: '192.168.124.233:8888/ucs-admin', + POI_URL: 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', + }, + // 研发展厅 + zhanTingDev: { + loginInfo: { + // 视频平台登陆信息 + loginIp: '10.132.191.3', + loginPort: '8320', + userName: 'ynszdz', + userPwd: 'Admin@123', + }, + backUrl: 'http://15.72.183.90:8001', + previewUrl: 'http://15.72.183.90:7008/', + //frontUrl: 'http://15.72.183.90:7008/document/#/devModelFile/', + //apiURL: 'http://15.72.183.90:8000/ucs-admin', + // websocketURL: '10.16.5.146:8888/ucs-admin', // 姜永超 + websocketURL: '10.18.1.99:8889/ucs-admin', + // websocketURL: '10.16.5.35:8888/ucs-admin', + POI_URL: 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', + }, + // 西海岸大数据局 + xihaian: { + loginInfo: { + // 视频平台登陆信息 + loginIp: '', + loginPort: '', + userName: '', + userPwd: '', + }, + // 获取摄像头的后端接口地址 + camreaInfo: { + // cameraUrl: '10.134.135.92:9537', // 西海岸-测试环境 + // cameraUrl: '10.134.135.9:9537', // 西海岸-生产环境 + cameraUrl: '192.168.124.236:9537', // 远雄(不挂vpn可直接连) + }, + backUrl: 'http://10.134.135.9:9797', + previewUrl: 'http://10.134.135.9:9796/', + apiURL: 'http://10.134.135.92:8888/renren-admin', + // websocketURL: '10.134.135.9:8888/ucs-admin', // 正式环境 + websocketURL: '10.134.135.92:8888/ucs-admin', // 测试环境 + //websocketURL: '192.168.124.254:8888/ucs-admin', // 李志成-远雄 + // websocketURL: '10.18.1.99:8889/ucs-admin', // 研发 + POI_URL: 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', + }, + // 开发 + dev: { + loginInfo: { + // 视频平台登陆信息 + loginIp: '', + loginPort: '', + userName: '', + userPwd: '', + }, + backUrl: 'http://localhost:8001', + previewUrl: 'http://192.168.124.243:9796/', + apiURL: 'http://192.168.124.243:8888/ucs-admin', + websocketURL: '192.168.124.243:8888/ucs-admin', + // websocketURL: '10.18.1.99:8889/ucs-admin', + POI_URL: 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', + }, + // 测试 + test: { + loginInfo: { + // 视频平台登陆信息 + loginIp: '', + loginPort: '', + userName: '', + userPwd: '', + }, + backUrl: 'http://192.168.124.243:9797', + previewUrl: 'http://192.168.124.243:9796/', + websocketURL: '192.168.124.243:8888/ucs-admin', + POI_URL: 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', + }, + // 内网穿透 + frp: { + loginInfo: { + // 视频平台登陆信息 + loginIp: '', + loginPort: '', + userName: '', + userPwd: '', + }, + backUrl: 'http://124.222.94.39:9797', + previewUrl: 'http://124.222.94.39:9796/', + websocketURL: '124.222.94.39:8888/ucs-admin', + POI_URL: 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', + }, }, - // 研发展厅 - zhanTingDev: { - loginInfo: { - // 视频平台登陆信息 - loginIp: '10.132.191.3', - loginPort: '8320', - userName: 'ynszdz', - userPwd: 'Admin@123', - }, - backUrl: 'http://15.72.183.90:8001', - previewUrl: 'http://15.72.183.90:7008/', - //frontUrl: 'http://15.72.183.90:7008/document/#/devModelFile/', - //apiURL: 'http://15.72.183.90:8000/ucs-admin', - // websocketURL: '10.16.5.146:8888/ucs-admin', // 姜永超 - websocketURL: '10.18.1.99:8889/ucs-admin', - // websocketURL: '10.16.5.35:8888/ucs-admin', - POI_URL: - 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', - }, - // 西海岸大数据局 - xihaian: { - loginInfo: { - // 视频平台登陆信息 - loginIp: '', - loginPort: '', - userName: '', - userPwd: '', - }, - // 获取摄像头的后端接口地址 - camreaInfo: { - // cameraUrl: '10.134.135.92:9537', // 西海岸-测试环境 - // cameraUrl: '10.134.135.9:9537', // 西海岸-生产环境 - cameraUrl: '192.168.124.236:9537', // 远雄(不挂vpn可直接连) - }, - backUrl: 'http://10.134.135.9:9797', - previewUrl: 'http://10.134.135.9:9796/', - // websocketURL: '10.134.135.9:8888/ucs-admin', // 正式环境 - // websocketURL: '10.134.135.92:8888/ucs-admin', // 测试环境 - websocketURL: '192.168.124.254:8888/ucs-admin', // 李志成-远雄 - // websocketURL: '10.18.1.99:8889/ucs-admin', // 研发 - POI_URL: - 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', - }, - // 开发 - dev: { - loginInfo: { - // 视频平台登陆信息 - loginIp: '', - loginPort: '', - userName: '', - userPwd: '', - }, - backUrl: 'http://localhost:8001', - previewUrl: 'http://192.168.124.243:9796/', - apiURL: 'http://192.168.124.243:8888/ucs-admin', - websocketURL: '192.168.124.243:8888/ucs-admin', - // websocketURL: '10.18.1.99:8889/ucs-admin', - POI_URL: - 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', - }, - // 测试 - test: { - loginInfo: { - // 视频平台登陆信息 - loginIp: '', - loginPort: '', - userName: '', - userPwd: '', - }, - backUrl: 'http://192.168.124.243:9797', - previewUrl: 'http://192.168.124.243:9796/', - websocketURL: '192.168.124.243:8888/ucs-admin', - POI_URL: - 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', - }, - // 内网穿透 - frp: { - loginInfo: { - // 视频平台登陆信息 - loginIp: '', - loginPort: '', - userName: '', - userPwd: '', - }, - backUrl: 'http://124.222.94.39:9797', - previewUrl: 'http://124.222.94.39:9796/', - websocketURL: '124.222.94.39:8888/ucs-admin', - POI_URL: - 'http://15.72.178.129:8090/iserver/services/addressmatch-qingdaoPOI181015/restjsr/v1/address', - }, - }, } -_global.config = CONFIGITEM.configData[CONFIGITEM.version] +_global.config = CONFIGITEM.configData[CONFIGITEM.version] \ No newline at end of file diff --git a/front/src/api/file.js b/front/src/api/file.js index b4f0d1ce..7abf3ed9 100644 --- a/front/src/api/file.js +++ b/front/src/api/file.js @@ -1,8 +1,8 @@ /* * @Author: hisense.wuhongjian * @Date: 2022-04-20 17:16:35 - * @LastEditors: hisense.wuhongjian - * @LastEditTime: 2022-10-26 17:57:52 + * @LastEditors: Light + * @LastEditTime: 2022-11-18 17:52:05 * @Description: 告诉大家这是什么 */ import request from '@/utils/request' @@ -97,6 +97,14 @@ export function getHls(params) { config2 ) } +// 西海岸 POI搜索 +export function getListForPOI(params) { + return axios.get( + 'http://10.134.135.3:21009/service/lbs/coder/geocoding2?appKey=675d95594136456bb7b1434dda31953f&city=青岛&keywords=' + + params.keywords, + config2 + ) +} // 西海岸--获取摄像头列表的后台地址 (测试环境地址:10.134.135.92:9537) let _cameraUrl = diff --git a/front/src/supermap/map-showResource.js b/front/src/supermap/map-showResource.js index 82aad594..07390e3e 100644 --- a/front/src/supermap/map-showResource.js +++ b/front/src/supermap/map-showResource.js @@ -42,6 +42,8 @@ function updateProgressBar(processed, total, elapsed, layersArray) { function createMarkerClusterLayer(layerClassName) { let array = []; let markerClusterLayer = null + //let currentZoom = this.map._zoom + //console.log('zzzzzz', currentZoom); if (layerClassName) { // 如果存在类名,表示需要自定义图标 markerClusterLayer = L.markerClusterGroup({ diff --git a/front/src/views/capacityOnTheShelf/Algorithm.vue b/front/src/views/capacityOnTheShelf/Algorithm.vue index 128e67b0..18fc2c41 100644 --- a/front/src/views/capacityOnTheShelf/Algorithm.vue +++ b/front/src/views/capacityOnTheShelf/Algorithm.vue @@ -230,7 +230,7 @@ > - diff --git a/front/src/views/home/DetailsPageconetent.vue b/front/src/views/home/DetailsPageconetent.vue index 4a804b38..f1a19858 100644 --- a/front/src/views/home/DetailsPageconetent.vue +++ b/front/src/views/home/DetailsPageconetent.vue @@ -1,5 +1,4 @@