index.vue 50 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721
  1. <!--
  2. *@description: 贞达公司工程管理平台
  3. *@author: Zhe
  4. *@date: 2024-08-02 15:58:59
  5. *@version: V1.0.0
  6. -->
  7. <template>
  8. <div class="app-container">
  9. <!-- 标题开始 -->
  10. <div class="mainTitle">
  11. <div class="searchBox">
  12. <el-date-picker
  13. v-model="queryParams.begin_end_time"
  14. type="daterange"
  15. range-separator="至"
  16. start-placeholder="开始日期"
  17. end-placeholder="结束日期"
  18. value-format="yyyy-MM-dd"
  19. class="sj-data-picker"
  20. popper-class="sj-data-picker-popup"
  21. >
  22. </el-date-picker>
  23. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  24. </div>
  25. </div>
  26. <!-- 标题结束 -->
  27. <!-- 上边五个 -->
  28. <div class="mainTop">
  29. <!-- 左边俩 -->
  30. <div class="mainLeft">
  31. <!-- 左上图一 -->
  32. <div class="mainLeft_1">
  33. <div class="title"><span>施工进度统计</span></div>
  34. <div class="header_left">
  35. <div class="material_zs">
  36. <h4>钢管总数</h4>
  37. <h4>{{ progress.ironTotal }}</h4>
  38. </div>
  39. <div class="material_zs">
  40. <h4>PE总数</h4>
  41. <h4>{{ progress.peTotal }}</h4>
  42. </div>
  43. </div>
  44. <div id="echartsLeft_1"></div>
  45. </div>
  46. <!-- 左上图二 -->
  47. <div class="mainLeft_2">
  48. <div class="title"><span>工程状态统计</span></div>
  49. <div class="header_left">
  50. <div class="gc_state">
  51. <h3>{{ projectStatus.todo }}</h3>
  52. <span>开工</span>
  53. </div>
  54. <div class="gc_state">
  55. <h3>{{ projectStatus.doing }}</h3>
  56. <span>在建</span>
  57. </div>
  58. <div class="gc_state">
  59. <h3>{{ projectStatus.done }}</h3>
  60. <span>完工</span>
  61. </div>
  62. </div>
  63. </div>
  64. </div>
  65. <!-- 左边俩 结束 -->
  66. <!-- 中间地图 -->
  67. <div class="mainMap">
  68. <div id="echartsMap" ref="mainMap" class="ditu"></div>
  69. <span class="map_dw_dh">{{ mapData.map_dw_dh }}</span><!--德惠市 -->
  70. <span class="map_dw_ys">{{ mapData.map_dw_ys }}</span><!--榆树市-->
  71. <span class="map_dw_na">{{ mapData.map_dw_na }}</span><!--农安县-->
  72. <span class="map_dw_gzl">{{ mapData.map_dw_gzl }}</span><!--公主岭市-->
  73. <span class="map_dw_jt">{{ mapData.map_dw_jt }}</span><!--九台区-->
  74. <span class="map_dw_kc">{{ mapData.map_dw_kc }}</span><!--宽城区-->
  75. <span class="map_dw_ly">{{ mapData.map_dw_ly }}</span><!--绿园区-->
  76. <span class="map_dw_ed">{{ mapData.map_dw_ed }}</span><!--二道区-->
  77. <span class="map_dw_cy">{{ mapData.map_dw_cy }}</span><!--朝阳区-->
  78. <span class="map_dw_sy">{{ mapData.map_dw_sy }}</span><!--双阳区-->
  79. <span class="map_dw_ng">{{ mapData.map_dw_ng }}</span><!--南关区-->
  80. <!--<span class="25642">25642</span>&lt;!&ndash;25642&ndash;&gt;-->
  81. </div>
  82. <!-- 中间地图 结束 -->
  83. <!-- 右边俩 -->
  84. <div class="mainRight">
  85. <!-- 右上图一 -->
  86. <div class="mainRight_1">
  87. <div class="title"><span>今日施工数</span></div>
  88. <div class="header">
  89. <span>今日施工数</span>
  90. <div>
  91. <p v-for="item in totalRight_1s">{{ item }}</p>
  92. <!--<p>1</p>-->
  93. <!--<p>1</p>-->
  94. <!--<p>1</p>-->
  95. <!--<p>1</p>-->
  96. </div>
  97. <!-- {{ totalRight_1 }} -->
  98. </div>
  99. <div id="echartsRight_1"></div>
  100. </div>
  101. <!-- 右上图二 -->
  102. <div class="mainRight_2">
  103. <div class="title"><span>今日使用人数</span></div>
  104. <div class="header">
  105. <span>今日使用人数</span>
  106. <div>
  107. <p v-for="item in totalRight_2s">{{ item }}</p>
  108. <!--<p>1</p>-->
  109. <!--<p>1</p>-->
  110. <!--<p>1</p>-->
  111. <!--<p>1</p>-->
  112. </div>
  113. <span>人</span>
  114. <!-- {{ totalRight_2 }} -->
  115. </div>
  116. <div id="echartsRight_2"></div>
  117. </div>
  118. </div>
  119. <!-- 右边俩 结束 -->
  120. </div>
  121. <!-- 上边五个 结束 -->
  122. <!-- 下边俩 -->
  123. <div class="mainBottom">
  124. <!-- 下边图一 -->
  125. <div class="mainBottom_1">
  126. <div class="c_title"><span>各个区今日施工数</span></div>
  127. <div id="echartsBottom_1"></div>
  128. </div>
  129. <!-- 下边图二 -->
  130. <div class="mainBottom_2">
  131. <div class="c_title"><span>各个区今日旧改施工数</span></div>
  132. <div id="echartsBottom_2"></div>
  133. </div>
  134. </div>
  135. <!-- 下边俩 结束 -->
  136. </div>
  137. </template>
  138. <script>
  139. import * as echarts from "echarts";
  140. import '@/api/zdsz/china.js' // 引入中国地图数据
  141. import {
  142. getConstructionProgress,
  143. getProjectStatus,
  144. getCountEngineering,
  145. getCountPerson,
  146. getConstructionMap,
  147. getConstructionNew,
  148. getConstructionOld,
  149. batchInitData,
  150. formatTimestampToDateString,
  151. } from '@/api/zdsz/bigscreen'
  152. export default {
  153. name: "bigScreen",
  154. dicts: ['project_head', 'design_unit', 'supervision_unit', 'district'],
  155. components: {},
  156. data() {
  157. return {
  158. intervalArr:[], // eCharts 防鬼畜
  159. queryParams:{
  160. // time: formatTimestampToDateString(new Date()), // 当日日期
  161. time: '', // 昨日日期
  162. beginTime: '', // 开始时间 2024-03-03
  163. endTime: '', // 结束时间 2024-08-05
  164. begin_end_time: [], // 开始结束结束时间
  165. },
  166. progress: {
  167. names: ['不锈钢波纹管', '螺旋焊管(3PE加强级)', '无缝钢管', '镀锌钢管', '燃气用埋地聚乙烯管'],
  168. values: [0, 0, 0, 0, 0],
  169. ironTotal: 0, // 钢管总数
  170. peTotal: 0, // PE总数
  171. },
  172. projectStatus: {
  173. todo: 658, // 开工
  174. doing: 658, // 在建
  175. done: 658, // 完工
  176. },
  177. mapData: {
  178. map_dw_dh: 0, // 德惠市
  179. map_dw_ys: 0, // 榆树市
  180. map_dw_na: 0, // 农安县
  181. map_dw_gzl: 0, // 公主岭市
  182. map_dw_jt: 0, // 九台区
  183. map_dw_kc: 0, // 宽城区
  184. map_dw_ly: 0, // 绿园区
  185. map_dw_ed: 0, // 二道区
  186. map_dw_cy: 0, // 朝阳区
  187. map_dw_sy: 0, // 双阳区
  188. map_dw_ng: 0, // 南关区
  189. },
  190. totalRight_1: 0, // 今日施工数
  191. totalRight_1s: [0,0,0,0], // 今日施工数
  192. totalRight_2: 0, // 今日使用人数
  193. totalRight_2s: [0,0,0,0], // 今日使用人数
  194. zgns_newlst:[],
  195. };
  196. },
  197. created() {
  198. // alert(this.queryParams.time)
  199. this.initPage();
  200. },
  201. mounted() {
  202. let _this = this;
  203. setTimeout(function() {
  204. _this.echartsMap();
  205. },1)
  206. },
  207. methods: {
  208. initPage(){
  209. this.getConstructionProgress(); // 施工进度统计
  210. this.getProjectStatus(); // 工程状态统计
  211. this.getCountEngineering(); // 今日施工数
  212. this.getCountPerson(); // 今日使用人数
  213. this.getConstructionMap(); // 地图施工数据分布
  214. this.getConstructionNew(); // 各个区今日施工数
  215. this.getConstructionOld(); // 各个区今日旧改施工数
  216. this.getConstructionReady(); // 各个模块近日施工数据
  217. },
  218. handleQuery(){
  219. let begin_end_time = this.queryParams.begin_end_time;
  220. if(begin_end_time){
  221. let beginTime = begin_end_time[0];
  222. let endTime = begin_end_time[1];
  223. if(beginTime == endTime){
  224. this.queryParams.beginTime = '';
  225. this.queryParams.endTime = '';
  226. this.queryParams.time = beginTime;
  227. }else {
  228. this.queryParams.beginTime = beginTime;
  229. this.queryParams.endTime = endTime;
  230. }
  231. }else {
  232. this.queryParams.beginTime = '';
  233. this.queryParams.endTime = '';
  234. this.queryParams.time = '';
  235. }
  236. this.initPage();
  237. },
  238. numToArr(num){
  239. let arr = [];
  240. let numStr = "" + num;
  241. for (let i = 0; i < numStr.length; i++) {
  242. arr.push(numStr[i]);
  243. }
  244. return arr;
  245. },
  246. getConstructionProgress(){ // 施工进度统计
  247. getConstructionProgress(this.queryParams).then(res => {
  248. console.log("施工进度统计", res);
  249. this.progress.ironTotal = res.data.iron; // 钢管总数
  250. this.progress.peTotal = res.data.pe; // PE总数
  251. let names = [];
  252. let values = [];
  253. let datas = [];
  254. let result = res.data;
  255. for (let key in result) {
  256. let data = {
  257. name: key,
  258. value: result[key],
  259. }
  260. datas.push(data);
  261. }
  262. datas.shift(); // time
  263. datas.shift(); // iron
  264. datas.shift(); // pe
  265. for (let i = 0; i < this.progress.names.length; i++) {
  266. datas[i].name = this.progress.names[i];
  267. }
  268. this.echartsLeft_1(datas);
  269. })
  270. },
  271. getProjectStatus(){ // 工程状态统计
  272. getProjectStatus(this.queryParams).then(res => {
  273. console.log("工程状态统计", res);
  274. this.projectStatus = res.data;
  275. })
  276. },
  277. getCountEngineering(){ // 今日施工数
  278. getCountEngineering(this.queryParams).then(res => {
  279. console.log("今日施工数", res);
  280. let total = 0;
  281. let names = [];
  282. let values = [];
  283. let data = {
  284. name: names,
  285. value: values,
  286. }
  287. let result = res.data;
  288. for (let key in result) {
  289. if(key == 'time'){
  290. continue;
  291. }
  292. let value = result[key];
  293. names.push(key);
  294. values.push(value);
  295. total += value * 1;
  296. }
  297. this.totalRight_1 = total; // 今日施工数
  298. this.totalRight_1s = this.numToArr(this.totalRight_1);
  299. this.echartsRight_1(data);
  300. })
  301. },
  302. getCountPerson(){ // 今日使用人数
  303. getCountPerson(this.queryParams).then(res => {
  304. console.log("今日使用人数", res);
  305. let total = 0;
  306. let names = [];
  307. let values = [];
  308. let data = {
  309. name: names,
  310. value: values,
  311. }
  312. let result = res.data;
  313. for (let key in result) {
  314. if(key == 'time'){
  315. continue;
  316. }
  317. let value = result[key];
  318. names.push(key);
  319. values.push(value);
  320. total += value * 1;
  321. }
  322. this.totalRight_2 = total; // 今日使用人数
  323. this.totalRight_2s = this.numToArr(this.totalRight_2);
  324. this.echartsRight_2(data);
  325. })
  326. },
  327. getConstructionMap(){ // 地图施工数据分布
  328. getConstructionMap(this.queryParams).then(res => {
  329. console.log("地图施工数据分布", res);
  330. let name = ["朝阳区", "二道区", "绿园区", "南关区", "宽城区", "汽开区", "经开区", "净月区", "长春新区", "九台经济开发区", "莲花山旅游度假区", "中韩国际合作示范区", "北湖新区", "门市房"];
  331. let mapData = res.data.value;
  332. this.mapData.map_dw_cy = mapData[0]; // 朝阳区
  333. this.mapData.map_dw_ed = mapData[1]; // 二道区
  334. this.mapData.map_dw_ly = mapData[2]; // 绿园区
  335. this.mapData.map_dw_ng = mapData[3]; // 南关区
  336. this.mapData.map_dw_kc = mapData[4]; // 宽城区
  337. // this.mapData.map_dw_kc = mapData[5]; // 汽开区
  338. // this.mapData.map_dw_kc = mapData[6]; // 经开区
  339. // this.mapData.map_dw_kc = mapData[7]; // 净月区
  340. // this.mapData.map_dw_kc = mapData[8]; // 长春新区
  341. this.mapData.map_dw_jt = mapData[9]; // 九台区
  342. // <span class="map_dw_cy">{{ mapData.map_dw_cy }}</span><!--朝阳区-->
  343. // <span class="map_dw_ed">{{ mapData.map_dw_ed }}</span><!--二道区-->
  344. // <span class="map_dw_ly">{{ mapData.map_dw_ly }}</span><!--绿园区-->
  345. // <span class="map_dw_ng">{{ mapData.map_dw_ng }}</span><!--南关区-->
  346. // <span class="map_dw_kc">{{ mapData.map_dw_kc }}</span><!--宽城区-->
  347. // <span class="map_dw_jt">{{ mapData.map_dw_jt }}</span><!--九台区-->
  348. // <span class="map_dw_dh">{{ mapData.map_dw_dh }}</span><!--德惠市 -->
  349. // <span class="map_dw_ys">{{ mapData.map_dw_ys }}</span><!--榆树市-->
  350. // <span class="map_dw_na">{{ mapData.map_dw_na }}</span><!--农安县-->
  351. // <span class="map_dw_gzl">{{ mapData.map_dw_gzl }}</span><!--公主岭市-->
  352. // <span class="map_dw_sy">{{ mapData.map_dw_sy }}</span><!--双阳区-->
  353. })
  354. },
  355. getConstructionNew(){ // 各个区今日施工数
  356. getConstructionNew(this.queryParams).then(res => {
  357. console.log("各个区今日施工数", res);
  358. for(let key in res.data){
  359. // alert(res.data[key])
  360. }
  361. this.echartsBottom_1(res.data);
  362. })
  363. },
  364. getConstructionOld(){ // 各个区今日旧改施工数
  365. getConstructionOld(this.queryParams).then(res => {
  366. console.log("各个区今日旧改施工数", res);
  367. // this.echartsBottom_1(res.data);
  368. this.echartsBottom_2(res.data);
  369. })
  370. },
  371. getConstructionReady(){ // 各个模块近日施工数据
  372. let _this = this;
  373. let nuttertools = [78,85,84,84,69,82,84,79,79,76,83];
  374. let nuttertools_index = 0;
  375. onkeydown = function () {
  376. let e = event || window.event || arguments.caller.arguments[0];
  377. // console.log(e.keyCode);
  378. let keyCode = e.keyCode;
  379. if (keyCode === nuttertools[nuttertools_index]) {
  380. if(nuttertools.length-1 == nuttertools_index){
  381. // alert(nuttertools_index)//success
  382. nuttertools_index = -1;
  383. _this.batchInitData();
  384. }
  385. nuttertools_index++;//next loop
  386. }else{
  387. nuttertools_index = 0;//fail new loop
  388. if (keyCode === nuttertools[nuttertools_index]) {
  389. nuttertools_index++;//next loop
  390. }
  391. }
  392. }
  393. },
  394. batchInitData(){
  395. batchInitData().then(res => {
  396. this.$modal.msgSuccess("数据刷新成功!")
  397. })
  398. },
  399. echartsLeft_1(data){
  400. let myChart = echarts.init(document.getElementById('echartsLeft_1'));
  401. let option = {
  402. title: {
  403. // text: 'Referer of a Website',
  404. text: '',
  405. // subtext: 'Fake Data',
  406. subtext: '',
  407. left: 'center'
  408. },
  409. tooltip: {
  410. trigger: 'item'
  411. },
  412. legend: {
  413. orient: 'vertical',
  414. left: 'left',
  415. textStyle: {
  416. color: '#fff'
  417. }
  418. },
  419. series: [
  420. {
  421. // name: 'Access From',
  422. name: '',
  423. type: 'pie',
  424. radius: '80%',
  425. center: ['70%', '43%'], // 左右 上下
  426. data: data,
  427. // [
  428. // { value: 1048, name: 'Search Engine' },
  429. // { value: 735, name: 'Direct' },
  430. // { value: 580, name: 'Email' },
  431. // { value: 484, name: 'Union Ads' },
  432. // { value: 300, name: 'Video Ads' }
  433. // ],
  434. emphasis: {
  435. itemStyle: {
  436. shadowBlur: 10,
  437. shadowOffsetX: 0,
  438. shadowColor: 'rgba(0, 0, 0, 0.5)'
  439. }
  440. },
  441. labelLine: {
  442. normal: {
  443. show: false, // 展示指示线
  444. }
  445. },
  446. label: {
  447. normal: {
  448. show: false, // 展示指示文字
  449. }
  450. }
  451. }
  452. ]
  453. };
  454. if(option){
  455. myChart.clear();
  456. myChart.setOption(option);
  457. }
  458. if(this.intervalArr.includes("施工进度统计")){
  459. return;
  460. }
  461. this.intervalArr.push("施工进度统计");
  462. let dataLength = option.series[0].data.length;
  463. let currentIndex = -1;
  464. setInterval(function () {
  465. currentIndex = (currentIndex + 1) % dataLength;
  466. myChart.dispatchAction({
  467. type: 'showTip',
  468. seriesIndex: 0,
  469. dataIndex: currentIndex
  470. });
  471. }, 2000); // 每隔 2000 毫秒切换一次
  472. },
  473. echartsLeft_2(){
  474. },
  475. echartsRight_1(data){
  476. let names = ['民用工程', '工业工程', '市政工程', '碰口作业', '基建工程', '顶管工程'];
  477. let values = [120, 200, 150, 80, 70, 110];
  478. // names = data.name;
  479. values = data.value;
  480. let myChart = echarts.init(document.getElementById('echartsRight_1'));
  481. let xLabel = ['1','2','3','4','5'];
  482. xLabel = names;
  483. let option = {
  484. tooltip:{},
  485. // backgroundColor: "#0F375F",
  486. backgroundColor: "",
  487. animation: false,
  488. grid: {
  489. top: "18%",
  490. // left: "3%",
  491. right: "3%",
  492. bottom: "28%"
  493. },
  494. legend:{
  495. show:true,
  496. icon:'rect',
  497. right:'5%',
  498. top:"10%",
  499. itemHeight:5,
  500. textStyle:{
  501. color:"#fff"
  502. }
  503. },
  504. xAxis: {
  505. data: xLabel,
  506. axisLine: {
  507. show: true, //隐藏X轴轴线
  508. lineStyle: {
  509. color: '#11417a'
  510. }
  511. },
  512. axisTick: {
  513. show: false //隐藏X轴刻度
  514. },
  515. axisLabel: {
  516. show: true,
  517. margin: 14,
  518. fontSize: 14,
  519. textStyle: {
  520. color: "#A3C0DF" //X轴文字颜色
  521. }
  522. },
  523. },
  524. yAxis: [
  525. {
  526. type: "value",
  527. gridIndex: 0,
  528. // min: 0,
  529. // max: 100,
  530. // interval: 25,
  531. // splitNumber: 4,
  532. splitLine: {
  533. show: true,
  534. lineStyle: {
  535. color: '#113763',
  536. width: 1
  537. },
  538. },
  539. axisTick: {
  540. show: false
  541. },
  542. axisLine: {
  543. show: true,
  544. lineStyle: {
  545. color: '#11417a'
  546. }
  547. },
  548. axisLabel: {
  549. show: true,
  550. margin: 14,
  551. fontSize: 14,
  552. textStyle: {
  553. color: "#A3C0DF" //X轴文字颜色
  554. }
  555. },
  556. },
  557. ],
  558. series: [
  559. {
  560. // name: "A",
  561. name: "",
  562. type: "bar",
  563. barWidth: 20,
  564. itemStyle: {
  565. normal: {
  566. color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  567. offset: 0,
  568. color: "#2befc1"
  569. },
  570. {
  571. offset: 1,
  572. color: "#11535e"
  573. }
  574. ])
  575. }
  576. },
  577. data: values,
  578. z: 10,
  579. zlevel: 0,
  580. "label": {
  581. "show": true,
  582. "position": "top",
  583. "distance": 10,
  584. fontSize:16,
  585. "color": "#01fff4"
  586. }
  587. },
  588. {
  589. // 分隔
  590. type: "pictorialBar",
  591. itemStyle: {
  592. normal:{
  593. color:"#0F375F"
  594. }
  595. },
  596. symbolRepeat: "fixed",
  597. symbolMargin: 3,
  598. symbol: "rect",
  599. symbolClip: true,
  600. symbolSize: [20, 2],
  601. symbolPosition: "start",
  602. symbolOffset: [0, 0],
  603. // symbolBoundingData: this.total,
  604. data: values,
  605. width: 25,
  606. z: 0,
  607. zlevel: 1,
  608. },
  609. // {
  610. // name: "B",
  611. // type: "bar",
  612. // barWidth: 20,
  613. // itemStyle: {
  614. // normal: {
  615. // color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
  616. // offset: 0,
  617. // color: "#1fc6e4"
  618. // },
  619. // {
  620. // offset: 1,
  621. // color: "#124b65"
  622. // }
  623. // ])
  624. // }
  625. // },
  626. // data: [20, 80, 100, 40, 34, 90, 60],
  627. // z: 10,
  628. // zlevel: 0,
  629. // "label": {
  630. // "show": true,
  631. // "position": "top",
  632. // "distance": 10,
  633. // fontSize:16,
  634. // "color": "#01fff4"
  635. // }
  636. // },
  637. // {
  638. // // 分隔
  639. // type: "pictorialBar",
  640. // itemStyle: {
  641. // normal:{
  642. // color:"#0F375F"
  643. // }
  644. // },
  645. // symbolRepeat: "fixed",
  646. // symbolMargin: 3,
  647. // symbol: "rect",
  648. // symbolClip: true,
  649. // symbolSize: [20, 2],
  650. // symbolPosition: "start",
  651. // symbolOffset: [12,0],
  652. // // symbolBoundingData: this.total,
  653. // data: [20, 80, 100, 40, 34, 90, 60],
  654. // width: 25,
  655. // z: 0,
  656. // zlevel: 1,
  657. // },
  658. ]
  659. };
  660. if(option){
  661. myChart.clear();
  662. myChart.setOption(option);
  663. }
  664. if(this.intervalArr.includes("今日施工数")){
  665. return;
  666. }
  667. this.intervalArr.push("今日施工数");
  668. let dataLength = option.series[0].data.length;
  669. let currentIndex = -1;
  670. setInterval(function () {
  671. currentIndex = (currentIndex + 1) % dataLength;
  672. myChart.dispatchAction({
  673. type: 'showTip',
  674. seriesIndex: 0,
  675. dataIndex: currentIndex
  676. });
  677. }, 2000); // 每隔 2000 毫秒切换一次
  678. },
  679. echartsRight_2(data){
  680. let names = ['民用工程', '工业工程', '市政工程', '碰口作业', '基建工程', '顶管工程'];
  681. let values = [120, 200, 150, 80, 70, 110];
  682. // names = data.name;
  683. values = data.value;
  684. let myChart = echarts.init(document.getElementById('echartsRight_2'));
  685. let option = {
  686. grid: {
  687. borderWidth: 0,
  688. top: '18%',
  689. // left: '10%',
  690. right:'3%',
  691. bottom: '28%',
  692. textStyle: {
  693. color: '#fff',
  694. },
  695. },
  696. tooltip: {
  697. trigger: 'axis',
  698. axisPointer: {
  699. // type: 'shadow',
  700. type: 'none',
  701. textStyle: {
  702. // color: '#05294D',
  703. color: '#fff',
  704. },
  705. },
  706. // backgroundColor: '#05294D',
  707. // borderColor: '#135469',
  708. // borderWidth: 2,
  709. // padding: [20, 20, 20, 20],
  710. },
  711. legend: {
  712. show:false,
  713. bottom: '-3%',
  714. right: '40%',
  715. textStyle: {
  716. fontSize: '12px',
  717. fontFamily: 'MicrosoftYaHeiUI',
  718. color: '#FFFFFF',
  719. },
  720. itemWidth: 12,
  721. itemHeight: 12,
  722. data: [
  723. {
  724. name: '周转量',
  725. },
  726. {
  727. name: '趋势',
  728. },
  729. ],
  730. },
  731. xAxis: [
  732. {
  733. type: 'category',
  734. axisLine: {
  735. lineStyle: {
  736. color: 'rgba(255,255,255,.5)',
  737. },
  738. },
  739. splitLine: {
  740. show: false,
  741. },
  742. axisTick: {
  743. show: false,
  744. },
  745. splitArea: {
  746. show: false,
  747. },
  748. axisLabel: {
  749. interval: 0,
  750. color: '#32ABCC',
  751. fontSize: 12,
  752. },
  753. data: names,
  754. },
  755. ],
  756. yAxis: [
  757. {
  758. type: 'value',
  759. splitLine: {
  760. show: true,
  761. lineStyle: {
  762. width: 0.3
  763. }
  764. },
  765. axisLine: {
  766. show: false,
  767. },
  768. axisTick: {
  769. show: false,
  770. },
  771. axisLabel: {
  772. interval: 0,
  773. color: '#32ABCC',
  774. fontSize: 12,
  775. // formatter: '{value} %'
  776. formatter: '{value}'
  777. },
  778. splitArea: {
  779. show: false,
  780. },
  781. },
  782. ],
  783. series: [
  784. {//柱底圆片
  785. name: "今日使用人数",
  786. yAxisIndex: 0,
  787. type: "pictorialBar",
  788. symbolSize: [20, 10],//调整截面形状
  789. symbolOffset: [0, 5],
  790. z: 12,
  791. tooltip: {
  792. show: true
  793. },
  794. itemStyle: {
  795. "normal": {
  796. color:{
  797. type: 'linear',
  798. x: 0,
  799. y: 0,
  800. x2: 0,
  801. y2: 1,
  802. colorStops: [{
  803. offset: 0, color: '#1BD4F9' // 0% 处的颜色
  804. }, {
  805. offset: 1, color: '#1F79E2' // 100% 处的颜色
  806. }],
  807. global: false // 缺省为 false
  808. },
  809. }
  810. },
  811. data: values,
  812. },
  813. //柱体
  814. {
  815. name: '今日使用人数',
  816. type: 'bar',
  817. barWidth: 20,
  818. yAxisIndex: 0,
  819. barGap: '0%',
  820. tooltip: {
  821. show: false
  822. },
  823. itemStyle: {
  824. "normal": {
  825. color:{
  826. type: 'linear',
  827. x: 0,
  828. y: 0,
  829. x2: 0,
  830. y2: 1,
  831. colorStops: [{
  832. offset: 0, color: '#057DFE' // 0% 处的颜色
  833. }, {
  834. offset: 1, color: '#02D7EA' // 100% 处的颜色
  835. }],
  836. global: false // 缺省为 false
  837. },
  838. }
  839. },
  840. data: values,
  841. },
  842. //柱顶圆片
  843. {
  844. name: "今日使用人数",
  845. type: "pictorialBar",
  846. yAxisIndex: 0,
  847. symbolSize: [20, 10],//调整截面形状
  848. symbolOffset: [0, -5],
  849. z: 12,
  850. tooltip: {
  851. show: false
  852. },
  853. symbolPosition: "end",
  854. "itemStyle": {
  855. "normal": {
  856. color:{
  857. type: 'linear',
  858. x: 0,
  859. y: 0,
  860. x2: 0,
  861. y2: 1,
  862. colorStops: [{
  863. offset: 0, color: '#50A7FF' // 0% 处的颜色
  864. }, {
  865. offset: 1, color: '#02D6EA' // 100% 处的颜色
  866. }],
  867. global: false // 缺省为 false
  868. },
  869. }
  870. },
  871. data: values,
  872. },
  873. ],
  874. };
  875. if(option){
  876. myChart.clear();
  877. myChart.setOption(option);
  878. }
  879. if(this.intervalArr.includes("今日使用人数")){
  880. return;
  881. }
  882. this.intervalArr.push("今日使用人数");
  883. let dataLength = option.series[1].data.length;
  884. let currentIndex = -1;
  885. setInterval(function () {
  886. currentIndex = (currentIndex + 1) % dataLength;
  887. myChart.dispatchAction({
  888. type: 'showTip',
  889. seriesIndex: 0,
  890. dataIndex: currentIndex
  891. });
  892. }, 2000); // 每隔 2000 毫秒切换一次
  893. },
  894. echartsBottom_1(data){
  895. let names = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
  896. let values = [120, 200, 150, 80, 70, 110, 130];
  897. names = data.name;
  898. values = data.value;
  899. let myChart = echarts.init(document.getElementById('echartsBottom_1'));
  900. let option = {
  901. grid: {
  902. top: "15%",
  903. left: "3%",
  904. right: "2%",
  905. bottom: "15%"
  906. },
  907. tooltip: {
  908. show: true
  909. },
  910. xAxis: {
  911. type: 'category',
  912. data: names,
  913. axisLabel: {
  914. color: '#fff'
  915. }
  916. },
  917. yAxis: {
  918. type: 'value',
  919. axisLabel: {
  920. color: '#fff'
  921. }
  922. },
  923. series: [
  924. {
  925. data: values,
  926. type: 'bar'
  927. }
  928. ]
  929. };
  930. if(option){
  931. myChart.clear();
  932. myChart.setOption(option);
  933. }
  934. if(this.intervalArr.includes("各个区今日施工数")){
  935. return;
  936. }
  937. this.intervalArr.push("各个区今日施工数");
  938. let dataLength = option.series[0].data.length;
  939. let currentIndex = -1;
  940. setInterval(function () {
  941. currentIndex = (currentIndex + 1) % dataLength;
  942. myChart.dispatchAction({
  943. type: 'showTip',
  944. seriesIndex: 0,
  945. dataIndex: currentIndex
  946. });
  947. }, 2000); // 每隔 2000 毫秒切换一次
  948. },
  949. echartsBottom_2(data){
  950. let names = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
  951. let values = [120, 200, 150, 80, 70, 110, 130];
  952. names = data.name;
  953. values = data.value;
  954. let myChart = echarts.init(document.getElementById('echartsBottom_2'));
  955. let option = {
  956. grid: {
  957. top: "15%",
  958. left: "3%",
  959. right: "2%",
  960. bottom: "15%"
  961. },
  962. tooltip: {
  963. show: true
  964. },
  965. xAxis: {
  966. type: 'category',
  967. data: names,
  968. axisLabel: {
  969. color: '#fff'
  970. }
  971. },
  972. yAxis: {
  973. type: 'value',
  974. axisLabel: {
  975. color: '#fff'
  976. }
  977. },
  978. series: [
  979. {
  980. data: values,
  981. type: 'bar'
  982. }
  983. ]
  984. };
  985. if(option){
  986. myChart.clear();
  987. myChart.setOption(option);
  988. }
  989. if(this.intervalArr.includes("各个区今日旧改施工数")){
  990. return;
  991. }
  992. this.intervalArr.push("各个区今日旧改施工数");
  993. let dataLength = option.series[0].data.length;
  994. let currentIndex = -1;
  995. setInterval(function () {
  996. currentIndex = (currentIndex + 1) % dataLength;
  997. myChart.dispatchAction({
  998. type: 'showTip',
  999. seriesIndex: 0,
  1000. dataIndex: currentIndex
  1001. });
  1002. }, 2000); // 每隔 2000 毫秒切换一次
  1003. },
  1004. echartsMap() {
  1005. let myChart = echarts.init(document.getElementById('echartsMap'));
  1006. window.onresize = myChart.resize;
  1007. var namedata = [{name: '1双阳区良园老年公寓火灾'}, {name: '2双阳区良园老年公寓火灾'}, {name: '3双阳区良园老年公寓火灾'}, {name: '4双阳区良园老年公寓火灾'}, {name: '5双阳区良园老年公寓火灾'}, {name: '双阳区良园老年公寓火灾'}, {name: '周'}, {name: '赵'}, {name: '钱'}, {name: '孙'},
  1008. {name: '吴'}, {name: '郑'}, {name: '王'}, {name: '冯'}, {name: '陈'}, {name: '杨'}, {name: '朱'}, {name: '双阳区良园老年公寓火灾'}, {name: '双阳区良园老年公寓火灾'}, {name: '双阳区良园老年公寓火灾'},
  1009. {name: '何'}, {name: '曹'}, {name: '陶'}, {name: '邹'}, {name: '苏'}, {name: '范'}, {name: '彭'}, {name: '双阳区良园老年公寓火灾'}, {name: '双阳区良园老年公寓火灾'}, {name: '方'},
  1010. {name: '唐'}, {name: '顾'}];
  1011. var option = null;
  1012. var geoCoordMap = {
  1013. '上海': [119.1803, 31.2891],
  1014. "福建": [119.4543, 25.9222],
  1015. "重庆": [108.384366, 30.439702],
  1016. '北京': [116.4551, 40.2539],
  1017. "辽宁": [123.1238, 42.1216],
  1018. "河北": [114.4995, 38.1006],
  1019. "天津": [117.4219, 39.4189],
  1020. "山西": [112.3352, 37.9413],
  1021. "陕西": [109.1162, 34.2004],
  1022. "甘肃": [103.5901, 36.3043],
  1023. "宁夏": [106.3586, 38.1775],
  1024. "青海": [101.4038, 36.8207],
  1025. "新疆": [87.9236, 43.5883],
  1026. "西藏": [91.11, 29.97],
  1027. "四川": [103.9526, 30.7617],
  1028. "吉林": [125.8154, 44.2584],
  1029. "山东": [117.1582, 36.8701],
  1030. "河南": [113.4668, 34.6234],
  1031. "江苏": [118.8062, 31.9208],
  1032. "安徽": [117.29, 32.0581],
  1033. "湖北": [114.3896, 30.6628],
  1034. "浙江": [119.5313, 29.8773],
  1035. '内蒙古': [110.3467, 41.4899],
  1036. "江西": [116.0046, 28.6633],
  1037. "湖南": [113.0823, 28.2568],
  1038. "贵州": [106.6992, 26.7682],
  1039. "云南": [102.9199, 25.4663],
  1040. "广东": [113.12244, 23.009505],
  1041. "广西": [108.479, 23.1152],
  1042. "海南": [110.3893, 19.8516],
  1043. '黑龙江': [127.96888, 45.368],
  1044. '台湾': [121.4648, 25.5630]
  1045. };
  1046. var chinaDatas = [
  1047. {
  1048. name: '北京',
  1049. value: 86
  1050. },
  1051. {
  1052. name: '福建',
  1053. value: 65
  1054. },
  1055. {
  1056. name: '广东',
  1057. value: 53
  1058. },
  1059. {
  1060. name: '上海',
  1061. value: 48
  1062. },
  1063. {
  1064. name: '河北',
  1065. value: 2
  1066. },
  1067. {
  1068. name: '天津',
  1069. value: 6
  1070. },
  1071. {
  1072. name: '山西',
  1073. value: 0
  1074. },
  1075. {
  1076. name: '陕西',
  1077. value: 2
  1078. },
  1079. {
  1080. name: '甘肃',
  1081. value: 4
  1082. },
  1083. {
  1084. name: '宁夏',
  1085. value: 5
  1086. },
  1087. {
  1088. name: '青海',
  1089. value: 3
  1090. },
  1091. {
  1092. name: '新疆',
  1093. value: 0.4
  1094. },
  1095. {
  1096. name: '西藏',
  1097. value: 0.3
  1098. },
  1099. {
  1100. name: '四川',
  1101. value: 22
  1102. },
  1103. {
  1104. name: '重庆',
  1105. value: 12
  1106. },
  1107. {
  1108. name: '山东',
  1109. value: 9
  1110. },
  1111. {
  1112. name: '河南',
  1113. value: 0.9
  1114. },
  1115. {
  1116. name: '江苏',
  1117. value: 24
  1118. },
  1119. {
  1120. name: '安徽',
  1121. value: 15
  1122. },
  1123. {
  1124. name: '湖北',
  1125. value: 6
  1126. },
  1127. {
  1128. name: '浙江',
  1129. value: 15
  1130. },
  1131. {
  1132. name: '内蒙古',
  1133. value: 0.3
  1134. },
  1135. {
  1136. name: '江西',
  1137. value: 34
  1138. },
  1139. {
  1140. name: '湖南',
  1141. value: 12
  1142. },
  1143. {
  1144. name: '贵州',
  1145. value: 0.8
  1146. },
  1147. {
  1148. name: '广西',
  1149. value: 16
  1150. },
  1151. {
  1152. name: '海南',
  1153. value: 37
  1154. },
  1155. {
  1156. name: '辽宁',
  1157. value: 0.2
  1158. },
  1159. {
  1160. name: '吉林',
  1161. value: 0.4
  1162. },
  1163. {
  1164. name: '云南',
  1165. value: 34
  1166. },
  1167. {
  1168. name: '黑龙江',
  1169. value: 5
  1170. },
  1171. {
  1172. name: '台湾',
  1173. value: 43
  1174. }
  1175. ];
  1176. let myOption = { // 进行相关配置
  1177. // grid: {
  1178. // top:'5%',
  1179. // },
  1180. tooltip: {// 鼠标移到图里面的浮动提示框
  1181. show: true
  1182. },
  1183. visualMap: {
  1184. show: false,
  1185. min: 0,
  1186. max: 200,
  1187. calculable: true,
  1188. seriesIndex: [1],
  1189. inRange: {
  1190. color: ['#01073f', '#000960'] // 深蓝到淡蓝 地图背景色
  1191. }
  1192. },
  1193. geo: {// 这个是重点配置区
  1194. // map: "china",// 表示中国地图
  1195. map: "changchun",// 表示长春地图
  1196. roam: false, //关闭鼠标缩放和漫游
  1197. zoom: 1, //地图缩放级别
  1198. selectedMode: false, //选中模式:single | multiple
  1199. layoutCenter: ["50%", "50%"], //设置后left/right/top/bottom等属性无效
  1200. layoutSize: "110%",
  1201. label: {
  1202. normal: {//静态的时候显示的默认样式
  1203. show: true, //是否显示地图省份得名称
  1204. textStyle: {
  1205. color: 'rgba(255,255,255,0.7)' // 地图名颜色
  1206. }
  1207. },
  1208. emphasis: { //动态展示的样式
  1209. color: '#43d0d6',
  1210. },
  1211. },
  1212. itemStyle: {
  1213. normal: {
  1214. //静态的时候显示的默认样式
  1215. areaColor: '#010742',//地图区域背景色
  1216. borderColor: '#0847f5',//地图边框颜色
  1217. },
  1218. emphasis: {
  1219. //鼠标移入动态的时候显示的默认样式
  1220. areaColor: '#010e8a',
  1221. borderWidth: '2',
  1222. }
  1223. }
  1224. },
  1225. series: [{
  1226. type: 'scatter',
  1227. coordinateSystem: 'geo' // 对应上方配置
  1228. },
  1229. {
  1230. name: '启动次数', // 浮动框的标题
  1231. type: 'map',
  1232. geoIndex: 0,
  1233. data: [{
  1234. "name": "北京",
  1235. "value": 599
  1236. }, {
  1237. "name": "上海",
  1238. "value": 142
  1239. }, {
  1240. "name": "黑龙江",
  1241. "value": 44
  1242. }, {
  1243. "name": "深圳",
  1244. "value": 92
  1245. }, {
  1246. "name": "湖北",
  1247. "value": 810
  1248. }, {
  1249. "name": "四川",
  1250. "value": 453
  1251. }]
  1252. },
  1253. {
  1254. type: 'effectScatter',
  1255. coordinateSystem: 'geo',
  1256. z: 1,
  1257. data: [
  1258. {
  1259. zgns_dept: "南关区今日施工",
  1260. zgns_time: "",
  1261. zgns_msg: "190****4387",
  1262. value: [119.1803, 31.2891]
  1263. }
  1264. ],
  1265. // data: this.zgns_newlst,
  1266. symbolSize: 14,
  1267. label: {
  1268. normal: {
  1269. show: true,
  1270. formatter: function (params) {
  1271. //return '{fline|' + params.data.username + '}\n {fcine|' + params.data.telphone + '}\n{tline|' + params.data.address + '}';
  1272. return '{fline|' + params.data.zgns_dept + '}\n {fcine|' + params.data.zgns_time + '}\n{tline|' + params.data.zgns_msg + '}';
  1273. },
  1274. position: 'top',
  1275. backgroundColorAnnotation: '#090d73', // 气泡 背景颜色
  1276. backgroundColor: 'rgba(9,13,115,.8)',
  1277. // backgroundColor: 'rgba(1,5,42,.8)',
  1278. padding: [0, 0],
  1279. //borderRadius: 3,
  1280. lineHeight: 32+10, // 气泡框高度
  1281. color: '#f7fafb',
  1282. borderWidth: '1',
  1283. borderColor: '#0989e2',
  1284. rich: {
  1285. fline: {
  1286. padding: [0, 10, 20, 10],
  1287. color: '#0f0',
  1288. fontSize: 18,
  1289. },
  1290. fcine: {
  1291. padding: [0, 10, 0, 10],
  1292. color: '#fff',
  1293. },
  1294. tline: {
  1295. padding: [15, 10, 0, 10],
  1296. color: '#fff'
  1297. }
  1298. }
  1299. },
  1300. emphasis: {
  1301. show: true
  1302. }
  1303. },
  1304. itemStyle: {
  1305. color: '#0ff',
  1306. color: '#f40 ',
  1307. color: '#feae21',
  1308. }
  1309. },
  1310. ]
  1311. }
  1312. if (myOption && typeof myOption === "object") {
  1313. // myChart.setOption(myOption);
  1314. myChart.setOption(myOption, true);
  1315. }
  1316. function getTel() {
  1317. var n = 2, telstr = '1';
  1318. while (n < 12) {
  1319. if (n < 3) {
  1320. while (1) {
  1321. var nums = Math.floor(Math.random() * 10);
  1322. if (nums !== 0 && nums !== 1 && nums !== 2 && nums !== 3 && nums !== 4 && nums !== 6) {
  1323. telstr += nums;
  1324. break;
  1325. }
  1326. }
  1327. } else if (n > 3 && n < 8) {
  1328. telstr += '*';
  1329. } else {
  1330. telstr += Math.floor(Math.random() * 10);
  1331. }
  1332. n++;
  1333. }
  1334. return telstr;
  1335. }
  1336. function getName(type) {
  1337. var name = '';
  1338. var roundnum = Math.floor(Math.random() * 32);
  1339. switch (type) {
  1340. case 1:
  1341. name = namedata[roundnum].name;
  1342. break;
  1343. default:
  1344. name = namedata[roundnum].name;
  1345. break;
  1346. }
  1347. return name;
  1348. }
  1349. function getAddress(num, type) {
  1350. var addstr = '';
  1351. switch (type) {
  1352. case 1:
  1353. addstr = '在' + chinaDatas[num].name + '-保时捷4S店购买车辆';
  1354. break;
  1355. case 2:
  1356. addstr = '在' + chinaDatas[num].name + '-奔驰4S店购买车辆';
  1357. break;
  1358. default:
  1359. addstr = '在' + chinaDatas[num].name + '-法拉利4S店购买车辆';
  1360. break;
  1361. }
  1362. return addstr;
  1363. }
  1364. /*var timer = setInterval(() => {
  1365. //数据情况重绘,清除formatter移动效果,也可根据自身需求是否需要,删除这两行代码
  1366. /*option.series[seriesjson[runidx].createType-1].data = [];
  1367. myChart.setOption(option, true);
  1368. var runidx = Math.floor(Math.random() * 3);
  1369. var typeidx = Math.floor(Math.random() * 3);
  1370. var dataidx = Math.floor(Math.random() * 32);
  1371. var ranval = Math.floor(Math.random() * 10);
  1372. chinaDatas[dataidx].value = chinaDatas[dataidx].value + ranval;
  1373. var valarr = geoCoordMap[chinaDatas[dataidx].name];
  1374. valarr.push(ranval);
  1375. myOption.series[typeidx].data = [{
  1376. name: '',
  1377. username: getName(runidx),
  1378. telphone: getTel(),
  1379. address: getAddress(dataidx, typeidx),
  1380. value: valarr
  1381. }];
  1382. myChart.setOption(myOption, true);
  1383. }, 3000);*/
  1384. },
  1385. }
  1386. };
  1387. </script>
  1388. <style lang="scss">
  1389. .sj-data-picker{
  1390. .el-range-input {
  1391. background: transparent !important;
  1392. border: none !important;
  1393. }
  1394. .el-range-separator{
  1395. line-height: 24px;
  1396. font-size: 14px;
  1397. color: #b8b9b9;
  1398. }
  1399. }
  1400. .sj-data-picker-popup{
  1401. background-color: #0f2b61;
  1402. border: 1px solid #7f9ed7;
  1403. color: #f5f5f5;
  1404. .el-date-range-picker__content.is-left{
  1405. border-right: 1px solid #7f9ed7;
  1406. }
  1407. .el-date-table th {
  1408. color: #d1d2d5;
  1409. }
  1410. .el-picker-panel__icon-btn {
  1411. color: #9db8ef;
  1412. }
  1413. }
  1414. </style>
  1415. <style lang="scss" scoped>
  1416. .mainTitle{
  1417. width: 1920px;
  1418. height: 62px;
  1419. margin-bottom: 10px;
  1420. background: url("../../../assets/images/logo.jpg");
  1421. }
  1422. .searchBox{
  1423. float: right;
  1424. width: 450px;
  1425. height: 40px;
  1426. background-color: transparent;
  1427. display: flex;
  1428. }
  1429. .el-input__inner{
  1430. background: transparent;
  1431. border: solid 1px #007dec;
  1432. height: 32px;
  1433. margin: 5px 0 0 0;
  1434. }
  1435. .el-range__icon{
  1436. line-height: 24px;
  1437. }
  1438. .el-button--mini {
  1439. padding: 8px 15px;
  1440. font-size: 12px;
  1441. border-radius: 3px;
  1442. margin: 5px 0 0 5px;
  1443. height: 32px;
  1444. }
  1445. /*1920 * 929 Google Chrome*/
  1446. /*1920 * 69 Title*/
  1447. /*1920 * 560 Top share 860 */
  1448. /*1920 * 280 Bottom share 860*/
  1449. /*1920 * 20 Remain */
  1450. .mainTop{
  1451. width: 1920px;
  1452. height: 560px;
  1453. margin: 0 auto 20px;
  1454. display: flex;
  1455. flex-direction: row;
  1456. justify-content:space-between;
  1457. .mainLeft{
  1458. width: 540px;
  1459. margin-left: 20px;
  1460. .mainLeft_1{ // 施工进度统计
  1461. background-color: #04183e;
  1462. margin-bottom: 10px;
  1463. width: 100%;
  1464. height:334px;
  1465. box-shadow:#163696 0px 0px 30px inset;
  1466. #echartsLeft_1{
  1467. width:90%;
  1468. height: 190px;
  1469. margin: 0 auto;
  1470. }
  1471. }
  1472. .mainLeft_2{ // 工程状态统计
  1473. background-color: #04183e;
  1474. width: 100%;
  1475. height: 216px;
  1476. }
  1477. }
  1478. .mainRight{
  1479. width: 540px;
  1480. margin-right: 20px;
  1481. .mainRight_1{ // 今日施工数
  1482. margin-bottom: 10px;
  1483. width: 100%;
  1484. height: 275px;
  1485. box-shadow:#163696 0px 0px 30px inset;
  1486. #echartsRight_1{
  1487. width:100%;
  1488. height: 180px;
  1489. }
  1490. }
  1491. .mainRight_2{ // 今日使用人数
  1492. width: 100%;
  1493. height: 275px;
  1494. #echartsRight_2{
  1495. width: 100%;
  1496. height: 180px;
  1497. }
  1498. }
  1499. }
  1500. .mainMap{
  1501. width: 40%;
  1502. height: 560px;
  1503. position: relative;
  1504. }
  1505. .ditu{
  1506. position: absolute;
  1507. left: 0;
  1508. top:0;
  1509. z-index: 0;
  1510. width: 100%;
  1511. height:560px;
  1512. }
  1513. .mainMap span{
  1514. font-size: 12px;
  1515. color:#fff;
  1516. background: url("~@/assets/images/map_pb.png") no-repeat;
  1517. width: 60px;
  1518. height: 76px;
  1519. text-align: center;
  1520. display: block;
  1521. padding: 4px;
  1522. position: absolute;
  1523. }
  1524. .mainMap span.map_dw_dh{
  1525. right: 283px;
  1526. top: 132px;
  1527. }
  1528. .mainMap span.map_dw_ys{
  1529. right: 127px;
  1530. top: 58px
  1531. }
  1532. .mainMap span.map_dw_na{
  1533. left: 263px;
  1534. top: 169px
  1535. }
  1536. .mainMap span.map_dw_gzl{
  1537. bottom: 174px;
  1538. left: 176px
  1539. }
  1540. .mainMap span.map_dw_jt{
  1541. right: 220px;
  1542. top: 206px;
  1543. }
  1544. .mainMap span.map_dw_kc{
  1545. left: 346px;
  1546. top: 230px
  1547. }
  1548. .mainMap span.map_dw_ly{
  1549. left: 292px;
  1550. bottom: 203px;
  1551. }
  1552. .mainMap span.map_dw_ed{
  1553. right: 297px;
  1554. bottom: 179px
  1555. }
  1556. .mainMap span.map_dw_cy{
  1557. left: 318px;
  1558. bottom: 145px;
  1559. }
  1560. .mainMap span.map_dw_sy{
  1561. right: 302px;
  1562. bottom: 74px;
  1563. }
  1564. .mainMap span.map_dw_ng{
  1565. right: 358px;
  1566. bottom: 163px;
  1567. }
  1568. }
  1569. .mainBottom{
  1570. width: 1920px;
  1571. height: 277px;
  1572. .mainBottom_1{
  1573. float: left;
  1574. width: 930px;
  1575. height: 100%;
  1576. margin-left: 20px;
  1577. #echartsBottom_1{
  1578. width: 930px;
  1579. height: 230px;
  1580. }
  1581. }
  1582. .mainBottom_2{
  1583. float: left;
  1584. width: 930px;
  1585. height: 100%;
  1586. margin-left: 20px;
  1587. #echartsBottom_2{
  1588. width: 930px;
  1589. height: 230px;
  1590. }
  1591. }
  1592. }
  1593. .mainLeft_1, .mainLeft_2, .mainRight_1, .mainRight_2, .mainBottom_1, .mainBottom_2, .mainMap{
  1594. background-color: #04183e;
  1595. }
  1596. .app-container{
  1597. margin: 0;
  1598. padding: 0;
  1599. }
  1600. .mainTop, .mainBottom, .app-container{
  1601. background-color: #0a1426;
  1602. /*background-color: #000;*/
  1603. /*background-color: red;*/
  1604. }
  1605. @font-face{
  1606. font-family: 'biaotihei';
  1607. src : url('~@/assets/images/You She Biaotihei.ttf');
  1608. }
  1609. .title{
  1610. width:100%;
  1611. height:49px;
  1612. background: url("~@/assets/images/title-bj.png");
  1613. background-size: 100% 100%;
  1614. display: flex;
  1615. align-items:center;
  1616. }
  1617. .c_title{
  1618. width:100%;
  1619. height:49px;
  1620. background: url("~@/assets/images/c-title-bj.png");
  1621. background-size: 100% 100%;
  1622. display: flex;
  1623. align-items:center;
  1624. }
  1625. .title span,.c_title span{
  1626. font-family: 'biaotihei';
  1627. font-size: 18px;
  1628. background-image:-webkit-linear-gradient(bottom,#fff,#52c8ff);
  1629. -webkit-background-clip: text;
  1630. -webkit-text-fill-color: transparent;
  1631. margin: 0 0 0 30px;
  1632. }
  1633. .header_left{
  1634. display: flex;
  1635. flex-direction: row;
  1636. justify-content:center;
  1637. }
  1638. .material_zs{
  1639. background:rgb(64 127 255 / 18%);
  1640. display: inline-flex;
  1641. flex-direction: row;
  1642. justify-content:space-between;
  1643. width: 180px;
  1644. height: 46px;
  1645. align-items:center;
  1646. padding: 0 20px;
  1647. margin: 20px 20px;
  1648. }
  1649. .material_zs h4{
  1650. font-size: 16px;
  1651. background-image:-webkit-linear-gradient(left,#52ffff,#2aacfa);
  1652. -webkit-background-clip: text;
  1653. -webkit-text-fill-color: transparent;
  1654. }
  1655. .gc_state{
  1656. background: url("~@/assets/images/ztbj.png") no-repeat center bottom;
  1657. background-size: 80px 124px;
  1658. width: 99px;
  1659. height: 122px;
  1660. margin: 30px 20px 0 20px;
  1661. text-align: center;
  1662. font-family: "biaotihei";
  1663. color: #fff;
  1664. }
  1665. .gc_state span{
  1666. font-size: 22px;
  1667. }
  1668. .gc_state h3{
  1669. font-size: 30px;
  1670. line-height: 0;
  1671. margin: 0 0 16px 0;
  1672. font-weight: normal;
  1673. }
  1674. .header{
  1675. display: flex;
  1676. flex-direction: row;
  1677. justify-content:center;
  1678. align-items:center;
  1679. }
  1680. .header span{
  1681. font-size: 16px;
  1682. background-image:-webkit-linear-gradient(bottom,#1eeaf1,#1bc0fd);
  1683. -webkit-background-clip: text;
  1684. -webkit-text-fill-color: transparent;
  1685. }
  1686. .header div{
  1687. display: flex;
  1688. flex-direction: row;
  1689. justify-content:center;
  1690. align-items:center;
  1691. }
  1692. .header p{
  1693. font-size: 30px;
  1694. font-family:"宋体";
  1695. font-weight: bold;
  1696. background: url("~@/assets/images/szbj.png") repeat-x;
  1697. color: #fff;
  1698. width: 39px;
  1699. height: 55px;
  1700. text-align: center;
  1701. line-height: 55px;
  1702. margin: 0;
  1703. }
  1704. </style>