|
|
@ -50,13 +50,17 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="flex-col section_8" v-if="cameraList && cameraList.length > 0"> |
|
|
<view class="flex-col section_8" v-if="cameraList && cameraList.length > 0"> |
|
|
<view class="justify-between group_11"> |
|
|
|
|
|
<text>摄像机({{ cameraList.length }}台)</text> |
|
|
|
|
|
<image src="/static/imgs/digital-workshops/right-arrow-icon.png" class="image_1" @click="go2('camera-list', { id: factoryId })" /> |
|
|
|
|
|
|
|
|
<view class="justify-between group_11" @click="go2('camera-list', { id: factoryId })"> |
|
|
|
|
|
<view class="flex-row-center-center"> |
|
|
|
|
|
<image src="/static/imgs/digital-workshops/camera-icon.png" style="height: 32rpx;width: 32rpx;" /> |
|
|
|
|
|
<text style="margin-left: 8rpx;">摄像机({{ cameraList.length }}台)</text> |
|
|
|
|
|
</view> |
|
|
|
|
|
<image src="/static/imgs/digital-workshops/right-arrow-icon.png" class="image_1" /> |
|
|
</view> |
|
|
</view> |
|
|
<view class="flex-col items-center group_12"> |
|
|
<view class="flex-col items-center group_12"> |
|
|
<image src="/static/imgs/digital-workshops/camera-tip-bg.png" class="image_2" @click="go2('video-play', { url: cameraList[0].videoUrl })" /> |
|
|
|
|
|
<text class="text_18">{{ cameraList[0].address }}</text> |
|
|
|
|
|
|
|
|
<!-- <image src="/static/imgs/digital-workshops/camera-tip-bg.png" class="image_2" @click="go2('video-play', { url: cameraList[0].videoUrl })" /> |
|
|
|
|
|
<text class="text_18">{{ cameraList[0].address }}</text> --> |
|
|
|
|
|
<video :src="cameraList[0].hlsUrl" autoplay class="image_2"></video> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="flex-col section_9"> |
|
|
<view class="flex-col section_9"> |
|
|
@ -112,6 +116,7 @@ import { deviceStatus, orderStatusList, orderStatusEnum, StatusMap } from '@/enu |
|
|
import { getCameraListApi, getMyFactoryList, getMachinList } from '@/apis/factoryApi' |
|
|
import { getCameraListApi, getMyFactoryList, getMachinList } from '@/apis/factoryApi' |
|
|
import { dateTimeFormat } from '@/utils/index.js' |
|
|
import { dateTimeFormat } from '@/utils/index.js' |
|
|
import { getProdOrderList } from '@/apis/orderApi.js' |
|
|
import { getProdOrderList } from '@/apis/orderApi.js' |
|
|
|
|
|
import http from '@/utils/http/index.js' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
@ -210,7 +215,6 @@ export default { |
|
|
}, |
|
|
}, |
|
|
getList() { |
|
|
getList() { |
|
|
getMachinList({ factoryId: this.factoryId, pageSize: 1000 }).then((res) => { |
|
|
getMachinList({ factoryId: this.factoryId, pageSize: 1000 }).then((res) => { |
|
|
console.log(res) |
|
|
|
|
|
let list = res.records |
|
|
let list = res.records |
|
|
let data = { 所有设备: { name: '所有设备', type: {}, list: [] } } |
|
|
let data = { 所有设备: { name: '所有设备', type: {}, list: [] } } |
|
|
for (let i = 0; i < list.length; i++) { |
|
|
for (let i = 0; i < list.length; i++) { |
|
|
@ -294,9 +298,15 @@ export default { |
|
|
}, |
|
|
}, |
|
|
// 获取摄像头列表 |
|
|
// 获取摄像头列表 |
|
|
getCameraList() { |
|
|
getCameraList() { |
|
|
getCameraListApi({ factoryId: this.factoryId }).then((res) => { |
|
|
|
|
|
this.cameraList = res |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
// getCameraListApi({ factoryId: this.factoryId }).then((res) => { |
|
|
|
|
|
// this.cameraList = res |
|
|
|
|
|
// }) |
|
|
|
|
|
var url = `https://api-ops-yyt.qniao.cn/cloud-print-cloud-factory/user/get/factory/video-machine/list?factoryId=${this.factoryId}` |
|
|
|
|
|
http.get({ url }).then(res => { |
|
|
|
|
|
if(res){ |
|
|
|
|
|
this.cameraList = res |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 获取工厂列表 |
|
|
// 获取工厂列表 |
|
|
getFactoryList() { |
|
|
getFactoryList() { |
|
|
|