Index.vue 27 KB

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