|
@@ -1,5 +1,4 @@
|
|
|
<template>
|
|
<template>
|
|
|
-
|
|
|
|
|
<a-row align="middle" style="width: 100%;height: 68px" class="title">
|
|
<a-row align="middle" style="width: 100%;height: 68px" class="title">
|
|
|
<a-col >
|
|
<a-col >
|
|
|
<a-space :size="50" >
|
|
<a-space :size="50" >
|
|
@@ -74,8 +73,31 @@
|
|
|
/>
|
|
/>
|
|
|
</div>
|
|
</div>
|
|
|
<a-tooltip>
|
|
<a-tooltip>
|
|
|
- <template #title><span> {{item[CommonController.dataTypeByKeyMap.get(item.dataType)]}}</span> <span v-if='item.dataUnit'>{{item.dataUnit}}</span></template>
|
|
|
|
|
- <span class="data-type" >{{'<'}} <div class='elip' >{{item[CommonController.dataTypeByKeyMap.get(item.dataType)]}}</div> <span v-if='item.dataUnit'>{{item.dataUnit}}</span> {{'>'}}</span>
|
|
|
|
|
|
|
+ <template #title><span> {{item[CommonController.dataTypeByKeyMap.get(item.dataType)!]}}</span> <span v-if='item.dataUnit'>{{item.dataUnit}}</span></template>
|
|
|
|
|
+ <span class="data-type" >
|
|
|
|
|
+ {{'<'}}
|
|
|
|
|
+ <div class='elip' >
|
|
|
|
|
+ <template v-if="item.displayType === displayTypesEnum.DEFAULT" >
|
|
|
|
|
+ {{item[CommonController.dataTypeByKeyMap.get(item.dataType)!]}}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-else-if="item.displayType === displayTypesEnum.IMAGE" >
|
|
|
|
|
+ <a-image :width="200" :src="item[CommonController.dataTypeByKeyMap.get(item.dataType)!]" />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-else-if="item.displayType === displayTypesEnum.VIDEO" >
|
|
|
|
|
+ <VideoPlayerTsx :videoUrl="item[CommonController.dataTypeByKeyMap.get(item.dataType)!]" />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-else-if="item.displayType === displayTypesEnum.SWITCH" >
|
|
|
|
|
+ <a-switch :checked="true" checked-children="开" un-checked-children="关" />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-else-if="item.displayType === displayTypesEnum.PROGRESS" >
|
|
|
|
|
+ <a-progress :percent="30" size="small" />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template v-else-if="item.displayType === displayTypesEnum.BUTTON" >
|
|
|
|
|
+ <a-button type="primary" > {{item[CommonController.dataTypeByKeyMap.get(item.dataType)!]}}</a-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <span v-if='item.dataUnit'>{{item.dataUnit}}</span> {{'>'}}
|
|
|
|
|
+ </span>
|
|
|
</a-tooltip>
|
|
</a-tooltip>
|
|
|
<div>{{dayjs(item.ts).format('YYYY/MM/DD HH:mm:ss')}}</div>
|
|
<div>{{dayjs(item.ts).format('YYYY/MM/DD HH:mm:ss')}}</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -91,6 +113,7 @@
|
|
|
>
|
|
>
|
|
|
<a-input allowClear v-model:value="state.deviceLabel"></a-input>
|
|
<a-input allowClear v-model:value="state.deviceLabel"></a-input>
|
|
|
</modal-pro>
|
|
</modal-pro>
|
|
|
|
|
+
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup >
|
|
<script lang="ts" setup >
|
|
@@ -102,6 +125,8 @@ import dayjs from 'dayjs'
|
|
|
import { EyeTwoTone, EyeInvisibleTwoTone } from '@ant-design/icons-vue'
|
|
import { EyeTwoTone, EyeInvisibleTwoTone } from '@ant-design/icons-vue'
|
|
|
import { message } from 'ant-design-vue'
|
|
import { message } from 'ant-design-vue'
|
|
|
import { CopyTsx } from '@/components/MicroComponents/index'
|
|
import { CopyTsx } from '@/components/MicroComponents/index'
|
|
|
|
|
+import { displayTypesEnum } from '@/enum/common'
|
|
|
|
|
+import { VideoPlayerTsx } from '@/components/VideoPlayer/index'
|
|
|
|
|
|
|
|
const route = useRoute()
|
|
const route = useRoute()
|
|
|
const deviceId = route.query.id as string
|
|
const deviceId = route.query.id as string
|