HomePage.vue 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765
  1. <template>
  2. <div class="home container">
  3. <div class="part1">
  4. <div>
  5. <div class="super-title">青浦区“一张图”区级节点</div>
  6. <div class="title-sub ">以二三维一体化引擎为核心,构建政务时空数据治理与应用服务生态,赋能城市精细化治理</div>
  7. <div class="part1-1">
  8. <div class="part1-1-1">
  9. <div class="number-container">
  10. <span class="text">调用总数</span>
  11. <span v-for="(num, index) in totalCall" :key="index">
  12. <span v-if="num.indexOf(',') > -1">
  13. <span class="separator">,</span>
  14. </span>
  15. <span v-else>
  16. <span class="number-item">{{ num }}</span>
  17. </span>
  18. </span>
  19. <span class="text">次</span>
  20. </div>
  21. </div>
  22. <div class="part1-1-2">
  23. <div class="call-count-container">
  24. <div class="line"></div>
  25. <div>
  26. <span class="text1">昨日调用量</span>
  27. <span class="count">{{ lastDayCall }}</span>
  28. <span class="text2">次</span>
  29. </div>
  30. <div class="line"></div>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </div>
  36. <div class="darkblue-background">
  37. <div class="row">
  38. <div>
  39. <div class="strong-data blue ">{{ unitNum }}个</div>
  40. <div class="font middle">授权委办数</div>
  41. </div>
  42. <div>
  43. <div class="strong-data blue ">{{ appNum }}个</div>
  44. <div class="font middle">授权应用数</div>
  45. </div>
  46. <div>
  47. <div class="strong-data blue ">{{ userNum }}个</div>
  48. <div class="font middle">授权用户数</div>
  49. </div>
  50. </div>
  51. <div class="second-title ">
  52. 服务调用趋势(近30天)
  53. </div>
  54. <div id="echart1"></div>
  55. <div class="second-title ">
  56. 平台核心运行清单
  57. </div>
  58. <!--四组统计-->
  59. <div class="row">
  60. <div class="lighter-container" style="flex: 2;">
  61. <div class="third-title ">
  62. <el-icon color="#0071e3" size="30px">
  63. <Stopwatch></Stopwatch>
  64. </el-icon>
  65. <div>基础统计</div>
  66. </div>
  67. <div class="grid-2x2">
  68. <div class="lighter-container middle-container">
  69. <div class="strong-data blue">{{ weekCall }}</div>
  70. <div class="title-sub ">近一周总调用</div>
  71. </div>
  72. <div class="lighter-container middle-container">
  73. <div class="strong-data blue">{{ monthCall }}</div>
  74. <div class="title-sub ">近一月总调用</div>
  75. </div>
  76. <div class="lighter-container middle-container">
  77. <div class="strong-data blue">{{ seasonCall }}</div>
  78. <div class="title-sub ">近三月总调用</div>
  79. </div>
  80. <div class="lighter-container middle-container">
  81. <div class="strong-data blue">{{ yearCall }}</div>
  82. <div class="title-sub ">近一年总调用</div>
  83. </div>
  84. </div>
  85. </div>
  86. <div class="lighter-container" style="flex: 3;">
  87. <div class="between-row">
  88. <div class="third-title">
  89. <el-icon color="#0071e3" size="30px">
  90. <Histogram />
  91. </el-icon>
  92. <div>委办调用情况</div>
  93. </div>
  94. <span>
  95. <el-button v-show="this.chartMluLevel != 'unit'" text size="large" circle @click="chartMluBack()">
  96. <el-icon color="#0071e3" size="30px">
  97. <Back />
  98. </el-icon>
  99. </el-button>
  100. <el-date-picker v-model="chartMluTimeRange" :clearable="false" type="daterange" range-separator="到" start-placeholder="开始日期"
  101. end-placeholder="结束日期" @change="chartMluFocus()" />
  102. </span>
  103. </div>
  104. <div id="echartMultiLevelUse"></div>
  105. </div>
  106. </div>
  107. <div class="row">
  108. <div class="lighter-container" style="flex: 3;">
  109. <div class="third-title ">
  110. <el-icon color="#0071e3" size="30px">
  111. <List></List>
  112. </el-icon>
  113. <div>热点资源top10</div>
  114. </div>
  115. <div class="row">
  116. <div class="top-list" style="flex-grow: 1;">
  117. <div v-for="index in 5" :key="index" class="list-item">
  118. <template v-if="resourceTop[index - 1] != null">
  119. <el-avatar size="small" class="circle-number blue">
  120. {{ index }}
  121. </el-avatar>
  122. <div class="font" style="flex-grow: 100;">{{ resourceTop[index - 1].name }}</div>
  123. <div class="font blue">{{ resourceTop[index - 1].value }}</div>
  124. </template>
  125. </div>
  126. </div>
  127. <div class="top-list" style="flex-grow: 1;">
  128. <div v-for="index in 5" :key="index" class="list-item">
  129. <template v-if="resourceTop[index + 4] != null">
  130. <el-avatar size="small" class="circle-number blue">
  131. {{ index + 5 }}
  132. </el-avatar>
  133. <div class="font" style="flex-grow: 100;">{{ resourceTop[index + 4].name }}</div>
  134. <div class="font blue">{{ resourceTop[index + 4].value }}</div>
  135. </template>
  136. </div>
  137. </div>
  138. </div>
  139. </div>
  140. <div class="lighter-container" style="flex: 2;">
  141. <div class="third-title ">
  142. <el-icon color="#0071e3" size="30px">
  143. <School />
  144. </el-icon>
  145. <div>委办调用top5</div>
  146. </div>
  147. <div class="top-list">
  148. <div v-for="index in 5" :key="index" class="list-item">
  149. <template v-if="userTop[index - 1] != null">
  150. <el-avatar size="small" class="circle-number blue">
  151. {{ index }}
  152. </el-avatar>
  153. <div class="font" style="flex-grow: 100;">{{ userTop[index - 1].name }}</div>
  154. <div class="font blue">{{ userTop[index - 1].value }}</div>
  155. </template>
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160. <div class="title " style="margin-top:90px ;">应用案例</div>
  161. <div class="title-sub ">技术创新与政务需求深度融合,打造高效、安全、可扩展的时空数据安全平台</div>
  162. <div class="row" style="margin-top: 90px;">
  163. <div>
  164. <div class="strong-data blue ">365个</div>
  165. <div class="font middle">地名地址</div>
  166. </div>
  167. <div>
  168. <div class="strong-data blue ">366个</div>
  169. <div class="font middle">坐标转换</div>
  170. </div>
  171. <div>
  172. <div class="strong-data blue ">367个</div>
  173. <div class="font middle">地图服务</div>
  174. </div>
  175. </div>
  176. <el-tabs v-model="activeUseCase" class="usecase-tabs" @tab-click="handleClick" stretch="true">
  177. <el-tab-pane label="dataProcass" name="dataProcass">
  178. <template #label>
  179. <div class="tab-lab">
  180. <el-icon :color="activeUseCase == 'dataProcass' ? '#0071e3' : '#fff'" size="30px">
  181. <Expand />
  182. </el-icon>
  183. <div :class="activeUseCase == 'dataProcass' ? 'blue' : ''">数据治理</div>
  184. </div>
  185. </template>
  186. </el-tab-pane>
  187. <el-tab-pane label="useInService" name="useInService">
  188. <template #label>
  189. <div class="tab-lab">
  190. <el-icon :color="activeUseCase == 'useInService' ? '#0071e3' : '#fff'" size="30px">
  191. <Location />
  192. </el-icon>
  193. <div :class="activeUseCase == 'useInService' ? 'blue' : ''">业务应用</div>
  194. </div>
  195. </template></el-tab-pane>
  196. <el-tab-pane label="decisionHelping" name="decisionHelping">
  197. <template #label>
  198. <div class="tab-lab">
  199. <el-icon :color="activeUseCase == 'decisionHelping' ? '#0071e3' : '#fff'" size="30px">
  200. <Guide />
  201. </el-icon>
  202. <div :class="activeUseCase == 'decisionHelping' ? 'blue' : ''">综合决策</div>
  203. </div>
  204. </template></el-tab-pane>
  205. </el-tabs>
  206. <div class="warp-row">
  207. <div v-for="useCaseItem in useCase[activeUseCase]" :key="useCaseItem.title" class="use-case"
  208. :style="`background-image: url(${useCaseItem.picture})`">
  209. <div class="use-case-empty"></div>
  210. <div class="use-case-text">
  211. <el-tag v-for="item in useCaseItem.tags" style="margin-right: 5px;" :key="item" color="#e2e4f4" size="lager" effect="dark" round>
  212. <span class="blue">
  213. {{ item }}
  214. </span>
  215. </el-tag>
  216. <span class="third-title">
  217. <span style="padding: 10px 0px;">
  218. {{ useCaseItem.title }}
  219. </span>
  220. </span>
  221. <p class="font grey" style="padding-top: 0px !important;">
  222. {{ useCaseItem.text }}
  223. </p>
  224. </div>
  225. </div>
  226. </div>
  227. <div class="title " style="margin-top:90px ;">实践与探索·六大核心功能</div>
  228. <div class="title-sub ">聚焦政务场景痛点,打造从数据治理到应用落地的全链路创新解决方案</div>
  229. <div class="row" style="margin-top: 36px;">
  230. <div class="lightblue-container six-router">
  231. <div class="third-title">
  232. <el-icon color="white" size="45px">
  233. <Coin />
  234. </el-icon>
  235. 时空数据管理
  236. </div>
  237. <p class="font lightgrey">
  238. 覆盖数据质量检查、加工、管理、服务发布全流程,支持矢量/栅格数据标准化处理,实现多格式转换与瓦片定制,保障数据规范可用。
  239. </p>
  240. </div>
  241. <div class="lightblue-container six-router">
  242. <div class="third-title">
  243. <el-icon color="white" size="45px">
  244. <Orange />
  245. </el-icon>
  246. 二三维一体化引擎
  247. </div>
  248. <p class="font lightgrey">
  249. 嵌入式SDK支撑地图交互、空间分析、数据可视化,涵盖热力图/聚合图/迁徙图等多维呈现,实现精准定位与场景切换。
  250. </p>
  251. </div>
  252. <div class="lightblue-container six-router">
  253. <div class="third-title">
  254. <el-icon color="white" size="45px">
  255. <Guide />
  256. </el-icon>
  257. 时空门户
  258. </div>
  259. <p class="font lightgrey">
  260. 整合平台访问统计、功能演示、服务导航,提供视频教程与业务场景展示,快速上手平台核心能力,支撑政务场景应用。
  261. </p>
  262. </div>
  263. </div>
  264. <div class="row">
  265. <div class="lightblue-container six-router">
  266. <div class="third-title">
  267. <el-icon color="white" size="45px">
  268. <Tickets />
  269. </el-icon>
  270. 微功能
  271. </div>
  272. <p class="font lightgrey">
  273. 支持拓扑计算、空间量算、几何运算与数据转换,批量处理海量时空数据,适配规划、管理多场景计算需求。
  274. </p>
  275. </div>
  276. <div class="lightblue-container six-router">
  277. <div class="third-title">
  278. <el-icon color="white" size="45px">
  279. <Open />
  280. </el-icon>
  281. 应用管理
  282. </div>
  283. <p class="font lightgrey">
  284. 统一接入各类时空业务应用,管控访问权限与应用信息,实现“接入-访问-管理”全流程闭环,支撑区级特色应用建设。
  285. </p>
  286. </div>
  287. <div class="lightblue-container six-router">
  288. <div class="third-title">
  289. <el-icon color="white" size="45px">
  290. <Help />
  291. </el-icon>
  292. 运行管理
  293. </div>
  294. <p class="font lightgrey">
  295. 实时监控平台运行数据,负责数据全生命周期管理与权限管控,建立四级管理架构,保障系统合规安全运行。
  296. </p>
  297. </div>
  298. </div>
  299. </div>
  300. <div class="dark-background">
  301. <div class="row">
  302. <img :src="require('@/assets/images/common/home-bg2.png')" />
  303. <div class="col">
  304. <div>
  305. <div class="super-title">多源数据统一治理</div>
  306. <div class="super-title">打破格式与基准壁垒</div>
  307. <p class="grey font">支持矢量、栅格等多格式数据转换,同一坐标/投影基准,通过重复项、逻辑/语义一致性检查,让分散数据规范入库</p>
  308. </div>
  309. </div>
  310. </div>
  311. </div>
  312. <div class="darkblue-background col">
  313. <div class="">
  314. <div class="super-title">强大空间计算能力,秒级响应复杂分析</div>
  315. <p class="font middle">内置拓扑计算、空间量算、几何运算等核心功能,支持非空间数据转空间数据,快速解决区域关联、资源覆盖等分析需求</p>
  316. </div>
  317. </div>
  318. <div class="image-background" :style="`background-Image:url('${require('@/assets/images/common/home-bg3.png')}');`">
  319. </div>
  320. <div class="bluedark-background dense-col">
  321. <div>
  322. <div class="super-title">二三维一体化可视化</div>
  323. <div class="super-title">场景适配更灵活</div>
  324. </div>
  325. <div>
  326. <div class="font middle">
  327. GIS通用计算功能,实用便捷超乎想象!
  328. </div>
  329. <div class="font middle">
  330. 测距、剖面分析及点线面绘制轻松实现,坐标转换精准高效,路径规划快速准确,地名搜索智能推荐
  331. </div>
  332. </div>
  333. </div>
  334. <div class="darkblue-background image-background col"
  335. :style="`background-Image:url('${require('@/assets/images/common/home-bg4.png')}');`">
  336. <div class="row" style="margin-top: auto;">
  337. <!-- <ElButton type="primary">
  338. 了解更多
  339. </ElButton> -->
  340. </div>
  341. </div>
  342. <div class="blue-background col">
  343. <div class="warp-row">
  344. <div class="block-page-router">
  345. <div class="title">
  346. 时空数据治理标准化实践
  347. </div>
  348. <p class="font grey">
  349. 构建“检查-加工-发布”全流程数据治理体系,实现矢量/栅格数据标准化处理、多格式转换与瓦片定制,解决区级时空数据格式不统一、质量参差不齐的通电,为全场景应用构牢数据基础
  350. </p>
  351. <div class="row" style="margin-top: auto;">
  352. <div class="font" style="margin-left: auto;" @click="goto('/sksjgl')">
  353. 了解更多→
  354. </div>
  355. </div>
  356. </div>
  357. <div class="block-page-router">
  358. <div class="title">
  359. 二三维一体化引擎创新应用
  360. </div>
  361. <p class="font grey">
  362. 自研嵌入式 GIS SDK,融合二维地图交互、三维场景渲染能力,创新落地热力图 / 聚合图 / 迁徙图等多维可视化形式,实现区级地理信息 “全景式” 呈现与精准定位。
  363. </p>
  364. <div class="row" style="margin-top: auto;">
  365. <div class="font" style="margin-left: auto;" @click="goto('/skmh/scene')">
  366. 了解更多→
  367. </div>
  368. </div>
  369. </div>
  370. <div class="block-page-router">
  371. <div class="title">
  372. 政务时空门户一体化探索
  373. </div>
  374. <p class="font grey">
  375. 整合平台访问统计、功能演示、视频教程等能力,打造适配青浦区政务场景的时空门户总入口,打通 “一网通办”“一网统管” 数据链路,降低政务人员使用门槛。
  376. </p>
  377. <div class="row" style="margin-top: auto;">
  378. <div class="font" style="margin-left: auto;" @click="goto('/skmh')">
  379. 了解更多→
  380. </div>
  381. </div>
  382. </div>
  383. <div class="block-page-router">
  384. <div class="title">
  385. 空间计算微功能场景化落地
  386. </div>
  387. <p class="font grey">
  388. 聚焦区级规划、管理等实际需求,落地拓扑计算、空间量算、几何运算等轻量化微功能,支持海量时空数据批量处理,让专业空间分析能力下沉至街镇级应用场景。
  389. </p>
  390. <div class="row" style="margin-top: auto;">
  391. <div class="font" style="margin-left: auto;" @click="goto('/wgn')">
  392. 了解更多→
  393. </div>
  394. </div>
  395. </div>
  396. <div class="block-page-router">
  397. <div class="title">
  398. 政务应用标准化接入管理
  399. </div>
  400. <p class="font grey">
  401. 建立区级时空业务应用 “接入 - 授权 - 管控” 全闭环体系,统一规范应用接入流程与权限管理,适配青浦区特色政务应用的快速接入与安全运行。
  402. </p>
  403. <div class="row" style="margin-top: auto;">
  404. <div class="font" style="margin-left: auto;" @click="goto('/yygl')">
  405. 了解更多→
  406. </div>
  407. </div>
  408. </div>
  409. <div class="block-page-router">
  410. <div class="title">
  411. 四级架构运行管理体系构建
  412. </div>
  413. <p class="font grey">
  414. 创新构建 “区 — 街镇 — 综合网格 — 村居” 四级运行管理架构,实现平台数据全生命周期管控、运行状态实时监控,保障区级 “一张图” 系统合规、安全、稳定运行。
  415. </p>
  416. <div class="row" style="margin-top: auto;">
  417. <div class="font" style="margin-left: auto;" @click="goto('/yxgl')">
  418. 了解更多→
  419. </div>
  420. </div>
  421. </div>
  422. </div>
  423. </div>
  424. <div class="bluedark-background col">
  425. <div>
  426. <div class="super-title">多应用标准化接入</div>
  427. <div class="super-title">打破“烟囱式”壁垒</div>
  428. </div>
  429. <p class="font middle">
  430. 亮点说明:通过REST API、WebSocket等标准化接口,无缝接入GIS、遥感监测等各类时空应用,统一管理访问权限与运行状态
  431. </p>
  432. </div>
  433. <div class="dark-background image-background col"
  434. :style="`background-Image:url('${require('@/assets/images/common/home-bg5.png')}');`">
  435. <div class="row" style="margin-top: auto;">
  436. </div>
  437. </div>
  438. </div>
  439. <div class="darkblue-background col" style="height: auto;">
  440. <div class="super-title grey">
  441. <div>全链路运行监督</div>
  442. <div>据驱动优化决策</div>
  443. </div>
  444. <p class="font grey middle">实时统计服务调用、用户分布、应用活跃度等核心指标,全维度反馈系统运行状态,为资源调配与功能迭代提供数据支撑</p>
  445. <img :src="require('@/assets/images/common/home-bg6.png')" />
  446. </div>
  447. </template>
  448. <script>
  449. import { countAppUseByUnitName, countServiceUseByApp, countUnitUse, countUserData, topService, topUnit, totalCount, totalCountGroupByTime } from "@/api/count";
  450. import * as echarts from "echarts";
  451. import moment from "moment";
  452. let chart1 = null;
  453. let chartMultiLevelUse = null;
  454. export default {
  455. name: "Home",
  456. data() {
  457. return {
  458. lastDayCall: "0",
  459. totalCall: ["0", "0", "0", ",", "0", "0", "0"],
  460. serveNum: 0,
  461. userNum: 0,
  462. appNum: 0,
  463. weekCall: 0,
  464. monthCall: 0,
  465. seasonCall: 0,
  466. yearCall: 0,
  467. currentTab: "data-governance", // 初始选中项
  468. tabs: [
  469. { key: "data-governance", icon: "", title: "数据治理" },
  470. { key: "business-app", icon: "", title: "业务应用" },
  471. { key: "comprehensive-decision", icon: "", title: "综合决策" }
  472. ],
  473. resourceTop: [
  474. ],
  475. userTop: [
  476. ],
  477. useCase: {
  478. dataProcass: [{
  479. tags: ["盈浦街道", "夏阳街道"],
  480. title: "上海市青浦区教育局·学区查询",
  481. text: "苹果,学名Malus pumila Mill.,别称西洋苹果、柰,属于蔷薇科苹果属的植物 [1-2]。苹果是全球最广泛种植和销售的水果之一,具有悠久的栽培历史和广泛的分布范围。苹果的原始种群主要起源于中亚的天山山脉附近,尤其是现代哈萨克斯坦的阿拉木图地区,提供了所有现代苹果品种的基因库。苹果通过早期的贸易路线,如丝绸之路,从中亚向外扩散到全球各地。 [3]",
  482. picture: require('@/assets/images/common/u301.png')
  483. }, {
  484. tags: ["盈浦街道", "夏阳街道"],
  485. title: "上海市青浦区教育局·学区查询",
  486. text: "苹果,学名Malus pumila Mill.,别称西洋苹果、柰,属于蔷薇科苹果属的植物 [1-2]。苹果是全球最广泛种植和销售的水果之一,具有悠久的栽培历史和广泛的分布范围。苹果的原始种群主要起源于中亚的天山山脉附近,尤其是现代哈萨克斯坦的阿拉木图地区,提供了所有现代苹果品种的基因库。苹果通过早期的贸易路线,如丝绸之路,从中亚向外扩散到全球各地。 [3]",
  487. picture: require("@/assets/images/common/u301.png")
  488. }, {
  489. tags: ["盈浦街道、夏阳街道"],
  490. title: "上海市青浦区教育局·学区查询",
  491. text: "苹果,学名Malus pumila Mill.,别称西洋苹果、柰,属于蔷薇科苹果属的植物 [1-2]。苹果是全球最广泛种植和销售的水果之一,具有悠久的栽培历史和广泛的分布范围。苹果的原始种群主要起源于中亚的天山山脉附近,尤其是现代哈萨克斯坦的阿拉木图地区,提供了所有现代苹果品种的基因库。苹果通过早期的贸易路线,如丝绸之路,从中亚向外扩散到全球各地。 [3]",
  492. picture: require("@/assets/images/common/u661.png")
  493. }, {
  494. tags: ["盈浦街道", "夏阳街道"],
  495. title: "上海市青浦区",
  496. text: "苹果,学名Malus pumila Mill.,别称西洋苹果、柰,属于蔷薇科苹果属的植物 [1-2]。苹果是全球最广泛种植和销售的水果之一,具有悠久的栽培历史和广泛的分布范围。苹果的原始种群主要起源于中亚的天山山脉附近,尤其是现代哈萨克斯坦的阿拉木图地区,提供了所有现代苹果品种的基因库。苹果通过早期的贸易路线,如丝绸之路,从中亚向外扩散到全球各地。 [3]",
  497. picture: require("@/assets/images/common/u302.png")
  498. },
  499. ],
  500. useInService: [{
  501. tags: ["盈浦街道", "夏阳街道"],
  502. title: "上海市青浦区教育局·学区查询",
  503. text: "苹果,学名Malus pumila Mill.,别称西洋苹果、柰,属于蔷薇科苹果属的植物 [1-2]。苹果是全球最广泛种植和销售的水果之一,具有悠久的栽培历史和广泛的分布范围。苹果的原始种群主要起源于中亚的天山山脉附近,尤其是现代哈萨克斯坦的阿拉木图地区,提供了所有现代苹果品种的基因库。苹果通过早期的贸易路线,如丝绸之路,从中亚向外扩散到全球各地。 [3]",
  504. picture: require("@/assets/images/common/u301.png")
  505. }, {
  506. tags: ["盈浦街道、夏阳街道"],
  507. title: "上海市青浦区教育局·学区查询",
  508. text: "苹果,学名Malus pumila Mill.,别称西洋苹果、柰,属于蔷薇科苹果属的植物 [1-2]。苹果是全球最广泛种植和销售的水果之一,具有悠久的栽培历史和广泛的分布范围。苹果的原始种群主要起源于中亚的天山山脉附近,尤其是现代哈萨克斯坦的阿拉木图地区,提供了所有现代苹果品种的基因库。苹果通过早期的贸易路线,如丝绸之路,从中亚向外扩散到全球各地。 [3]",
  509. picture: require("@/assets/images/common/u661.png")
  510. }, {
  511. tags: ["盈浦街道", "夏阳街道"],
  512. title: "上海市青浦区教育局·学区查询",
  513. text: "苹果,学名Malus pumila Mill.,别称西洋苹果、柰,属于蔷薇科苹果属的植物 [1-2]。苹果是全球最广泛种植和销售的水果之一,具有悠久的栽培历史和广泛的分布范围。苹果的原始种群主要起源于中亚的天山山脉附近,尤其是现代哈萨克斯坦的阿拉木图地区,提供了所有现代苹果品种的基因库。苹果通过早期的贸易路线,如丝绸之路,从中亚向外扩散到全球各地。 [3]",
  514. picture: require("@/assets/images/common/u301.png")
  515. }, {
  516. tags: ["盈浦街道", "夏阳街道"],
  517. title: "上海市青浦区",
  518. text: "苹果,学名Malus pumila Mill.,别称西洋苹果、柰,属于蔷薇科苹果属的植物 [1-2]。苹果是全球最广泛种植和销售的水果之一,具有悠久的栽培历史和广泛的分布范围。苹果的原始种群主要起源于中亚的天山山脉附近,尤其是现代哈萨克斯坦的阿拉木图地区,提供了所有现代苹果品种的基因库。苹果通过早期的贸易路线,如丝绸之路,从中亚向外扩散到全球各地。 [3]",
  519. picture: require("@/assets/images/common/u302.png")
  520. },
  521. ],
  522. decisionHelping: [{
  523. tags: ["盈浦街道", "夏阳街道"],
  524. title: "上海市青浦区教育局·学区查询",
  525. text: "苹果,学名Malus pumila Mill.,别称西洋苹果、柰,属于蔷薇科苹果属的植物 [1-2]。苹果是全球最广泛种植和销售的水果之一,具有悠久的栽培历史和广泛的分布范围。苹果的原始种群主要起源于中亚的天山山脉附近,尤其是现代哈萨克斯坦的阿拉木图地区,提供了所有现代苹果品种的基因库。苹果通过早期的贸易路线,如丝绸之路,从中亚向外扩散到全球各地。 [3]",
  526. picture: require("@/assets/images/common/u301.png")
  527. }, {
  528. tags: ["盈浦街道", "夏阳街道"],
  529. title: "上海市青浦区教育局·学区查询",
  530. text: "苹果,学名Malus pumila Mill.,别称西洋苹果、柰,属于蔷薇科苹果属的植物 [1-2]。苹果是全球最广泛种植和销售的水果之一,具有悠久的栽培历史和广泛的分布范围。苹果的原始种群主要起源于中亚的天山山脉附近,尤其是现代哈萨克斯坦的阿拉木图地区,提供了所有现代苹果品种的基因库。苹果通过早期的贸易路线,如丝绸之路,从中亚向外扩散到全球各地。 [3]",
  531. picture: require("@/assets/images/common/u301.png")
  532. }, {
  533. tags: ["盈浦街道、夏阳街道"],
  534. title: "上海市青浦区教育局·学区查询",
  535. text: "苹果,学名Malus pumila Mill.,别称西洋苹果、柰,属于蔷薇科苹果属的植物 [1-2]。苹果是全球最广泛种植和销售的水果之一,具有悠久的栽培历史和广泛的分布范围。苹果的原始种群主要起源于中亚的天山山脉附近,尤其是现代哈萨克斯坦的阿拉木图地区,提供了所有现代苹果品种的基因库。苹果通过早期的贸易路线,如丝绸之路,从中亚向外扩散到全球各地。 [3]",
  536. picture: require("@/assets/images/common/u661.png")
  537. }, {
  538. tags: ["盈浦街道", "夏阳街道"],
  539. title: "上海市青浦区",
  540. text: "苹果,学名Malus pumila Mill.,别称西洋苹果、柰,属于蔷薇科苹果属的植物 [1-2]。苹果是全球最广泛种植和销售的水果之一,具有悠久的栽培历史和广泛的分布范围。苹果的原始种群主要起源于中亚的天山山脉附近,尤其是现代哈萨克斯坦的阿拉木图地区,提供了所有现代苹果品种的基因库。苹果通过早期的贸易路线,如丝绸之路,从中亚向外扩散到全球各地。 [3]",
  541. picture: require("@/assets/images/common/u302.png")
  542. },
  543. ],
  544. },
  545. activeUseCase: "dataProcass",
  546. chartMluLevel: "unit",
  547. chartMluUnitName: null,
  548. chartMluAppName: null,
  549. chartMluTimeRange: null,
  550. };
  551. },
  552. async beforeMount() {
  553. await this.pullTotalCount()
  554. await this.pullLastDayCount()
  555. },
  556. mounted() {
  557. this.initChart1();
  558. this.initchartMultiLevelUse();
  559. const nowDate = new Date();
  560. nowDate.setHours(0, 0, 0, 0);
  561. this.chartMluTimeRange = [new Date(new Date(nowDate).setDate(nowDate.getDate() - 6)), new Date(nowDate)];
  562. this.chartMluFocusRoot()
  563. this.pullTopUnit()
  564. this.pullTopService()
  565. this.pullMultiTimeRangeCall()
  566. this.pullUserCount()
  567. },
  568. methods: {
  569. goto(src) {
  570. this.$router.push({
  571. path: src,
  572. });
  573. },
  574. // 处理调用总数数字
  575. handleTotalCallNumber(num) {
  576. // 667507060
  577. let str = num.toString();
  578. let strArr = str.split("").reverse();
  579. this.totalCall = [];
  580. for (let i = 0; i < strArr.length; i++) {
  581. const num = strArr[i];
  582. this.totalCall.unshift(num);
  583. if (i % 3 == 2 && i != strArr.length - 1) {
  584. this.totalCall.unshift(",");
  585. }
  586. }
  587. },
  588. async initChart1() {
  589. const nowDate = new Date();
  590. nowDate.setHours(0, 0, 0, 0);
  591. let end = new Date(nowDate)
  592. let start = new Date(nowDate.setDate(nowDate.getDate() - 30))
  593. start = new Date(moment(start).format("YYYY-MM-DD 00:00:00"));
  594. end = new Date(moment(end).format("YYYY-MM-DD 23:59:59"));
  595. let data = await totalCountGroupByTime(start, end)
  596. let dataMap = {}
  597. for (let i = 0; i < data.length; i++) {
  598. const e = data[i];
  599. dataMap[e.time] = e.count
  600. }
  601. let times = []
  602. let values = []
  603. for (let i = 0; i < 30; i++) {
  604. let date = new Date(start);
  605. date.setDate(start.getDate() + i)
  606. times.push(this.formatDateMMDD(date))
  607. values.push(dataMap[date.getTime()] ?? 0)
  608. }
  609. // 基于准备好的dom,初始化echarts实例
  610. var myChart = echarts.init(document.getElementById("echart1"));
  611. let option = {
  612. tooltip: {
  613. trigger: "axis", // 坐标轴触发提示
  614. axisPointer: { type: "shadow" },
  615. backgroundColor: "rgba(0, 25, 50, 0.8)",
  616. borderColor: "#1E90FF",
  617. textStyle: {
  618. color: "#fff",
  619. },
  620. },
  621. xAxis: {
  622. type: "category",
  623. data: times,
  624. axisLine: { lineStyle: { color: "#fff" } }, // 坐标轴颜色
  625. axisTick: { show: false }, // 隐藏刻度
  626. splitLine: { show: false }, // 隐藏分割线
  627. },
  628. yAxis: {
  629. type: "value",
  630. axisLine: { lineStyle: { color: "#fff" } },
  631. splitLine: {
  632. lineStyle: {
  633. type: "dashed", // 虚线网格
  634. color: "#113761",
  635. },
  636. },
  637. },
  638. series: [
  639. {
  640. name: "调用总数",
  641. type: "line",
  642. data: values, // 模拟数据
  643. lineStyle: { color: "#42a5f5" }, // 蓝色线条
  644. itemStyle: { color: "#42a5f5" }, // 节点颜色
  645. symbol: "circle", // 节点形状
  646. symbolSize: 6, // 节点大小
  647. },
  648. ],
  649. };
  650. // 绘制图表
  651. myChart.setOption(option);
  652. chart1 = myChart
  653. },
  654. initchartMultiLevelUse() {
  655. var myChart = echarts.init(document.getElementById("echartMultiLevelUse"));
  656. let option = {
  657. tooltip: {
  658. trigger: 'axis',
  659. show: true,
  660. formatter: '{b}: {c}',
  661. backgroundColor: "rgba(0, 25, 50, 0.8)",
  662. borderColor: "#1E90FF",
  663. textStyle: {
  664. color: "#fff",
  665. },
  666. },
  667. title: {
  668. text: '所有委办',
  669. left: 'center',
  670. top: 20,
  671. textStyle: {
  672. color: '#fff',
  673. fontSize: 18,
  674. fontWeight: 'bold'
  675. },
  676. },
  677. axisPointer: {
  678. type: 'shadow'
  679. },
  680. grid: {
  681. left: '3%',
  682. right: '4%',
  683. bottom: '3%',
  684. containLabel: true
  685. },
  686. xAxis: [
  687. {
  688. type: 'value',
  689. // axisLine: { lineStyle: { color: "#fff" } },
  690. splitLine: { show: false }, // 隐藏分割线
  691. }
  692. ],
  693. yAxis: [
  694. {
  695. type: 'category',
  696. axisLine: { lineStyle: { color: "#fff" } },
  697. inverse: true,
  698. data: [""]
  699. }
  700. ],
  701. series: [
  702. {
  703. cursorSize: 20,
  704. name: 'Direct',
  705. type: 'bar',
  706. barWidth: '60%',
  707. data: [0]
  708. }
  709. ],
  710. dataZoom: [
  711. {
  712. type: 'inside', // 内置型,可以用鼠标滚轮缩放
  713. yAxisIndex: 0,
  714. zoomOnMouseWheel: false, // 滚轮缩放
  715. moveOnMouseWheel: true, // 滚轮移动
  716. zoomLock: false,
  717. minValueSpan: 12, // 最小显示数据数量
  718. maxValueSpan: 12 // 最大显示数据数量
  719. }
  720. ]
  721. };
  722. myChart.setOption(option);
  723. myChart.on("click", this.chartMluClick)
  724. chartMultiLevelUse = myChart
  725. },
  726. async chartMluFocus(level, farther) {
  727. if (level == null) {
  728. level = this.chartMluLevel
  729. }
  730. switch (level) {
  731. case "unit":
  732. default: {
  733. await this.chartMluFocusRoot();
  734. this.chartMluUpdateTitle("所有委办")
  735. break;
  736. }
  737. case "app": {
  738. let unit = farther ?? this.chartMluUnitName ?? ""
  739. await this.chartMluFocusApp(unit);
  740. this.chartMluUpdateTitle("委办:" + unit)
  741. break;
  742. }
  743. case "service": {
  744. let app = farther ?? this.chartMluAppName ?? ""
  745. await this.chartMluFocusService(app);
  746. this.chartMluUpdateTitle("应用:" + app)
  747. break;
  748. }
  749. }
  750. },
  751. chartMluClick(event) {
  752. switch (this.chartMluLevel) {
  753. case "unit": {
  754. this.chartMluLevel = "app";
  755. this.chartMluUnitName = event.name
  756. break;
  757. }
  758. case "app": {
  759. this.chartMluLevel = "service";
  760. this.chartMluAppName = event.name
  761. break;
  762. }
  763. case "service":
  764. default: {
  765. // do nothing
  766. }
  767. }
  768. this.chartMluFocus();
  769. },
  770. chartMluBack(level) {
  771. //自动回退
  772. if (level == null) {
  773. switch (this.chartMluLevel) {
  774. default:
  775. case "unit": level = "unit"; break;
  776. case "app": level = "unit"; break;
  777. case "service": level = "app"; break;
  778. }
  779. }
  780. this.chartMluLevel = level;
  781. this.chartMluFocus()
  782. },
  783. async chartMluFocusRoot() {
  784. let start = this.chartMluTimeRange[0], end = this.chartMluTimeRange[1];
  785. start = new Date(moment(start).format("YYYY-MM-DD 00:00:00"));
  786. end = new Date(moment(end).format("YYYY-MM-DD 23:59:59"));
  787. const data = await countUnitUse(start, end);
  788. const names = [];
  789. const values = [];
  790. for (let index = 0; index < data.length; index++) {
  791. const e = data[index];
  792. names.push(e.name);
  793. values.push(e.count);
  794. }
  795. this.chartMluUpdateData(names, values)
  796. },
  797. async chartMluFocusApp(father) {
  798. let start = this.chartMluTimeRange[0], end = this.chartMluTimeRange[1];
  799. start = new Date(moment(start).format("YYYY-MM-DD 00:00:00"));
  800. end = new Date(moment(end).format("YYYY-MM-DD 23:59:59"));
  801. const data = await countAppUseByUnitName(start, end, father);
  802. const names = [];
  803. const values = [];
  804. for (let index = 0; index < data.length; index++) {
  805. const e = data[index];
  806. names.push(e.name);
  807. values.push(e.count);
  808. }
  809. this.chartMluUpdateData(names, values)
  810. },
  811. async chartMluFocusService(father) {
  812. let start = this.chartMluTimeRange[0], end = this.chartMluTimeRange[1];
  813. start = new Date(moment(start).format("YYYY-MM-DD 00:00:00"));
  814. end = new Date(moment(end).format("YYYY-MM-DD 23:59:59"));
  815. const data = await countServiceUseByApp(start, end, father);
  816. const names = [];
  817. const values = [];
  818. for (let index = 0; index < data.length; index++) {
  819. const e = data[index];
  820. names.push(e.name);
  821. values.push(e.count);
  822. }
  823. this.chartMluUpdateData(names, values)
  824. },
  825. async pullTopUnit() {
  826. let data = await topUnit(5)
  827. for (let i = 0; i < data.length; i++) {
  828. const e = data[i];
  829. e.value = this.numberFormatter(e.count);
  830. }
  831. this.userTop = data
  832. },
  833. async pullTopService() {
  834. let data = await topService(10)
  835. for (let i = 0; i < data.length; i++) {
  836. const e = data[i];
  837. e.value = this.numberFormatter(e.count);
  838. }
  839. this.resourceTop = data
  840. },
  841. async pullTotalCount() {
  842. this.handleTotalCallNumber((await totalCount())[0].count)
  843. },
  844. async pullLastDayCount() {
  845. const nowDate = new Date();
  846. nowDate.setHours(0, 0, 0, 0);
  847. let end = new Date(nowDate)
  848. let start = new Date(nowDate.setDate(nowDate.getDate() - 1))
  849. start = new Date(moment(start).format("YYYY-MM-DD 00:00:00"));
  850. end = new Date(moment(end).format("YYYY-MM-DD 23:59:59"));
  851. let data = (await totalCount(start, end))[0]
  852. this.lastDayCall = data == null ? 0 : data.count
  853. },
  854. async pullMultiTimeRangeCall() {
  855. this.weekCall = await this.pullTotalCountByDays(7)
  856. this.monthCall = await this.pullTotalCountByDays(30)
  857. this.seasonCall = await this.pullTotalCountByDays(91)
  858. this.yearCall = await this.pullTotalCountByDays(365)
  859. },
  860. async pullTotalCountByDays(days) {
  861. const nowDate = new Date();
  862. nowDate.setHours(0, 0, 0, 0);
  863. let end = new Date(nowDate)
  864. let start = new Date(nowDate.setDate(nowDate.getDate() - days))
  865. start = new Date(moment(start).format("YYYY-MM-DD 00:00:00"));
  866. end = new Date(moment(end).format("YYYY-MM-DD 23:59:59"));
  867. let data = (await totalCount(start, end))[0]
  868. return data == null ? 0 : data.count
  869. },
  870. async pullUserCount() {
  871. let data = await countUserData();
  872. this.appNum = data.application;
  873. this.unitNum = data.unit;
  874. this.userNum = data.username;
  875. },
  876. chartMluUpdateData(names, values) {
  877. chartMultiLevelUse.setOption({
  878. yAxis: [
  879. {
  880. data: names,
  881. }
  882. ],
  883. series: [
  884. {
  885. data: values
  886. }
  887. ]
  888. })
  889. this.chartMluCheckChangeToLog(values)
  890. },
  891. chartMluCheckChangeToLog(values) {
  892. let toLog = false;
  893. values.sort((a, b) => a - b);
  894. let min = values[0];
  895. let max = values[values.length - 1]
  896. if (max / min > 3000) {
  897. toLog = true
  898. }
  899. if (toLog) {
  900. chartMultiLevelUse.setOption(
  901. {
  902. xAxis: [{
  903. type: 'log',
  904. logBase: 10,
  905. min: 1,
  906. axisLine: { lineStyle: { color: "#fff" } },
  907. axisLabel: {
  908. formatter: this.numberFormatter
  909. },
  910. }]
  911. }
  912. )
  913. } else {
  914. chartMultiLevelUse.setOption(
  915. {
  916. xAxis: [{
  917. type: 'value',
  918. min: 0,
  919. axisLine: { lineStyle: { color: "#fff" } },
  920. }]
  921. }
  922. )
  923. }
  924. },
  925. chartMluUpdateTitle(newTitle) {
  926. chartMultiLevelUse.setOption({
  927. title: {
  928. text: newTitle,
  929. }
  930. })
  931. },
  932. numberFormatter(num, decimals = 1) {
  933. if (num >= 1000000000000) {
  934. return parseFloat((num / 1000000000000).toFixed(decimals)).toString() + '亿万';
  935. }
  936. if (num >= 100000000) {
  937. return parseFloat((num / 100000000).toFixed(decimals)).toString() + '亿';
  938. }
  939. if (num >= 10000) {
  940. return parseFloat((num / 10000).toFixed(decimals)).toString() + '万';
  941. }
  942. return num.toString();
  943. },
  944. formatDateMMDD(date) {
  945. // 月份从0开始,所以要 +1
  946. const month = String(date.getMonth() + 1).padStart(2, '0');
  947. const day = String(date.getDate()).padStart(2, '0');
  948. return `${month}/${day}`;
  949. }
  950. }
  951. }
  952. </script>
  953. <style lang="less" scoped>
  954. .font,
  955. .title,
  956. .super-title,
  957. .title-sub,
  958. .second-title,
  959. .third-title,
  960. .strong-data {
  961. color: #fff;
  962. }
  963. .icon {
  964. color: #fff;
  965. fill: currentColor;
  966. }
  967. .middle {
  968. text-align: center;
  969. margin-top: 20px;
  970. }
  971. .darkblue-background,
  972. .dark-background,
  973. .bluedark-background,
  974. .blue-background,
  975. .image-background {
  976. padding-top: 40px;
  977. padding-bottom: 40px;
  978. margin-left: 0;
  979. padding-left: 90px;
  980. padding-right: 90px;
  981. min-height: 600px;
  982. }
  983. .darkblue-background {
  984. background: linear-gradient(to bottom,
  985. #02060c 0%,
  986. #0f3460 40%,
  987. #0f3460 100%);
  988. }
  989. .dark-background {
  990. background: #0a0a08
  991. }
  992. .blue-background {
  993. background: #0f3460
  994. }
  995. .bluedark-background {
  996. background: linear-gradient(to bottom,
  997. #0f3460 0%,
  998. #0f3460 60%,
  999. #02060c 100%);
  1000. }
  1001. .image-background {
  1002. background-repeat: no-repeat;
  1003. background-position: center;
  1004. background-size: 100% auto;
  1005. }
  1006. .lighter-container {
  1007. background-color: #eeeeee0b;
  1008. padding: 20px;
  1009. margin: 15px;
  1010. vertical-align: middle;
  1011. border-radius: 10px;
  1012. }
  1013. .lightblue-container {
  1014. border-radius: 10px;
  1015. padding: 20px;
  1016. margin: 15px;
  1017. background: linear-gradient(to bottom,
  1018. #215476 0%,
  1019. #28638b 66%,
  1020. #337aac 100%);
  1021. font-size: 20px;
  1022. .third-title {
  1023. font-size: 28px;
  1024. padding: 0;
  1025. }
  1026. }
  1027. .middle-container {
  1028. display: flex !important;
  1029. justify-content: center;
  1030. flex-direction: column;
  1031. padding: 0;
  1032. align-items: stretch;
  1033. }
  1034. .row,
  1035. .warp-row,
  1036. .between-row {
  1037. display: flex !important;
  1038. justify-content: space-around;
  1039. padding: 0;
  1040. align-items: stretch;
  1041. }
  1042. .warp-row {
  1043. flex-wrap: wrap;
  1044. }
  1045. .between-row {
  1046. justify-content: space-between;
  1047. }
  1048. .col {
  1049. display: flex !important;
  1050. justify-content: space-around;
  1051. flex-direction: column;
  1052. }
  1053. .dense-col {
  1054. display: flex !important;
  1055. justify-content: center;
  1056. flex-direction: column;
  1057. }
  1058. .start-reverse-col {
  1059. display: flex !important;
  1060. justify-content: start;
  1061. flex-direction: column-reverse;
  1062. }
  1063. .dense-col>*,
  1064. .start-reverse-col>* {
  1065. margin: 10px;
  1066. }
  1067. .grid-2x2 {
  1068. display: grid !important;
  1069. grid-template-columns: 1fr 1fr;
  1070. gap: 12px;
  1071. width: 100%;
  1072. height: 80%;
  1073. }
  1074. .strong-data {
  1075. font-size: 32px;
  1076. font-weight: bold;
  1077. text-align: center;
  1078. }
  1079. .title {
  1080. font-size: 36px;
  1081. margin-top: 10px;
  1082. text-align: center;
  1083. font-weight: bold;
  1084. }
  1085. .super-title {
  1086. font-size: 44px;
  1087. margin-top: 10px;
  1088. text-align: center;
  1089. font-weight: bold;
  1090. }
  1091. .title-sub {
  1092. font-size: 16px;
  1093. margin-top: 10px;
  1094. color: rgb(192, 192, 192);
  1095. text-align: center;
  1096. }
  1097. .second-title {
  1098. font-size: 20px;
  1099. margin-top: 10px;
  1100. padding-left: 10px;
  1101. border-left: 2px solid #3498db;
  1102. font-weight: bold;
  1103. }
  1104. .third-title {
  1105. font-size: 18px;
  1106. align-items: center;
  1107. display: flex;
  1108. font-weight: bold;
  1109. i{
  1110. margin-right: 5px;
  1111. }
  1112. }
  1113. .top-list {
  1114. display: flex;
  1115. flex-direction: column;
  1116. }
  1117. .top-list .list-item {
  1118. display: flex;
  1119. justify-content: space-between;
  1120. margin: 15px;
  1121. margin-left: 30px;
  1122. margin-right: 30px;
  1123. }
  1124. .usecase-tabs {
  1125. width: 60%;
  1126. margin: auto;
  1127. margin-top: 60px;
  1128. margin-bottom: 30px;
  1129. }
  1130. .usecase-tabs .tab-lab {
  1131. display: flex;
  1132. align-items: center;
  1133. font-size: 24px;
  1134. color: #fff;
  1135. }
  1136. .use-case {
  1137. margin: 20px;
  1138. width: 45%;
  1139. height: 500px;
  1140. border-radius: 10px;
  1141. background-size: 100% auto;
  1142. /* 横向填满,纵向按比例缩放 */
  1143. background-repeat: no-repeat;
  1144. .use-case-empty {
  1145. width: 100%;
  1146. height: 50%;
  1147. }
  1148. .use-case-text {
  1149. padding: 15px;
  1150. width: 100%;
  1151. height: 50%;
  1152. border-radius: 10px;
  1153. box-sizing: border-box;
  1154. background: linear-gradient(to bottom,
  1155. #377f7f 0%,
  1156. #377f7f 80%,
  1157. #205161 100%);
  1158. .third-title {
  1159. padding: 0;
  1160. }
  1161. }
  1162. }
  1163. .six-router {
  1164. width: 30%;
  1165. // height: 300px;
  1166. font-size: 28px;
  1167. .third-title {
  1168. font-size: 32px;
  1169. }
  1170. }
  1171. .circle-number {
  1172. // display: block;
  1173. margin-right: 10px;
  1174. background-color: #eeeeee00;
  1175. border: 1px solid #2272d4;
  1176. }
  1177. .block-page-router {
  1178. display: flex;
  1179. flex-direction: column;
  1180. margin: 15px;
  1181. padding: 15px;
  1182. box-sizing: border-box;
  1183. width: 30%;
  1184. height: 240px;
  1185. border: #2272d4 solid 1px;
  1186. border-radius: 13px;
  1187. background-color: #1e3348;
  1188. }
  1189. .blue {
  1190. color: #3498db;
  1191. }
  1192. .grey {
  1193. color: rgb(192, 192, 192);
  1194. padding: 20px 0px;
  1195. }
  1196. .lightgrey {
  1197. color: rgb(229, 229, 229);
  1198. padding: 20px 0px
  1199. }
  1200. #echart1 {
  1201. width: 100%;
  1202. height: 450px;
  1203. }
  1204. #echartMultiLevelUse {
  1205. width: 100%;
  1206. height: 450px;
  1207. }
  1208. .container {
  1209. width: 100%;
  1210. margin: 0 auto;
  1211. }
  1212. .home {
  1213. position: relative;
  1214. .part1 {
  1215. width: 100%;
  1216. height: calc(100vh - 120px);
  1217. background: url(~@/assets/images/common/home-bg1.png);
  1218. background-size: 100% auto;
  1219. position: relative;
  1220. overflow: hidden;
  1221. display: grid;
  1222. justify-content: center;
  1223. align-items: center;
  1224. .part1-1 {
  1225. width: 100%;
  1226. height: 200px;
  1227. //background: #09284c;
  1228. margin: 0 auto;
  1229. margin-top: 120px;
  1230. overflow: hidden;
  1231. .part1-1-1 {
  1232. height: 70px;
  1233. width: fit-content;
  1234. margin: 0 auto;
  1235. margin-top: 30px;
  1236. .number-container {
  1237. display: flex;
  1238. align-items: flex-start;
  1239. font-size: 2em;
  1240. }
  1241. .number-item {
  1242. width: 57px;
  1243. height: 70px;
  1244. background-color: rgb(10 71 137 / 70%);
  1245. border: 1px solid #2663a5;
  1246. box-shadow: 0 4px 20px #2663a5;
  1247. border-radius: 10px;
  1248. color: white;
  1249. display: flex;
  1250. justify-content: center;
  1251. align-items: center;
  1252. margin-right: 20px;
  1253. font-size: 44px;
  1254. line-height: 70px;
  1255. font-weight: bold;
  1256. }
  1257. .separator {
  1258. margin-right: 20px;
  1259. font-size: 35px;
  1260. text-align: end;
  1261. color: #ffffff;
  1262. }
  1263. .text {
  1264. font-size: 24px;
  1265. line-height: 70px;
  1266. margin-right: 20px;
  1267. color: #ffffff;
  1268. font-weight: bold;
  1269. }
  1270. }
  1271. .part1-1-2 {
  1272. height: 50px;
  1273. width: 700px;
  1274. margin: 0 auto;
  1275. margin-top: 30px;
  1276. background: #8080804d;
  1277. border-radius: 5px;
  1278. line-height: 50px;
  1279. div {
  1280. display: inline-block;
  1281. vertical-align: top;
  1282. &.line {
  1283. height: 2px;
  1284. background: #808080;
  1285. width: 100px;
  1286. margin: 24px 20px;
  1287. margin-right: 20px;
  1288. }
  1289. &:nth-child(2) {
  1290. width: 420px;
  1291. text-align: center;
  1292. color: #ffffff;
  1293. font-size: 20px;
  1294. font-weight: bold;
  1295. .text1 {
  1296. margin-right: 20px;
  1297. }
  1298. .text2 {
  1299. margin-left: 20px;
  1300. }
  1301. }
  1302. &:nth-child(4) {
  1303. float: right;
  1304. }
  1305. }
  1306. }
  1307. }
  1308. }
  1309. .part2 {
  1310. background: #08224a;
  1311. padding-bottom: 1px;
  1312. .part1-2 {
  1313. color: #ffffff;
  1314. // margin-top: 20px;
  1315. .part1-2-1,
  1316. .part1-2-2,
  1317. .part1-2-3 {
  1318. display: inline-block;
  1319. text-align: center;
  1320. font-weight: bold;
  1321. width: calc(100% / 3);
  1322. div:nth-child(1) {
  1323. font-size: 24px;
  1324. }
  1325. div:nth-child(2) {
  1326. margin-top: 10px;
  1327. font-size: 32px;
  1328. }
  1329. }
  1330. }
  1331. .chapter {
  1332. text-align: center;
  1333. font-size: 40px;
  1334. width: 100%;
  1335. height: 80px;
  1336. line-height: 80px;
  1337. color: #ffffff;
  1338. font-weight: bold;
  1339. border-bottom: 2px solid gray;
  1340. margin-bottom: 20px;
  1341. }
  1342. .row {
  1343. display: flex;
  1344. justify-content: space-between;
  1345. margin-bottom: 20px;
  1346. padding: 0 100px;
  1347. }
  1348. .service {
  1349. flex: 1;
  1350. margin: 0 30px;
  1351. text-align: center;
  1352. }
  1353. .title {
  1354. position: relative;
  1355. padding-bottom: 10px;
  1356. margin-bottom: 15px;
  1357. height: 50px;
  1358. line-height: 90px;
  1359. font-size: 30px;
  1360. }
  1361. .title::before {
  1362. content: "";
  1363. position: absolute;
  1364. left: 0;
  1365. right: 0;
  1366. top: 0;
  1367. height: 15px;
  1368. }
  1369. .yellow {
  1370. color: #f1c40f;
  1371. }
  1372. .yellow::before {
  1373. background-color: #f1c40f;
  1374. }
  1375. .gray {
  1376. color: #bdc3c7;
  1377. }
  1378. .gray::before {
  1379. background-color: #bdc3c7;
  1380. }
  1381. .blue {
  1382. color: #3498db;
  1383. }
  1384. .blue::before {
  1385. background-color: #3498db;
  1386. }
  1387. .orange {
  1388. color: #e67e22;
  1389. }
  1390. .orange::before {
  1391. background-color: #e67e22;
  1392. }
  1393. .green {
  1394. color: #27ae60;
  1395. }
  1396. .green::before {
  1397. background-color: #27ae60;
  1398. }
  1399. .yellow-green {
  1400. color: #b2be2c;
  1401. }
  1402. .yellow-green::before {
  1403. background-color: #b2be2c;
  1404. }
  1405. p {
  1406. font-size: 20px;
  1407. line-height: 2;
  1408. color: #ffffff;
  1409. }
  1410. }
  1411. .part3 {
  1412. .container {
  1413. position: relative;
  1414. width: 100%;
  1415. height: 940px;
  1416. background-image: url("~@/assets/images/common/u30.png");
  1417. /* 替换为实际图片路径 */
  1418. background-size: cover;
  1419. background-position: center;
  1420. display: flex;
  1421. flex-direction: column;
  1422. justify-content: center;
  1423. align-items: center;
  1424. text-align: center;
  1425. color: #000000;
  1426. font-family: Arial, sans-serif;
  1427. overflow: hidden;
  1428. }
  1429. h1 {
  1430. position: absolute;
  1431. top: 30px;
  1432. font-size: 40px;
  1433. font-weight: bold;
  1434. }
  1435. p {
  1436. margin-bottom: 30px;
  1437. font-weight: bold;
  1438. font-size: 24px;
  1439. line-height: 2;
  1440. }
  1441. .el-button {
  1442. position: absolute;
  1443. bottom: 150px;
  1444. }
  1445. }
  1446. .part4 {
  1447. background: #08224a;
  1448. padding-bottom: 1px;
  1449. .chapter {
  1450. text-align: center;
  1451. font-size: 40px;
  1452. width: 100%;
  1453. height: 80px;
  1454. line-height: 80px;
  1455. color: #ffffff;
  1456. font-weight: bold;
  1457. /* border-bottom: 2px solid gray; */
  1458. margin-bottom: 20px;
  1459. }
  1460. .row {
  1461. display: flex;
  1462. justify-content: space-between;
  1463. margin-bottom: 40px;
  1464. padding: 0 100px;
  1465. }
  1466. .service {
  1467. flex: 1;
  1468. margin: 0 30px;
  1469. width: 500px;
  1470. height: 320px;
  1471. border: 1px solid gray;
  1472. border-radius: 8px;
  1473. padding: 10px 10px;
  1474. box-sizing: border-box;
  1475. overflow: hidden;
  1476. position: relative;
  1477. }
  1478. .title {
  1479. position: relative;
  1480. height: 30px;
  1481. line-height: 30px;
  1482. font-size: 30px;
  1483. text-align: left;
  1484. color: #ffffff;
  1485. padding-bottom: 20px;
  1486. }
  1487. p {
  1488. text-indent: 2rem;
  1489. font-size: 20px;
  1490. line-height: 2;
  1491. color: #ffffff;
  1492. }
  1493. .el-button {
  1494. position: absolute;
  1495. bottom: 10px;
  1496. left: 10px;
  1497. font-size: 20px;
  1498. color: #ffffff;
  1499. &:hover {
  1500. color: #3498db;
  1501. }
  1502. }
  1503. }
  1504. .part5 {
  1505. background: #08224a;
  1506. padding-bottom: 1px;
  1507. .chapter {
  1508. text-align: center;
  1509. font-size: 40px;
  1510. width: 100%;
  1511. height: 80px;
  1512. line-height: 80px;
  1513. color: #ffffff;
  1514. font-weight: bold;
  1515. /* border-bottom: 2px solid gray; */
  1516. margin-bottom: 20px;
  1517. }
  1518. .part5-1 {
  1519. color: #ffffff;
  1520. margin-top: 20px;
  1521. margin-bottom: 20px;
  1522. .part5-1-1,
  1523. .part5-1-2,
  1524. .part5-1-3 {
  1525. display: inline-block;
  1526. text-align: center;
  1527. font-weight: bold;
  1528. width: calc(100% / 3);
  1529. div {
  1530. font-size: 24px;
  1531. }
  1532. div:nth-child(2) {
  1533. margin-top: 10px;
  1534. font-size: 24px;
  1535. }
  1536. div p {
  1537. display: inline-block;
  1538. font-size: 40px;
  1539. }
  1540. }
  1541. }
  1542. .part5-2 {
  1543. margin-top: 40px;
  1544. padding-bottom: 1px;
  1545. height: fit-content;
  1546. .tab-container {
  1547. display: flex;
  1548. gap: 40px;
  1549. /* 选项卡间距 */
  1550. // border-bottom: 1px solid #eee; /* 可选底部分隔线 */
  1551. width: fit-content;
  1552. margin: 0 auto;
  1553. position: relative;
  1554. margin-bottom: 40px;
  1555. height: 55px;
  1556. }
  1557. .tab-container::after {
  1558. content: "";
  1559. display: block;
  1560. height: 1px;
  1561. width: 100%;
  1562. background: #eeeeee;
  1563. /* 下划线颜色 */
  1564. position: absolute;
  1565. bottom: 0;
  1566. }
  1567. .tab-item {
  1568. color: #ffffff;
  1569. cursor: pointer;
  1570. overflow: hidden;
  1571. position: relative;
  1572. font-size: 30px;
  1573. height: 55px;
  1574. }
  1575. .tab-item-active {
  1576. color: #66f;
  1577. /* 选中文字颜色 */
  1578. }
  1579. .tab-item-active::after {
  1580. content: "";
  1581. display: block;
  1582. height: 2px;
  1583. width: 100%;
  1584. background: #66f;
  1585. /* 下划线颜色 */
  1586. margin-top: 5px;
  1587. position: absolute;
  1588. bottom: 0;
  1589. z-index: 1;
  1590. }
  1591. .tab-icon {
  1592. margin-right: 5px;
  1593. /* 图标与文字间距 */
  1594. }
  1595. .row {
  1596. display: flex;
  1597. justify-content: space-between;
  1598. margin-bottom: 40px;
  1599. padding: 0 120px;
  1600. > :nth-child(1) {
  1601. background: url(~@/assets/images/common/u301.png) no-repeat 0 0/100%;
  1602. }
  1603. > :nth-child(2) {
  1604. background: url(~@/assets/images/common/u302.png) no-repeat 0 0/100%;
  1605. }
  1606. }
  1607. }
  1608. }
  1609. }
  1610. </style>