HomePage.vue 51 KB

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