diff --git a/front/src/api/file.js b/front/src/api/file.js index 9e6f2583..a647fb0e 100644 --- a/front/src/api/file.js +++ b/front/src/api/file.js @@ -2,7 +2,7 @@ * @Author: hisense.wuhongjian * @Date: 2022-04-20 17:16:35 * @LastEditors: hisense.liangjunhua - * @LastEditTime: 2022-06-14 17:29:06 + * @LastEditTime: 2022-06-14 17:37:18 * @Description: 告诉大家这是什么 */ import request from '@/utils/request' @@ -46,21 +46,25 @@ export function correct(params) { export function paddleocr(params) { return axios.post('http://15.72.183.90:7008/paddleocr', params, config2) } - -export function getRecord(params) { +export function getVideoList(params) { return axios.get( - 'http://10.134.135.24:30090/api/share-portal/platform/catalogue/query?serviceName=' + - params.serviceName + - '&orderField=' + - params.orderField + - '&orderType=' + - params.orderType + - '&pageNum=' + - params.pageNum + - '&pageSize=' + - params.pageSize + - '&serviceType=' + - params.serviceType, + 'http://10.134.135.9:8001/hx-weather-warning/camera/getCameraListByName', + params, + config2 + ) +} +export function getHls(params) { + return axios.get( + 'http://10.134.135.9:8001/hx-weather-warning/camera/getCameraLiveStream', + params, + config2 + ) +} + +export function getRecord(params) { + return axios.get( + 'http://10.134.135.24:30090/api/share-portal/platform/catalogue/query', + params, config2 ) } diff --git a/front/src/views/home/DetailsPageconetent.vue b/front/src/views/home/DetailsPageconetent.vue index 9284d9c2..d8060317 100644 --- a/front/src/views/home/DetailsPageconetent.vue +++ b/front/src/views/home/DetailsPageconetent.vue @@ -365,6 +365,7 @@ // VideoCameraOutlined, } from '@ant-design/icons-vue' import { selectDicStoreAll, pageWithAttrs, zywMessage } from '@/api/home.js' + import { getVideoList } from '@/api/file.js' import { getSgcList } from '@/api/personalCenter' import { getRecord } from '@/api/file' import { useRouter } from 'vue-router' @@ -373,7 +374,7 @@ import detailsPageconetentTree from '@/views/home/detailsPageconetentTree.vue' import searchResultList from '@/views/home/components/searchResultList.vue' import KnowledgeBase from '@/views/home/components/KnowledgeBase.vue' - import VideoSurveillance from '@/views/home/videoSurveillance' + // import VideoSurveillance from '@/views/home/videoSurveillance' export default defineComponent({ setup() { // const store = useStore() @@ -1009,16 +1010,31 @@ }) }else if(paramsGetResources.type=='基础设施'){ // videoList.data = res.data.data.records || [] - resourceTotal.value = infrastructure.value.data.total || '' - getShoppingCartList(infrastructure.value.data.records) - console.log( - '基础设施~~~~~~~~~~~', - resourceTotal.value, - resourceList.data - ) + // resourceTotal.value = infrastructure.value.data.total || '' + // getShoppingCartList(infrastructure.value.data.records) + // console.log( + // '基础设施~~~~~~~~~~~', + // resourceTotal.value, + // resourceList.data + // ) + const params = { + name: searchValue.value, + pageNo: paramsGetResources.pageNum, + pageSize: paramsGetResources.pageSize + } + getVideoList(params).then((res) => { + // 赋值 + res.data.data.list.forEach(val =>{ + val.name = val.serviceName + val.createDate = val.updateTime + val.id = val.serviceId + }) + resourceTotal.value = res.data.data.total + resourceList.data = res.data.data.list + }) }else if(paramsGetResources.type=='数据资源'){ const obj ={ - serviceName:paramsGetResources.name, + serviceName:searchValue.value, orderField:'updateTime', orderType:'desc', pageNum:paramsGetResources.pageNum, @@ -1277,7 +1293,7 @@ DownOutlined, KnowledgeBase, // VideoCameraOutlined, - VideoSurveillance, + // VideoSurveillance, }, beforeUnmount() { mybus.off('selectCardsitem') diff --git a/front/src/views/home/components/searchResultList.vue b/front/src/views/home/components/searchResultList.vue index 666c1f3c..a628c6e8 100644 --- a/front/src/views/home/components/searchResultList.vue +++ b/front/src/views/home/components/searchResultList.vue @@ -156,7 +156,14 @@ 免费试用 - + + 视频预览 + + 查看详情 @@ -169,14 +176,28 @@ + + +
+
+ +
+
+