diff --git a/front/public/index.html b/front/public/index.html index 184e2fb1..43013a4e 100644 --- a/front/public/index.html +++ b/front/public/index.html @@ -1,8 +1,8 @@ diff --git a/front/public/static/config/location.js b/front/public/static/config/location.js index b63b09da..8329cebe 100644 --- a/front/public/static/config/location.js +++ b/front/public/static/config/location.js @@ -2,7 +2,7 @@ * @Author: hisense.wuhongjian * @Date: 2020-07-07 16:03:23 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-06-30 11:05:52 + * @LastEditTime: 2022-07-01 17:40:37 * @Description: 数据资源参数配置 */ const newLocation = 'qingdao' @@ -30,7 +30,7 @@ if (newLocation === 'qingdao') { { name: '能力集市', key: 'DetailsPageconetent' }, { name: '能力云图', key: 'capabilityCloud' }, { name: '能力统计', key: 'abilityStatistics' }, - { name: '开发指南', key: 'developmentGuide' }, + // { name: '开发指南', key: 'developmentGuide' }, { name: '需求中心', key: 'demandCenter' }, // { name: '个人中心', key: 'personalCenter' }, { name: '区市站点', key: 'mapTest' }, @@ -116,7 +116,7 @@ else if (newLocation === 'baotou') { { name: '能力集市', key: 'DetailsPageconetent' }, { name: '能力云图', key: 'capabilityCloud' }, { name: '能力统计', key: 'abilityStatistics' }, - { name: '开发指南', key: 'developmentGuide' }, + // { name: '开发指南', key: 'developmentGuide' }, { name: '需求中心', key: 'demandCenter' }, // { name: '个人中心', key: 'personalCenter' }, // { name: '区市站点', key: 'mapTest' }, @@ -152,7 +152,7 @@ else if (newLocation === 'xihaian') { { name: '能力集市', key: 'DetailsPageconetent' }, { name: '能力云图', key: 'capabilityCloud' }, { name: '能力统计', key: 'abilityStatistics' }, - { name: '开发指南', key: 'developmentGuide' }, + // { name: '开发指南', key: 'developmentGuide' }, { name: '需求中心', key: 'demandCenter' }, // { name: '个人中心', key: 'personalCenter' }, // { name: '区市站点', key: 'mapTest' }, diff --git a/front/src/assets/home/kfzj_square.png b/front/src/assets/home/kfzj_square.png new file mode 100644 index 00000000..fc76f630 Binary files /dev/null and b/front/src/assets/home/kfzj_square.png differ diff --git a/front/src/assets/home/sjzy_square.png b/front/src/assets/home/sjzy_square.png new file mode 100644 index 00000000..7489004e Binary files /dev/null and b/front/src/assets/home/sjzy_square.png differ diff --git a/front/src/assets/home/sxt_square.png b/front/src/assets/home/sxt_square.png new file mode 100644 index 00000000..502f0eef Binary files /dev/null and b/front/src/assets/home/sxt_square.png differ diff --git a/front/src/assets/home/tcfw_square.png b/front/src/assets/home/tcfw_square.png new file mode 100644 index 00000000..a463a096 Binary files /dev/null and b/front/src/assets/home/tcfw_square.png differ diff --git a/front/src/assets/home/ywzj_square.png b/front/src/assets/home/ywzj_square.png new file mode 100644 index 00000000..38acb4da Binary files /dev/null and b/front/src/assets/home/ywzj_square.png differ diff --git a/front/src/assets/home/yyzy_square.png b/front/src/assets/home/yyzy_square.png new file mode 100644 index 00000000..060b4e33 Binary files /dev/null and b/front/src/assets/home/yyzy_square.png differ diff --git a/front/src/assets/home/znsf_square.png b/front/src/assets/home/znsf_square.png new file mode 100644 index 00000000..bb6cd33f Binary files /dev/null and b/front/src/assets/home/znsf_square.png differ diff --git a/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue b/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue index 121718e2..ebd3e428 100644 --- a/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue +++ b/front/src/views/detailsAll/components/Algorithm/AlgorithmUsageMode.vue @@ -161,18 +161,22 @@ ) function technical() { // 拼接路径 - const type = pinyin(props.dataList.type, { - pattern: 'initial', - }).replace(/\s*/g, '') - // 打开文档 - const id = props.dataList.id - window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') + // const type = pinyin(props.dataList.type, { + // pattern: 'initial', + // }).replace(/\s*/g, '') + // // 打开文档 + // const id = props.dataList.id + // window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') // console.log('dataFrom.value.link', dataFrom.value.link) - // window.open( - // window.SITE_CONFIG.previewUrl + - // 'hisense_office/onlinePreview?url=' + - // btoa(encodeURI(dataFrom.value.link)) - // ) + let obj = props.dataList.infoList.filter( + (item) => item.attrType === '技术文档' + )[0] + console.log('dataFrom.value.link', obj.attrValue) + window.open( + window.SITE_CONFIG.previewUrl + + 'hisense_office/onlinePreview?url=' + + btoa(encodeURI(obj.attrValue)) + ) } diff --git a/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue b/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue index 8ae5dd57..6ddc28fe 100644 --- a/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue +++ b/front/src/views/detailsAll/components/Business/BusinessUsageMode.vue @@ -192,18 +192,22 @@ ) function technical() { // 拼接路径 - const type = pinyin(props.dataList.type, { - pattern: 'initial', - }).replace(/\s*/g, '') - // 打开文档 - const id = props.dataList.id - window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') + // const type = pinyin(props.dataList.type, { + // pattern: 'initial', + // }).replace(/\s*/g, '') + // // 打开文档 + // const id = props.dataList.id + // window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') // console.log('dataFrom.value.link', dataFrom.value.link) - // window.open( - // window.SITE_CONFIG.previewUrl + - // 'hisense_office/onlinePreview?url=' + - // btoa(encodeURI(dataFrom.value.link)) - // ) + let obj = props.dataList.infoList.filter( + (item) => item.attrType === '技术文档' + )[0] + console.log('dataFrom.value.link', obj.attrValue) + window.open( + window.SITE_CONFIG.previewUrl + + 'hisense_office/onlinePreview?url=' + + btoa(encodeURI(obj.attrValue)) + ) } function technicalNew() { // 拼接路径 diff --git a/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue b/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue index fba86c5c..0c6e298e 100644 --- a/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue +++ b/front/src/views/detailsAll/components/Developer/DeveloperOwningDepartmentAndServiceProvider.vue @@ -113,18 +113,22 @@ //技术文档 function technical() { // 拼接路径 - const type = pinyin(props.dataList.type, { - pattern: 'initial', - }).replace(/\s*/g, '') - // 打开文档 - const id = props.dataList.id - window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') + // const type = pinyin(props.dataList.type, { + // pattern: 'initial', + // }).replace(/\s*/g, '') + // // 打开文档 + // const id = props.dataList.id + // window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') // console.log('dataFrom.value.link', dataFrom.value.link) - // window.open( - // window.SITE_CONFIG.previewUrl + - // 'hisense_office/onlinePreview?url=' + - // btoa(encodeURI(dataFrom.value.link)) - // ) + let obj = props.dataList.infoList.filter( + (item) => item.attrType === '技术文档' + )[0] + console.log('dataFrom.value.link', obj.attrValue) + window.open( + window.SITE_CONFIG.previewUrl + + 'hisense_office/onlinePreview?url=' + + btoa(encodeURI(obj.attrValue)) + ) } function technicaltow() { let obj = props.dataList.infoList.filter( diff --git a/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue b/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue index 4e100f80..89c9a973 100644 --- a/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue +++ b/front/src/views/detailsAll/components/LayerService/LayerServiceUsageMode.vue @@ -194,18 +194,22 @@ ) function technical() { // 拼接路径 - const type = pinyin(props.dataList.type, { - pattern: 'initial', - }).replace(/\s*/g, '') - // 打开文档 - const id = props.dataList.id - window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') + // const type = pinyin(props.dataList.type, { + // pattern: 'initial', + // }).replace(/\s*/g, '') + // // 打开文档 + // const id = props.dataList.id + // window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') // console.log('dataFrom.value.link', dataFrom.value.link) - // window.open( - // window.SITE_CONFIG.previewUrl + - // 'hisense_office/onlinePreview?url=' + - // btoa(encodeURI(dataFrom.value.link)) - // ) + let obj = props.dataList.infoList.filter( + (item) => item.attrType === '技术文档' + )[0] + console.log('dataFrom.value.link', obj.attrValue) + window.open( + window.SITE_CONFIG.previewUrl + + 'hisense_office/onlinePreview?url=' + + btoa(encodeURI(obj.attrValue)) + ) } function technicalNew() { // 拼接路径 @@ -215,11 +219,14 @@ // // 打开文档 // const id = props.dataList.id // window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank') - console.log('dataFrom.value.link', dataFrom.value.link) + let obj = props.dataList.infoList.filter( + (item) => item.attrType === '使用手册' + )[0] + console.log('dataFrom.value.link', obj.attrValue) window.open( window.SITE_CONFIG.previewUrl + 'hisense_office/onlinePreview?url=' + - btoa(encodeURI(dataFrom.value.link)) + btoa(encodeURI(obj.attrValue)) ) } diff --git a/front/src/views/home/algorithmCompare.vue b/front/src/views/home/algorithmCompare.vue index dbfa5141..d9bb13f6 100644 --- a/front/src/views/home/algorithmCompare.vue +++ b/front/src/views/home/algorithmCompare.vue @@ -296,17 +296,13 @@ text: '是否支持试用', key: '', }, - { - text: '试用描述', - key: '', - }, { text: '试用地址', }, ], 服务商: [ { - text: '服务商名', + text: '服务商', }, { text: '服务商联系人', @@ -432,6 +428,7 @@ obj.infoList = getInfoList(trName) list.push(obj) } else { + console.log(titleKey, trName) _newObj.groupList = getGroupList(titleKey, trName) } }) @@ -440,6 +437,8 @@ } tableData.value.push(_newObj) }) + + console.log('11111111111111', tableData.value) } // 基本信息等 @@ -457,18 +456,25 @@ const getGroupList = (titleKey, trName) => { let arr = [] detailArray.value.map((item) => { - if (arrayStr.includes(titleKey)) { - let groupItemObj = {} - let _list = item[titleKey] || [] - let textInfo = textObj[titleKey] - _list.map((v) => { - Object.keys(v).map((d) => { - if (textInfo[d] !== undefined) { - groupItemObj[textInfo[d]] = v[d] - } + if (item) { + if (arrayStr.includes(titleKey)) { + let groupItemObj = {} + let _list = item[titleKey] || [] + let textInfo = textObj[titleKey] + _list.map((v) => { + // console.log(v) + Object.keys(v).map((d) => { + console.log(textInfo[d]) + if (textInfo[d]) { + if (!groupItemObj[textInfo[d]]) { + groupItemObj[textInfo[d]] = '' + } + groupItemObj[textInfo[d]] += v[d] + ';' + } + }) }) - }) - arr.push(groupItemObj) + arr.push(groupItemObj) + } } }) let _arr = translateArray(arr) diff --git a/front/src/views/home/apply.vue b/front/src/views/home/apply.vue index f56b499c..af30afdb 100644 --- a/front/src/views/home/apply.vue +++ b/front/src/views/home/apply.vue @@ -601,7 +601,7 @@ } }) } - }, 500) + }, 2000) } const handleBlur = () => { diff --git a/front/src/views/home/components/searchResultList.vue b/front/src/views/home/components/searchResultList.vue index 935c1d5f..8e7b0bff 100644 --- a/front/src/views/home/components/searchResultList.vue +++ b/front/src/views/home/components/searchResultList.vue @@ -31,15 +31,27 @@ v-for="(item, index) in resourceList.data" :key="item.index" > -
+
@@ -139,12 +151,17 @@
- - +
{ + if (val.infoList) { + let obj = val.infoList.filter( + (item) => item.attrType == '组件类型' + )[0] + if (obj) { + switch (obj.attrValue) { + case '智能算法': + val.applicationType = 'znsf' + break + case '图层服务': + val.applicationType = 'tcfw' + break + case '开发组件': + val.applicationType = 'kfzj' + break + case '业务组件': + val.applicationType = 'ywzj' + break + } + console.log('obj', val.applicationType) + } + } + }) + showKey.value++ const selData = ref('total') const flag = ref(true) // userId @@ -548,6 +592,7 @@ visible, goComparePk, whoShow1, + showKey, } }, beforeUnmount() { @@ -654,6 +699,7 @@ width: 100%; margin-top: 10px; display: flex; + align-items: center; .left { display: inline-block; @@ -667,22 +713,28 @@ } .yyzy { - background: url('~@/assets/home/yyzy-bg.png') no-repeat; - background-size: 120px 110px; + background: url('~@/assets/home/yyzy_square.png') no-repeat; + background-size: 100%; } + .sjzy { + background: url('~@/assets/home/sjzy_square.png') no-repeat; + background-size: 100%; + } .znsf { - background: url('~@/assets/home/znsf-bg.png') no-repeat; - background-size: 120px 110px; + background: url('~@/assets/home/znsf_square.png') no-repeat; + background-size: 100%; } - - .gis { - background: url('~@/assets/home/gis-bg.png') no-repeat; - background-size: 120px 110px; + .tcfw { + background: url('~@/assets/home/tcfw_square.png') no-repeat; + background-size: 100%; } - - .jcss { - background: url('~@/assets/home/jcss-bg.png') no-repeat; + .kfzj { + background: url('~@/assets/home/kfzj_square.png') no-repeat; + background-size: 100%; + } + .ywzj { + background: url('~@/assets/home/ywzj_square.png') no-repeat; background-size: 100%; } diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index e357fa94..342cc39d 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -118,6 +118,7 @@ import { getCategoryTreePage } from '@/api/personalCenter' import { dataType } from 'element-plus/es/components/table-v2/src/common' import { useRouter } from 'vue-router' + import { message } from 'ant-design-vue' import { ref, reactive, onMounted } from 'vue' import { getCameraByParentId, @@ -125,7 +126,6 @@ getCameraAllLabel, } from '@/api/videoSurveillance' import { sgcInsert } from '@/api/home' - import { message } from 'ant-design-vue' import mybus from '@/myplugins/mybus' const router = useRouter() const options = reactive({ @@ -156,7 +156,7 @@ ], //显示所有按钮, }) let visible = ref(false) - const jjssType = ref(router.currentRoute.value.query.type) + const jcssType = ref(router.currentRoute.value.query.type) const pagination = ref({ total: 0, current: 1, @@ -178,13 +178,16 @@ }) const showMap = ref(true) onMounted(() => { - if (jjssType.value) { - tabClick(0, jjssType.value) + if (jcssType.value) { + tabClick(0, jcssType.value) + if (jcssType.value == '视频资源') { + getCamera() + } } else { tabClick(0, '视频资源') + getCamera() } - getCamera() mybus.off('getListByParentId') mybus.on('getListByParentId', (parentId) => { mapSearchParam.value.parentId = parentId @@ -250,7 +253,6 @@ let tableHeight = ref('600') //tab切换点击事件 const tabClick = (indexFather, name) => { - debugger if (clickList.value[indexFather].content.indexOf(name) != -1) { if (name == '视频资源') { tableHeight.value = 330 @@ -327,6 +329,19 @@ clickList.value[indexFather].content.push(name) } } + // 改变查询摄像头接口的labelCode数组 + mapSearchParam.value.labelCodes = [] + clickList.value[1].content.map((item) => { + mapSearchParam.value.labelCodes.push(item.labelCode) + }) + console.log('选中的标签code', mapSearchParam.value) + mapSearchParam.value.labelCodes = mapSearchParam.value.labelCodes + '' + if (name == '视频资源') { + getCamera() + } else { + dataSource.value = [] + pagination.value.total = 0 + } } // 清空 const nullClick = () => { @@ -350,26 +365,30 @@ dept.deptName = infrastructure.deptName } const apply = () => { - console.log('一键申请', selectedList.value) - let arr = [ - { - arr: [ - { - description: '', - note1: JSON.stringify(selectedList.value), - resourceId: '1522550195055828996', - resourceName: '摄像头列表', - type: '基础设施', - }, - ], - deptId: dept.deptId, - deptName: dept.deptName, - }, - ] - localStorage.setItem('applyList', JSON.stringify(arr)) - router.push({ - path: '/apply', - }) + if (selectedRowKeys.value.length != 0) { + console.log('一键申请', selectedList.value) + let arr = [ + { + arr: [ + { + description: '', + note1: JSON.stringify(selectedList.value), + resourceId: '1522550195055828996', + resourceName: '摄像头列表', + type: '基础设施', + }, + ], + deptId: dept.deptId, + deptName: dept.deptName, + }, + ] + localStorage.setItem('applyList', JSON.stringify(arr)) + router.push({ + path: '/apply', + }) + } else { + message.error('请选择需要申请的数据') + } } // 添加至购物车 const addShopCar = () => { diff --git a/front/src/views/mynoticeView/components/NoticeList.vue b/front/src/views/mynoticeView/components/NoticeList.vue index 94ad8a30..949ffd95 100644 --- a/front/src/views/mynoticeView/components/NoticeList.vue +++ b/front/src/views/mynoticeView/components/NoticeList.vue @@ -2,7 +2,7 @@ * @Author: hisense.liangjunhua * @Date: 2022-06-21 11:55:07 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-06-30 18:18:57 + * @LastEditTime: 2022-07-01 17:03:24 * @Description: 告诉大家这是什么 --> @@ -870,7 +886,37 @@ } } } + :deep(.ant-list-item-meta-avatar) { + display: flex; + align-items: center; + } .ant-pagination { margin-bottom: 0.2rem; } + .tx { + display: inline-block; + width: 0.8rem; + height: 0.8rem; + margin-left: 0.1rem; + } + .sxt { + background: url('~@/assets/home/sxt_square.png') no-repeat; + background-size: 100%; + } + .znsf { + background: url('~@/assets/home/znsf_square.png') no-repeat; + background-size: 100%; + } + .tcfw { + background: url('~@/assets/home/tcfw_square.png') no-repeat; + background-size: 100%; + } + .kfzj { + background: url('~@/assets/home/kfzj_square.png') no-repeat; + background-size: 100%; + } + .ywzj { + background: url('~@/assets/home/ywzj_square.png') no-repeat; + background-size: 100%; + }