home1.vue 36 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097
  1. <template>
  2. <div class="home-main" id="my-home-main" :style="`transform: scale(${toScale}) !important;`">
  3. <div class="top">
  4. <div class="top-name">江西昌柘伟业航空装备技术有限公司</div>
  5. </div>
  6. <div v-if="show" class="full-screen" @click="fullScreen">
  7. <svg t="1732355752742" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4253" width="200" height="200"><path d="M368.896 192H224a32 32 0 0 0-32 32v137.888a32 32 0 0 0 64 0V256h112.896a32 32 0 0 0 0-64zM784.864 192H640a32 32 0 1 0 0 64h112.864v105.888a32 32 0 1 0 64 0V224a32 32 0 0 0-32-32zM368.896 777.92H256V672a32 32 0 1 0-64 0v137.92a32 32 0 0 0 32 32h144.896a32 32 0 1 0 0-64zM784.864 640a32 32 0 0 0-32 32v105.92H640a32 32 0 1 0 0 64h144.864a32 32 0 0 0 32-32V672a32 32 0 0 0-32-32z" fill="#273CFF" p-id="4254"></path><path d="M912 48h-800c-35.296 0-64 28.704-64 64v800c0 35.296 28.704 64 64 64h800c35.296 0 64-28.704 64-64v-800c0-35.296-28.704-64-64-64z m-800 864v-800h800l0.064 800H112z" fill="#273CFF" p-id="4255"></path></svg>
  8. </div>
  9. <div class="main-center">
  10. <div class="center-1">
  11. <div class="item-title">
  12. <div class="item-title-name">设备报维修记录</div>
  13. </div>
  14. <div class="msg-1">
  15. <div class="table-head">
  16. <div class="head1">设备名称</div>
  17. <div class="head2">设备刷新时间</div>
  18. <div class="head3">运行状态</div>
  19. </div>
  20. <div class="list">
  21. <seamless-scroll :data="equipmentRepairList" class="seamless-scroll" :class-option="{ step: 0.5 }">
  22. <div v-for="item in equipmentRepairList" class="msg-item">
  23. <div class="item-1">{{item.equipmentName}}</div>
  24. <div class="item-2">{{item.createTime}}</div>
  25. <div class="item-3">
  26. <span :class="{'t-r': item.state == 1, 't-g':item.state == 2}">{{equipmentState[item.state]}}</span>
  27. <!-- <span v-if="i==1" class="t-r">故障中</span>
  28. <span v-if="i==2" class="t-g">已处理</span>
  29. <span v-if="i!=1&& i!=2" class="t-b">正常</span> -->
  30. </div>
  31. </div>
  32. </seamless-scroll>
  33. </div>
  34. </div>
  35. </div>
  36. <div class="center-2">
  37. <div class="main-nav">
  38. <div class="nav-item" @click="onChange(1)">企业首页</div>
  39. <div class="nav-item" @click="onChange(2)">业务看板</div>
  40. <div class="nav-item acitve" @click="onChange(3)">生产看板</div>
  41. <div class="nav-item" @click="onChange(4)">质量看板</div>
  42. </div>
  43. <div class="msg-2">
  44. <div :class="['line-itme', index < 3 ? 'px-' + (index + 1) : 'px-' + (5-index)]" v-for="(item, index) in equipmentList">
  45. <div :class="{'items':true, 'i-l':true, 'c-b':item[0].online == 0, 'c-g':item[0].online != 0}" >
  46. <div class="icon"/>
  47. <div class="numbers">
  48. <div class="number">转速:{{item[0].spindleActualSpeed ? item[0].spindleActualSpeed : '0'}}</div>
  49. <div class="des"><span>{{item[0].name}}</span> {{item[0].codeNumber}}</div>
  50. <div class="des">使用人:{{item[0].userOfName}}</div>
  51. </div>
  52. </div>
  53. <div v-if="item.length == 2" :class="{'items':true, 'i-r':true, 'c-b':item[1].online == 0, 'c-g':item[1].online != 0}">
  54. <div class="numbers">
  55. <div class="number">转速:{{item[1].spindleActualSpeed ? item[1].spindleActualSpeed : '0'}}</div>
  56. <div class="des">{{item[1].codeNumber}}<span>{{item[1].name}}</span></div>
  57. <div class="des">使用人:{{item[1].userOfName}}</div>
  58. </div>
  59. <div class="icon"/>
  60. </div>
  61. </div>
  62. <!-- <div class="line-itme px-2">
  63. <div class="items i-l c-y">
  64. <div class="icon"/>
  65. <div class="numbers">
  66. <div class="number">300W转</div>
  67. <div class="des"><span>设备一</span>使用人:张三</div>
  68. </div>
  69. </div>
  70. <div class="items i-r c-r">
  71. <div class="numbers">
  72. <div class="number">300W转</div>
  73. <div class="des">使用人:张三<span>设备一</span></div>
  74. </div>
  75. <div class="icon"/>
  76. </div>
  77. </div>
  78. <div class="line-itme px-3">
  79. <div class="items i-l c-b">
  80. <div class="icon"/>
  81. <div class="numbers">
  82. <div class="number">300W转</div>
  83. <div class="des"><span>设备一</span>使用人:张三</div>
  84. </div>
  85. </div>
  86. <div class="items i-r c-g">
  87. <div class="numbers">
  88. <div class="number">300W转</div>
  89. <div class="des">使用人:张三<span>设备一</span></div>
  90. </div>
  91. <div class="icon"/>
  92. </div>
  93. </div>
  94. <div class="line-itme px-2">
  95. <div class="items i-l c-g">
  96. <div class="icon"/>
  97. <div class="numbers">
  98. <div class="number">300W转</div>
  99. <div class="des"><span>设备一</span>使用人:张三</div>
  100. </div>
  101. </div>
  102. <div class="items i-r c-g">
  103. <div class="numbers">
  104. <div class="number">300W转</div>
  105. <div class="des">使用人:张三<span>设备一</span></div>
  106. </div>
  107. <div class="icon"/>
  108. </div>
  109. </div>
  110. <div class="line-itme px-1">
  111. <div class="items i-l c-g">
  112. <div class="icon"/>
  113. <div class="numbers">
  114. <div class="number">300W转</div>
  115. <div class="des"><span>设备一</span>使用人:张三</div>
  116. </div>
  117. </div>
  118. <div class="items i-r c-r">
  119. <div class="numbers">
  120. <div class="number">300W转</div>
  121. <div class="des">使用人:张三<span>设备一</span></div>
  122. </div>
  123. <div class="icon"/>
  124. </div>
  125. </div> -->
  126. </div>
  127. </div>
  128. <div class="center-3">
  129. <div class="item-title">
  130. <div class="item-title-name">报工统计</div>
  131. </div>
  132. <div class="msg-3">
  133. <div class="table-h">
  134. <div class="table-h-1">序号</div>
  135. <div class="table-h-1">姓名</div>
  136. <div class="table-h-1">报工件数</div>
  137. <div class="table-h-1">报工工时</div>
  138. <div class="table-h-1">部门</div>
  139. </div>
  140. <div class="list">
  141. <seamless-scroll :data="taskCountList" class="seamless-scroll" :class-option="{ step: 0.5 }">
  142. <div v-for="(item, i) in taskCountList" :class="{'table-c-item': true, 'active': i ==3}">
  143. <div class="c-item">{{ i }}</div>
  144. <div class="c-item">{{item.userName}}</div>
  145. <div class="c-item">{{item.taskNum}}</div>
  146. <div class="c-item">{{item.taskTime}}h</div>
  147. <div class="c-item">{{item.orgName}}</div>
  148. </div>
  149. </seamless-scroll>
  150. </div>
  151. </div>
  152. </div>
  153. <div class="center-4">
  154. <div class="item-title titel-1">
  155. <div class="item-title-name">设备运行效率统计</div>
  156. </div>
  157. <div class="msg-4">
  158. <div class="item-list">
  159. <div class="tops">
  160. <div class="top-icon" />
  161. <div class="tops-title">设备稼动率统计(OEE)<span>{{utilizationRateCount}}</span></div>
  162. </div>
  163. <div class="list">
  164. <seamless-scroll :data="utilizationRateList" class="seamless-scroll" :class-option="{ step: 0.5 }">
  165. <div v-for="(item, i) in utilizationRateList" class="list-1">
  166. <div class="list-msg">
  167. <div class="msg-name">{{item.name}}</div>
  168. <div class="msg-value"><span>{{item.utilizationRate}}%</span> / 100%</div>
  169. </div>
  170. <div class="list-line">
  171. <div :class="{'line-color': true, 'c-b': item.utilizationRate >= 65, 'c-g': item.utilizationRate < 65}" :style="`width:${item.utilizationRate}%`">
  172. <div class="line-icon"/>
  173. </div>
  174. </div>
  175. </div>
  176. </seamless-scroll>
  177. </div>
  178. </div>
  179. <div class="item-list">
  180. <div class="tops">
  181. <div class="top-icon" />
  182. <div class="tops-title">设备报警记录<span>{{equipmentAlarmCount}}</span></div>
  183. </div>
  184. <div class="list">
  185. <seamless-scroll :data="equipmentAlarmList" class="seamless-scroll" :class-option="{ step: 0.5 }">
  186. <div v-for="(item, i) in equipmentAlarmList" class="list-1">
  187. <div class="list-msg">
  188. <div class="msg-name">{{item.equipmentName}}</div>
  189. <!-- <div class="msg-value"><span :class="{'t-o': item.percent < 70, 't-r': item.percent >= 70}">{{item.percent}}%</span> / 100%</div> -->
  190. </div>
  191. <div class="list-line-2">
  192. <div :class="{'line-color': true, 'c-o': item.percent < 70, 'c-r': item.percent >= 70}">
  193. <!-- <div class="line-icon"/> -->
  194. <div class="msg">{{item.alarmMsg}}</div>
  195. </div>
  196. </div>
  197. </div>
  198. </seamless-scroll>
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. <div class="center-5">
  204. <div class="item-title titel-1">
  205. <div class="item-title-name">实时报工列表</div>
  206. </div>
  207. <div class="msg-5">
  208. <div class="table-h">
  209. <div class="h-1">序号</div>
  210. <div class="h-1">工序</div>
  211. <div class="h-1">物料名字</div>
  212. <div class="h-1">完成时间</div>
  213. <div class="h-1">操作人</div>
  214. </div>
  215. <div class="list">
  216. <seamless-scroll :data="submittedRecordList" class="seamless-scroll" :class-option="{ step: 0.5 }">
  217. <div v-for="(item,i) in submittedRecordList" :class="{'table-line': true, 'acitve': i == 300}">
  218. <div class="h-1">NO.{{ (i + 1).toString().padStart(2,'0') }}</div>
  219. <div class="h-1">{{item.nodeName}}</div>
  220. <div class="h-1">{{item.taskName}}</div>
  221. <div class="h-1">{{item.endTime}}</div>
  222. <div class="h-1">{{item.operatorName}}</div>
  223. </div>
  224. </seamless-scroll>
  225. </div>
  226. </div>
  227. </div>
  228. </div>
  229. </div>
  230. </template>
  231. <script>
  232. import {getOrgName} from '@/api/org'
  233. import {getEquipmentRepair, getTaskCount, getEquipmentUtilizationRate, getSubmittedRecord, getEquipmentAlarm} from '@/api/home1'
  234. import {getEquipmentList} from '@/api/production'
  235. import SeamlessScroll from 'vue-seamless-scroll' // 引入组件
  236. export default {
  237. components: { SeamlessScroll }, // 注册组件
  238. data () {
  239. return {
  240. orgName: '',
  241. toScale: 1.0,
  242. show: true,
  243. equipmentState: {
  244. '1': '待维修',
  245. '2': '已维修'
  246. },
  247. percent: 50,
  248. equipmentRepairList: [], // 设备报维修记录
  249. taskCountList: [], // 报工统计
  250. utilizationRateCount: 0, // 设备运行效率统计总数量
  251. utilizationRateList: [], // 设备运行效率统计
  252. submittedRecordList: [], // 实时报工列表
  253. equipmentAlarmCount: 0, // 设备报警记录总数量
  254. equipmentAlarmList: [], // 设备报警记录
  255. equipmentList: [], // 设备列表
  256. equipmentListPageIndex: 0
  257. }
  258. },
  259. created () {
  260. this.init()
  261. },
  262. mounted () {
  263. this.$nextTick(() => {
  264. let screen = document.getElementById('my-home-main')
  265. if (screen.requestFullscreen) {
  266. document.addEventListener('fullscreenchange', () => {
  267. if (this.getFullscreenElement() == null) {
  268. this.setScale()
  269. this.show = true
  270. }
  271. })
  272. }
  273. setTimeout(() => {
  274. this.setScale()
  275. }, 500)
  276. })
  277. this.startScroll()
  278. },
  279. methods: {
  280. async init () {
  281. await getOrgName().then(({data}) => {
  282. this.orgName = data.data
  283. })
  284. // 设备报维修记录
  285. this.getEquipmentRepair()
  286. // 报工统计
  287. this.getTaskCount()
  288. // 设备运行效率统计
  289. this.getEquipmentUtilizationRate()
  290. // 实时报工列表
  291. this.getSubmittedRecord()
  292. // 设备报警记录
  293. this.getEquipmentAlarm()
  294. // 设备列表
  295. setInterval(() => {
  296. this.getEquipmentList()
  297. }, 10000)
  298. this.getEquipmentList()
  299. },
  300. getFullscreenElement () {
  301. return (
  302. document['fullscreenElement'] ||
  303. document['mozFullScreenElement'] ||
  304. document['msFullScreenElement'] ||
  305. document['webkitFullscreenElement'] || null
  306. )
  307. },
  308. setScale () {
  309. const elements = document.getElementsByClassName('my-home')
  310. const toWidth = elements[0].offsetWidth
  311. this.toScale = toWidth / 1920
  312. elements[0].style.height = (1080 * this.toScale) + 'px'
  313. },
  314. fullScreen () {
  315. const element = document.getElementsByClassName('my-home')
  316. element[0].requestFullscreen()
  317. const toWidth = window.innerWidth
  318. this.toScale = toWidth / 1920
  319. this.show = false
  320. },
  321. onChange (num) {
  322. this.$emit('change-nav', num)
  323. },
  324. // 设备报维修记录
  325. getEquipmentRepair () {
  326. let param = {current: 1, size: 50}
  327. getEquipmentRepair(param).then(({data}) => {
  328. if (data && data.code === '200') {
  329. if (data.data != null && data.data.records != null) {
  330. this.equipmentRepairList = data.data.records.map(item => {
  331. return {
  332. equipmentName: item.equipmentName == null ? '未知设备' : item.equipmentName,
  333. state: item.state,
  334. createTime: item.createTime
  335. }
  336. })
  337. }
  338. }
  339. })
  340. },
  341. // 报工统计
  342. getTaskCount () {
  343. let param = {current: 1, size: 50, queryType: 2}
  344. getTaskCount(param).then(({data}) => {
  345. if (data && data.code === '200') {
  346. if (data.data != null && data.data.records != null) {
  347. this.taskCountList = data.data.records.map(item => {
  348. return {
  349. userName: item.userName,
  350. taskNum: item.taskNum,
  351. taskTime: item.taskTime,
  352. orgName: item.orgName
  353. }
  354. })
  355. }
  356. }
  357. })
  358. },
  359. // 设备运行效率统计
  360. getEquipmentUtilizationRate () {
  361. let param = {current: 1, size: 50}
  362. getEquipmentUtilizationRate(param).then(({data}) => {
  363. if (data && data.code === '200') {
  364. if (data.data != null && data.data.records != null) {
  365. this.utilizationRateCount = data.data.total
  366. this.utilizationRateList = data.data.records.map(item => {
  367. return {
  368. id: item.id,
  369. name: item.name,
  370. utilizationRate: item.utilizationRate
  371. }
  372. })
  373. }
  374. }
  375. })
  376. },
  377. // 实时报工列表
  378. getSubmittedRecord () {
  379. let param = {current: 1, size: 50}
  380. getSubmittedRecord(param).then(({data}) => {
  381. if (data && data.code === '200') {
  382. if (data.data != null && data.data.records != null) {
  383. this.submittedRecordList = data.data.records.map(item => {
  384. return {
  385. taskName: item.taskName,
  386. operatorName: item.operatorName,
  387. operationRecords: item.operationRecords,
  388. nodeName: item.nodeName,
  389. endTime: item.endTime
  390. }
  391. })
  392. }
  393. }
  394. })
  395. },
  396. // 设备报警记录
  397. getEquipmentAlarm () {
  398. let param = {current: 1, size: 50}
  399. getEquipmentAlarm(param).then(({data}) => {
  400. if (data && data.code === '200') {
  401. if (data.data != null && data.data.records != null) {
  402. this.equipmentAlarmCount = data.data.total
  403. this.equipmentAlarmList = data.data.records.map(item => {
  404. return {...item}
  405. })
  406. }
  407. }
  408. })
  409. },
  410. // 设备列表
  411. getEquipmentList () {
  412. this.equipmentListPageIndex++
  413. let param = {current: this.equipmentListPageIndex, size: 10}
  414. getEquipmentList(param).then(({data}) => {
  415. if (data && data.code === '200') {
  416. if (data.data != null && data.data.records != null) {
  417. let list = data.data.records
  418. this.equipmentList = []
  419. for (let i = 0; i < list.length; i += 2) {
  420. this.equipmentList.push(list.slice(i, i + 2))
  421. }
  422. if (parseInt(data.data.pages) <= this.equipmentListPageIndex) {
  423. this.equipmentListPageIndex = 0
  424. }
  425. }
  426. }
  427. })
  428. },
  429. startScroll () {
  430. const scrollContainer = this.$el.querySelector('.seamless-scroll')
  431. let top = 0 // 初始位置
  432. const interval = setInterval(() => {
  433. top -= 1 // 每次减少1px,可以根据需要调整速度和方向
  434. scrollContainer.scrollTop = top
  435. }, 200) // 调整这个值来改变速度,数值越小速度越快
  436. }
  437. }
  438. }
  439. </script>
  440. <style scoped lang="scss">
  441. @font-face {
  442. font-family: 'YouSheBiaoTiHei';
  443. src: url('../../assets/home/YouSheBiaoTiHei-2.ttf') format('truetype'); /* 最后优先级 */
  444. }
  445. .home-main{
  446. background: url(../../assets/home/bg.png) no-repeat;
  447. background-size: 100% 100%;
  448. height: 1080px !important;
  449. width: 1920px !important;
  450. overflow: auto;
  451. font-family: YouSheBiaoTiHei;
  452. position: relative;
  453. transform-origin: left top;
  454. .top{
  455. height: 104px;
  456. width: 1920px;
  457. background: url(../../assets/home/top.png) no-repeat;
  458. background-size: 100% 100%;
  459. display: flex;
  460. padding-top:12px;
  461. justify-content: center;
  462. position: absolute;
  463. top: 0;
  464. .top-name{
  465. font-size: 39px;
  466. color: #FFFFFF;
  467. line-height: 51px;
  468. letter-spacing: 11px;
  469. text-shadow: 0px 2px 9px #001E8D;
  470. font-style: normal;
  471. text-transform: none;
  472. }
  473. }
  474. .main-center{
  475. display: flex;
  476. width: 1920px;
  477. flex-flow: wrap;
  478. .center-1{
  479. width: 541px;
  480. min-width: 541px;
  481. padding-left: 16px;
  482. padding-right: 8px;
  483. padding-top: 63px;
  484. }
  485. .center-2{
  486. flex: 1;
  487. overflow: hidden;
  488. padding-top: 88px;
  489. }
  490. .center-3{
  491. width: 541px;
  492. min-width: 541px;
  493. padding-left: 16px;
  494. padding-right: 8px;
  495. padding-top: 63px;
  496. }
  497. .center-4{
  498. width: 50%;
  499. padding-left: 16px;
  500. padding-right: 8px;
  501. }
  502. .center-5{
  503. width: 50%;
  504. padding-left: 16px;
  505. padding-right: 8px;
  506. }
  507. .flex-1{
  508. flex: 1;
  509. }
  510. .item-title{
  511. height: 48px;
  512. width: 100%;
  513. display: flex;
  514. background: url(../../assets/home/title.png) no-repeat;
  515. background-size: 100% 100%;
  516. align-items: center;
  517. .item-title-name{
  518. font-size: 24px;
  519. color: #FFFFFF;
  520. line-height: 31px;
  521. letter-spacing: 2px;
  522. text-shadow: 0px 1px 5px rgba(0,15,108,0.66);
  523. font-style: normal;
  524. text-transform: none;
  525. padding-left: 32px;
  526. }
  527. }
  528. .titel-1{
  529. width: 100%;
  530. background: url(../../assets/home/title2.png) no-repeat;
  531. background-size: 100% 100%;
  532. }
  533. .msg-1{
  534. width: 500px;
  535. height: 471px;
  536. background: url(../../assets/home/bg_1.png) no-repeat;
  537. background-size: 100% 100%;
  538. margin-left: 5px;
  539. padding-top:16px;
  540. padding-left: 21px;
  541. padding-right: 17px;
  542. margin-bottom: 12px;
  543. .list{
  544. height: 400px;
  545. overflow: hidden;
  546. }
  547. .table-head{
  548. display: flex;
  549. font-family: PingFangSC, PingFang SC;
  550. font-weight: 500;
  551. font-size: 18px;
  552. color: #FFFFFF;
  553. line-height: 25px;
  554. letter-spacing: 1px;
  555. font-style: normal;
  556. background: url(../../assets/home/table_h.png) no-repeat;
  557. background-size: 100% 100%;
  558. height: 41px;
  559. width: 462px;
  560. align-items: center;
  561. .head1{
  562. flex:1;
  563. padding-left: 11px;
  564. }
  565. .head3{
  566. flex:1;
  567. text-align: center;
  568. }
  569. .head2{
  570. width: 220px;
  571. min-width:200px;
  572. text-align: center;
  573. }
  574. }
  575. .msg-item{
  576. display: flex;
  577. background: url(../../assets/home/line_1.png) no-repeat;
  578. background-size: 100% 100%;
  579. height: 43px;
  580. width: 462px;
  581. margin-top: 7px;
  582. font-family: PingFangSC, PingFang SC;
  583. font-weight: 400;
  584. font-size: 18px;
  585. color: #FFFFFF;
  586. line-height: 25px;
  587. letter-spacing: 1px;
  588. font-style: normal;
  589. align-items: center;
  590. .item-1{
  591. flex:1;
  592. padding-left: 33px;
  593. }
  594. .item-3{
  595. flex:1;
  596. text-align: center;
  597. }
  598. .item-2{
  599. width: 220px;
  600. min-width:200px;
  601. text-align: center;
  602. }
  603. .t-r{
  604. color: #FF5050;
  605. }
  606. .t-b{
  607. color: #4D8CFF;
  608. }
  609. .t-g{
  610. color: #18CB68;
  611. }
  612. }
  613. .active{
  614. background: url(../../assets/home/active_line.png) no-repeat;
  615. background-size: 100% 100%;
  616. }
  617. }
  618. .msg-3{
  619. width: 500px;
  620. height: 471px;
  621. background: url(../../assets/home/bg_1.png) no-repeat;
  622. background-size: 100% 100%;
  623. padding-top: 21px;
  624. padding-left: 21px;
  625. padding-right: 18px;
  626. margin-left: 5px;
  627. .list{
  628. height: 400px;
  629. overflow: hidden;
  630. }
  631. .table-h{
  632. width: 459px;
  633. height: 38px;
  634. background: url(../../assets/home/table.png) no-repeat;
  635. background-size: 100% 100%;
  636. display: flex;
  637. align-items: center;
  638. font-family: PingFangSC, PingFang SC;
  639. font-weight: 500;
  640. font-size: 16px;
  641. color: #FFFFFF;
  642. line-height: 26px;
  643. font-style: normal;
  644. text-transform: none;
  645. .table-h-1{
  646. flex: 1;
  647. text-align: center;
  648. }
  649. }
  650. .table-c-item{
  651. width: 459px;
  652. height: 40px;
  653. display: flex;
  654. align-items: center;
  655. font-family: PingFangSC, PingFang SC;
  656. font-weight: 500;
  657. font-size: 14px;
  658. color: #FFFFFF;
  659. line-height: 20px;
  660. font-style: normal;
  661. .c-item{
  662. flex: 1;
  663. text-align: center;
  664. }
  665. &:nth-child(odd) {
  666. background-color: rgba(52, 114, 255, 0.1);
  667. }
  668. }
  669. .active{
  670. background: url(../../assets/home/active2.png) no-repeat;
  671. background-size: 100% 100%;
  672. }
  673. }
  674. .main-nav{
  675. display: flex;
  676. justify-content: space-between;
  677. padding: 0 11px;
  678. margin-bottom: 13px;
  679. .nav-item{
  680. width: 182px;
  681. height: 57px;
  682. background: url(../../assets/home/menu.png) no-repeat;
  683. background-size: 100% 100%;
  684. display: flex;
  685. justify-content:center;
  686. align-items: center;
  687. font-size: 18px;
  688. color: #FFFFFF;
  689. line-height: 23px;
  690. text-shadow: 0px 0px 7px rgba(255,177,30,0.8);
  691. font-style: normal;
  692. text-transform: none;
  693. cursor: pointer;
  694. }
  695. .acitve{
  696. background: url(../../assets/home/active.png) no-repeat;
  697. background-size: 100% 100%;
  698. }
  699. }
  700. .msg-2{
  701. width: 100%;
  702. .line-itme{
  703. display: flex;
  704. justify-content: space-between;
  705. align-items: center;
  706. margin-bottom: 5px;
  707. margin-top: 0px;
  708. .items{
  709. width: 274px;
  710. height: 80px;
  711. display: flex;
  712. align-items: center;
  713. .icon{
  714. width: 60px;
  715. height: 48px;
  716. min-width: 60px;
  717. }
  718. .numbers{
  719. flex: 1;
  720. .number{
  721. font-family: YouSheBiaoTiHei;
  722. font-size: 24px;
  723. line-height: 31px;
  724. font-style: normal;
  725. }
  726. .des{
  727. font-family: PingFangSC, PingFang SC;
  728. font-weight: 400;
  729. font-size: 12px;
  730. color: #FFFFFF;
  731. line-height: 17px;
  732. font-style: normal;
  733. }
  734. }
  735. }
  736. .i-l{
  737. .icon{
  738. margin-left: 17px;
  739. margin-right: 6px;
  740. }
  741. .des{
  742. span{
  743. padding-right: 16px;
  744. }
  745. }
  746. }
  747. .i-r{
  748. .icon{
  749. margin-right: 17px;
  750. margin-left: 6px;
  751. }
  752. .numbers{
  753. text-align: right;
  754. .des{
  755. span{
  756. padding-left: 16px;
  757. }
  758. }
  759. }
  760. }
  761. .c-g{
  762. background: url(../../assets/home/lin_g.png) no-repeat;
  763. background-size: 100% 33px;
  764. background-position-y: bottom;
  765. .icon{
  766. background: url(../../assets/home/icon_g.png) no-repeat;
  767. background-size: 100% 100%;
  768. }
  769. .number{
  770. // background: linear-gradient(0deg, #60FFE0 0%, #FFFFFF 100%);
  771. background-clip: text;
  772. color: #60FFE0;
  773. }
  774. }
  775. .c-r{
  776. background: url(../../assets/home/lin_r.png) no-repeat;
  777. background-size: 100% 33px;
  778. background-position-y: bottom;
  779. .icon{
  780. background: url(../../assets/home/icon_r.png) no-repeat;
  781. background-size: 100% 100%;
  782. }
  783. .number{
  784. // background: linear-gradient(0deg, #FF4141 0%, #FFFFFF 100%);
  785. background-clip: text;
  786. color: #FFFFFF;
  787. }
  788. }
  789. .c-b{
  790. background: url(../../assets/home/lin_b.png) no-repeat;
  791. background-size: 100% 33px;
  792. background-position-y: bottom;
  793. .icon{
  794. background: url(../../assets/home/icon_b.png) no-repeat;
  795. background-size: 100% 100%;
  796. }
  797. .number{
  798. // background: linear-gradient(0deg, #5A5A5A 0%, #FFFFFF 100%);
  799. background-clip: text;
  800. color: #FFFFFF;
  801. }
  802. }
  803. .c-y{
  804. background: url(../../assets/home/lin_y.png) no-repeat;
  805. background-size: 100% 33px;
  806. background-position-y: bottom;
  807. .icon{
  808. background: url(../../assets/home/icon_y.png) no-repeat;
  809. background-size: 100% 100%;
  810. }
  811. .number{
  812. // background: linear-gradient(0deg, #FDC73D 0%, #FFFFFF 100%);
  813. background-clip: text;
  814. color: #FFFFFF;
  815. }
  816. }
  817. }
  818. .px-1{
  819. padding: 0 46px;
  820. }
  821. .px-2{
  822. padding: 0 24px;
  823. }
  824. .px-3{
  825. padding: 0 10px;
  826. }
  827. }
  828. .msg-4{
  829. width: 923px;
  830. height: 425px;
  831. background: url(../../assets/home/bg_2.png) no-repeat;
  832. background-size: 100% 100%;
  833. padding-top: 18px;
  834. padding-left: 21px;
  835. padding-right: 13px;
  836. margin-left: 5px;
  837. display: flex;
  838. justify-content: space-between;
  839. .item-list{
  840. width: 439px;
  841. .tops{
  842. display: flex;
  843. justify-content: space-between;
  844. align-items: center;
  845. .top-icon{
  846. width: 34px;
  847. height: 34px;
  848. background: url(../../assets/home/title_icon.png) no-repeat;
  849. background-size: 100% 100%;
  850. }
  851. .tops-title{
  852. width:398px;
  853. height: 35px;
  854. background: url(../../assets/home/table_1.png) no-repeat;
  855. background-size: 100% 100%;
  856. font-family: PingFangSC, PingFang SC;
  857. font-weight: 400;
  858. font-size: 18px;
  859. color: #FFFFFF;
  860. line-height: 25px;
  861. text-shadow: 0px 0px 3px rgba(30,198,255,0.8);
  862. font-style: normal;
  863. text-transform: none;
  864. display: flex;
  865. align-items: center;
  866. span{
  867. flex: 1;
  868. text-align: right;
  869. font-weight: 600;
  870. font-size: 20px;
  871. color: #D8D8D8;
  872. line-height: 23px;
  873. font-style: normal;
  874. text-transform: none;
  875. // background: linear-gradient(0deg, #0DCAF5 0%, #9BE5FF 67%, #FFFFFF 100%);
  876. background-clip: text;
  877. color: transparent;
  878. padding-right: 20px;
  879. }
  880. }
  881. }
  882. .list{
  883. margin-top: 9px;
  884. height: 345px;
  885. width: 439px;
  886. background: url(../../assets/home/table_1_bg.png) no-repeat;
  887. background-size: 100% 100%;
  888. overflow: auto;
  889. .list-1{
  890. padding: 12px 14px;
  891. padding-bottom: 2px;
  892. .list-msg{
  893. display: flex;
  894. align-items: center;
  895. font-family: PingFangSC, PingFang SC;
  896. font-weight: 400;
  897. font-size: 16px;
  898. color: #FFFFFF;
  899. line-height: 21px;
  900. font-style: normal;
  901. text-transform: none;
  902. .msg-name{
  903. flex: 1;
  904. }
  905. .msg-value{
  906. font-size: 18px;
  907. span{
  908. color: #2D9BF5;
  909. }
  910. .t-r{
  911. color: #FF0022;
  912. }
  913. .t-o{
  914. color: #D48021;
  915. }
  916. }
  917. }
  918. .list-line{
  919. position: relative;
  920. background: #FFFFFF;
  921. height: 6px;
  922. margin: 13px 0;
  923. border-radius: 3px;
  924. .line-color{
  925. position: absolute;
  926. left: 0;
  927. height: 6px;
  928. width: 80%;
  929. display: flex;
  930. justify-content: end;
  931. align-items: center;
  932. border-radius: 3px;
  933. .line-icon{
  934. background: url(../../assets/home/r_w.png) no-repeat;
  935. background-size: 100% 100%;
  936. width: 28px;
  937. height: 28px;
  938. margin-right: -14px;
  939. }
  940. }
  941. .c-b{
  942. background: linear-gradient( -90deg, #2C52FF 0%, rgba(56,139,252,0) 100%);
  943. }
  944. .c-g{
  945. background: linear-gradient( -90deg, #00C6FF 0%, rgba(56,139,252,0) 100%);
  946. }
  947. .c-o{
  948. background: linear-gradient( -90deg, #FF952C 0%, rgba(56,139,252,0) 100%);
  949. }
  950. .c-r{
  951. background: linear-gradient( -90deg, #FF0000 0%, rgba(56,139,252,0) 100%);
  952. }
  953. }
  954. .list-line-2{
  955. position: relative;
  956. background: #FFFFFF;
  957. height: 22px;
  958. margin: 6px 0;
  959. border-radius: 3px;
  960. .line-color{
  961. position: absolute;
  962. left: 0;
  963. height: 22px;
  964. width: 100%;
  965. display: flex;
  966. // justify-content: end;
  967. align-items: center;
  968. border-radius: 3px;
  969. .line-icon{
  970. background: url(../../assets/home/r_w.png) no-repeat;
  971. background-size: 100% 100%;
  972. width: 28px;
  973. height: 28px;
  974. margin-right: -14px;
  975. }
  976. .msg{
  977. font-size: 14px;
  978. font-family: PingFangSC, PingFang SC;
  979. font-weight: 500;
  980. font-style: normal;
  981. white-space: nowrap;
  982. overflow: hidden;
  983. text-overflow: ellipsis;
  984. }
  985. }
  986. }
  987. }
  988. }
  989. }
  990. }
  991. .msg-5{
  992. width: 923px;
  993. height: 425px;
  994. background: url(../../assets/home/bg_2.png) no-repeat;
  995. background-size: 100% 100%;
  996. padding: 17px;
  997. padding-bottom: 0px;
  998. margin-left: 5px;
  999. font-family: PingFangSC, PingFang SC;
  1000. font-weight: 400;
  1001. font-size: 16px;
  1002. color: #D8F0FF;
  1003. line-height: 16px;
  1004. font-style: normal;
  1005. text-transform: none;
  1006. .table-h{
  1007. display: flex;
  1008. background: rgba(21,77,160,0.87);
  1009. align-items: center;
  1010. height: 35px;
  1011. .h-1{
  1012. flex: 1;
  1013. text-align: center;
  1014. }
  1015. }
  1016. .table-line{
  1017. display: flex;
  1018. align-items: center;
  1019. height: 35px;
  1020. .h-1{
  1021. flex: 1;
  1022. text-align: center;
  1023. font-size: 14px;
  1024. }
  1025. &:nth-child(even){
  1026. background: url(../../assets/home/table_2.png) no-repeat;
  1027. background-size: 100% 100%;
  1028. }
  1029. }
  1030. .acitve{
  1031. background: url(../../assets/home/table_2_active.png) no-repeat;
  1032. background-size: 100% 100%;
  1033. }
  1034. .list{
  1035. height: 345px;
  1036. overflow: auto;
  1037. }
  1038. }
  1039. }
  1040. }
  1041. .full-screen{
  1042. position: absolute;
  1043. right: 20px;
  1044. top: 20px;
  1045. cursor: pointer;
  1046. svg{
  1047. width: 20px;
  1048. height: 20px;
  1049. }
  1050. }
  1051. /* 定义滚动条整体宽度和背景 */
  1052. .home-main .main-center .msg-4 .item-list .list::-webkit-scrollbar {
  1053. width: 0px; /* 垂直滚动条宽度 */
  1054. height: 10px; /* 水平滚动条高度 */
  1055. background: rgba(255, 255, 255, 0.3); /* 轨道半透明背景 */
  1056. }
  1057. /* 滚动条滑块(可拖动部分) */
  1058. .home-main .main-center .msg-4 .item-list .list::-webkit-scrollbar-thumb {
  1059. background: rgba(128, 128, 128, 0.5); /* 半透明灰色滑块 */
  1060. border-radius: 6px; /* 圆角 */
  1061. border: 2px solid rgba(255, 255, 255, 0.2); /* 透明边框增强立体感 */
  1062. }
  1063. /* 鼠标悬停时滑块颜色加深 */
  1064. .home-main .main-center .msg-4 .item-list .list::-webkit-scrollbar-thumb:hover {
  1065. background: rgba(96, 96, 96, 0.7);
  1066. }
  1067. /* 定义滚动条整体宽度和背景 */
  1068. .home-main .main-center .msg-5 .list::-webkit-scrollbar {
  1069. width: 0px; /* 垂直滚动条宽度 */
  1070. height: 10px; /* 水平滚动条高度 */
  1071. background: rgba(255, 255, 255, 0.3); /* 轨道半透明背景 */
  1072. }
  1073. /* 滚动条滑块(可拖动部分) */
  1074. .home-main .main-center .msg-5 .list::-webkit-scrollbar-thumb {
  1075. background: rgba(128, 128, 128, 0.5); /* 半透明灰色滑块 */
  1076. border-radius: 6px; /* 圆角 */
  1077. border: 2px solid rgba(255, 255, 255, 0.2); /* 透明边框增强立体感 */
  1078. }
  1079. /* 鼠标悬停时滑块颜色加深 */
  1080. .home-main .main-center .msg-5 .list::-webkit-scrollbar-thumb:hover {
  1081. background: rgba(96, 96, 96, 0.7);
  1082. }
  1083. </style>