components_natureResource_vue.html 78 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614
  1. <!--********************************************************************
  2. * Copyright© 2000 - 2021 SuperMap Software Co.Ltd. All rights reserved.
  3. *********************************************************************-->
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <meta charset="UTF-8" />
  8. <title data-i18n="resources.title_natureResourcePlatform_Vue"></title>
  9. <script type="text/javascript" include="vue" src="../js/include-web.js"></script>
  10. <script
  11. include="echarts-vue,ant-design-vue,iclient-mapboxgl-vue,mapbox-gl-enhance"
  12. src="../../dist/mapboxgl/include-mapboxgl.js"
  13. ></script>
  14. <style>
  15. #main {
  16. margin: 0 auto;
  17. width: 100%;
  18. height: 100vh;
  19. overflow: hidden;
  20. box-sizing: border-box;
  21. }
  22. @media screen and (max-width: 992px) {
  23. #main {
  24. overflow: auto;
  25. }
  26. }
  27. @media screen and (max-height: 640px) {
  28. #main {
  29. overflow: auto;
  30. }
  31. }
  32. </style>
  33. </head>
  34. <body style="margin: 0; background: #192d2f">
  35. <div id="main">
  36. <sm-layout-header>
  37. <div class="dashboard-header">
  38. <div class="left-header">
  39. <sm-text class="btn-active" v-bind="textPropsCommon" title="指标总览"></sm-text>
  40. <sm-text v-bind="textPropsCommon" title="调查监测"></sm-text>
  41. <sm-text v-bind="textPropsCommon" title="耕地保护"></sm-text>
  42. <sm-text v-bind="textPropsCommon" title="空间规划"></sm-text>
  43. <sm-text v-bind="textPropsCommon" title="用途管制"></sm-text>
  44. </div>
  45. <sm-text class="middle-header" v-bind="headerTitleProps"></sm-text>
  46. <div class="right-header">
  47. <sm-text v-bind="textPropsCommon" title="权益保护"></sm-text>
  48. <sm-text v-bind="textPropsCommon" title="地质矿产"></sm-text>
  49. <sm-text v-bind="textPropsCommon" title="生态修复"></sm-text>
  50. <sm-text v-bind="textPropsCommon" title="确权登记"></sm-text>
  51. <sm-text v-bind="textPropsCommon" title="执法监察"></sm-text>
  52. </div>
  53. </div>
  54. </sm-layout-header>
  55. <sm-layout-content>
  56. <a-row>
  57. <a-col :span="6">
  58. <sm-border
  59. :custom-border="{src:'../img/background/border14.png', 'borderWidth': [12, 12, 12, 12], 'borderEdge':{'top': 12, 'left': 12, 'right': 12, 'bottom': 12}}"
  60. class="container"
  61. >
  62. <sm-text class="container-title" v-bind="textGridTitle" title="调查监测"></sm-text>
  63. <div class="indicator-group">
  64. <sm-indicator v-bind="indicatorGroup"></sm-indicator>
  65. <sm-indicator v-bind="indicatorGroup"></sm-indicator>
  66. <sm-indicator v-bind="indicatorGroup"></sm-indicator>
  67. </div>
  68. <div class="indicator-background">
  69. <div class="indicator-background-item">
  70. <sm-indicator v-bind="landIndicatorProps"></sm-indicator>
  71. <div class="circle-center">
  72. <sm-text title="国土空间用地构成"></sm-text>
  73. </div>
  74. <sm-indicator v-bind="landIndicatorProps"></sm-indicator>
  75. </div>
  76. <div class="indicator-background-item">
  77. <sm-indicator v-bind="landIndicatorProps"></sm-indicator>
  78. </div>
  79. </div>
  80. </sm-border>
  81. <sm-border
  82. :custom-border="{src:'../img/background/border14.png', 'borderWidth': [12, 12, 12, 12], 'borderEdge':{'top': 12, 'left': 12, 'right': 12, 'bottom': 12}}"
  83. class="container"
  84. >
  85. <sm-text class="container-title" v-bind="textGridTitle" title="耕地保护"></sm-text>
  86. <div class="indicator-bar">
  87. <sm-indicator v-bind="indicatorBar"></sm-indicator>
  88. <sm-indicator v-bind="indicatorBar"></sm-indicator>
  89. </div>
  90. <sm-chart v-bind="lineChartProps"></sm-chart>
  91. </sm-border>
  92. <sm-border
  93. :custom-border="{src:'../img/background/border14.png', 'borderWidth': [12, 12, 12, 12], 'borderEdge':{'top': 12, 'left': 12, 'right': 12, 'bottom': 12}}"
  94. class="container"
  95. >
  96. <sm-text class="container-title" v-bind="textGridTitle" title="空间规划"></sm-text>
  97. <div class="indicator-bar">
  98. <sm-indicator v-bind="indicatorBar"></sm-indicator>
  99. <sm-indicator v-bind="indicatorBar"></sm-indicator>
  100. </div>
  101. <div class="datalist-container">
  102. <div class="datalist-item">
  103. <sm-text title="生态保护红线"></sm-text>
  104. <sm-text v-bind="textNumberProps" title="5.0"></sm-text>
  105. <sm-indicator v-bind="indicatorNumberProps"></sm-indicator>
  106. </div>
  107. <div class="datalist-item">
  108. <sm-text title="生态保护红线"></sm-text>
  109. <sm-text v-bind="textNumberProps" title="5.0"></sm-text>
  110. <sm-indicator v-bind="indicatorNumberProps"></sm-indicator>
  111. </div>
  112. <div class="datalist-item">
  113. <sm-text title="生态保护红线"></sm-text>
  114. <sm-text v-bind="textNumberProps" title="5.0"></sm-text>
  115. <sm-indicator v-bind="indicatorNumberProps"></sm-indicator>
  116. </div>
  117. </div>
  118. </sm-border>
  119. </a-col>
  120. <a-col :span="12">
  121. <a-row class="middle-map-box">
  122. <sm-web-map v-bind="mapProps"></sm-web-map>
  123. </a-row>
  124. <a-row class="middle-grid-box">
  125. <sm-border
  126. :custom-border="{src:'../img/background/border14.png', 'borderWidth': [12, 12, 12, 12], 'borderEdge':{'top': 12, 'left': 12, 'right': 12, 'bottom': 12}}"
  127. class="container"
  128. >
  129. <sm-text class="container-title" v-bind="textGridTitle" title="执法监察"></sm-text>
  130. <div class="chart-container">
  131. <div class="chart-box-item">
  132. <sm-text title="新增建设用地"></sm-text>
  133. <sm-chart v-bind="gaugeChartProps"></sm-chart>
  134. </div>
  135. <div class="chart-box-item">
  136. <sm-text title="新增建设用地"></sm-text>
  137. <sm-chart v-bind="gaugeChartProps"></sm-chart>
  138. </div>
  139. </div>
  140. <div>
  141. <div class="land-indicator-container">
  142. <div class="land-indicator-row">
  143. <div class="land-indicator-item">
  144. <sm-image v-bind="imageProps"></sm-image>
  145. <sm-indicator v-bind="landIndicatorProps"></sm-indicator>
  146. </div>
  147. <div class="land-indicator-item">
  148. <sm-image v-bind="imageProps"></sm-image>
  149. <sm-indicator v-bind="landIndicatorProps"></sm-indicator>
  150. </div>
  151. </div>
  152. <div class="land-indicator-row">
  153. <div class="land-indicator-item">
  154. <sm-image v-bind="imageProps"></sm-image>
  155. <sm-indicator v-bind="landIndicatorProps"></sm-indicator>
  156. </div>
  157. <div class="land-indicator-item">
  158. <sm-image v-bind="imageProps"></sm-image>
  159. <sm-indicator v-bind="landIndicatorProps"></sm-indicator>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. </sm-border>
  165. <sm-border
  166. :custom-border="{src:'../img/background/border14.png', 'borderWidth': [12, 12, 12, 12], 'borderEdge':{'top': 12, 'left': 12, 'right': 12, 'bottom': 12}}"
  167. class="container"
  168. >
  169. <sm-text class="container-title" v-bind="textGridTitle" title="生态修复"></sm-text>
  170. <div class="indicator-bar">
  171. <sm-indicator v-bind="indicatorBar"></sm-indicator>
  172. <sm-indicator v-bind="indicatorBar"></sm-indicator>
  173. <div class="project-list">
  174. <div class="project-list-item">
  175. <sm-text title="85.2"></sm-text>
  176. <div class="project-list-item-color1"></div>
  177. <sm-text title="沙化土地"></sm-text>
  178. </div>
  179. <div class="project-list-item">
  180. <sm-text title="85.2"></sm-text>
  181. <div class="project-list-item-color2"></div>
  182. <sm-text title="沙化土地"></sm-text>
  183. </div>
  184. <div class="project-list-item">
  185. <sm-text title="85.2"></sm-text>
  186. <div class="project-list-item-color3"></div>
  187. <sm-text title="沙化土地"></sm-text>
  188. </div>
  189. </div>
  190. <div class="project-container">
  191. <div class="project-item">
  192. <sm-text
  193. class="text-circle"
  194. v-bind="projectTextProps"
  195. title="10%"
  196. ></sm-text>
  197. <sm-text title="立项(个)"></sm-text>
  198. </div>
  199. <div class="project-item">
  200. <sm-text
  201. class="text-circle"
  202. v-bind="projectTextProps"
  203. title="10%"
  204. ></sm-text>
  205. <sm-text title="立项(个)"></sm-text>
  206. </div>
  207. <div class="project-item">
  208. <sm-text
  209. class="text-circle"
  210. v-bind="projectTextProps"
  211. title="10%"
  212. ></sm-text>
  213. <sm-text title="立项(个)"></sm-text>
  214. </div>
  215. </div>
  216. </div>
  217. </sm-border>
  218. </a-row>
  219. </a-col>
  220. <a-col :span="6">
  221. <sm-border
  222. :custom-border="{src:'../img/background/border14.png', 'borderWidth': [12, 12, 12, 12], 'borderEdge':{'top': 12, 'left': 12, 'right': 12, 'bottom': 12}}"
  223. class="container"
  224. >
  225. <sm-text class="container-title" v-bind="textGridTitle" title="确权登记"></sm-text>
  226. <div class="indicator-group">
  227. <sm-indicator v-bind="indicatorGroup"></sm-indicator>
  228. <sm-indicator v-bind="indicatorGroup"></sm-indicator>
  229. <sm-indicator v-bind="indicatorGroup"></sm-indicator>
  230. </div>
  231. <sm-chart v-bind="lineChartProps"></sm-chart>
  232. </sm-border>
  233. <sm-border
  234. :custom-border="{src:'../img/background/border14.png', 'borderWidth': [12, 12, 12, 12], 'borderEdge':{'top': 12, 'left': 12, 'right': 12, 'bottom': 12}}"
  235. class="container"
  236. >
  237. <sm-text class="container-title" v-bind="textGridTitle" title="执法监察"></sm-text>
  238. <div class="indicator-bar">
  239. <sm-indicator v-bind="indicatorBar"></sm-indicator>
  240. <sm-indicator v-bind="indicatorBar"></sm-indicator>
  241. </div>
  242. <sm-chart v-bind="chartXBarProps"></sm-chart>
  243. </sm-border>
  244. <sm-border
  245. :custom-border="{src:'../img/background/border14.png', 'borderWidth': [12, 12, 12, 12], 'borderEdge':{'top': 12, 'left': 12, 'right': 12, 'bottom': 12}}"
  246. class="container"
  247. >
  248. <sm-text class="container-title" v-bind="textGridTitle" title="地质矿产"></sm-text>
  249. <div class="miner-container">
  250. <sm-indicator v-bind="indicatorMinerProps"></sm-indicator>
  251. <sm-indicator v-bind="indicatorMinerProps"></sm-indicator>
  252. </div>
  253. <div class="miner-container">
  254. <sm-indicator v-bind="indicatorMinerProps"></sm-indicator>
  255. <sm-indicator v-bind="indicatorMinerProps"></sm-indicator>
  256. </div>
  257. </sm-border>
  258. </a-col>
  259. </a-row>
  260. </sm-layout-content>
  261. </div>
  262. <script>
  263. //本示例数据纯属虚构
  264. new Vue({
  265. el: '#main',
  266. data() {
  267. return {
  268. headerTitleProps: {
  269. frequency: 2,
  270. startTiming: false,
  271. url: '',
  272. background: 'rgba(0,0,0,0)',
  273. textColor: '#fff',
  274. dataType: 'static',
  275. title: '自然资源承载能力监管决策平台',
  276. href: '',
  277. target: '_blank',
  278. fontStyle: {
  279. fontSize: 32,
  280. fontWeight: 'bolder',
  281. justifyContent: 'center',
  282. textAlign: 'center',
  283. textIndent: 0,
  284. fontFamily: '微软雅黑'
  285. },
  286. lineHeightUnit: 'px',
  287. backgroundImage: '',
  288. backgroundRepeat: 'noRepeat',
  289. backgroundGradient: false,
  290. gradientDirection: 'left',
  291. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad']
  292. },
  293. textPropsCommon: {
  294. frequency: 2,
  295. startTiming: false,
  296. url: '',
  297. background: 'rgba(0,0,0,0)',
  298. textColor: '#fff',
  299. dataType: 'static',
  300. href: '',
  301. target: '_blank',
  302. fontStyle: {
  303. fontSize: 16,
  304. lineHeight: 1.5,
  305. fontWeight: 'normal',
  306. justifyContent: 'center',
  307. textAlign: 'center',
  308. textIndent: 0,
  309. fontFamily: '微软雅黑'
  310. },
  311. lineHeightUnit: 'multiples',
  312. backgroundImage: '',
  313. backgroundRepeat: 'noRepeat',
  314. backgroundGradient: false,
  315. gradientDirection: 'left',
  316. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad']
  317. },
  318. textGridTitle: {
  319. frequency: 2,
  320. startTiming: false,
  321. url: '',
  322. background: 'rgba(0,0,0,0)',
  323. textColor: '#fff',
  324. dataType: 'static',
  325. title: '耕地保护',
  326. href: '',
  327. target: '_blank',
  328. fontStyle: {
  329. fontSize: 16,
  330. lineHeight: 1.5,
  331. fontWeight: 'normal',
  332. justifyContent: 'center',
  333. textAlign: 'center',
  334. textIndent: 0,
  335. fontFamily: '微软雅黑'
  336. },
  337. lineHeightUnit: 'multiples',
  338. backgroundImage: '',
  339. backgroundRepeat: 'noRepeat',
  340. backgroundGradient: false,
  341. gradientDirection: 'left',
  342. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad']
  343. },
  344. indicatorGroup: {
  345. background: 'rgba(0,0,0,0)',
  346. textColor: '#fff',
  347. dataType: 'static',
  348. title: '农用地占比',
  349. unit: '%',
  350. num: '65',
  351. animated: false,
  352. duration: 1000,
  353. separator: ',',
  354. mode: 'vertical',
  355. indicatorColor: '#84F0F9',
  356. // fontSize: 18, ?
  357. fontWeight: 'bolder',
  358. frequency: 2,
  359. startTiming: false,
  360. url: '',
  361. backgroundImage: './static/material/border/border15.png',
  362. backgroundRepeat: 'noRepeat',
  363. backgroundGradient: false,
  364. gradientDirection: 'left',
  365. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad'],
  366. numSpacing: 0,
  367. showTitleUnit: true,
  368. numBackground: { color: 'rgba(0, 0, 0, 0)', image: '' },
  369. separatorBackground: false,
  370. decimals: -1,
  371. thresholdsStyle: [],
  372. textFontSize: 12,
  373. titleField: 'title',
  374. unitField: 'unit',
  375. numField: 'num'
  376. },
  377. indicatorBar: {
  378. background: 'rgba(0,0,0,0)',
  379. textColor: '#fff',
  380. dataType: 'static',
  381. title: '本年度耕地面积:',
  382. unit: '元,',
  383. num: '85.2',
  384. animated: false,
  385. duration: 1000,
  386. separator: ',',
  387. mode: 'horizontal',
  388. indicatorColor: '#E98F52',
  389. // fontSize: 16,
  390. fontWeight: 'bolder',
  391. frequency: 2,
  392. startTiming: false,
  393. url: '',
  394. backgroundImage: '',
  395. backgroundRepeat: 'noRepeat',
  396. backgroundGradient: false,
  397. gradientDirection: 'left',
  398. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad'],
  399. numSpacing: 0,
  400. showTitleUnit: true,
  401. numBackground: { color: 'rgba(0, 0, 0, 0)', image: '' },
  402. separatorBackground: false,
  403. decimals: -1,
  404. thresholdsStyle: [],
  405. textFontSize: 14,
  406. titleField: 'title',
  407. unitField: 'unit',
  408. numField: 'num'
  409. },
  410. lineChartProps: {
  411. background: 'rgba(0,0,0,0)',
  412. textColor: '#fff',
  413. frequency: 2,
  414. startTiming: false,
  415. iconClass: '',
  416. seriesType: 'line',
  417. headerName: '',
  418. dataset: { maxFeatures: 20, url: '', type: '' },
  419. datasetOptions: [{ seriesType: 'line' }],
  420. options: {
  421. series: [
  422. {
  423. data: ['3900', '3340', '3300', '2500', '2000', '520', '100'],
  424. name: 'Y1',
  425. emphasis: { itemStyle: {} },
  426. stack: 0,
  427. type: 'line',
  428. smooth: true,
  429. animationEasing: 'quadraticIn',
  430. animationEasingUpdate: 'quadraticIn',
  431. label: {
  432. normal: {
  433. position: 'top',
  434. show: false,
  435. textStyle: { fontSize: 12 },
  436. smart: false
  437. }
  438. },
  439. showAllSymbol: 'auto',
  440. symbol: 'emptyCircle',
  441. symbolSize: 8,
  442. itemStyle: { borderWidth: 2 },
  443. lineStyle: { color: '#3fb1e3' }
  444. },
  445. {
  446. data: ['3400', '3617', '4200', '1842', '3000', '800', '500'],
  447. name: 'Y2',
  448. emphasis: { itemStyle: {} },
  449. stack: 0,
  450. type: 'line',
  451. smooth: true,
  452. animationEasing: 'quadraticIn',
  453. animationEasingUpdate: 'quadraticIn',
  454. label: {
  455. normal: {
  456. position: 'top',
  457. show: false,
  458. textStyle: { fontSize: 12 },
  459. smart: false
  460. }
  461. },
  462. showAllSymbol: 'auto',
  463. symbol: 'emptyCircle',
  464. symbolSize: 8,
  465. itemStyle: { borderWidth: 2 },
  466. lineStyle: { color: '#6be6c1' }
  467. }
  468. ],
  469. yAxis: {
  470. axisLabel: {
  471. rotate: 0,
  472. fontFamily: 'MicrosoftYaHei',
  473. show: true,
  474. color: '#fff',
  475. fontSize: 12,
  476. align: 'right',
  477. margin: 8
  478. },
  479. axisLine: { lineStyle: { color: '#fff' }, show: true },
  480. name: '',
  481. show: true,
  482. splitLine: {
  483. lineStyle: {
  484. width: 0.3,
  485. type: 'solid',
  486. color: '#ccc',
  487. opacity: 1
  488. },
  489. show: false
  490. },
  491. splitArea: { show: false },
  492. nameGap: 5,
  493. nameLocation: 'end',
  494. type: 'value',
  495. nameTextStyle: { padding: [0, 0, 5, 0] },
  496. axisTick: { show: true }
  497. },
  498. xAxis: {
  499. axisLabel: {
  500. rotate: 0,
  501. fontFamily: 'MicrosoftYaHei',
  502. show: true,
  503. color: '#fff',
  504. fontSize: 12,
  505. align: 'center',
  506. margin: 8
  507. },
  508. data: ['Fri', 'Thu', 'Sat', 'Sun', 'Wed', 'Tue', 'Mon'],
  509. axisLine: { lineStyle: { color: '#fff' }, show: true },
  510. show: true,
  511. name: '',
  512. axisTick: { alignWithLabel: true, show: true },
  513. splitLine: {
  514. lineStyle: {
  515. type: 'solid',
  516. color: '#ccc',
  517. opacity: 1,
  518. width: 0.3
  519. },
  520. show: false
  521. },
  522. nameGap: 2,
  523. nameLocation: 'end',
  524. type: 'category',
  525. boundaryGap: true
  526. },
  527. grid: { top: 35, left: 50, bottom: 35, right: 20 },
  528. legend: {
  529. data: ['Y1', 'Y2'],
  530. show: true,
  531. textStyle: { color: '#fff', fontSize: 12 },
  532. type: 'scroll',
  533. top: 'top',
  534. left: 'center'
  535. },
  536. tooltip: {
  537. axisPointer: { shadowStyle: {}, type: 'line' },
  538. trigger: 'axis',
  539. textStyle: { align: 'left' }
  540. },
  541. textStyle: { fontFamily: 'Microsoft YaHei Light' },
  542. title: {
  543. padding: [5, 0, 0, 20],
  544. x: 'left',
  545. text: '',
  546. textStyle: {
  547. fontFamily: 'Microsoft YaHei Light',
  548. fontWeight: '100'
  549. }
  550. }
  551. },
  552. backgroundImage: '',
  553. backgroundRepeat: 'noRepeat',
  554. backgroundGradient: false,
  555. gradientDirection: 'left',
  556. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad'],
  557. isGradient: false,
  558. animationDelay: true,
  559. highlightColor: '#00eeff',
  560. thresholdConfig: [
  561. {
  562. show: false,
  563. type: 'data',
  564. dataConfig: [],
  565. rankConfig: []
  566. },
  567. {
  568. show: false,
  569. type: 'data',
  570. dataConfig: [],
  571. rankConfig: []
  572. }
  573. ]
  574. },
  575. textNumberProps: {
  576. frequency: 2,
  577. startTiming: false,
  578. url: '',
  579. background: 'rgba(0,0,0,0)',
  580. textColor: '#E98F52',
  581. dataType: 'static',
  582. title: '4.1',
  583. href: '',
  584. target: '_blank',
  585. fontStyle: {
  586. fontSize: 22,
  587. lineHeight: 1.5,
  588. fontWeight: 'bolder',
  589. justifyContent: 'center',
  590. textAlign: 'center',
  591. textIndent: 0,
  592. fontFamily: '微软雅黑'
  593. },
  594. lineHeightUnit: 'multiples',
  595. backgroundImage: '',
  596. backgroundRepeat: 'noRepeat',
  597. backgroundGradient: false,
  598. gradientDirection: 'left',
  599. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad']
  600. },
  601. indicatorNumberProps: {
  602. background: 'rgba(0,0,0,0)',
  603. textColor: '#fff',
  604. dataType: 'static',
  605. title: '',
  606. unit: '万km',
  607. num: '5.0',
  608. animated: false,
  609. duration: 1000,
  610. separator: ',',
  611. mode: 'vertical',
  612. indicatorColor: '',
  613. // fontSize: 18,
  614. fontWeight: 'normal',
  615. frequency: 2,
  616. startTiming: false,
  617. url: '',
  618. backgroundImage: '',
  619. backgroundRepeat: 'noRepeat',
  620. backgroundGradient: false,
  621. gradientDirection: 'left',
  622. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad'],
  623. numSpacing: 0,
  624. showTitleUnit: true,
  625. numBackground: { color: 'rgba(0, 0, 0, 0)', image: '' },
  626. separatorBackground: false,
  627. decimals: -1,
  628. thresholdsStyle: [],
  629. textFontSize: 14,
  630. titleField: 'title',
  631. unitField: 'unit',
  632. numField: 'num'
  633. },
  634. indicatorMinerProps: {
  635. background: 'rgba(0,0,0,0)',
  636. textColor: '#fff',
  637. dataType: 'static',
  638. title: '地质调查项目',
  639. unit: '个',
  640. num: '15',
  641. animated: false,
  642. duration: 1000,
  643. separator: ',',
  644. mode: 'vertical',
  645. indicatorColor: '#84F0F9',
  646. // fontSize: 22,
  647. fontWeight: 'bolder',
  648. frequency: 2,
  649. startTiming: false,
  650. url: '',
  651. backgroundImage: '',
  652. backgroundRepeat: 'noRepeat',
  653. backgroundGradient: false,
  654. gradientDirection: 'left',
  655. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad'],
  656. numSpacing: 0,
  657. showTitleUnit: true,
  658. numBackground: { color: 'rgba(0, 0, 0, 0)', image: '' },
  659. separatorBackground: false,
  660. decimals: -1,
  661. thresholdsStyle: [],
  662. textFontSize: 14,
  663. titleField: 'title',
  664. unitField: 'unit',
  665. numField: 'num'
  666. },
  667. projectTextProps: {
  668. frequency: 2,
  669. startTiming: false,
  670. url: '',
  671. background: 'rgba(0,0,0,0)',
  672. textColor: '#84F0F9',
  673. dataType: 'static',
  674. title: '10%',
  675. href: '',
  676. target: '_blank',
  677. fontStyle: {
  678. fontSize: 18,
  679. lineHeight: 1.5,
  680. fontWeight: 'bolder',
  681. justifyContent: 'center',
  682. textAlign: 'center',
  683. textIndent: 0,
  684. fontFamily: '微软雅黑'
  685. },
  686. lineHeightUnit: 'multiples',
  687. backgroundImage: './static/material/image/image4.png',
  688. backgroundRepeat: 'noRepeat',
  689. backgroundGradient: false,
  690. gradientDirection: 'left',
  691. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad']
  692. },
  693. gaugeChartProps: {
  694. dataType: 'static',
  695. value: 36,
  696. background: 'rgba(0,0,0,0)',
  697. textColor: '#fff',
  698. frequency: 2,
  699. startTiming: false,
  700. iconClass: '',
  701. seriesType: 'gauge',
  702. headerName: '',
  703. dataset: {
  704. maxFeatures: 20,
  705. url: '',
  706. type: '',
  707. withCredentials: false
  708. },
  709. datasetOptions: [{ seriesType: 'gauge' }],
  710. options: {
  711. series: [
  712. {
  713. name: 'inLoop',
  714. type: 'gauge',
  715. min: 0,
  716. max: 100,
  717. center: ['50%', '50%'],
  718. startAngle: 180,
  719. endAngle: 0,
  720. splitNumber: 10,
  721. radius: '102%',
  722. data: [{ value: 36, name: '完成率' }],
  723. title: {
  724. show: false,
  725. textStyle: { fontSize: 14, color: '#ffffff' }
  726. },
  727. detail: {
  728. show: true,
  729. textStyle: { fontSize: 20, color: '#ffffff' }
  730. },
  731. axisTick: {
  732. show: false,
  733. length: 13,
  734. lineStyle: { width: 1, color: '#fff' }
  735. },
  736. splitLine: {
  737. show: false,
  738. length: 20,
  739. lineStyle: { width: 2, color: '#fff' }
  740. },
  741. axisLabel: {
  742. show: false,
  743. fontSize: 12,
  744. fontWeight: 'normal',
  745. distance: 16,
  746. color: '#fff'
  747. },
  748. axisLine: {
  749. show: true,
  750. lineStyle: {
  751. color: [
  752. [0.36, '#1ADDD3'],
  753. [1, '#747070']
  754. ],
  755. width: 8
  756. }
  757. },
  758. pointer: { show: false, length: '75%', width: 7 },
  759. itemStyle: { show: false, color: 'auto' }
  760. },
  761. {
  762. name: 'outLoop',
  763. type: 'gauge',
  764. min: 0,
  765. max: 100,
  766. center: ['50%', '50%'],
  767. startAngle: 225,
  768. endAngle: -45,
  769. splitNumber: 10,
  770. radius: '75%',
  771. title: { show: false },
  772. detail: { show: false },
  773. axisTick: {
  774. show: false,
  775. length: -8,
  776. lineStyle: { width: 1, color: '' },
  777. splitNumber: 7
  778. },
  779. splitLine: {
  780. show: false,
  781. length: -20,
  782. lineStyle: { width: 2, color: '' }
  783. },
  784. axisLabel: {
  785. show: false,
  786. fontSize: 12,
  787. fontWeight: 'normal',
  788. distance: 25
  789. },
  790. axisLine: { show: false },
  791. pointer: { show: false },
  792. itemStyle: { show: true, color: '' }
  793. }
  794. ]
  795. },
  796. backgroundImage: '',
  797. backgroundRepeat: 'noRepeat',
  798. backgroundGradient: false,
  799. gradientDirection: 'left',
  800. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad']
  801. },
  802. imageProps: {
  803. background: 'rgba(0,0,0,0)',
  804. src: '../img/background/image3.png',
  805. repeat: 'center',
  806. href: '',
  807. target: '_blank',
  808. backgroundImage: '',
  809. backgroundRepeat: 'noRepeat',
  810. backgroundGradient: false,
  811. gradientDirection: 'left',
  812. textColor: '#fff',
  813. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad']
  814. },
  815. landIndicatorProps: {
  816. background: 'rgba(0,0,0,0)',
  817. textColor: '#fff',
  818. dataType: 'static',
  819. title: '新增建设用地面积',
  820. unit: '元',
  821. num: 1232,
  822. animated: false,
  823. duration: 1000,
  824. separator: ',',
  825. mode: 'vertical',
  826. indicatorColor: '#E98F52',
  827. // fontSize: 16,
  828. fontWeight: 'bolder',
  829. frequency: 2,
  830. startTiming: false,
  831. url: '',
  832. backgroundImage: '',
  833. backgroundRepeat: 'noRepeat',
  834. backgroundGradient: false,
  835. gradientDirection: 'left',
  836. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad'],
  837. numSpacing: 0,
  838. showTitleUnit: true,
  839. numBackground: { color: 'rgba(0, 0, 0, 0)', image: '' },
  840. separatorBackground: false,
  841. decimals: -1,
  842. thresholdsStyle: [],
  843. textFontSize: 12,
  844. titleField: 'title',
  845. unitField: 'unit',
  846. numField: 'num'
  847. },
  848. mapProps: {
  849. mapId: 1887887232,
  850. name: 'landuse',
  851. serverUrl: 'https://www.supermapol.com',
  852. target: 'map_1599996603987',
  853. layers: [],
  854. tdtComponents: {
  855. tdtRoute: {
  856. data: {
  857. carUrl: 'https://api.tianditu.gov.cn/drive',
  858. busUrl: 'https://api.tianditu.gov.cn/transit',
  859. searchUrl: 'https://api.tianditu.gov.cn/search',
  860. tk: ''
  861. },
  862. headerName: '路线',
  863. background: 'rgba(0,0,0,0.3)',
  864. textColor: '#fff',
  865. show: false,
  866. position: 'bottom-right',
  867. uri: 'mapboxgl/tdt/route/TdtRoute',
  868. collapsed: true
  869. },
  870. tdtSearch: {
  871. data: {
  872. searchUrl: 'https://api.tianditu.gov.cn/search',
  873. tk: ''
  874. },
  875. background: 'rgba(0,0,0,0.3)',
  876. textColor: '#fff',
  877. show: false,
  878. position: 'bottom-right',
  879. uri: 'mapboxgl/tdt/search/TdtSearch',
  880. collapsed: true
  881. },
  882. tdtMapSwitcher: {
  883. data: { select: '', label: true, tk: '' },
  884. headerName: '地图切换',
  885. show: false,
  886. background: 'rgba(0,0,0,0.3)',
  887. textColor: '#fff',
  888. position: 'bottom-right',
  889. uri: 'mapboxgl/tdt/mapSwitcher/TdtMapSwitcher',
  890. collapsed: true
  891. }
  892. },
  893. zoomControl: {
  894. background: 'rgba(0,0,0,0.3)',
  895. textColor: '#fff',
  896. show: false,
  897. position: 'top-left',
  898. showZoomSlider: false
  899. },
  900. scaleControl: {
  901. background: 'rgba(0,0,0,0)',
  902. textColor: '#3fb1e3',
  903. show: false,
  904. position: 'bottom-left'
  905. },
  906. panControl: { show: false, position: 'top-left' },
  907. miniMapControl: {
  908. background: 'rgba(0,0,0,0.3)',
  909. textColor: '#fff',
  910. show: false,
  911. position: 'bottom-right',
  912. collapsed: true
  913. },
  914. layerListControl: {
  915. background: 'rgba(0,0,0,0.3)',
  916. textColor: '#fff',
  917. show: false,
  918. position: 'top-right',
  919. collapsed: true
  920. },
  921. measureControl: {
  922. background: 'rgba(0,0,0,0.3)',
  923. textColor: '#fff',
  924. show: false,
  925. position: 'top-right',
  926. showUnitSelect: true,
  927. distanceDefaultUnit: 'kilometers',
  928. areaDefaultUnit: 'kilometers',
  929. collapsed: true
  930. },
  931. legendControl: {
  932. background: 'rgba(0,0,0,0.3)',
  933. textColor: '#fff',
  934. show: false,
  935. position: 'bottom-left',
  936. headerName: '',
  937. layerNames: [],
  938. isShowTitle: false,
  939. isShowField: false,
  940. mode: 'panel',
  941. collapsed: false
  942. },
  943. queryControl: {
  944. background: 'rgba(0,0,0,0.3)',
  945. textColor: '#fff',
  946. show: false,
  947. position: 'top-right',
  948. collapsed: true,
  949. restMap: null,
  950. restData: null,
  951. iportalData: null,
  952. headerName: '查询',
  953. layerStyle: {
  954. line: {
  955. paint: {
  956. 'line-width': 3,
  957. 'line-color': '#409eff',
  958. 'line-opacity': 1
  959. }
  960. },
  961. circle: {
  962. paint: {
  963. 'circle-color': '#409eff',
  964. 'circle-opacity': 0.6,
  965. 'circle-radius': 8,
  966. 'circle-stroke-width': 2,
  967. 'circle-stroke-color': '#409eff',
  968. 'circle-stroke-opacity': 1
  969. }
  970. },
  971. fill: {
  972. paint: {
  973. 'fill-color': '#409eff',
  974. 'fill-opacity': 0.6,
  975. 'fill-outline-color': '#409eff'
  976. }
  977. },
  978. stokeLine: {
  979. paint: {
  980. 'line-width': 3,
  981. 'line-color': '#409eff',
  982. 'line-opacity': 1
  983. }
  984. }
  985. }
  986. },
  987. searchControl: {
  988. background: 'rgba(0,0,0,0.3)',
  989. textColor: '#fff',
  990. show: false,
  991. position: 'top-right',
  992. maxFeatures: 8,
  993. layerNames: null,
  994. addressMatch: null,
  995. restMap: null,
  996. restData: null,
  997. iportalData: null,
  998. onlineLocalSearch: { enable: true, city: '北京市' },
  999. collapsed: true
  1000. },
  1001. identifyControl: {
  1002. background: 'rgba(0,0,0,0.3)',
  1003. textColor: '#fff',
  1004. show: false,
  1005. layers: {},
  1006. fields: {},
  1007. layerStyle: {
  1008. line: {
  1009. paint: { 'line-color': '#409eff', 'line-opacity': 1 }
  1010. },
  1011. circle: {
  1012. paint: {
  1013. 'circle-color': '#409eff',
  1014. 'circle-opacity': 0.6,
  1015. 'circle-stroke-color': '#409eff',
  1016. 'circle-stroke-opacity': 1
  1017. }
  1018. },
  1019. fill: {
  1020. paint: {
  1021. 'fill-color': '#409eff',
  1022. 'fill-opacity': 0.6,
  1023. 'fill-outline-color': '#409eff'
  1024. }
  1025. },
  1026. stokeLine: {
  1027. paint: { 'line-color': '#409eff', 'line-opacity': 1 }
  1028. }
  1029. }
  1030. },
  1031. layerManagerControl: {
  1032. background: 'rgba(0,0,0,0.3)',
  1033. textColor: '#fff',
  1034. headerName: '图层管理',
  1035. defaultExpandAll: true,
  1036. collapsed: true,
  1037. position: 'top-right',
  1038. show: false,
  1039. layers: [],
  1040. mapTarget: null
  1041. },
  1042. mapOptions: {
  1043. style: { version: 8, sources: {}, layers: [] },
  1044. center: [108.8596, 23.8136],
  1045. zoom: 14.12,
  1046. bearing: 24.44,
  1047. pitch: 44.5,
  1048. tileSize: 256
  1049. },
  1050. layerStyle: {
  1051. circle: {
  1052. paint: {
  1053. 'circle-color': '#4fcfff',
  1054. 'circle-opacity': 0.8,
  1055. 'circle-stroke-color': '#4fcfff',
  1056. 'circle-stroke-opacity': 1,
  1057. 'circle-radius': 8,
  1058. 'circle-stroke-width': 2
  1059. }
  1060. },
  1061. line: {
  1062. paint: {
  1063. 'line-color': '#4fcfff',
  1064. 'line-opacity': 1,
  1065. 'line-width': 2
  1066. }
  1067. },
  1068. stokeLine: {
  1069. paint: {
  1070. 'line-width': 2,
  1071. 'line-color': '#4fcfff',
  1072. 'line-opacity': 1
  1073. }
  1074. },
  1075. fill: {
  1076. paint: {
  1077. 'fill-color': '#4fcfff',
  1078. 'fill-opacity': 0.6,
  1079. 'fill-outline-color': '#4fcfff'
  1080. }
  1081. }
  1082. },
  1083. highlightLayerStyle: {
  1084. circle: {
  1085. paint: {
  1086. 'circle-color': '#01ffff',
  1087. 'circle-opacity': 0.8,
  1088. 'circle-stroke-color': '#01ffff',
  1089. 'circle-stroke-opacity': 0
  1090. }
  1091. },
  1092. line: { paint: { 'line-color': '#01ffff', 'line-opacity': 1 } },
  1093. stokeLine: {
  1094. paint: {
  1095. 'line-width': 2,
  1096. 'line-color': '#01ffff',
  1097. 'line-opacity': 1
  1098. }
  1099. },
  1100. fill: {
  1101. paint: {
  1102. 'fill-color': '#01ffff',
  1103. 'fill-opacity': 0.6,
  1104. 'fill-outline-color': '#01ffff'
  1105. }
  1106. }
  1107. },
  1108. background: 'rgba(0,0,0,0)',
  1109. textColor: '#fff',
  1110. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad'],
  1111. fixedMap: 'unFixed',
  1112. layersIdField: {},
  1113. trackLayers: [],
  1114. withCredentials: false
  1115. },
  1116. chartXBarProps: {
  1117. background: 'rgba(0,0,0,0)',
  1118. textColor: '#fff',
  1119. frequency: 2,
  1120. startTiming: false,
  1121. headerName: '',
  1122. iconClass: '',
  1123. seriesType: 'xBar',
  1124. dataset: { maxFeatures: 10, type: 'geoJSON' },
  1125. datasetOptions: [
  1126. {
  1127. seriesType: 'bar',
  1128. isStastic: false,
  1129. isStack: false,
  1130. xField: '最高七天气温_num',
  1131. yField: '最高气温',
  1132. sort: 'unsort',
  1133. rankLabel: false
  1134. },
  1135. {
  1136. seriesType: 'bar',
  1137. isStastic: false,
  1138. isStack: false,
  1139. xField: '最高七天气温_num',
  1140. yField: '最低气温',
  1141. sort: 'unsort',
  1142. rankLabel: false
  1143. }
  1144. ],
  1145. options: {
  1146. yAxis: {
  1147. show: true,
  1148. type: 'category',
  1149. name: '',
  1150. nameLocation: 'end',
  1151. nameGap: 2,
  1152. axisTick: { alignWithLabel: true, show: true },
  1153. data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
  1154. axisLine: { lineStyle: { color: '#fff' }, show: true },
  1155. axisLabel: {
  1156. rotate: 0,
  1157. fontFamily: 'MicrosoftYaHei',
  1158. show: true,
  1159. color: '#fff',
  1160. fontSize: 12,
  1161. align: 'right',
  1162. margin: 8
  1163. },
  1164. splitLine: {
  1165. lineStyle: {
  1166. width: 0.3,
  1167. type: 'solid',
  1168. color: '#ccc',
  1169. opacity: 1
  1170. },
  1171. show: false
  1172. },
  1173. boundaryGap: true
  1174. },
  1175. xAxis: {
  1176. type: 'value',
  1177. name: '',
  1178. nameLocation: 'end',
  1179. nameGap: 5,
  1180. show: true,
  1181. scale: false,
  1182. axisLine: { lineStyle: { color: '#fff' }, show: true },
  1183. axisLabel: {
  1184. rotate: 0,
  1185. fontFamily: 'MicrosoftYaHei',
  1186. show: true,
  1187. color: '#fff',
  1188. fontSize: 12,
  1189. align: 'center',
  1190. margin: 8
  1191. },
  1192. splitLine: {
  1193. lineStyle: {
  1194. type: 'solid',
  1195. color: '#ccc',
  1196. opacity: 1,
  1197. width: 0.3
  1198. },
  1199. show: false
  1200. },
  1201. splitArea: { show: false },
  1202. nameTextStyle: { padding: [0, 0, 5, 0] },
  1203. min: -50,
  1204. max: 50,
  1205. axisTick: { show: true }
  1206. },
  1207. grid: { left: 50, right: 50, top: 35, bottom: 35 },
  1208. legend: {
  1209. type: 'scroll',
  1210. data: ['最高气温', '最低气温'],
  1211. show: false,
  1212. top: 'top',
  1213. left: 'center',
  1214. textStyle: { color: '#fff', fontSize: 12 }
  1215. },
  1216. series: [
  1217. {
  1218. data: ['500', '800', '3000', '3617', '3400', '4200', '1842'],
  1219. name: 'Y2',
  1220. emphasis: { itemStyle: {} },
  1221. stack: 0,
  1222. type: 'bar',
  1223. barWidth: 10,
  1224. animationEasing: 'quadraticIn',
  1225. animationEasingUpdate: 'quadraticIn',
  1226. label: {
  1227. normal: {
  1228. position: 'top',
  1229. show: false,
  1230. textStyle: { fontSize: 12 },
  1231. smart: false
  1232. }
  1233. },
  1234. itemStyle: { barBorderRadius: [0, 0, 0, 0] }
  1235. },
  1236. {
  1237. data: ['-450', '-700', '-2000', '-2617', '-2400', '-3200', '-2842'],
  1238. name: 'Y1',
  1239. emphasis: { itemStyle: {} },
  1240. stack: 0,
  1241. type: 'bar',
  1242. barWidth: 10,
  1243. animationEasing: 'quadraticIn',
  1244. animationEasingUpdate: 'quadraticIn',
  1245. label: {
  1246. normal: {
  1247. position: 'top',
  1248. show: false,
  1249. textStyle: { fontSize: 12 },
  1250. smart: false
  1251. }
  1252. },
  1253. itemStyle: { barBorderRadius: [0, 0, 0, 0] }
  1254. },
  1255. {
  1256. type: 'bar',
  1257. animationEasing: 'quadraticIn',
  1258. animationEasingUpdate: 'quadraticIn',
  1259. label: {
  1260. normal: {
  1261. position: 'top',
  1262. show: false,
  1263. textStyle: { fontSize: 12 },
  1264. smart: false
  1265. }
  1266. },
  1267. barWidth: 0,
  1268. itemStyle: { barBorderRadius: [0, 0, 0, 0] }
  1269. }
  1270. ],
  1271. tooltip: {
  1272. axisPointer: { shadowStyle: {}, type: 'shadow' },
  1273. trigger: 'axis',
  1274. textStyle: { align: 'left' }
  1275. },
  1276. textStyle: { fontFamily: 'Microsoft YaHei Light' },
  1277. title: {
  1278. padding: [5, 0, 0, 20],
  1279. x: 'left',
  1280. text: '',
  1281. textStyle: {
  1282. fontFamily: 'Microsoft YaHei Light',
  1283. fontWeight: '100'
  1284. }
  1285. }
  1286. },
  1287. backgroundImage: '',
  1288. backgroundRepeat: 'noRepeat',
  1289. backgroundGradient: false,
  1290. gradientDirection: 'left',
  1291. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad'],
  1292. isGradient: false,
  1293. animationDelay: true,
  1294. highlightColor: '#00eeff',
  1295. thresholdConfig: [
  1296. {
  1297. show: false,
  1298. type: 'data',
  1299. dataConfig: [],
  1300. rankConfig: []
  1301. },
  1302. {
  1303. show: false,
  1304. type: 'data',
  1305. dataConfig: [],
  1306. rankConfig: []
  1307. }
  1308. ],
  1309. field: 'smid',
  1310. orderYField: '最高气温'
  1311. },
  1312. iconProps: {
  1313. background: 'rgba(0,0,0,0)',
  1314. textColor: '#fff',
  1315. iconStyle: { fontSize: 18, color: '' },
  1316. iconClass: 'sm-mapdashboard-user-icon-zoom-to',
  1317. autoPrefix: false,
  1318. backgroundImage: '',
  1319. backgroundRepeat: 'noRepeat',
  1320. backgroundGradient: false,
  1321. gradientDirection: 'left',
  1322. colorGroup: ['#3fb1e3', '#6be6c1', '#626c91', '#a0a7e6', '#c4ebad']
  1323. }
  1324. };
  1325. },
  1326. mounted() {
  1327. let screenWidth = document.body.clientWidth;
  1328. if (screenWidth <= 540) {
  1329. this.showMap = false;
  1330. }
  1331. }
  1332. });
  1333. </script>
  1334. <style>
  1335. html {
  1336. font-size: 10px;
  1337. }
  1338. .container {
  1339. width: 24vw;
  1340. height: 29vh;
  1341. margin: 10px 8px;
  1342. }
  1343. .container .container-title {
  1344. height: 35px;
  1345. margin-top: -12px;
  1346. font-size: 14px;
  1347. background-image: url('../img/background/image2.png') !important;
  1348. }
  1349. .indicator-group {
  1350. width: 420px;
  1351. height: 55px;
  1352. display: flex;
  1353. margin-top: 10px;
  1354. justify-content: space-around;
  1355. }
  1356. .chart-container {
  1357. width: 80%;
  1358. margin: 5px auto;
  1359. display: flex;
  1360. height: 100px;
  1361. justify-content: space-around;
  1362. }
  1363. .chart-box-item {
  1364. width: 30%;
  1365. height: 80px;
  1366. }
  1367. .chart-box-item .sm-component-chart {
  1368. height: 80px;
  1369. }
  1370. .project-list {
  1371. width: 80%;
  1372. height: 50px;
  1373. display: flex;
  1374. margin: 5px auto;
  1375. justify-content: space-around;
  1376. }
  1377. .project-list .project-list-item {
  1378. width: 33.3%;
  1379. }
  1380. .project-list .project-list-item > div {
  1381. height: 16px;
  1382. }
  1383. .project-list .project-list-item .project-list-item-color1 {
  1384. background: #3D7CB3;
  1385. }
  1386. .project-list .project-list-item .project-list-item-color2 {
  1387. background: #3DB346;
  1388. }
  1389. .project-list .project-list-item .project-list-item-color3 {
  1390. background: #5F676E;
  1391. }
  1392. .indicator-bar {
  1393. text-align: center;
  1394. height: 30px;
  1395. margin-top: 15px;
  1396. font-size: 14px;
  1397. }
  1398. .sm-component-layout-header {
  1399. padding: 0px;
  1400. background: none;
  1401. }
  1402. .sm-component-chart {
  1403. height: 18vh;
  1404. }
  1405. .circle-center {
  1406. width: 75px;
  1407. height: 75px;
  1408. background-image: url('../img/background/image3.png');
  1409. background-size: cover;
  1410. }
  1411. .sm-component-layout-content {
  1412. margin-top: 20px;
  1413. }
  1414. .left-header {
  1415. width: 34%;
  1416. display: flex;
  1417. justify-content: space-around;
  1418. align-items: center;
  1419. }
  1420. .btn-active span {
  1421. background-image: url('../img/background/image8.png') !important;
  1422. background-size: contain;
  1423. }
  1424. .miner-container {
  1425. width: 380px;
  1426. height: 98px;
  1427. margin: 10px auto;
  1428. display: flex;
  1429. justify-content: space-around;
  1430. align-items: center;
  1431. background-image: url('../img/background/image5.png');
  1432. }
  1433. .indicator-background {
  1434. width: 80%;
  1435. height: 140px;
  1436. margin: 10px auto;
  1437. background-image: url('../img/background/image11.png');
  1438. }
  1439. .indicator-background-item {
  1440. height: 64px;
  1441. display: flex;
  1442. justify-content: space-around;
  1443. align-items: center;
  1444. }
  1445. .indicator-background-item .sm-component-indicator .sm-component-indicator__title {
  1446. font-size: 12px;
  1447. }
  1448. .miner-container .sm-component-indicator {
  1449. margin-left: 60px;
  1450. }
  1451. .middle-grid-box {
  1452. height: 281px;
  1453. display: flex;
  1454. justify-content: space-around;
  1455. }
  1456. .middle-map-box {
  1457. width: 910px;
  1458. height: 58vh;
  1459. margin: 20px auto 2px;
  1460. }
  1461. .datalist-container {
  1462. width: 360px;
  1463. height: 120px;
  1464. margin: 60px auto 0px;
  1465. }
  1466. .datalist-item {
  1467. display: flex;
  1468. justify-content: space-between;
  1469. align-items: center;
  1470. height: 30px;
  1471. margin-bottom: 10px;
  1472. background-image: url('../img/background/image6.png');
  1473. }
  1474. .datalist-item > .sm-component-text {
  1475. margin-left: 20px;
  1476. }
  1477. .sm-component-text {
  1478. background: none !important;
  1479. color: #fff !important;
  1480. }
  1481. .land-indicator-container {
  1482. width: 90%;
  1483. margin: 2px auto 0px;
  1484. }
  1485. .land-indicator-row {
  1486. height: 46px;
  1487. display: flex;
  1488. margin-bottom: 10px;
  1489. justify-content: space-around;
  1490. align-items: center;
  1491. }
  1492. .land-indicator-item {
  1493. display: flex;
  1494. position: relative;
  1495. justify-content: space-around;
  1496. align-items: center;
  1497. }
  1498. .land-indicator-row .land-indicator-item .sm-component-image {
  1499. width: 46px;
  1500. height: 46px;
  1501. }
  1502. .land-indicator-row .land-indicator-item .sm-component-indicator .sm-component-indicator__title {
  1503. font-size: 12px;
  1504. }
  1505. .right-header {
  1506. width: 34%;
  1507. display: flex;
  1508. justify-content: space-around;
  1509. align-items: center;
  1510. }
  1511. .dashboard-header {
  1512. background-image: url('../img/background/image1.png');
  1513. height: 72px;
  1514. display: flex;
  1515. align-items: center;
  1516. }
  1517. .middle-header {
  1518. font-size: 32px;
  1519. display: flex;
  1520. height: 72px;
  1521. width: 612px;
  1522. }
  1523. .project-container {
  1524. width: 392px;
  1525. height: 98px;
  1526. margin: 0px auto 0px;
  1527. display: flex;
  1528. justify-content: space-around;
  1529. align-items: center;
  1530. }
  1531. .project-container > .project-item {
  1532. width: 80px;
  1533. height: 100%;
  1534. }
  1535. .project-container > .project-item .text-circle {
  1536. width: 100%;
  1537. height: 64px;
  1538. background-image: url('../img/background/image4.png') !important;
  1539. background-size: 90% 90%;
  1540. }
  1541. .project-container > .project-item .sm-component-text {
  1542. margin-top: 10px;
  1543. width: 80px;
  1544. }
  1545. .project-container > .project-item .sm-component-text .sm-component-text__span {
  1546. margin-top: 8px;
  1547. }
  1548. @media (max-width: 540px) {
  1549. html {
  1550. font-size: 10px;
  1551. }
  1552. .left-container {
  1553. padding-top: 0;
  1554. }
  1555. .map-wrap {
  1556. width: 100vw;
  1557. height: 90vh;
  1558. }
  1559. }
  1560. @media (min-width: 1200px) {
  1561. html {
  1562. font-size: 16px;
  1563. }
  1564. }
  1565. </style>
  1566. </body>
  1567. </html>