homeTable.vue 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808
  1. <template>
  2. <div style="width:100%;height:100%;background-color:blue">
  3. <div class="shipDiv" v-show="shipShow">
  4. <div class="shipTitle">
  5. <span style="float:left">一号船</span>
  6. <i class="el-icon-close" style="font-size:9rem;margin-top:2rem;float:right" @click="shipShow=false"></i>
  7. </div>
  8. <div style="padding—left:10rem" class="shipContent">
  9. <el-tabs v-model="activeName" @tab-click="handleClick">
  10. <el-tab-pane label="AIS信息" name="first">
  11. <el-row :gutter="3" style="margin-top:3rem">
  12. <el-col :span="4"><div class="grid-content bg-purple contentFont" style="float:right;color:#959595">MMSI:</div></el-col>
  13. <el-col :span="8"><div class="grid-content bg-purple contentFont" style="float:left">11111</div></el-col>
  14. <el-col :span="4"><div class="grid-content bg-purple contentFont" style="float:right;color:#959595">监测点:</div></el-col>
  15. <el-col :span="8"><div class="grid-content bg-purple contentFont" style="float:left">11111</div></el-col>
  16. </el-row>
  17. <el-row :gutter="3" style="margin-top:3rem">
  18. <el-col :span="4"><div class="grid-content bg-purple contentFont" style="float:right;color:#959595">经度:</div></el-col>
  19. <el-col :span="8"><div class="grid-content bg-purple contentFont" style="float:left">11111</div></el-col>
  20. <el-col :span="4"><div class="grid-content bg-purple contentFont" style="float:right;color:#959595">纬度:</div></el-col>
  21. <el-col :span="8"><div class="grid-content bg-purple contentFont" style="float:left">11111</div></el-col>
  22. </el-row>
  23. <el-row :gutter="3" style="margin-top:3rem">
  24. <el-col :span="4"><div class="grid-content bg-purple contentFont" style="float:right;color:#959595">对地航速:</div></el-col>
  25. <el-col :span="8"><div class="grid-content bg-purple contentFont" style="float:left">11111</div></el-col>
  26. <el-col :span="4"><div class="grid-content bg-purple contentFont" style="float:right;color:#959595">对地航向:</div></el-col>
  27. <el-col :span="8"><div class="grid-content bg-purple contentFont" style="float:left">11111</div></el-col>
  28. </el-row>
  29. <el-row :gutter="3" style="margin-top:3rem">
  30. <el-col :span="4"><div class="grid-content bg-purple contentFont" style="float:right;color:#959595">SO<sub>2</sub>浓度:</div></el-col>
  31. <el-col :span="8"><div class="grid-content bg-purple contentFont" style="float:left">11111</div></el-col>
  32. <el-col :span="4"><div class="grid-content bg-purple contentFont" style="float:right;color:#959595">CO<sub>2</sub>浓度:</div></el-col>
  33. <el-col :span="8"><div class="grid-content bg-purple contentFont" style="float:left">11111</div></el-col>
  34. </el-row>
  35. <el-row :gutter="3" style="margin-top:3rem">
  36. <el-col :span="4"><div class="grid-content bg-purple contentFont" style="float:right;color:#959595">NO<sub>2</sub>浓度:</div></el-col>
  37. <el-col :span="8"><div class="grid-content bg-purple contentFont" style="float:left">11111</div></el-col>
  38. <el-col :span="4"><div class="grid-content bg-purple contentFont" style="float:right;color:#959595">硫碳比:</div></el-col>
  39. <el-col :span="8"><div class="grid-content bg-purple contentFont" style="float:left">11111</div></el-col>
  40. </el-row>
  41. <el-row :gutter="3" style="margin-top:3rem">
  42. <el-col :span="4"><div class="grid-content bg-purple contentFont" style="float:right;color:#959595">风向:</div></el-col>
  43. <el-col :span="8"><div class="grid-content bg-purple contentFont" style="float:left">11111</div></el-col>
  44. <el-col :span="4"><div class="grid-content bg-purple contentFont" style="float:right;color:#959595">风速:</div></el-col>
  45. <el-col :span="8"><div class="grid-content bg-purple contentFont" style="float:left">11111</div></el-col>
  46. </el-row>
  47. <el-button style="margin-top:5rem;margin-left:10rem;background-color:#0d25a5;color:white;font-size:7rem" icon="el-icon-location-information">历史轨迹</el-button>
  48. </el-tab-pane>
  49. <el-tab-pane label="监测数据" name="second">
  50. <el-table
  51. stripe='true'
  52. :header-cell-style="{ background: '#e4eafc'}"
  53. ref="singleTable"
  54. :data="tableData"
  55. highlight-current-row
  56. style="width: 100%"
  57. class="tableSc">
  58. <el-table-column
  59. type="index"
  60. label="序号"
  61. width="50">
  62. </el-table-column>
  63. <el-table-column
  64. property="name"
  65. label="监测点"
  66. width="60">
  67. </el-table-column>
  68. <el-table-column
  69. :label="'硫碳比(>'+normalPer+'%)'"
  70. >
  71. <template slot-scope="scope">
  72. <div v-if="scope.row.value > normalPer" style="color:red">{{scope.row.value}}% ↑ {{((scope.row.value-normalPer)/normalPer*100).toFixed(0)}}%</div>
  73. <div v-if=" scope.row.value <= normalPer">{{scope.row.value}}%</div>
  74. </template>
  75. </el-table-column>
  76. <el-table-column
  77. :label="'硫碳比(≧'+normalCount+'度)'">
  78. <template slot-scope="scope">
  79. <div v-if="scope.row.count > normalCount" style="color:red">{{scope.row.count}}度 ↑ {{((scope.row.count-normalCount)/normalCount*100).toFixed(0)}}%</div>
  80. <div v-if=" scope.row.count <= normalCount">{{scope.row.count}}度</div>
  81. </template>
  82. </el-table-column>
  83. <el-table-column
  84. property="date"
  85. label="监测时间">
  86. </el-table-column>
  87. </el-table>
  88. </el-tab-pane>
  89. <el-tab-pane label="其它监测数据" name="thrid">
  90. <el-table
  91. stripe='true'
  92. :header-cell-style="{ background: '#e4eafc'}"
  93. ref="singleTable"
  94. :data="tableData"
  95. highlight-current-row
  96. style="width: 100%"
  97. class="tableSc">
  98. <el-table-column
  99. type="index"
  100. label="序号"
  101. width="50">
  102. </el-table-column>
  103. <el-table-column
  104. property="name"
  105. label="监测点"
  106. width="60">
  107. </el-table-column>
  108. <el-table-column
  109. :label="'硫碳比(>'+normalPer+'%)'"
  110. >
  111. <template slot-scope="scope">
  112. <div v-if="scope.row.value > normalPer" style="color:red">{{scope.row.value}}% ↑ {{((scope.row.value-normalPer)/normalPer*100).toFixed(0)}}%</div>
  113. <div v-if=" scope.row.value <= normalPer">{{scope.row.value}}%</div>
  114. </template>
  115. </el-table-column>
  116. <el-table-column
  117. :label="'硫碳比(≧'+normalCount+'度)'">
  118. <template slot-scope="scope">
  119. <div v-if="scope.row.count > normalCount" style="color:red">{{scope.row.count}}度 ↑ {{((scope.row.count-normalCount)/normalCount*100).toFixed(0)}}%</div>
  120. <div v-if=" scope.row.count <= normalCount">{{scope.row.count}}度</div>
  121. </template>
  122. </el-table-column>
  123. <el-table-column
  124. property="date"
  125. label="监测时间">
  126. </el-table-column>
  127. </el-table>
  128. </el-tab-pane>
  129. </el-tabs>
  130. </div>
  131. </div>
  132. <div class="shipInCount">
  133. <img src="@/assets/picture/img_wgcb.png" style="margin-top:5rem;margin-left:5rem"/>
  134. <div style="margin-top:5rem" @click="dialogVisibleShip = true">
  135. <div style="float:left">
  136. <div class="lcbBackground">
  137. <div style="margin-top:12rem">
  138. {{blackCount}}
  139. <br/>
  140. <span style="font-size:5rem">艘</span>
  141. </div>
  142. </div>
  143. <div style="text-align: center;color: #ffffff;margin-left:14rem;margin-top:43rem">硫含量超标</div>
  144. </div>
  145. <div style="float:left">
  146. <div class="hyzpBackground">
  147. <div style="margin-top:12rem">
  148. {{so2Count}}
  149. <br/>
  150. <span style="font-size:5rem">艘</span>
  151. </div>
  152. </div>
  153. <div style="text-align: center;color: #ffffff;margin-left:7rem;margin-top:43rem">黑烟抓拍</div>
  154. </div>
  155. </div>
  156. <img src="@/assets/picture/img_sbtj.png" style="margin-top:5rem;margin-left:5rem"/>
  157. <div class="totalContent" style="padding-right:15rem">
  158. <div style="float:left;margin-top:3rem">
  159. <i class="el-icon-pie-chart" style="font-size:9rem;float:left;margin-left:5rem"/>
  160. <span style="font-size:6rem;float:left;margin-left:5rem">总数</span>
  161. </div>
  162. <div style="float:right;font-size:9rem;margin-top:1rem">{{deviceTotal}}个</div>
  163. </div>
  164. <div style="padding-left:5rem;padding-top:1rem">
  165. <div style="color:white" @click="dialogVisible = true">
  166. <div style="float:left"><img src="@/assets/picture/location.png" style="margin-left:5rem"/></div>
  167. <div style="float:left;background-image: linear-gradient(transparent 90%,white);font-size:6rem;margin-top:14rem" >安装位置</div>
  168. </div>
  169. <div style="color:white" @click="dialogVisibleType = true">
  170. <div style="float:left"><img src="@/assets/picture/device_type.png" style="margin-left:5rem"/></div>
  171. <div style="float:left;background-image: linear-gradient(transparent 90%,white);font-size:6rem;margin-top:14rem" >设备类型</div>
  172. </div>
  173. </div>
  174. </div>
  175. <div class="shipInformation">
  176. <img src="@/assets/picture/img_xycbxx.png" style="margin-top:5rem;margin-left:5rem"/>
  177. <scroll></scroll>
  178. <img src="@/assets/picture/img_wgcbxx.png" style="margin-top:5rem;margin-left:5rem"/>
  179. <scroll></scroll>
  180. </div>
  181. <div class="equipmentContent">
  182. <el-dialog
  183. title=""
  184. :visible.sync="dialogVisible"
  185. @open="openChart">
  186. <div id="equipmentChart" style="width:260rem;height:100rem"></div>
  187. </el-dialog>
  188. </div>
  189. <div class="equipmentTypeContent">
  190. <el-dialog
  191. title=""
  192. :visible.sync="dialogVisibleType"
  193. @open="openTypeChart">
  194. <div id="equipmentTypeChart" style="width:160rem;height:100rem"></div>
  195. </el-dialog>
  196. </div>
  197. <div class="wfcbContent">
  198. <el-dialog
  199. title=""
  200. :visible.sync="dialogVisibleShip"
  201. @open="openShipChart">
  202. <div style="position:absolute;z-index:3001">
  203. <div style="float:left;color:#ffffff">开始</div>
  204. <div style="float:left;margin-left:3rem">
  205. <el-date-picker
  206. v-model="beginTime"
  207. type="month"
  208. placeholder="选择月份">
  209. </el-date-picker>
  210. </div>
  211. <div style="float:left;margin-left:3rem;color:#ffffff">结束</div>
  212. <div style="float:left;margin-left:3rem">
  213. <el-date-picker
  214. v-model="endTime"
  215. type="month"
  216. placeholder="选择月份">
  217. </el-date-picker>
  218. </div>
  219. </div>
  220. <div id="shipChart" style="width:280rem;height:120rem;position:absolute;z-index:3000"></div>
  221. </el-dialog>
  222. </div>
  223. <!--
  224. <div class="azwzContent">
  225. <el-dialog
  226. title=""
  227. :visible.sync="dialogVisibleAzwz"
  228. :before-close="handleClose"
  229. @open="openShipChart">
  230. <div id="shipChart" style="width:220rem;height:100rem;"></div>
  231. </el-dialog>
  232. </div> -->
  233. </div>
  234. </template>
  235. <script>
  236. import scroll from "./scroll.vue"
  237. import { getStaticDevice,getDeviceType,getIllegalShipStatic } from "@/api/data/staticalData";
  238. export default {
  239. name: "homeTable",
  240. components: {
  241. scroll
  242. },
  243. data() {
  244. return {
  245. total:100,
  246. shipShow:true,
  247. activeName:'first',
  248. normalPer:0.1,
  249. so2Count:1,
  250. blackCount:1,
  251. dialogVisible:false,
  252. dialogVisibleAzwz:false,
  253. dialogVisibleType:false,
  254. normalCount:1,
  255. dialogVisibleShip:false,
  256. beginTime:'',
  257. endTime:'',
  258. deviceTotal:0,
  259. queryParams: {
  260. pageNum: 1,
  261. pageSize: 10,
  262. roleName: undefined,
  263. roleKey: undefined,
  264. status: undefined,
  265. mmsi:undefined,
  266. radio:1
  267. },
  268. tableData: [{
  269. date: '2016-05-02 10:00',
  270. name: '王小虎',
  271. address: '上海市普陀区金沙江路 1518 弄',
  272. value:0.19,
  273. count:1.9,
  274. }, {
  275. date: '2016-05-04 10:00',
  276. name: '王小虎',
  277. value:0.1,
  278. count:1.3,
  279. address: '上海市普陀区金沙江路 1517 弄'
  280. }, {
  281. date: '2016-05-01 10:00',
  282. name: '王小虎',
  283. value:0.2,
  284. count:2,
  285. address: '上海市普陀区金沙江路 1519 弄'
  286. }, {
  287. date: '2016-05-03 10:00',
  288. name: '王小虎',
  289. value:0.08,
  290. count:0.6,
  291. address: '上海市普陀区金沙江路 1516 弄'
  292. },{
  293. date: '2016-05-03 10:00',
  294. name: '王小虎',
  295. value:0.03,
  296. count:0.2,
  297. address: '上海市普陀区金沙江路 1516 弄'
  298. },{
  299. date: '2016-05-03 10:00',
  300. name: '王小虎',
  301. value:0.09,
  302. count:0.3,
  303. address: '上海市普陀区金沙江路 1516 弄'
  304. }]
  305. }
  306. },mounted(){
  307. this.getStaticDevice();
  308. this.getIllegalShipStatic();
  309. // console.log(111111111111)
  310. // this.getChart();
  311. },
  312. methods:{
  313. openShipChart(){
  314. console.log(1111111);
  315. const t =this;
  316. setTimeout(() => {
  317. // 执行echarts画图方法
  318. t.getShipChart();
  319. }, 0);
  320. },
  321. handleClick(tab, event) {
  322. console.log(tab, event);
  323. },
  324. openChart(){
  325. const t =this;
  326. setTimeout(() => {
  327. // 执行echarts画图方法
  328. t.getStaticDevice();
  329. }, 0);
  330. },
  331. openTypeChart(){
  332. const t =this;
  333. setTimeout(() => {
  334. // 执行echarts画图方法
  335. t.getTypeData();
  336. }, 0);
  337. },
  338. getStaticDevice(){
  339. getStaticDevice().then(response => {
  340. console.log(response);
  341. let nameArry = [];
  342. let dataArry = [];
  343. this.deviceTotal = 0;
  344. for (var key in response.data) {
  345. this.deviceTotal += response.data[key]
  346. nameArry.push(key);
  347. dataArry.push(response.data[key]);
  348. }
  349. this.getChart(nameArry,dataArry);
  350. });
  351. },
  352. getIllegalShipStatic(){
  353. getIllegalShipStatic().then(data =>{
  354. this.blackCount = data.data.blackCount;
  355. this.so2Count = data.data.so2Count;
  356. });
  357. },
  358. getShipChart(){
  359. var myChart = this.$echarts.init(document.getElementById('shipChart'));
  360. var option = {
  361. xAxis: {
  362. type: 'category',
  363. data: ['2021-01', '2021-02', '2021-03', '2021-04', '2021-05', '2021-06', '2021-07'],
  364. axisLabel:{
  365. show:true, //这里的show用于设置是否显示x轴下的字体 默认为true
  366.        interval:0, //可以设置成 0 强制显示所有标签。如果设置为 1,表示『隔一个标签显示一个标签』,如果值为 2,表示隔两个标签显示一个标签,以此类推。
  367.   
  368.        textStyle:{ //textStyle里面写x轴下的字体的样式
  369. color:'#ffffff',
  370. fontSize:13
  371. }
  372. },
  373. axisLine:{
  374. show:true, //这里的show用于设置是否显示x轴那一条线 默认为true
  375. lineStyle:{ //lineStyle里面写x轴那一条线的样式
  376. color:'#ffffff',
  377. width:2, //轴线的粗细 我写的是2 最小为0,值为0的时候线隐藏
  378. }
  379. }
  380. },
  381. yAxis: {
  382. type: 'value',
  383. axisLabel:{
  384. show:true, //这里的show用于设置是否显示x轴下的字体 默认为true
  385.        interval:0, //可以设置成 0 强制显示所有标签。如果设置为 1,表示『隔一个标签显示一个标签』,如果值为 2,表示隔两个标签显示一个标签,以此类推。
  386.        textStyle:{ //textStyle里面写x轴下的字体的样式
  387. color:'#ffffff',
  388. fontSize:13
  389. }
  390. },
  391. axisLine:{
  392. show:true, //这里的show用于设置是否显示x轴那一条线 默认为true
  393. lineStyle:{ //lineStyle里面写x轴那一条线的样式
  394. color:'#ffffff',
  395. width:2, //轴线的粗细 我写的是2 最小为0,值为0的时候线隐藏
  396. }
  397. }
  398. },
  399. series: [{
  400. data: [820, 932, 901, 934, 1290, 1330, 1320],
  401. type: 'line',
  402. smooth: true,
  403. itemStyle : {
  404. normal : {
  405. lineStyle:{
  406. color:'#61FAFB',
  407. width:5
  408. }
  409. }
  410. },
  411. },{
  412. data: [700, 902, 501, 734, 1390, 1230, 1120],
  413. type: 'line',
  414. smooth: true,
  415. itemStyle : {
  416. normal : {
  417. lineStyle:{
  418. color:'#FFA647',
  419. width:5
  420. }
  421. }
  422. },
  423. },{
  424. data: [1020, 932, 701, 434, 1230, 1430, 1620],
  425. type: 'line',
  426. smooth: true,
  427. itemStyle : {
  428. normal : {
  429. lineStyle:{
  430. color:'#FF2D3C',
  431. width:5
  432. }
  433. }
  434. },
  435. }]
  436. };
  437. myChart.setOption(option);
  438. },
  439. getChart(nameArry,dataArry){
  440. // console.log(2222222222222222)
  441. // this.dialogVisible = true;
  442. console.log(document.getElementById('equipmentChart'));
  443. console.log(2222222222222222)
  444. var myChart = this.$echarts.init(document.getElementById('equipmentChart'));
  445. console.log(myChart);
  446. var option = {
  447. tooltip: {
  448. trigger: 'axis',
  449. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  450. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  451. }
  452. },
  453. grid: {
  454. left: '3%',
  455. right: '4%',
  456. bottom: '3%',
  457. containLabel: true
  458. },
  459. xAxis: [
  460. {
  461. type: 'category',
  462. data:nameArry,
  463. axisTick: {
  464. alignWithLabel: true
  465. },
  466. axisLine: {
  467. lineStyle: {
  468. color: 'white'
  469. }
  470. },
  471. axisLabel: {
  472. interval: 0,
  473. show: true,
  474. textStyle: {
  475. color: 'white' //x轴data 的颜色
  476. }
  477. },
  478. },
  479. ],
  480. yAxis: [
  481. {
  482. type: 'value',
  483. splitLine:{
  484. show: true,
  485. lineStyle:{
  486. color: ['#435886'],
  487. width: 1,
  488. type: 'solid'
  489. }
  490. },
  491. axisLine: {
  492. lineStyle: {
  493. color: '#435886'
  494. }
  495. },
  496. axisLabel: {
  497. interval: 0,
  498. show: true,
  499. textStyle: {
  500. color: 'white' //x轴data 的颜色
  501. }
  502. },
  503. }
  504. ],
  505. series: [
  506. {
  507. name: '直接访问',
  508. type: 'bar',
  509. barWidth: '30%',
  510. data: dataArry,
  511. itemStyle: {
  512.   normal: {
  513. color: new this.$echarts.graphic.LinearGradient(
  514. 0, 0, 0, 1,
  515. [
  516. {offset: 1, color: '#2275E4'}, //柱图渐变色
  517. {offset: 0, color: '#56CCF2'}, //柱图渐变色
  518. ]
  519. )
  520. },
  521. }
  522. }
  523. ]
  524. };
  525. myChart.setOption(option);
  526. },
  527. getTypeData(){
  528. getDeviceType().then(response=>{
  529. let nameArry = [];
  530. let dataArry = [];
  531. for (var key in response.data) {
  532. nameArry.push(key);
  533. dataArry.push(response.data[key]);
  534. }
  535. this.getTypeChart(nameArry,dataArry);
  536. });
  537. },
  538. getTypeChart(nameArry,dataArry){
  539. console.log(nameArry);
  540. // console.log(2222222222222222)
  541. // this.dialogVisible = true;
  542. var myChart = this.$echarts.init(document.getElementById('equipmentTypeChart'));
  543. console.log(myChart);
  544. var option = {
  545. tooltip: {
  546. trigger: 'axis',
  547. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  548. type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
  549. }
  550. },
  551. grid: {
  552. left: '3%',
  553. right: '4%',
  554. bottom: '3%',
  555. containLabel: true
  556. },
  557. xAxis: [
  558. {
  559. type: 'category',
  560. data:nameArry,
  561. axisTick: {
  562. alignWithLabel: true
  563. },
  564. axisLine: {
  565. lineStyle: {
  566. color: 'white'
  567. }
  568. },
  569. axisLabel: {
  570. interval: 0,
  571. show: true,
  572. textStyle: {
  573. color: 'white' //x轴data 的颜色
  574. }
  575. },
  576. },
  577. ],
  578. yAxis: [
  579. {
  580. type: 'value',
  581. splitLine:{
  582. show: true,
  583. lineStyle:{
  584. color: ['#435886'],
  585. width: 1,
  586. type: 'solid'
  587. }
  588. },
  589. axisLine: {
  590. lineStyle: {
  591. color: '#435886'
  592. }
  593. },
  594. axisLabel: {
  595. interval: 0,
  596. show: true,
  597. textStyle: {
  598. color: 'white' //x轴data 的颜色
  599. }
  600. },
  601. }
  602. ],
  603. series: [
  604. {
  605. name: '直接访问',
  606. type: 'bar',
  607. barWidth: '30%',
  608. data: dataArry,
  609. itemStyle: {
  610.   normal: {
  611. color: new this.$echarts.graphic.LinearGradient(
  612. 0, 0, 0, 1,
  613. [
  614. {offset: 1, color: '#2275E4'}, //柱图渐变色
  615. {offset: 0, color: '#56CCF2'}, //柱图渐变色
  616. ]
  617. )
  618. },
  619. }
  620. }
  621. ]
  622. };
  623. myChart.setOption(option);
  624. }
  625. }
  626. }
  627. </script>
  628. <style scoped>
  629. .shipDiv{
  630. position: absolute;
  631. top: 250rem;
  632. left: 140rem;
  633. width: 200rem;
  634. height: 130rem;
  635. background-color: white;
  636. }
  637. .shipTitle{
  638. padding-top:4rem;
  639. padding-left:10rem;
  640. padding-right:10rem;
  641. width:100%;
  642. height:20rem;
  643. background-color:#0d25a5;
  644. color:white;
  645. font-size: 7rem
  646. }
  647. .contentFont{
  648. font-size: 5rem;
  649. }
  650. .shipInformation{
  651. background: url("./assets/bg_information.png") no-repeat;
  652. background-size: 100% 100%;
  653. width:120rem;
  654. height:160rem;
  655. position: absolute;
  656. top:225rem;
  657. right:30rem;
  658. }
  659. .shipInCount{
  660. background: url("./assets/bg_count.png") no-repeat;
  661. background-size: 100% 100%;
  662. width:120rem;
  663. height:160rem;
  664. position: absolute;
  665. top:55rem;
  666. right:30rem;
  667. }
  668. .lcbBackground{
  669. background: url("./assets/img_lcb.png") no-repeat;
  670. background-size: 100% 100%;
  671. width:40rem;
  672. height:40rem;
  673. float:left;
  674. margin-left:15rem;
  675. text-align: center;
  676. color:#45AAF0;
  677. font-size: 7rem;
  678. font-weight: Bold;
  679. }
  680. .hyzpBackground{
  681. background: url("./assets/img_hyzp.png") no-repeat;
  682. background-size: 100% 100%;
  683. width:40rem;
  684. height:40rem;
  685. float:left;
  686. margin-left:8rem;
  687. text-align: center;
  688. color:#2EF9B3;
  689. font-size: 7rem;
  690. font-weight: Bold;
  691. }
  692. .totalContent{
  693. background: url("./assets/img_total.png") no-repeat;
  694. background-size: 100% 100%;
  695. width:100rem;
  696. height:15rem;
  697. margin-left:10rem;
  698. margin-top:5rem;
  699. color:white;
  700. }
  701. .shipContent >>> .el-tabs__item{
  702. font-weight:bold;
  703. color:#A8A8A8
  704. }
  705. .shipContent >>> .el-tabs__item.is-active{
  706. color:#0d25a5
  707. }
  708. .shipContent >>> .el-tabs__active-bar{
  709. margin-left:10rem
  710. }
  711. .shipContent >>> .el-tabs__nav{
  712. padding-left:10rem
  713. }
  714. .shipContent >>>.el-tabs__active-bar{
  715. background-color:#0d25a5
  716. }
  717. .tableSc >>> tr{
  718. padding:0;
  719. height:3rem;
  720. line-height: 3rem;
  721. font-size: 5rem;
  722. }
  723. .tableSc >>> td{
  724. padding:0;
  725. height:3rem;
  726. line-height: 3rem
  727. }
  728. .azwzContent >>> .el-dialog{
  729. background: url("./assets/pop_azwz.png") no-repeat;
  730. background-size: 100% 100%;
  731. height:150rem;
  732. width:280rem;
  733. border:none;
  734. top:100rem;
  735. }
  736. .wfcbContent >>> .el-dialog{
  737. background: url("./assets/pop_wgcbtj.png") no-repeat;
  738. background-size: 100% 100%;
  739. height:150rem;
  740. width:280rem;
  741. border:none;
  742. top:100rem;
  743. }
  744. .equipmentContent >>> .el-dialog{
  745. background: url("./assets/pop_azwz.png") no-repeat;
  746. background-size: 100% 100%;
  747. height:150rem;
  748. width:280rem;
  749. border:none;
  750. top:100rem;
  751. }
  752. .equipmentTypeContent >>> .el-dialog{
  753. background: url("./assets/pop_sblx.png") no-repeat;
  754. background-size: 100% 100%;
  755. height:150rem;
  756. width:200rem;
  757. border:none;
  758. top:100rem;
  759. }
  760. .wfcbContent >>> .el-date-editor.el-input, .el-date-editor.el-input__inner{
  761. width:50rem;
  762. }
  763. /* .dialogContent >>> .el-input--medium .el-input__inner{
  764. height:10rem;
  765. text-align: center
  766. } */
  767. </style>