Admin.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. <!--管理界面-->
  2. <template>
  3. <div class="containers">
  4. <!--主页-->
  5. <div
  6. :style="{
  7. position: 'relative',
  8. left:windowJson[0].Left+'px',
  9. top:windowJson[0].Top+'px',
  10. width:windowJson[0].Width + 'px',
  11. height:windowJson[0].Height + 'px',
  12. zIndex:windowJson[0].ZIndex,
  13. display:windowJson[0].IsVisibility ? 'black' : 'none',
  14. backgroundImage:windowJson[0].BackIcon ? 'url('+require(`../../../static/images/${windowJson[0].BackIcon}`)+')' : null,
  15. backgroundRepeat:'no-repeat',
  16. backgroundSize:'100% 100%',
  17. backgroundColor:`#${windowJson[0].BrackgroupStr.slice(3)}`,
  18. margin:'0 auto',
  19. }"
  20. >
  21. <!--按钮-->
  22. <div v-for="item in buttonJson"
  23. :style="{
  24. position:'absolute',
  25. left:item.Left+'px',
  26. top:item.Top+'px',
  27. width:item.Width + 'px',
  28. height:item.Height + 'px',
  29. zIndex:item.ZIndex,
  30. display:item.IsVisibility ? 'black' : 'none',
  31. fontSize:item.FontSize + 'px',
  32. backgroundImage:'url('+require(`../../../static/images/${item.BackIcon}`)+')',
  33. backgroundSize:'100% 100%',
  34. backgroundRepeat:'no-repeat',
  35. color:`#${item.ForegroundStr.slice(3)}`,
  36. textAlign:'center',
  37. lineHeight:item.Height + 'px',
  38. cursor:'default'
  39. }"
  40. :ref="item.ID"
  41. @click="clickBtn(item)"
  42. @mousedown="mouseDown(item)"
  43. @mouseup="mouseUp(item)"
  44. >
  45. {{item.Text}}
  46. </div>
  47. <!--大屏显示-->
  48. <draggable
  49. :class="['split_screen', splitScreenStatus === 0 ? 'split_screen_one' : splitScreenStatus === 1 ? 'split_screen_four' : splitScreenStatus === 2 ? 'split_screen_nine' : 'split_screen_sixteen']"
  50. v-for="item in bigScreenJson"
  51. element="div"
  52. v-model="signalPreList"
  53. :options="dragOptions2"
  54. :move="onMove"
  55. @start="isDragging=true"
  56. @end="isDragging=false"
  57. :style="{
  58. left:item.Left+'px',
  59. top:item.Top+'px',
  60. width:item.Width + 'px',
  61. height:item.Height + 'px',
  62. zIndex:item.ZIndex,
  63. display:item.IsVisibility ? 'black' : 'none',
  64. }"
  65. >
  66. <div v-for="(item,key) in signalPreList" :key="key" class="item">
  67. {{item.ShowName}}
  68. </div>
  69. </draggable>
  70. <!--label标签-->
  71. <label v-for="item in labelJson"
  72. :style="{
  73. fontSize:item.FontSize + 'px',
  74. position:'absolute',
  75. left:item.Left+'px',
  76. top:item.Top+'px',
  77. width:item.Width + 'px',
  78. height:item.Height + 'px',
  79. zIndex:item.ZIndex,
  80. display:item.IsVisibility ? 'black' : 'none',
  81. color:`#${item.ForegroundStr.slice(3)}`,
  82. textAlign:'center',
  83. lineHeight:item.Height + 'px',
  84. }">
  85. {{item.Text}}
  86. </label>
  87. <!--图片-->
  88. <div v-for="item in imageJson"
  89. :style="{
  90. position:'absolute',
  91. left:item.Left+'px',
  92. top:item.Top+'px',
  93. width:item.Width + 'px',
  94. height:item.Height + 'px',
  95. zIndex:item.ZIndex,
  96. display:item.IsVisibility ? 'black' : 'none',
  97. backgroundImage:'url('+require(`../../../static/images/${item.BackIcon}`)+')',
  98. backgroundRepeat:'no-repeat',
  99. backgroundSize:'100% 100%',
  100. }"
  101. >
  102. </div>
  103. <!--信号源列表-->
  104. <draggable
  105. :style="{
  106. left:signalList[0].Left+'px',
  107. top:signalList[0].Top+'px',
  108. width:signalList[0].Width + 'px',
  109. height:signalList[0].Height + 'px',
  110. zIndex:signalList[0].ZIndex,
  111. display:signalList[0].IsVisibility ? 'black' : 'none',
  112. fontSize:signalList[0].FontSize + 'px',
  113. color:`#${signalList[0].ForegroundStr.slice(3)}`,
  114. position:'absolute',
  115. overflow:'auto',
  116. }"
  117. class="signal_body"
  118. element="div"
  119. v-model="signalList[0].PreviewList"
  120. :options="dragOptions1"
  121. :move="onMove"
  122. @start="isDragging=true"
  123. @end="isDragging=false"
  124. >
  125. <!--列表项-->
  126. <div class="signal_item" v-for="item in signalList[0].PreviewList" :key="item.ID">
  127. <div class="signal_item_bg">
  128. <div class="signal_item_bg_body">
  129. <div class="signal_item_bg_body_space"></div>
  130. <div class="signal_item_bg_body_font">{{item.ShowName}}</div>
  131. </div>
  132. </div>
  133. </div>
  134. </draggable>
  135. <!--滑块-->
  136. <div v-for="item in sliderJson"
  137. :style="{
  138. position:'absolute',
  139. left:item.Left+'px',
  140. top:item.Top+'px',
  141. width:item.Width + 'px',
  142. height:item.Height + 'px',
  143. zIndex:item.ZIndex,
  144. display:item.IsVisibility ? 'black' : 'none',
  145. backgroundImage:'url('+require(`../../../static/images/${item.BackIcon}`)+')',
  146. backgroundRepeat:'no-repeat',
  147. backgroundSize:'100% 100%',
  148. }"
  149. >
  150. <div
  151. :style="{
  152. width:item.imgBgWidth + 'px',
  153. height:item.imgBgHeight + 'px',
  154. }"
  155. >
  156. <div
  157. :style="{
  158. width:item.imgSliderWidth + 'px',
  159. height:item.imgSliderHeight + 'px',
  160. backgroundImage:'url('+require(`../../../static/images/${item.SliderIcon}`)+')',
  161. backgroundRepeat:'no-repeat',
  162. marginLeft:'24px'
  163. }"
  164. >
  165. </div>
  166. </div>
  167. </div>
  168. <!--主要页面配置-->
  169. <!--<div v-for="item in windowJson"
  170. :style="{
  171. left:item.Left+'px',
  172. top:item.Top+'px',
  173. width:item.Width + 'px',
  174. height:item.Height + 'px',
  175. zIndex:item.ZIndex,
  176. display:item.IsVisibility ? 'black' : 'none',
  177. backgroundImage:item.BackIcon ? 'url('+require(`../../../static/images/${item.BackIcon}`)+')' : null,
  178. backgroundRepeat:'no-repeat',
  179. backgroundSize:'100% 100%',
  180. margin:'0 auto',
  181. }"
  182. >
  183. </div>-->
  184. </div>
  185. </div>
  186. </template>
  187. <script>
  188. import {mapState} from 'vuex'
  189. import draggable from 'vuedraggable'
  190. import labelJson from '../../../static/EnityLable'
  191. import bigScreenJson from '../../../static/EnityBigScreen'
  192. import buttonJson from '../../../static/EnityButton'
  193. import signalList from '../../../static/EnitySignalPreviewList'
  194. import sliderJson from '../../../static/EnitySlider'
  195. import imageJson from '../../../static/EnityImage'
  196. import windowJson from '../../../static/EnityWindow'
  197. import storageUtils from "../../utils/storageUtils"
  198. import '../assets/less/splitscreen.less'
  199. export default {
  200. components: {
  201. draggable
  202. },
  203. data() {
  204. return {
  205. user: storageUtils.getUser(), // 本地存储的用户
  206. signalPreList: [], // 被拖到大屏中的信号源列表
  207. isDragging: false,
  208. splitScreenStatus: 0,// 分屏状态(默认0: 自由屏,1: 4分屏 2:9分屏 3: 16分屏)
  209. labelJson, // label标签配置
  210. bigScreenJson,// 大屏显示配置
  211. buttonJson, // button按钮配置
  212. signalList, // 信号源列表配置
  213. sliderJson, // 滑块配置
  214. imageJson, // 图片配置
  215. windowJson, // 主要页面配置
  216. count: 0,// 音量计数器
  217. count2: 0, // 预案管理模块计数器
  218. count3: 0, // 管理控制按钮计数器
  219. count4: 0, // 3个视频按钮计数器
  220. count5: 0, // 安卓分布式按钮
  221. systemStatus: false,// 系统开关状态,默认为关
  222. /*arr: [],// 分屏按钮数组
  223. funcBtnArr: [],// 功能按钮数组
  224. funcLabArr: [],// 功能label数组
  225. sliderArr: [],// 音量滑块数组*/
  226. }
  227. },
  228. mounted() {
  229. // 获取分屏按钮数组
  230. const 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'))
  231. const arr2 = 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'))
  232. this.arr = arr
  233. this.arr2 = arr2
  234. // 获取功能按钮涉及到的按钮和label
  235. // 1.电源管理
  236. const curSourceBtnArr = this.buttonJson.filter(item => item.WindowID === 'd80a8b6e-9f88-41ff-b3a7-1ff8d6ee37a5')
  237. const curSourceLabArr = this.labelJson.filter(item => item.WindowID === 'd80a8b6e-9f88-41ff-b3a7-1ff8d6ee37a5')
  238. // 2.音频管理
  239. const audioBtnArr = this.buttonJson.filter(item => item.WindowID === 'cb2687fd-931a-4b38-a76d-9c3ea171b8d8')
  240. const audioLabArr = this.labelJson.filter(item => item.WindowID === 'cb2687fd-931a-4b38-a76d-9c3ea171b8d8')
  241. // 3.视频管理
  242. const vedioBtnArr = this.buttonJson.filter(item => item.WindowID === '027ab76d-6b9c-46ac-abe6-75b8059f786b')
  243. const vedioLabArr = this.labelJson.filter(item => item.WindowID === '027ab76d-6b9c-46ac-abe6-75b8059f786b')
  244. // 4.环境控制
  245. const envirControlBtnArr = this.buttonJson.filter(item => item.WindowID === 'a12b287f-f68c-4efa-b652-d6e5b0a09d0d')
  246. const envirControlLabArr = this.labelJson.filter(item => item.WindowID === 'a12b287f-f68c-4efa-b652-d6e5b0a09d0d')
  247. // 5.电脑控制
  248. const compControlBtnArr = this.buttonJson.filter(item => item.WindowID === 'd9868551-b579-4258-9bc7-7c1f733773f5')
  249. const compControlLabArr = this.labelJson.filter(item => item.WindowID === 'd9868551-b579-4258-9bc7-7c1f733773f5')
  250. const funcBtnArr = [...curSourceBtnArr, ...audioBtnArr, ...vedioBtnArr, ...envirControlBtnArr, ...compControlBtnArr]
  251. const funcLabArr = [...curSourceLabArr, ...audioLabArr, ...vedioLabArr, ...envirControlLabArr, ...compControlLabArr]
  252. const sliderArr = [...this.sliderJson]
  253. this.funcBtnArr = funcBtnArr
  254. this.funcLabArr = funcLabArr
  255. this.sliderArr = sliderArr
  256. },
  257. methods: {
  258. // 移动信号源
  259. onMove({relatedContext, draggedContext}) {
  260. const relatedElement = relatedContext.element
  261. const draggedElement = draggedContext.element
  262. return (
  263. (!relatedElement || !relatedElement.fixed) && !draggedElement.fixed
  264. )
  265. },
  266. // 分屏操作
  267. spliceScreen(value) {
  268. this.splitScreenStatus = value
  269. },
  270. // 点击按钮
  271. clickBtn(e) {
  272. console.log(e)
  273. // 切换屏幕
  274. if (e.Text === 'LCD屏' || e.Text === 'LED屏' || e.Text === '投影机') {
  275. // 首先清屏
  276. this.signalPreList = []
  277. this.arr.forEach((item, index) => {
  278. if (e.MouseDownActionList[0].SourceID === item.WindowID) {
  279. item.IsVisibility = true
  280. } else {
  281. item.IsVisibility = false
  282. }
  283. })
  284. this.buttonJson = [...this.buttonJson, ...this.arr]
  285. }
  286. // 声音开关按钮处理
  287. if (e.ID === '355d3c32-1502-40b4-9ddd-663d5b8469e7') {
  288. if (this.count % 2 === 0) {
  289. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  290. ++this.count
  291. } else {
  292. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.BackIcon}`) + ')'
  293. ++this.count
  294. }
  295. return
  296. }
  297. // 预案管理按钮处理
  298. if (e.Name.includes('V0') && e.Name.slice(7) * 1 > 62 && e.Name.slice(7) * 1 < 72) {
  299. if (this.count2 === 0) {
  300. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  301. ++this.count2
  302. } else {
  303. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  304. this.lastBtn.style.backgroundImage = 'url(' + require(`../../../static/images/${this.lastData.BackIcon}`) + ')'
  305. }
  306. // 保存点过的这个按钮和按钮数据
  307. this.lastBtn = this.$refs[e.ID][0]
  308. this.lastData = e
  309. return
  310. }
  311. // 3个屏控制按钮处理
  312. if (e.Text.includes('投影机') || e.Text.includes('LCD屏') || e.Text.includes('LED屏')) {
  313. if (this.count4 === 0) {
  314. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  315. ++this.count4
  316. } else {
  317. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  318. this.lastBtn4.style.backgroundImage = 'url(' + require(`../../../static/images/${this.lastData4.BackIcon}`) + ')'
  319. }
  320. // 保存点过的这个按钮和按钮数据
  321. this.lastBtn4 = this.$refs[e.ID][0]
  322. this.lastData4 = e
  323. return
  324. }
  325. // 5个管理控制按钮处理
  326. if (e.Name.includes('V0--Btn6') || e.Name.includes('V0--Btn61') || e.Name.includes('V0--Btn12') || e.Name.includes('V0--Btn58') || e.Name.includes('V0--Btn77')) {
  327. // (1)背景切换
  328. if (this.count3 === 0) {
  329. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  330. ++this.count3
  331. } else {
  332. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  333. this.lastBtn3.style.backgroundImage = 'url(' + require(`../../../static/images/${this.lastData3.BackIcon}`) + ')'
  334. }
  335. // 保存点过的这个按钮和按钮数据
  336. this.lastBtn3 = this.$refs[e.ID][0]
  337. this.lastData3 = e
  338. // (2)界面切换
  339. this.funcBtnArr.forEach((item, index) => {
  340. if (e.MouseDownActionList[0].SourceID === item.WindowID) {
  341. item.IsVisibility = true
  342. } else {
  343. item.IsVisibility = false
  344. }
  345. })
  346. this.funcLabArr.forEach((item, index) => {
  347. if (e.MouseDownActionList[0].SourceID === item.WindowID) {
  348. item.IsVisibility = true
  349. } else {
  350. item.IsVisibility = false
  351. }
  352. })
  353. this.sliderArr.forEach((item, index) => {
  354. if (e.MouseDownActionList[0].SourceID === item.WindowID) {
  355. item.IsVisibility = true
  356. } else {
  357. item.IsVisibility = false
  358. }
  359. })
  360. this.buttonJson = [...this.buttonJson, ...this.funcBtnArr]
  361. this.labelJson = [...this.labelJson, ...this.funcLabArr]
  362. this.sliderJson = [...this.sliderJson, ...this.sliderArr]
  363. return
  364. }
  365. // LED屏分屏和清屏操作
  366. if (e.ID === '7775e508-c6a5-4044-8264-24772a24fa97') {
  367. this.signalPreList = []
  368. return
  369. } else if (e.ID === '49653a62-99cb-40e1-a513-60e42893adb7') {
  370. // 自由屏
  371. this.spliceScreen(0)
  372. return
  373. } else if (e.ID === '52de9a2e-d171-423d-860f-3fe2750ec757') {
  374. // 四分屏
  375. this.spliceScreen(1)
  376. return
  377. } else if (e.ID === 'ac0cc31c-a9b8-4bdf-88cf-928964b93ac5') {
  378. // 九分屏
  379. this.spliceScreen(2)
  380. return
  381. }
  382. // LCD屏分屏和清屏操作
  383. if (e.ID === '95c5d676-46a5-4c46-b550-9bc013a59937') {
  384. this.signalPreList = []
  385. return
  386. } else if (e.ID === 'd55c81a8-54d7-4d90-aad7-4f34c3ba3950') {
  387. // 自由屏
  388. this.spliceScreen(0)
  389. return
  390. } else if (e.ID === '0cabb1ba-bcae-45d9-b019-2b45486f98e3') {
  391. // 四分屏
  392. this.spliceScreen(1)
  393. return
  394. } else if (e.ID === '201e4bb0-c039-46c7-a55a-049d00de4769') {
  395. // 九分屏
  396. this.spliceScreen(2)
  397. return
  398. } else if (e.ID === '2d4c49bc-905b-4f96-a65c-9b0a3e057b3f') {
  399. // 16分屏
  400. this.spliceScreen(3)
  401. return
  402. }
  403. // 投影机分屏和清屏操作
  404. if (e.ID === 'f47e84bb-c878-4b22-a9d6-eb2e307283bc') {
  405. this.signalPreList = []
  406. return
  407. } else if (e.ID === '4142ab5b-ce52-4655-a28d-724bfabb24f0') {
  408. // 自由屏
  409. this.spliceScreen(0)
  410. return
  411. } else if (e.ID === '9bb5b3e3-9e21-4716-8059-f5b35b24e3fa') {
  412. // 四分屏
  413. this.spliceScreen(1)
  414. return
  415. }
  416. // 安卓和分布式按钮
  417. if (e.Text === '安卓' || e.Text === '分布式') {
  418. if (this.count5 === 0) {
  419. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  420. ++this.count5
  421. } else {
  422. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  423. this.lastBtn5.style.backgroundImage = 'url(' + require(`../../../static/images/${this.lastData5.BackIcon}`) + ')'
  424. }
  425. // 保存点过的这个按钮和按钮数据
  426. this.lastBtn5 = this.$refs[e.ID][0]
  427. this.lastData5 = e
  428. return
  429. }
  430. // 系统开关按钮
  431. if (e.ID === 'aea34c76-4216-469b-9610-9889a2d42d06') {
  432. this.systemStatus = !this.systemStatus
  433. if (this.systemStatus) { // 开启,同时开启LCD屏和坐席电源
  434. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  435. this.$refs['f5361d60-6868-4c59-806b-22b85e7c9e3e'][0].style.backgroundImage = 'url(' + require(`../../../static/images/73.png`) + ')'
  436. this.$refs['4d3266e8-64b5-4765-a36d-7e271eb3c8e8'][0].style.backgroundImage = 'url(' + require(`../../../static/images/73.png`) + ')'
  437. } else { // 关闭
  438. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.BackIcon}`) + ')'
  439. this.$refs['f5361d60-6868-4c59-806b-22b85e7c9e3e'][0].style.backgroundImage = 'url(' + require(`../../../static/images/75.png`) + ')'
  440. this.$refs['4d3266e8-64b5-4765-a36d-7e271eb3c8e8'][0].style.backgroundImage = 'url(' + require(`../../../static/images/75.png`) + ')'
  441. }
  442. return false
  443. }
  444. },
  445. // 鼠标按下事件
  446. mouseDown(e) {
  447. if (this.arr.some(item => e === item)) {
  448. console.log(e, '鼠标按下了')
  449. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.ActionIcon}`) + ')'
  450. }
  451. return
  452. },
  453. // 鼠标松开事件
  454. mouseUp(e) {
  455. if (this.arr.some(item => e === item)) {
  456. console.log(e, '鼠标抬起了')
  457. this.$refs[e.ID][0].style.backgroundImage = 'url(' + require(`../../../static/images/${e.BackIcon}`) + ')'
  458. }
  459. return
  460. },
  461. },
  462. computed: {
  463. ...mapState(['deviceList']),
  464. dragOptions1() {
  465. return {
  466. animation: 0,
  467. group: {
  468. name: "description",
  469. pull: 'clone',
  470. put: false
  471. },
  472. ghostClass: "ghost",
  473. }
  474. },
  475. dragOptions2() {
  476. return {
  477. animation: 0,
  478. group: "description",
  479. }
  480. },
  481. }
  482. }
  483. </script>
  484. <style lang="less">
  485. // 容器样式
  486. .containers {
  487. width: 100%;
  488. height: 981px;
  489. background-color: #333;
  490. // 列表项样式
  491. .signal_item {
  492. width: 100%;
  493. height: 132px;
  494. display: flex;
  495. justify-content: center;
  496. align-items: center;
  497. /*背景*/
  498. .signal_item_bg {
  499. width: 90%;
  500. height: 130px;
  501. display: flex;
  502. justify-content: center;
  503. align-items: center;
  504. &:hover {
  505. background-color: rgba(113, 113, 113, 0.3);
  506. }
  507. /*主体*/
  508. .signal_item_bg_body {
  509. width: 96%;
  510. height: 96%;
  511. background-color: rgba(127, 127, 127, 0.5);
  512. border-radius: 2px;
  513. /*空间*/
  514. .signal_item_bg_body_space {
  515. width: 94%;
  516. height: 80%;
  517. background-color: green;
  518. margin: 6px auto 2px;
  519. }
  520. /*文字*/
  521. .signal_item_bg_body_font {
  522. width: 100%;
  523. height: 15%;
  524. text-align: center;
  525. margin: 0 auto;
  526. font-size: 16px;
  527. color: #fff;
  528. font-family: "Gill Sans", sans-serif;
  529. }
  530. }
  531. }
  532. }
  533. // 滚动条样式
  534. /*定义滚动条高宽及背景高宽:分别对应横竖滚动条的尺寸*/
  535. ::-webkit-scrollbar {
  536. width: 4px;
  537. background-color: rgba(10, 66, 125, 0.65);
  538. }
  539. /*定义滚动条轨道:内阴影+圆角*/
  540. ::-webkit-scrollbar-track {
  541. -webkit-box-shadow: inset 0 0 6px rgba(10, 66, 125, 0.3);
  542. border-radius: 10px;
  543. background-color: rgba(10, 66, 125, 0.65);
  544. }
  545. /*定义滑块:内阴影+圆角*/
  546. ::-webkit-scrollbar-thumb {
  547. border-radius: 10px;
  548. -webkit-box-shadow: inset 0 0 6px rgba(10, 66, 125, .3);
  549. background-color: #666;
  550. }
  551. }
  552. </style>