Sksjgl.vue 14 KB

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