Sksjgl.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. <template>
  2. <div class="sksjgl container">
  3. <div class="server_title">
  4. <el-image
  5. style="width: 50%; height: calc(100vh - 120px)"
  6. src="static/images/sksjgl/sksjgl_title.png"
  7. fit="cover"
  8. />
  9. <div class="server_title_text">
  10. <div class="server_title_text_title">时空数据管理</div>
  11. <div class="server_title_text_content">
  12. 二维数据服务是围绕二维地理信息数据展开的综合服务体系。它涵盖以像元阵列形式存储的栅格服务,广泛应用于影像地图展示、地形分析等;通过将地图切割成小图片进行快速加载的瓦片服务,提升地图浏览流畅度;能够精确表达地理要素几何形状和属性的矢量时空数据服务,记录地理对象随时间的变化;以及包含特定主题数据集合的专题库服务,如交通专题库、土地利用专题库等,满足不同行业对特定地理信息的深度挖掘与分析需求,为城市规划、资源管理、环境监测等领域提供有力的数据支撑。
  13. </div>
  14. </div>
  15. </div>
  16. <div class="checkModule">
  17. <!-- 流程步骤 -->
  18. <div class="process-bar">
  19. <div
  20. :class="{ 'process-item': true, active: activePanel == 'sjzljc' }"
  21. @click="changePanel('sjzljc')"
  22. >
  23. <div class="icon-box"></div>
  24. <div class="label">数据质量检查</div>
  25. </div>
  26. <div class="divider"></div>
  27. <div
  28. :class="{ 'process-item': true, active: activePanel == 'sksjjg' }"
  29. @click="changePanel('sksjjg')"
  30. >
  31. <div class="icon-box"></div>
  32. <div class="label">时空数据加工</div>
  33. </div>
  34. <div class="divider"></div>
  35. <div
  36. :class="{ 'process-item': true, active: activePanel == 'sksjgl' }"
  37. @click="changePanel('sksjgl')"
  38. >
  39. <div class="icon-box"></div>
  40. <div class="label">时空数据管理</div>
  41. </div>
  42. <div class="divider"></div>
  43. <div
  44. :class="{ 'process-item': true, active: activePanel == 'sksjfb' }"
  45. @click="changePanel('sksjfb')"
  46. >
  47. <div class="icon-box"></div>
  48. <div class="label">时空数据发布</div>
  49. </div>
  50. </div>
  51. <!-- 流程内容 -->
  52. <div class="process-content">
  53. <div
  54. class="process-content-item"
  55. v-for="(item, index) in nowFuncContent"
  56. :key="index"
  57. >
  58. <a :href="item.url" target="_blank" rel="noopener noreferrer">
  59. <div
  60. class="pictrue"
  61. :style="{
  62. background: 'url(' + item.image + ') no-repeat center center/100% 100%',
  63. }"
  64. ></div>
  65. <div class="label">{{ item.label }}</div>
  66. </a>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="time-space-operator-lib">
  71. <!-- 标题区域 -->
  72. <div class="title-section">
  73. <h1>时空算子库</h1>
  74. </div>
  75. <!-- 描述区域 -->
  76. <div class="desc-section">
  77. <p>
  78. 时空算子库具备丰富且强大的功能能力,在空间计算方面,涵盖量托轮廓下的宽度和面积计算,可利用投影坐标系结合既定定理与比例尺换算公式计算宽度,将多边形分割成三角形计算面积;还能判断点线面体的相互状态,通过计算点到线距离、射线法等方式判断点与线、面关系,利用计算几何方法判断线与线、线与面、体与点线面的关系;可进行缓冲区计算,以点、线、面为基础按给定距离生成缓冲区,支持线面体分割,依据指定规则对其进行分割并重新构建边和拓扑关系。在时空分析方面,能够对个面进行时空差异分析,判断空间重叠部分并通过求差来得到不相交面,同时考虑时间因素分析不同时间点面的状态变化。
  79. </p>
  80. </div>
  81. <!-- 业务专区区域 -->
  82. <div class="business-section">
  83. <div class="business-header">
  84. <span>业务专属时空数据</span>
  85. <!-- <button class="more-btn">查看更多</button> -->
  86. </div>
  87. <!-- 功能卡片列表 -->
  88. <!-- 单个功能卡片 -->
  89. <div class="card-list">
  90. <div
  91. class="card-item"
  92. v-for="(item, index) in cardList"
  93. :key="index"
  94. @click.stop="handleOnlineDemo(item)"
  95. >
  96. <div class="card-title">{{ item.title.split("/")[1] }}</div>
  97. <div class="card-bg">
  98. <el-image
  99. style="width: 100%; height: 100%"
  100. :src="dmsDataProxy + item.c_picture"
  101. fit="cover"
  102. />
  103. </div>
  104. <div class="card-desc">{{ item.content }}</div>
  105. </div>
  106. </div>
  107. </div>
  108. </div>
  109. </div>
  110. </template>
  111. <script>
  112. import wgn from "@/api/wgn";
  113. export default {
  114. data() {
  115. return {
  116. dmsDataProxy: "",
  117. activePanel: "sjzljc",
  118. funcList: systemConfig.sksjgl.funcList,
  119. nowFuncContent: [],
  120. cardList: [],
  121. };
  122. },
  123. mounted() {
  124. this.dmsDataProxy = systemConfig.dmsDataProxy;
  125. this.changePanel(this.activePanel);
  126. this.searchServerList();
  127. },
  128. methods: {
  129. changePanel(active) {
  130. this.activePanel = active;
  131. this.nowFuncContent = this.funcList[this.activePanel];
  132. },
  133. // 搜索微功能服务
  134. searchServerList() {
  135. let requestParams = {
  136. columnId: 1651,
  137. states: 0,
  138. pageSize: 999,
  139. page: 0,
  140. };
  141. requestParams.search = JSON.stringify([
  142. {
  143. field: "title",
  144. searchType: 2,
  145. content: { value: "%时空算子库%" },
  146. },
  147. ]);
  148. // 获取微功能服务列表
  149. wgn
  150. .getDmsData(requestParams)
  151. .then((res) => {
  152. if (res.code === 200) {
  153. this.cardList = res.content.data;
  154. } else {
  155. this.$message({
  156. message: "搜索到0条微功能服务",
  157. type: "warning",
  158. });
  159. }
  160. })
  161. .catch((e) => {
  162. this.$message({
  163. message: "搜索微功能服务失败" + e,
  164. type: "error",
  165. });
  166. });
  167. },
  168. // 在线演示微功能服务
  169. handleOnlineDemo(item) {
  170. let routerPath = {};
  171. // 1. 解析目标路由(支持传参、命名路由等)
  172. if (item.c_scene_name == "view") {
  173. routerPath = {
  174. path: item.c_url,
  175. };
  176. } else {
  177. routerPath = {
  178. path: "/wgnSingle", // 微功能
  179. query: { sceneId: item.c_scene_name },
  180. };
  181. }
  182. const routeData = this.$router.resolve(routerPath);
  183. // 2. 打开新窗口(_blank 表示新窗口)
  184. window.open(routeData.href, "_blank");
  185. },
  186. },
  187. };
  188. </script>
  189. <style lang="less" scoped>
  190. .container {
  191. width: 100%;
  192. margin: 0 auto;
  193. .server_title {
  194. display: flex;
  195. justify-content: center;
  196. align-items: center;
  197. .server_title_text {
  198. width: calc(100vw - 824px);
  199. height: calc(100vh - 120px);
  200. background-color: #1c2631;
  201. color: #fff;
  202. padding: 0 160px 0 60px;
  203. display: flex;
  204. flex-direction: column;
  205. justify-content: center;
  206. overflow: hidden;
  207. &_title {
  208. font-size: 64px;
  209. font-weight: bold;
  210. letter-spacing: 0.5rem;
  211. }
  212. &_content {
  213. margin-top: 77px;
  214. font-size: 22px;
  215. }
  216. }
  217. }
  218. .checkModule {
  219. width: 100%;
  220. background-color: #0f2545;
  221. /* 流程步骤样式 */
  222. .process-bar {
  223. width: fit-content;
  224. margin: 0 auto;
  225. padding-top: 100px;
  226. padding-bottom: 100px;
  227. .process-item {
  228. width: 250px;
  229. height: 200px;
  230. display: inline-block;
  231. color: #ffffff;
  232. cursor: pointer;
  233. border-radius: 10px;
  234. padding: 10px 15px;
  235. .icon-box {
  236. width: 90px;
  237. height: 90px;
  238. text-align: center;
  239. margin: 30px 80px 30px 80px;
  240. }
  241. .label {
  242. height: 50px;
  243. line-height: 50px;
  244. font-size: 24px;
  245. text-align: center;
  246. letter-spacing: 5px;
  247. }
  248. &.active {
  249. background-color: rgba(64, 149, 229, 0.69);
  250. }
  251. &:hover {
  252. background-color: rgba(64, 149, 229, 0.69);
  253. }
  254. &:nth-child(1) .icon-box {
  255. background: url("~@/assets/images/sksjgl/sjzljc.png") no-repeat center
  256. center/100% 100%;
  257. }
  258. &:nth-child(3) .icon-box {
  259. background: url("~@/assets/images/sksjgl/sksjjg.png") no-repeat center
  260. center/100% 100%;
  261. }
  262. &:nth-child(5) .icon-box {
  263. background: url("~@/assets/images/sksjgl/sksjgl.png") no-repeat center
  264. center/100% 100%;
  265. }
  266. &:nth-child(7) .icon-box {
  267. background: url("~@/assets/images/sksjgl/sksjfb.png") no-repeat center
  268. center/100% 100%;
  269. }
  270. }
  271. .divider {
  272. width: 60px;
  273. height: 200px;
  274. vertical-align: top;
  275. display: inline-block;
  276. background: url("~@/assets/images/sksjgl/jiantou.png") no-repeat center
  277. center/100%;
  278. }
  279. }
  280. /* 流程内容样式 */
  281. .process-content {
  282. width: 100%;
  283. padding: 50px 150px;
  284. box-sizing: border-box;
  285. display: flex;
  286. /* 允许换行 */
  287. flex-wrap: wrap;
  288. /* 元素之间的间距(可选) */
  289. gap: 75px;
  290. .process-content-item {
  291. /* 核心:每行2个,扣除gap间距 */
  292. width: calc(50% - 38px);
  293. // height: 400px;
  294. // background: #f0f8ff;
  295. // border: 1px solid #409eff;
  296. display: flex;
  297. align-items: center;
  298. justify-content: center;
  299. font-size: 18px;
  300. color: #333;
  301. a {
  302. width: 100%;
  303. height: 100%;
  304. .pictrue {
  305. width: 100%;
  306. aspect-ratio: 1920 / 900;
  307. border-radius: 8px;
  308. transition: all 0.3s ease;
  309. }
  310. .label {
  311. color: #ffffff;
  312. text-align: center;
  313. height: 70px;
  314. line-height: 70px;
  315. font-size: 24px;
  316. }
  317. }
  318. &:hover .pictrue {
  319. transform: scale(1.05) translateY(-5px);
  320. box-shadow: 0 10px 30px rgba(24, 144, 255, 0.3);
  321. border-color: rgba(24, 144, 255, 0.6);
  322. }
  323. }
  324. }
  325. }
  326. .time-space-operator-lib {
  327. background-color: #1e407c;
  328. color: #fff;
  329. padding: 100px 150px;
  330. box-sizing: border-box;
  331. /* 标题区域 */
  332. .title-section {
  333. text-align: center;
  334. margin-bottom: 50px;
  335. h1 {
  336. font-size: 50px;
  337. font-weight: bold;
  338. }
  339. }
  340. /* 描述区域 */
  341. .desc-section {
  342. margin-bottom: 30px;
  343. line-height: 2;
  344. font-size: 20px;
  345. text-indent: 2em;
  346. }
  347. /* 业务专区区域 */
  348. .business-section {
  349. margin-top: 20px;
  350. border-radius: 16px 16px 16px 16px;
  351. background-color: rgba(31, 41, 55, 0.16);
  352. border: 1px solid #374151;
  353. padding: 20px 20px;
  354. box-sizing: border-box;
  355. .business-header {
  356. display: flex;
  357. justify-content: space-between;
  358. align-items: center;
  359. margin-bottom: 15px;
  360. font-size: 16px;
  361. span {
  362. font-size: 20px;
  363. }
  364. .more-btn {
  365. background-color: transparent;
  366. border: 1px solid #fff;
  367. color: #fff;
  368. padding: 4px 12px;
  369. border-radius: 4px;
  370. cursor: pointer;
  371. }
  372. }
  373. }
  374. /* 卡片列表 */
  375. .card-list {
  376. display: flex;
  377. grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  378. justify-content: space-between;
  379. .card-item {
  380. background-color: rgba(255, 255, 255, 0.1);
  381. padding: 15px;
  382. border-radius: 8px;
  383. height: 240px;
  384. display: flex;
  385. width: 10vw;
  386. flex-direction: column;
  387. &:hover {
  388. cursor: pointer;
  389. box-shadow: 0 10px 30px rgba(24, 144, 255, 0.3);
  390. border-color: rgba(24, 144, 255, 0.6);
  391. }
  392. .card-title {
  393. font-size: 15px;
  394. font-weight: 500;
  395. margin-bottom: 10px;
  396. }
  397. .card-bg {
  398. flex: 1;
  399. border-radius: 4px;
  400. margin: 8px 0;
  401. }
  402. .card-desc {
  403. font-size: 12px;
  404. opacity: 0.8;
  405. line-height: 1.4;
  406. /* 文字最多显示两行,超出部分省略号 */
  407. overflow: hidden;
  408. text-overflow: ellipsis;
  409. display: -webkit-box;
  410. -webkit-line-clamp: 2;
  411. -webkit-box-orient: vertical;
  412. }
  413. }
  414. }
  415. }
  416. }
  417. </style>