mirror of
https://gitee.com/dromara/go-view.git
synced 2025-06-30 00:29:16 +08:00
feat: 调整组件 增加视频
This commit is contained in:
parent
2615b37357
commit
93a5a0fcca
4
.env
4
.env
@ -3,9 +3,9 @@ VITE_DEV_PORT = '8080'
|
||||
|
||||
# development path
|
||||
# VITE_DEV_PATH = 'http://192.168.0.34:11887'
|
||||
VITE_DEV_PATH = 'http://192.168.0.34:8022'
|
||||
VITE_DEV_PATH = 'http://192.168.0.34:8102'
|
||||
# VITE_DEV_PATH = 'http://192.168.0.120:3001'
|
||||
VITE_DEV_TOKEN = '1f19219c-e6a2-4c51-b442-e8607d1571ed'
|
||||
VITE_DEV_TOKEN = 'dd23c593-c823-4eb3-86d0-54ec77c99880'
|
||||
|
||||
# production path
|
||||
VITE_PRO_PATH = 'http://192.168.0.235:8177'
|
||||
|
@ -62,8 +62,8 @@ const deepGetAllDeviceCodes = (treeData: any):any => {
|
||||
}
|
||||
|
||||
let systemDatas:Ref<any> = ref([])
|
||||
const originStore = useOriginStore()
|
||||
const systemConfig = originStore.getOriginStore.user.systemConfig
|
||||
// const originStore = useOriginStore()
|
||||
// const systemConfig = originStore.getOriginStore.user.systemConfig
|
||||
|
||||
const getData = async() => {
|
||||
try {
|
||||
@ -100,15 +100,15 @@ const getData = async() => {
|
||||
space_complete_id: '',
|
||||
device_codes: systemDatas.value.map((e: any) => e.device_code)
|
||||
}
|
||||
publicInterface('/dcim/dems/device', 'count_num_and_alarm_num_by_type', params).then((res: any) => {
|
||||
if (res.data && res.data.length) {
|
||||
for (const i in res.data) {
|
||||
const item = systemDatas.value.find((e: any) => e.device_code === res.data[i].device_code)
|
||||
publicInterface('/dcim/dems/device', 'count_num_and_alarm_num_by_type', params).then((res1: any) => {
|
||||
if (res1.data && res1.data.length) {
|
||||
for (const i in res1.data) {
|
||||
const item = systemDatas.value.find((e: any) => e.device_code === res1.data[i].device_code)
|
||||
if (item) {
|
||||
item.all = res.data[i].all
|
||||
item.online_num = res.data[i].all - res.data[i].alarm_num - res.data[i].offline_num
|
||||
item.alarm_num = res.data[i].alarm_num
|
||||
item.offline_num = res.data[i].offline_num
|
||||
item.all = res1.data[i].all
|
||||
item.online_num = res1.data[i].all - res1.data[i].alarm_num - res1.data[i].offline_num
|
||||
item.alarm_num = res1.data[i].alarm_num
|
||||
item.offline_num = res1.data[i].offline_num
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,16 +14,21 @@
|
||||
</n-upload>
|
||||
</setting-item>
|
||||
</setting-item-box>
|
||||
<setting-item-box name="源" alone>
|
||||
<setting-item name="">
|
||||
<n-select v-model:value="optionData.dataset" :options="datasetList" :render-option="renderOption" size="small"></n-select>
|
||||
</setting-item>
|
||||
</setting-item-box>
|
||||
<setting-item-box name="自定义源" alone>
|
||||
<setting-item name="将会覆盖源选项">
|
||||
<n-input v-model:value="optionData.datasetCustom" size="small"></n-input>
|
||||
</setting-item>
|
||||
</setting-item-box>
|
||||
<!-- <setting-item-box name="源" alone>-->
|
||||
<!-- <setting-item name="">-->
|
||||
<!-- <n-select v-model:value="optionData.dataset" :options="datasetList" :render-option="renderOption" size="small"></n-select>-->
|
||||
<!-- </setting-item>-->
|
||||
<!-- </setting-item-box>-->
|
||||
<setting-item-box name="源" alone>
|
||||
<setting-item name="">
|
||||
<n-input v-model:value="optionData.dataset" size="small"></n-input>
|
||||
</setting-item>
|
||||
</setting-item-box>
|
||||
<!-- <setting-item-box name="自定义源" alone>-->
|
||||
<!-- <setting-item name="将会覆盖源选项">-->
|
||||
<!-- <n-input v-model:value="optionData.datasetCustom" size="small"></n-input>-->
|
||||
<!-- </setting-item>-->
|
||||
<!-- </setting-item-box>-->
|
||||
<setting-item-box name="控制">
|
||||
<setting-item>
|
||||
<n-checkbox v-model:checked="optionData.loop" size="small">循环播放</n-checkbox>
|
||||
|
@ -5,4 +5,4 @@ import { VideoConfig } from './Video/index'
|
||||
import { WordCloudConfig } from './WordCloud/index'
|
||||
|
||||
// export default [VideoConfig]
|
||||
export default [IframeConfig]
|
||||
export default [IframeConfig, VideoConfig]
|
||||
|
Loading…
x
Reference in New Issue
Block a user