|
@@ -2,7 +2,6 @@
|
|
<template>
|
|
<template>
|
|
<div class="containers">
|
|
<div class="containers">
|
|
<!--主页-->
|
|
<!--主页-->
|
|
-<!-- display:windowJson[0].IsVisibility ? 'block' : 'none',-->
|
|
|
|
<div
|
|
<div
|
|
:style="{
|
|
:style="{
|
|
position: 'relative',
|
|
position: 'relative',
|
|
@@ -20,7 +19,7 @@
|
|
}"
|
|
}"
|
|
>
|
|
>
|
|
<!--按钮-->
|
|
<!--按钮-->
|
|
- <div v-for="item in buttonJson"
|
|
|
|
|
|
+ <!--<div v-for="item in buttonJson"
|
|
:style="{
|
|
:style="{
|
|
position:'absolute',
|
|
position:'absolute',
|
|
left:item.Left+'px',
|
|
left:item.Left+'px',
|
|
@@ -44,10 +43,11 @@
|
|
@mouseup="mouseUp(item)"
|
|
@mouseup="mouseUp(item)"
|
|
>
|
|
>
|
|
{{item.Text}}
|
|
{{item.Text}}
|
|
- </div>
|
|
|
|
|
|
+ </div>-->
|
|
|
|
+ <ButtonComponent />
|
|
|
|
|
|
<!--大屏显示-->
|
|
<!--大屏显示-->
|
|
- <draggable
|
|
|
|
|
|
+ <!--<draggable
|
|
:class="['split_screen', splitScreenStatus === 0 ? 'split_screen_one' : splitScreenStatus === 1 ? 'split_screen_four' : splitScreenStatus === 2 ? 'split_screen_nine' : 'split_screen_sixteen']"
|
|
:class="['split_screen', splitScreenStatus === 0 ? 'split_screen_one' : splitScreenStatus === 1 ? 'split_screen_four' : splitScreenStatus === 2 ? 'split_screen_nine' : 'split_screen_sixteen']"
|
|
v-for="item in bigScreenJson"
|
|
v-for="item in bigScreenJson"
|
|
element="div"
|
|
element="div"
|
|
@@ -68,10 +68,11 @@
|
|
<div v-for="(item,key) in signalPreList" :key="key" class="item">
|
|
<div v-for="(item,key) in signalPreList" :key="key" class="item">
|
|
{{item.ShowName}}
|
|
{{item.ShowName}}
|
|
</div>
|
|
</div>
|
|
- </draggable>
|
|
|
|
|
|
+ </draggable>-->
|
|
|
|
+ <BigShowComponent />
|
|
|
|
|
|
<!--label标签-->
|
|
<!--label标签-->
|
|
- <label v-for="item in labelJson"
|
|
|
|
|
|
+ <!--<label v-for="item in labelJson"
|
|
:style="{
|
|
:style="{
|
|
fontSize:item.FontSize + 'px',
|
|
fontSize:item.FontSize + 'px',
|
|
position:'absolute',
|
|
position:'absolute',
|
|
@@ -86,10 +87,11 @@
|
|
lineHeight:item.Height + 'px',
|
|
lineHeight:item.Height + 'px',
|
|
}">
|
|
}">
|
|
{{item.Text}}
|
|
{{item.Text}}
|
|
- </label>
|
|
|
|
|
|
+ </label>-->
|
|
|
|
+ <LabelComponent />
|
|
|
|
|
|
<!--图片-->
|
|
<!--图片-->
|
|
- <div v-for="item in imageJson"
|
|
|
|
|
|
+ <!--<div v-for="item in imageJson"
|
|
:style="{
|
|
:style="{
|
|
position:'absolute',
|
|
position:'absolute',
|
|
left:item.Left+'px',
|
|
left:item.Left+'px',
|
|
@@ -103,10 +105,11 @@
|
|
backgroundSize:'100% 100%',
|
|
backgroundSize:'100% 100%',
|
|
}"
|
|
}"
|
|
>
|
|
>
|
|
- </div>
|
|
|
|
|
|
+ </div>-->
|
|
|
|
+ <ImageComponent />
|
|
|
|
|
|
<!--信号源列表-->
|
|
<!--信号源列表-->
|
|
- <draggable
|
|
|
|
|
|
+ <!--<draggable
|
|
:style="{
|
|
:style="{
|
|
left:signalList[0].Left+'px',
|
|
left:signalList[0].Left+'px',
|
|
top:signalList[0].Top+'px',
|
|
top:signalList[0].Top+'px',
|
|
@@ -128,7 +131,7 @@
|
|
@end="isDragging=false"
|
|
@end="isDragging=false"
|
|
|
|
|
|
>
|
|
>
|
|
- <!--列表项-->
|
|
|
|
|
|
+ <!–列表项–>
|
|
<div class="signal_item" v-for="item in signalList[0].PreviewList" :key="item.ID">
|
|
<div class="signal_item" v-for="item in signalList[0].PreviewList" :key="item.ID">
|
|
<div class="signal_item_bg">
|
|
<div class="signal_item_bg">
|
|
<div class="signal_item_bg_body">
|
|
<div class="signal_item_bg_body">
|
|
@@ -137,10 +140,11 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </draggable>
|
|
|
|
|
|
+ </draggable>-->
|
|
|
|
+ <SignalListComponent />
|
|
|
|
|
|
<!--滑块-->
|
|
<!--滑块-->
|
|
- <div v-for="item in sliderJson"
|
|
|
|
|
|
+ <!--<div v-for="item in sliderJson"
|
|
:style="{
|
|
:style="{
|
|
position:'absolute',
|
|
position:'absolute',
|
|
left:item.Left+'px',
|
|
left:item.Left+'px',
|
|
@@ -172,7 +176,8 @@
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </div>-->
|
|
|
|
+ <SliderComponent />
|
|
|
|
|
|
<!--其他页面-->
|
|
<!--其他页面-->
|
|
<!--<div v-for="item in windowJson"
|
|
<!--<div v-for="item in windowJson"
|
|
@@ -201,57 +206,68 @@
|
|
import storageUtils from "../../utils/storageUtils"
|
|
import storageUtils from "../../utils/storageUtils"
|
|
import '../assets/less/splitscreen.less'
|
|
import '../assets/less/splitscreen.less'
|
|
|
|
|
|
- import labelJson from '../../../static/EnityLable'
|
|
|
|
- import bigScreenJson from '../../../static/EnityBigScreen'
|
|
|
|
- import buttonJson from '../../../static/EnityButton'
|
|
|
|
- import signalList from '../../../static/EnitySignalPreviewList'
|
|
|
|
- import sliderJson from '../../../static/EnitySlider'
|
|
|
|
- import imageJson from '../../../static/EnityImage'
|
|
|
|
- import windowJson from '../../../static/EnityWindow'
|
|
|
|
|
|
+ // import labelJson from '../../../static/EnityLable'
|
|
|
|
+ // import bigScreenJson from '../../../static/EnityBigScreen'
|
|
|
|
+ // import buttonJson from '../../../static/EnityButton'
|
|
|
|
+ // import signalList from '../../../static/EnitySignalPreviewList'
|
|
|
|
+ // import imageJson from '../../../static/EnityImage'
|
|
|
|
+ // import sliderJson from '../../../static/EnitySlider'
|
|
|
|
+
|
|
|
|
+ import ButtonComponent from './Button'
|
|
|
|
+ import LabelComponent from './Label'
|
|
|
|
+ import BigShowComponent from './BigShow'
|
|
|
|
+ import SignalListComponent from './SignalList'
|
|
|
|
+ import ImageComponent from './Image'
|
|
|
|
+ import SliderComponent from './Slider'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
- draggable
|
|
|
|
|
|
+ draggable,
|
|
|
|
+ ButtonComponent,
|
|
|
|
+ LabelComponent,
|
|
|
|
+ BigShowComponent,
|
|
|
|
+ SignalListComponent,
|
|
|
|
+ ImageComponent,
|
|
|
|
+ SliderComponent
|
|
},
|
|
},
|
|
|
|
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
user: storageUtils.getUser(), // 本地存储的用户
|
|
user: storageUtils.getUser(), // 本地存储的用户
|
|
- signalPreList: [], // 被拖到大屏中的信号源列表
|
|
|
|
- isDragging: false, // 是否可拖动标志
|
|
|
|
- splitScreenStatus: 0,// 分屏状态(默认0: 自由屏,1: 4分屏 2:9分屏 3: 16分屏)
|
|
|
|
- labelJson, // label标签配置
|
|
|
|
- bigScreenJson,// 大屏显示配置
|
|
|
|
- buttonJson, // button按钮配置
|
|
|
|
- signalList, // 信号源列表配置
|
|
|
|
- sliderJson, // 滑块配置
|
|
|
|
- imageJson, // 图片配置
|
|
|
|
- windowJson, // 主要页面配置
|
|
|
|
- count: 0, // 音量计数器
|
|
|
|
|
|
+ // signalPreList: [], // 被拖到大屏中的信号源列表
|
|
|
|
+ // isDragging: false, // 是否可拖动标志
|
|
|
|
+ // splitScreenStatus: 0,// 分屏状态(默认0: 自由屏,1: 4分屏 2:9分屏 3: 16分屏)
|
|
|
|
+ // labelJson, // label标签配置
|
|
|
|
+ // bigScreenJson,// 大屏显示配置
|
|
|
|
+ // buttonJson, // button按钮配置
|
|
|
|
+ // signalList, // 信号源列表配置
|
|
|
|
+ // sliderJson, // 滑块配置
|
|
|
|
+ // imageJson, // 图片配置
|
|
|
|
+ /* count: 0, // 音量计数器
|
|
count2: 0, // 预案管理模块计数器
|
|
count2: 0, // 预案管理模块计数器
|
|
count3: 0, // 管理控制按钮计数器
|
|
count3: 0, // 管理控制按钮计数器
|
|
count4: 0, // 3个视频按钮计数器
|
|
count4: 0, // 3个视频按钮计数器
|
|
count5: 0, // 安卓分布式按钮
|
|
count5: 0, // 安卓分布式按钮
|
|
- count6: 0, // 其他按钮
|
|
|
|
|
|
+ count6: 0, // 其他按钮*/
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
mounted() {
|
|
mounted() {
|
|
// 获取分屏按钮数组(将分屏按钮和其他按钮区分开)
|
|
// 获取分屏按钮数组(将分屏按钮和其他按钮区分开)
|
|
- this.arr = this.buttonJson.filter(item => (item.WindowID === '9a0dff23-8633-4e7f-89bf-cc4f68ec88e1' || item.WindowID === '08208721-41cc-4f1e-937b-3a1627389049' || item.WindowID === 'ab842585-0c91-4e65-bfed-a219bcaaeb43'))
|
|
|
|
|
|
+ // this.arr = this.buttonJson.filter(item => (item.WindowID === '9a0dff23-8633-4e7f-89bf-cc4f68ec88e1' || item.WindowID === '08208721-41cc-4f1e-937b-3a1627389049' || item.WindowID === 'ab842585-0c91-4e65-bfed-a219bcaaeb43'))
|
|
|
|
|
|
// 获取功能按钮涉及到的按钮和label
|
|
// 获取功能按钮涉及到的按钮和label
|
|
// 1.电源管理 2.音频管理 3.视频管理 4.环境控制 5.电脑控制
|
|
// 1.电源管理 2.音频管理 3.视频管理 4.环境控制 5.电脑控制
|
|
- const funcBtnArr = this.buttonJson.filter(item => (item.WindowID === 'd80a8b6e-9f88-41ff-b3a7-1ff8d6ee37a5' || item.WindowID === 'cb2687fd-931a-4b38-a76d-9c3ea171b8d8' || item.WindowID === '027ab76d-6b9c-46ac-abe6-75b8059f786b' || item.WindowID === 'a12b287f-f68c-4efa-b652-d6e5b0a09d0d' || item.WindowID === 'd9868551-b579-4258-9bc7-7c1f733773f5'))
|
|
|
|
|
|
+ /*const funcBtnArr = this.buttonJson.filter(item => (item.WindowID === 'd80a8b6e-9f88-41ff-b3a7-1ff8d6ee37a5' || item.WindowID === 'cb2687fd-931a-4b38-a76d-9c3ea171b8d8' || item.WindowID === '027ab76d-6b9c-46ac-abe6-75b8059f786b' || item.WindowID === 'a12b287f-f68c-4efa-b652-d6e5b0a09d0d' || item.WindowID === 'd9868551-b579-4258-9bc7-7c1f733773f5'))
|
|
const funcLabArr = this.labelJson.filter(item => (item.WindowID === 'd80a8b6e-9f88-41ff-b3a7-1ff8d6ee37a5' || item.WindowID === 'cb2687fd-931a-4b38-a76d-9c3ea171b8d8' || item.WindowID === '027ab76d-6b9c-46ac-abe6-75b8059f786b' || item.WindowID === 'a12b287f-f68c-4efa-b652-d6e5b0a09d0d' || item.WindowID === 'd9868551-b579-4258-9bc7-7c1f733773f5'))
|
|
const funcLabArr = this.labelJson.filter(item => (item.WindowID === 'd80a8b6e-9f88-41ff-b3a7-1ff8d6ee37a5' || item.WindowID === 'cb2687fd-931a-4b38-a76d-9c3ea171b8d8' || item.WindowID === '027ab76d-6b9c-46ac-abe6-75b8059f786b' || item.WindowID === 'a12b287f-f68c-4efa-b652-d6e5b0a09d0d' || item.WindowID === 'd9868551-b579-4258-9bc7-7c1f733773f5'))
|
|
this.funcObj = {
|
|
this.funcObj = {
|
|
funcBtnArr,
|
|
funcBtnArr,
|
|
funcLabArr,
|
|
funcLabArr,
|
|
funSliderArr:this.sliderJson
|
|
funSliderArr:this.sliderJson
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
|
|
|
|
// 获取电源管理和电脑控制按钮
|
|
// 获取电源管理和电脑控制按钮
|
|
- this.powerAndCompBtns = this.buttonJson.filter(item => (item.WindowID === 'd80a8b6e-9f88-41ff-b3a7-1ff8d6ee37a5' || item.WindowID === 'd9868551-b579-4258-9bc7-7c1f733773f5') && item.ID !== '19554440-98bc-4644-83a0-d9cefd69153e')
|
|
|
|
|
|
+ // this.powerAndCompBtns = this.buttonJson.filter(item => (item.WindowID === 'd80a8b6e-9f88-41ff-b3a7-1ff8d6ee37a5' || item.WindowID === 'd9868551-b579-4258-9bc7-7c1f733773f5') && item.ID !== '19554440-98bc-4644-83a0-d9cefd69153e')
|
|
},
|
|
},
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
@@ -451,7 +467,7 @@
|
|
},
|
|
},
|
|
|
|
|
|
computed: {
|
|
computed: {
|
|
- ...mapState(['deviceList']),
|
|
|
|
|
|
+ ...mapState(['deviceList','windowJson']),
|
|
dragOptions1() {
|
|
dragOptions1() {
|
|
return {
|
|
return {
|
|
animation: 0,
|
|
animation: 0,
|
|
@@ -489,7 +505,6 @@
|
|
align-items: center;
|
|
align-items: center;
|
|
|
|
|
|
/*背景*/
|
|
/*背景*/
|
|
-
|
|
|
|
.signal_item_bg {
|
|
.signal_item_bg {
|
|
width: 90%;
|
|
width: 90%;
|
|
height: 130px;
|
|
height: 130px;
|
|
@@ -502,7 +517,6 @@
|
|
}
|
|
}
|
|
|
|
|
|
/*主体*/
|
|
/*主体*/
|
|
-
|
|
|
|
.signal_item_bg_body {
|
|
.signal_item_bg_body {
|
|
width: 96%;
|
|
width: 96%;
|
|
height: 96%;
|
|
height: 96%;
|
|
@@ -535,14 +549,12 @@
|
|
|
|
|
|
// 滚动条样式
|
|
// 滚动条样式
|
|
/*定义滚动条高宽及背景高宽:分别对应横竖滚动条的尺寸*/
|
|
/*定义滚动条高宽及背景高宽:分别对应横竖滚动条的尺寸*/
|
|
-
|
|
|
|
::-webkit-scrollbar {
|
|
::-webkit-scrollbar {
|
|
width: 4px;
|
|
width: 4px;
|
|
background-color: rgba(10, 66, 125, 0.65);
|
|
background-color: rgba(10, 66, 125, 0.65);
|
|
}
|
|
}
|
|
|
|
|
|
/*定义滚动条轨道:内阴影+圆角*/
|
|
/*定义滚动条轨道:内阴影+圆角*/
|
|
-
|
|
|
|
::-webkit-scrollbar-track {
|
|
::-webkit-scrollbar-track {
|
|
-webkit-box-shadow: inset 0 0 6px rgba(10, 66, 125, 0.3);
|
|
-webkit-box-shadow: inset 0 0 6px rgba(10, 66, 125, 0.3);
|
|
border-radius: 10px;
|
|
border-radius: 10px;
|
|
@@ -550,7 +562,6 @@
|
|
}
|
|
}
|
|
|
|
|
|
/*定义滑块:内阴影+圆角*/
|
|
/*定义滑块:内阴影+圆角*/
|
|
-
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
::-webkit-scrollbar-thumb {
|
|
border-radius: 10px;
|
|
border-radius: 10px;
|
|
-webkit-box-shadow: inset 0 0 6px rgba(10, 66, 125, .3);
|
|
-webkit-box-shadow: inset 0 0 6px rgba(10, 66, 125, .3);
|