Index.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912
  1. <template>
  2. <div id="hdsj">
  3. <div class="panel-left" :class="{'is-hide': aside_hide}">
  4. <div class="pl-b1">
  5. <span class="title1-left">水深管理</span>
  6. <div v-for="item in data_ssgl.value" class="plb1-item">
  7. <img :src="item.iconUrl" alt="">
  8. <div>
  9. <span @click="handleToggleSsgl(item)" :class="{'highlight': item.isHighlight}">{{ item.title }}</span>
  10. <div>
  11. <span :class="{'is-warning': item.value>0}">{{ item.value }}</span>
  12. <span>{{ item.unit }}</span>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. <water-depth-list v-if="listShow_whss" @close="handleCloseWhss" @pick="item => handlePickWhss(item)"/>
  18. <div class="pl-b2">
  19. <span class="title1-left">工程管理</span>
  20. <span class="title2-left">工程统计</span>
  21. <ul class="gctj-main">
  22. <li
  23. v-for="item in data_gctj.value"
  24. class="gctj-item"
  25. :class="{'highlight': currentYear===item.YEAR}"
  26. @click="handleChangeYear(item)"
  27. >
  28. <div>{{ item.YEAR }}</div>
  29. <div>
  30. <span>{{ item.TOTAL }}</span>
  31. <span></span>
  32. </div>
  33. </li>
  34. </ul>
  35. <span class="title2-left">工程信息</span>
  36. <ul v-if="listData_gcxx.value.length>0" class="gcxx-main" :class="{'is-short-list': listData_gcxx.value.length<3}">
  37. <li class="gcxx-item" v-for="item,index in listData_gcxx.value" @click="handleChangeProject(item)">
  38. <img :src="require('@/assets/imgs/page_hdsj/icon-gcxx.png')" alt="">
  39. <div>
  40. <div>
  41. <div :class="{'highlight': item.id===currentProject.id}"><span :title="item.prjName">{{ item.prjName }}</span></div>
  42. <span
  43. :class="{'status-wks': item.status==='未进行','status-jxz': item.status==='进行中','status-ywc': item.status==='已完成'}"
  44. >{{ item.status }}</span>
  45. <!-- <span class="status-ywc">已完成</span> -->
  46. </div>
  47. <div>
  48. <span>总方量</span><span>{{ (item.quantities/10000).toFixed(2) }}</span><span>万方</span>
  49. <span>总投资</span><span>{{ Math.floor(item.investment) }}</span><span>万元</span>
  50. </div>
  51. <div v-if="item.projectEndTime||item.projectStartTime">
  52. <span>{{ item.projectStartTime }}</span><span></span><span>{{ item.projectEndTime }}</span>
  53. </div>
  54. <div v-else></div>
  55. </div>
  56. </li>
  57. </ul>
  58. <div v-else class="no-data"><span>无数据</span></div>
  59. </div>
  60. </div>
  61. <div class="panel-right" v-if="showRightDetail" :class="{'is-hide': aside_hide}">
  62. <div class="pr-b1 pr">
  63. <span class="title1-right">疏浚监控</span>
  64. <span class="title2-right">工程名称</span>
  65. <span class="pro-name">{{ currentProject.name }}</span>
  66. <span class="title2-right">工程概况</span>
  67. <div class="part1-item" v-for="item in data_gcgk.sta">
  68. <img :src="item.iconUrl" alt="">
  69. <div>
  70. <span>{{ item.title }}</span>
  71. <div>
  72. <span>{{ item.value }}</span>
  73. <span>{{ item.unit }}</span>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="part2">
  78. <div @click="toggleShujunState('before')" :class="{'highlight': shujunState==='before'}">
  79. <span class="text-emp1">疏浚前</span><span>地形</span>
  80. </div>
  81. <div @click="toggleShujunState('after')" :class="{'highlight': shujunState==='after'}">
  82. <span class="text-emp2">疏浚后</span><span>地形</span>
  83. </div>
  84. </div>
  85. </div>
  86. <div class="pr-b2 pr">
  87. <span class="title2-right">分时统计</span>
  88. <div id="chart_fstj" v-show="!fstjListShow"></div>
  89. <div class="fstj-list table-carousel" v-show="fstjListShow">
  90. <div class="fl-btns">
  91. <i class="flb-play" @click="handlePlaySjByDay"></i>
  92. <i class="flb-back" @click="handleCloseList"></i>
  93. </div>
  94. <div class="head coloumn">
  95. <span>挖泥船</span><span>运泥船</span><span>运量</span><span>时间</span>
  96. </div>
  97. <el-carousel
  98. v-if="fstjListLen>0"
  99. trigger="click"
  100. indicator-position="outside"
  101. arrow="never"
  102. :autoplay="false"
  103. >
  104. <el-carousel-item v-for="page in fstjListLen" :key="page">
  105. <ul class="tc-list">
  106. <li
  107. v-for="item,index in fstjListData.value.slice((page-1)*4, (page-1)*4+4)"
  108. class="coloumn"
  109. :class="{'highlight': fstjCurrentId===item.id}"
  110. @click="handlePickFstjCurrent(item)"
  111. >
  112. <span>{{ item.wnName }}</span>
  113. <span>{{ item.ynName }}</span>
  114. <span>{{ item.tonnage }}</span>
  115. <span>{{ item.workTime }}</span>
  116. </li>
  117. </ul>
  118. </el-carousel-item>
  119. </el-carousel>
  120. <div v-else class="no-data">
  121. <span>无数据</span>
  122. </div>
  123. </div>
  124. </div>
  125. <div class="pr-b3 pr">
  126. <span class="title2-right">越界预警</span>
  127. <ul class="prb3-main" >
  128. <li v-for="item in data_yuejie.value" class="prb3-item2">
  129. <img :src="require('@/assets/imgs/page_hdsj/icon-wgyj-list.png')" alt="">
  130. <span>{{ item.shipName }}</span>
  131. <span>{{ item.times? useDateFormat(item.times, 'MM-DD HH:mm').value: '-' }}</span>
  132. </li>
  133. </ul>
  134. </div>
  135. </div>
  136. <div v-else class="panel-right pr-no-data">无数据</div>
  137. </div>
  138. </template>
  139. <script>
  140. export default {
  141. name: 'HdsjHome',
  142. }
  143. </script>
  144. <script setup>
  145. import { onMounted, reactive, ref, computed, onBeforeUnmount, watch } from 'vue';
  146. import { setSjjk } from '../../echarts/options'
  147. import { ElCarousel, ElCarouselItem } from 'element-plus'
  148. import 'element-plus/es/components/carousel/style/css'
  149. import 'element-plus/es/components/carousel-item/style/css'
  150. import { GetBoatNum, GetFstj, GetFstjByDay, GetYjWarning, GetGctj, GetGcxx } from '@/apis/hdsj'
  151. import { useDateFormat } from '@vueuse/core';
  152. import {
  153. ueCallInitShujun, ueCallClickShujun, ueCallRunShujun, ueCallBeforeShujun, ueCallClearShujun,
  154. ueCallAfterShujun, ueCallBackShujun, ueCallInitWaterShujun, ueCallStartYjyj, ueCallCloseYjyj,
  155. ueCallOpenWater, ueCallCloseWater, ueCallOpenMaintain, ueCallCloseMaintain
  156. } from '@/utils/UIInteractions'
  157. import bus from '@/utils/bus';
  158. import WaterDepthList from './cpns/WaterDepthList.vue'
  159. import { asideShow } from '@/store/index'
  160. const aside_hide = asideShow().isHide
  161. onMounted(() => {
  162. // setSjjk(document.getElementById('chart_fstj'), chartData_fstj.value)
  163. // getGctj()
  164. bus.on('changeYuJiNum',(val)=> {
  165. data_ssgl.value[1].value = val
  166. })
  167. })
  168. const data_ssgl = reactive({value: [
  169. { title: '维护水深', isHighlight: false, value: '-', unit: '米', iconUrl: require('@/assets/imgs/page_hdsj/logo-whss.png') },
  170. { title: '淤积预警', isHighlight: false, value: 0, unit: '处', iconUrl: require('@/assets/imgs/page_hdsj/logo-yjyj.png') },
  171. ]})
  172. const listShow_whss = ref(false)
  173. function handlePickWhss(item) {
  174. data_ssgl.value[0].value = Math.abs(+item.height)
  175. ueCallCloseMaintain()
  176. setTimeout(() => {
  177. ueCallOpenMaintain(item.id)
  178. }, 500);
  179. }
  180. function handleCloseWhss() {
  181. data_ssgl.value[0].isHighlight = false
  182. data_ssgl.value[0].value = '-'
  183. listShow_whss.value = false
  184. ueCallCloseMaintain()
  185. }
  186. function handleToggleSsgl(item) {
  187. if(item.title==='淤积预警'&&item.value>0) {
  188. if(data_ssgl.value[1].isHighlight === false) {
  189. ueCallCloseWater()
  190. ueCallStartYjyj()
  191. } else {
  192. ueCallOpenWater()
  193. ueCallCloseYjyj()
  194. }
  195. data_ssgl.value[1].isHighlight = !data_ssgl.value[1].isHighlight
  196. }
  197. if(item.title==='维护水深') {
  198. if(listShow_whss.value) {
  199. handleCloseWhss()
  200. } else {
  201. data_ssgl.value[0].isHighlight = true
  202. listShow_whss.value = true
  203. }
  204. }
  205. }
  206. const listData_gcxx = reactive({value: []})
  207. function handleChangeProject(item) {
  208. currentProject.id = item.id
  209. currentProject.name = item.prjName
  210. currentProject.status = item.status
  211. }
  212. const currentProject = reactive({ id: '', name: '', status: '' })
  213. const showRightDetail = ref(true)
  214. watch(()=>currentProject.id, (val)=> {
  215. // if(val===null||+currentYear.value>2022) {
  216. if(val===null||currentProject.status==='未进行') {
  217. showRightDetail.value = false
  218. } else {
  219. fstjListShow.value = false
  220. getFstj(val)
  221. getYjWarning(val)
  222. getBoatNum(val)
  223. showRightDetail.value = true
  224. }
  225. })
  226. const currentYear = ref('2022')
  227. watch(currentYear, (val)=> {
  228. getGcxx(val)
  229. },{immediate: true})
  230. function handleChangeYear(item) {
  231. currentYear.value = item.YEAR
  232. }
  233. const data_gctj = reactive({value: [
  234. { YEAR: '2022', TOTAL: 3 },
  235. { YEAR: '2023', TOTAL: 2 },
  236. { YEAR: '2024', TOTAL: 0 },
  237. ]})
  238. // function getGctj() {
  239. // GetGctj().then(res => {
  240. // data_gctj.value = res.data.Rows
  241. // currentYear.value = res.data.Rows[0].YEAR
  242. // })
  243. // }
  244. function getGcxx(year) {
  245. GetGcxx(year).then(res => {
  246. if(res.data?.Rows.length>0) {
  247. listData_gcxx.value = res.data.Rows
  248. listData_gcxx.value.forEach(i => {
  249. if(i.projectStartTime) {
  250. if(i.projectEndTime) {
  251. i.status = '已完成'
  252. } else {
  253. i.status = '进行中'
  254. }
  255. } else {
  256. i.status = '未进行'
  257. }
  258. })
  259. currentProject.id = res.data.Rows[0].id
  260. currentProject.name = res.data.Rows[0].prjName
  261. currentProject.status = listData_gcxx.value[0].status
  262. } else {
  263. listData_gcxx.value = []
  264. currentProject.id = null
  265. currentProject.name = null
  266. currentProject.status = null
  267. }
  268. })
  269. }
  270. const data_gcgk = reactive({
  271. sta: [
  272. { title: '施工范围长度', value: '-', unit: 'km', iconUrl: require('@/assets/imgs/page_hdsj/logo-hdzc.png') },
  273. { title: '疏浚船舶', value: '-', unit: '艘', iconUrl: require('@/assets/imgs/page_hdsj/logo-sjcb.png') },
  274. ]
  275. })
  276. function getBoatNum(id) {
  277. GetBoatNum(id).then(res => {
  278. let areaLength
  279. switch(id) {
  280. case '1648916350938120192':
  281. areaLength = 1.469
  282. break
  283. case '1648912989748723712':
  284. areaLength = 2.781
  285. break
  286. case '1648914259771392000':
  287. areaLength = 1.364
  288. break
  289. }
  290. data_gcgk.sta[0].value = areaLength || '-'
  291. data_gcgk.sta[1].value = res.data.data || '-'
  292. })
  293. }
  294. const shujunState = ref(null)
  295. watch(shujunState, (val, oldVal) => {
  296. if(val&&!oldVal) {
  297. bus.emit('toggleUnderWaterLegend',{from: 'show_hdsj', state: true})
  298. }else if(!val&&oldVal){
  299. bus.emit('toggleUnderWaterLegend',{from: 'show_hdsj', state: false})
  300. }
  301. })
  302. function toggleShujunState(type) {
  303. if(type===shujunState.value) {
  304. shujunState.value = null
  305. ueCallInitWaterShujun()
  306. }else {
  307. if(type==='before') {
  308. ueCallBeforeShujun()
  309. } else if(type==='after') {
  310. ueCallAfterShujun()
  311. }
  312. shujunState.value = type
  313. }
  314. }
  315. const chartData_fstj = reactive({
  316. default: [
  317. { TIME: '-/-', TOTAL: 0, SUM: 0 },
  318. { TIME: '-/-', TOTAL: 0, SUM: 0 },
  319. { TIME: '-/-', TOTAL: 0, SUM: 0 },
  320. { TIME: '-/-', TOTAL: 0, SUM: 0 },
  321. { TIME: '-/-', TOTAL: 0, SUM: 0 },
  322. { TIME: '-/-', TOTAL: 0, SUM: 0 },
  323. ],
  324. value: []
  325. })
  326. function getFstj(id) {
  327. GetFstj(id).then(res => {
  328. if(!res.data) {
  329. setSjjk(document.getElementById('chart_fstj'), chartData_fstj.default)
  330. return
  331. }
  332. chartData_fstj.value = res.data.Rows.slice(-6)
  333. let chartFstj = setSjjk(document.getElementById('chart_fstj'), chartData_fstj.value)
  334. chartFstj.on('click', (params)=> {
  335. fstjListShow.value = true
  336. GetFstjByDay(params.name, id).then(res => {
  337. fstjListData.value = res.data.Rows
  338. })
  339. })
  340. })
  341. }
  342. const fstjListShow = ref(false)
  343. const fstjListData = reactive({value: []})
  344. const fstjListLen = computed(() => {
  345. return Math.ceil(fstjListData.value.length/4)
  346. })
  347. const fstjCurrentId = ref('')
  348. const shujunRunTime = ref(1)
  349. function handlePickFstjCurrent(item) {
  350. ueCallClearShujun()
  351. setTimeout(() => {
  352. fstjCurrentId.value = item.id
  353. shujunRunTime.value = 1
  354. ueCallInitShujun()
  355. }, 1000);
  356. }
  357. function handlePlaySjByDay() {
  358. ueCallClearShujun()
  359. setTimeout(() => {
  360. fstjCurrentId.value = ''
  361. shujunRunTime.value = fstjListData.value.length
  362. ueCallInitShujun()
  363. }, 1000);
  364. }
  365. function handleCloseList() {
  366. fstjCurrentId.value = ''
  367. fstjListShow.value = false
  368. ueCallClearShujun()
  369. }
  370. bus.on('ueRec_InitShujun', (data) => {
  371. if(data.isOk=='true') {
  372. ueCallClickShujun()
  373. }
  374. })
  375. bus.on('ueRec_ClickShujun', (data) => {
  376. if(data.isOk=='true') {
  377. ueCallRunShujun()
  378. shujunRunTime.value -= 1
  379. }
  380. })
  381. bus.on('ueRec_RunShujun', (data) => {
  382. if(data.isOk=='true' && shujunRunTime.value>0) {
  383. ueCallBackShujun()
  384. }
  385. })
  386. bus.on('ueRec_BackShujun', (data) => {
  387. if(data.isOk=='true' && shujunRunTime.value>0) {
  388. ueCallRunShujun()
  389. shujunRunTime.value -= 1
  390. }
  391. })
  392. const data_yuejie = reactive({
  393. default: [
  394. { shipName: '-', times: '' },
  395. { shipName: '-', times: '' },
  396. { shipName: '-', times: '' },
  397. { shipName: '-', times: '' },
  398. ],
  399. value: []
  400. })
  401. function getYjWarning(id) {
  402. GetYjWarning(id).then(res => {
  403. if(res.data) {
  404. data_yuejie.value = res.data.Rows.sort((a,b) => b.TIME - a.TIME)
  405. } else {
  406. data_yuejie.value = data_yuejie.default
  407. }
  408. })
  409. }
  410. onBeforeUnmount(() => {
  411. bus.off('ueRec_InitShujun')
  412. bus.off('ueRec_ClickShujun')
  413. bus.off('ueRec_RunShujun')
  414. bus.off('ueRec_BackShujun')
  415. ueCallClearShujun()
  416. bus.emit('toggleUnderWaterLegend',{from: 'show_hdsj', state: false})
  417. })
  418. </script>
  419. <style lang="scss" scoped>
  420. #hdsj {
  421. .panel-left, .panel-right {
  422. box-sizing: border-box;
  423. position: absolute;
  424. top: 105px;
  425. width: 380px;
  426. height: calc(100vh - 105px);
  427. text-align: left;
  428. display: flex;
  429. flex-direction: column;
  430. justify-content: space-between;
  431. transition: all 0.5s ease;
  432. }
  433. .panel-left {
  434. left: 0;
  435. padding: 0 30px 30px;
  436. justify-content: flex-start;
  437. &.is-hide {
  438. left: -380px;
  439. }
  440. }
  441. .panel-right {
  442. right: 0;
  443. padding: 0 30px 30px;
  444. &.is-hide {
  445. right: -380px;
  446. }
  447. .pr {
  448. display: flex;
  449. flex-direction: column;
  450. align-items: flex-end;
  451. }
  452. &.pr-no-data {
  453. justify-content: center;
  454. align-items: center;
  455. font-size: 18px;
  456. }
  457. }
  458. .pl-b1 {
  459. margin-bottom: 2vh;
  460. .plb1-item {
  461. display: flex;
  462. align-items: center;
  463. &>img {
  464. width: 105px;
  465. height: 95px;
  466. }
  467. &>div {
  468. display: flex;
  469. flex-direction: column;
  470. &>span {
  471. display: block;
  472. box-sizing: border-box;
  473. width: 174px;
  474. height: 27px;
  475. margin: 6px 0 5px;
  476. padding-left: 15px;
  477. background: url('@/assets/imgs/page_hdsj/bg-ssgl-text.png') no-repeat;
  478. background-size: contain;
  479. font-size: 24px;
  480. font-family: YSBTH;
  481. color: #FFFFFF;
  482. line-height: 25px;
  483. text-shadow: 1px 2px 0px rgba(17,20,22,0.22);
  484. cursor: pointer;
  485. &.highlight {
  486. background: url('@/assets/imgs/page_hdsj/bg-ssgl-text2.png') no-repeat;
  487. background-size: contain;
  488. }
  489. }
  490. &>div {
  491. padding-left: 15px;
  492. display: flex;
  493. align-items:flex-end;
  494. span:nth-child(1) {
  495. margin-right: 9px;
  496. font-size: 34px;
  497. line-height: 34px;
  498. font-family: BarlowBold;
  499. color: transparent;
  500. background: linear-gradient(0deg, rgba(29,128,224,0.9) 0%, rgba(255,255,255,0.9) 70%);
  501. -webkit-background-clip: text;
  502. &.is-warning {
  503. background: linear-gradient(0deg, rgba(224,159,29,0.9) 0%, rgba(255,255,255,0.9) 70%);
  504. -webkit-background-clip: text;
  505. }
  506. }
  507. span:nth-child(2) {
  508. font-size: 16px;
  509. line-height: 22px;
  510. color: #FFFFFF;
  511. text-shadow: 1px 2px 0px rgba(17,20,22,0.22);
  512. }
  513. }
  514. }
  515. }
  516. }
  517. .pl-b2 {
  518. .title2-left {
  519. margin-bottom: 2vh;
  520. }
  521. .gctj-main {
  522. width: 95%;
  523. display: flex;
  524. justify-content: space-between;
  525. align-items: center;
  526. margin-bottom: 2.5vh;
  527. .gctj-item {
  528. width: 93px;
  529. height: 95px;
  530. background: url('../../assets/imgs/page_hdsj/bg-gctj.png') no-repeat;
  531. background-size: contain;
  532. background-position-y: bottom;
  533. cursor: pointer;
  534. &>div:first-child {
  535. font-size: 18px;
  536. font-family: Barlow;
  537. color: #FFFFFF;
  538. text-align: center;
  539. }
  540. &>div:last-child {
  541. text-align: center;
  542. color: #72D0FF;
  543. text-shadow: 0px 3px 3px rgba(0,0,0,0.47);
  544. &>span:first-child {
  545. font-size: 26px;
  546. font-family: BarlowBold;
  547. }
  548. &>span:last-child {
  549. font-size: 16px;
  550. }
  551. }
  552. &.highlight {
  553. background-image: url('../../assets/imgs/page_hdsj/bg-gctj-s.png');
  554. &>div:last-child {
  555. color: #FFFF73;
  556. }
  557. }
  558. }
  559. }
  560. .gcxx-main {
  561. height: 36vh;
  562. overflow: hidden;
  563. display: flex;
  564. flex-direction: column;
  565. justify-content: space-evenly;
  566. &.is-short-list {
  567. justify-content: flex-start;
  568. padding-top: 2.1vh;
  569. }
  570. .gcxx-item {
  571. display: flex;
  572. align-items: flex-start;
  573. margin-bottom: 10px;
  574. cursor: pointer;
  575. &>img {
  576. width: 37px;
  577. height: 39px;
  578. }
  579. &>div {
  580. margin-left: 5px;
  581. &>div:nth-child(1) {
  582. display: flex;
  583. align-items: center;
  584. margin-top: 4px;
  585. &>div:nth-child(1) {
  586. width: 210px;
  587. height: 24px;
  588. background: url('@/assets/imgs/page_hdsj/bg-gcxx-title.png') no-repeat;
  589. background-size: contain;
  590. span {
  591. display: block;
  592. width: 100%;
  593. height: 100%;
  594. font-size: 16px;
  595. font-weight: bold;
  596. font-style: italic;
  597. color: transparent;
  598. line-height: 24px;
  599. background: linear-gradient(0deg, #ACDDFF 0%, #FFFFFF 90%);
  600. -webkit-background-clip: text;
  601. white-space: nowrap;
  602. overflow: hidden;
  603. text-overflow: ellipsis;
  604. }
  605. &.highlight {
  606. background: url('@/assets/imgs/page_hdsj/bg-gcxx-title2.png') no-repeat;
  607. background-size: contain;
  608. &>span {
  609. background: linear-gradient(0deg, #f0d60d 0%, #FFFFFF 90%);
  610. -webkit-background-clip: text;
  611. }
  612. }
  613. }
  614. span:nth-child(2) {
  615. display: block;
  616. width: 66px;
  617. height: 31px;
  618. font-size: 13px;
  619. font-weight: bold;
  620. font-style: italic;
  621. color: #FFFFFF;
  622. line-height: 33px;
  623. text-align: center;
  624. &.status-wks {
  625. background: url('@/assets/imgs/page_hdsj/gcxx-wks.png') no-repeat;
  626. background-size: contain;
  627. }
  628. &.status-jxz {
  629. background: url('@/assets/imgs/page_hdsj/gcxx-jxz.png') no-repeat;
  630. background-size: contain;
  631. }
  632. &.status-ywc {
  633. background: url('@/assets/imgs/page_hdsj/gcxx-ywc.png') no-repeat;
  634. background-size: contain;
  635. }
  636. }
  637. }
  638. &>div:nth-child(2) {
  639. margin: 8px 0 6px;
  640. span {
  641. margin-right: 10px;
  642. font-size: 15px;
  643. font-family: BarlowBold;
  644. color: #FFFFFF;
  645. opacity: 0.8;
  646. }
  647. span:nth-child(2), span:nth-child(5) {
  648. margin-right: 2px;
  649. font-size: 16px;
  650. opacity: 1;
  651. }
  652. span:nth-child(3n) {
  653. font-size: 12px;
  654. opacity: 0.8;
  655. }
  656. }
  657. &>div:nth-child(3) {
  658. height: 20px;
  659. span {
  660. font-size: 15px;
  661. font-family: BarlowBold;
  662. color: #FFFFFF;
  663. opacity: 0.7;
  664. }
  665. span:nth-child(2) {
  666. margin: 0 8px;
  667. }
  668. }
  669. }
  670. }
  671. }
  672. .no-data {
  673. position: relative;
  674. height: 36vh;
  675. span {
  676. position: absolute;
  677. top: 40%;
  678. width: 100%;
  679. text-align: center;
  680. font-size: 16px;
  681. }
  682. }
  683. }
  684. .pr-b1 {
  685. .pro-name {
  686. width: 80%;
  687. display: block;
  688. font-family: YSBTH;
  689. font-size: 20px;
  690. color: #f8ec95;
  691. line-height: 26px;
  692. }
  693. .part1-item {
  694. width: 80%;
  695. display: flex;
  696. align-items: center;
  697. // &:not(:last-child) {
  698. // margin-bottom: 15px;
  699. // }
  700. &>img {
  701. width: 89px;
  702. height: 95px;
  703. }
  704. &>div {
  705. margin-left: 17px;
  706. &>span {
  707. font-size: 20px;
  708. font-style: italic;
  709. color: rgba($color: #EAF2FF, $alpha: 0.85);
  710. }
  711. &>div {
  712. margin-top: 8px;
  713. span:nth-child(1) {
  714. margin-right: 11px;
  715. font-size: 32px;
  716. font-family: BarlowBold;
  717. color: #FFFFFF;
  718. line-height: 32px;
  719. }
  720. span:nth-child(2) {
  721. font-size: 16px;
  722. color: rgba($color: #A6C8FF, $alpha: 0.8);
  723. }
  724. }
  725. }
  726. }
  727. .part2 {
  728. width: 90%;
  729. display: flex;
  730. justify-content: space-between;
  731. margin-top: 10px;
  732. &>div {
  733. width: 140px;
  734. height: 49px;
  735. background: url('../../assets/imgs/page_hdsj/bg-sj-btn.png');
  736. background-size: contain;
  737. cursor: pointer;
  738. text-align: center;
  739. &>span {
  740. font-size: 18px;
  741. font-family: YSBTH;
  742. color: #eee;
  743. line-height: 49px;
  744. }
  745. .text-emp1 {
  746. color: #fcd049;
  747. }
  748. .text-emp2 {
  749. color: #46c6fe;
  750. }
  751. &.highlight {
  752. filter: brightness(130%);
  753. transform: scale(1.1);
  754. }
  755. }
  756. }
  757. }
  758. .pr-b2 {
  759. #chart_fstj {
  760. width: 90%;
  761. height: 20vh;
  762. }
  763. .fstj-list {
  764. // margin-top: 0.5vh;
  765. height: 23vh;
  766. width: 90%;
  767. position: relative;
  768. .fl-btns {
  769. display: flex;
  770. justify-content: flex-end;
  771. align-items: center;
  772. margin-bottom: 10px;
  773. &>i {
  774. display: block;
  775. width: 20px;
  776. height: 20px;
  777. margin-left: 10px;
  778. cursor: pointer;
  779. }
  780. .flb-back {
  781. background: url('@/assets/imgs/page_hdsj/btn-back.png');
  782. background-size: contain;
  783. }
  784. .flb-play {
  785. background: url('@/assets/imgs/page_hdsj/btn-play.png');
  786. background-size: contain;
  787. }
  788. }
  789. .coloumn {
  790. span:nth-child(1) {
  791. width: 30%;
  792. }
  793. span:nth-child(2) {
  794. width: 30%;
  795. }
  796. span:nth-child(3) {
  797. width: 20%;
  798. }
  799. span:nth-child(4) {
  800. width: 20%;
  801. }
  802. }
  803. .el-carousel {
  804. height: calc(100% - 50px);
  805. }
  806. .tc-list {
  807. &>li {
  808. height: 30px;
  809. margin-top: 10px;
  810. cursor: pointer;
  811. &.highlight>span {
  812. color: #f0d60d;
  813. }
  814. }
  815. }
  816. }
  817. }
  818. .pr-b3 {
  819. .prb3-main {
  820. display: flex;
  821. flex-direction: column;
  822. align-items: flex-end;
  823. width: 100%;
  824. // height: 20vh;
  825. // margin: 10px 0 25px;
  826. .prb3-item2 {
  827. width: 85%;
  828. height: 24px;
  829. display: flex;
  830. align-items: center;
  831. margin: 10px 0;
  832. background: url('@/assets/imgs/page_hdsj/bg-wgyj-list.png') no-repeat;
  833. background-size: 100% 100%;
  834. span:nth-child(2) {
  835. display: block;
  836. width: 51%;
  837. font-size: 16px;
  838. font-weight: 700;
  839. font-style: italic;
  840. color: transparent;
  841. background: linear-gradient(0deg, #ACDDFF 0%, #FFFFFF 100%);
  842. -webkit-background-clip: text;
  843. }
  844. span:nth-child(3) {
  845. display: block;
  846. font-size: 16px;
  847. font-family: BarlowBold;
  848. color: rgba($color: #fff, $alpha: 0.6);
  849. }
  850. }
  851. }
  852. }
  853. }
  854. </style>