index.vue 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. <template>
  2. <div class="container">
  3. <div class="server_title">
  4. <el-image
  5. style="width: 824px; height: 786px"
  6. src="static/images/wgn_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. “精准计算 + 灵活处理”
  14. 两大核心能力,所有功能均以标准化服务接口形式对外提供(支持第三方委办、上层应用系统调用),同时在系统内部集成可视化操作界面,实现
  15. “计算 - 分析 - 展示” 闭环。
  16. </div>
  17. </div>
  18. </div>
  19. <div class="server_list_box">
  20. <div class="server_list_box_title">微功能列表</div>
  21. <div class="server_list_box_search">
  22. 功能搜索
  23. <el-input
  24. v-model="searchStr"
  25. style="width: 525px; margin-left: 37px"
  26. placeholder="输入搜索关键词"
  27. class="input-with-select"
  28. clearable
  29. size="large"
  30. @change="searchServerList()"
  31. >
  32. <template #append>
  33. <el-button icon="Search" @click="searchServerList()" />
  34. </template>
  35. </el-input>
  36. </div>
  37. <div class="server_list_box_table" v-if="dmsServerList">
  38. <div
  39. v-for="item in dmsServerList"
  40. :key="item.c_scene_name"
  41. class="server_list_box_table_item"
  42. >
  43. <div class="server_list_box_table_item_content">
  44. <div class="server_list_box_table_item_content_title">{{ item.title }}</div>
  45. <div class="server_list_box_table_item_content_text">{{ item.content }}</div>
  46. <div class="server_list_box_table_item_content_button_box">
  47. <div
  48. class="server_list_box_table_item_content_button_box_item"
  49. @click.stop="handleOnlineDemo(item)"
  50. >
  51. 在线演示
  52. </div>
  53. <div
  54. class="server_list_box_table_item_content_button_box_item"
  55. @click.stop="handleApply(item)"
  56. >
  57. 申请使用
  58. </div>
  59. </div>
  60. </div>
  61. <div class="server_list_box_table_item_image">
  62. <el-image
  63. style="width: 690px; height: 410px"
  64. :src="dmsDataProxy + item.c_picture"
  65. fit="cover"
  66. />
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </template>
  73. <script>
  74. import { getDmsData } from "../../api/wgn";
  75. export default {
  76. name: "微功能服务",
  77. data() {
  78. return {
  79. // 搜索关键词
  80. searchStr: "",
  81. // 微功能服务列表
  82. dmsServerList: [],
  83. // DMS数据代理地址
  84. dmsDataProxy: "",
  85. };
  86. },
  87. mounted() {
  88. this.dmsDataProxy = systemConfig.dmsDataProxy;
  89. this.searchServerList();
  90. },
  91. methods: {
  92. // 搜索微功能服务
  93. searchServerList() {
  94. let requestParams = {
  95. columnId: 1651,
  96. states: 0,
  97. pageSize: 999,
  98. page: 0,
  99. };
  100. if (this.searchStr) {
  101. requestParams.search = JSON.stringify([
  102. {
  103. field: "title",
  104. searchType: 2,
  105. content: { value: "%" + this.searchStr + "%" },
  106. },
  107. ]);
  108. }
  109. // 获取微功能服务列表
  110. getDmsData(requestParams)
  111. .then((res) => {
  112. if (res.code === 200) {
  113. this.dmsServerList = res.content.data;
  114. this.$message({
  115. message: "搜索到" + this.dmsServerList.length + "条微功能服务",
  116. type: "success",
  117. });
  118. } else {
  119. this.$message({
  120. message: "搜索到0条微功能服务",
  121. type: "warning",
  122. });
  123. }
  124. })
  125. .catch((e) => {
  126. this.$message({
  127. message: "搜索微功能服务失败" + e,
  128. type: "error",
  129. });
  130. });
  131. },
  132. // 申请使用微功能服务
  133. handleApply(item) {
  134. this.$confirm("确认申请使用" + item.title + "吗?", "提示", {
  135. confirmButtonText: "确定",
  136. cancelButtonText: "取消",
  137. type: "warning",
  138. })
  139. .then(() => {
  140. // 确认申请使用
  141. this.$message({
  142. message: "申请使用" + item.title + "?等url吧!",
  143. type: "success",
  144. });
  145. })
  146. .catch(() => {
  147. // 取消申请使用
  148. });
  149. },
  150. // 在线演示微功能服务
  151. handleOnlineDemo(item) {
  152. // 1. 解析目标路由(支持传参、命名路由等)
  153. const routeData = this.$router.resolve({
  154. path: "/skszk", // 时空算子库
  155. query: { sceneId: item.c_scene_name },
  156. });
  157. // 2. 打开新窗口(_blank 表示新窗口)
  158. window.open(routeData.href, "_blank");
  159. },
  160. },
  161. };
  162. </script>
  163. <style lang="less" scoped>
  164. .container {
  165. width: 100vw;
  166. margin: 0 auto;
  167. background-color: #08224a;
  168. }
  169. .server_title {
  170. display: flex;
  171. justify-content: center;
  172. align-items: center;
  173. }
  174. .server_title_text {
  175. width: calc(100vw - 824px);
  176. height: 786px;
  177. background-color: #1c2631;
  178. color: #fff;
  179. padding: 0 160px 0 60px;
  180. display: flex;
  181. flex-direction: column;
  182. justify-content: center;
  183. overflow: hidden;
  184. &_title {
  185. font-size: 64px;
  186. font-weight: bold;
  187. letter-spacing: 0.5rem;
  188. }
  189. &_content {
  190. margin-top: 77px;
  191. font-size: 22px;
  192. }
  193. }
  194. .server_list_box {
  195. width: 100vw;
  196. background-color: rgba(0, 0, 0, 0.15);
  197. display: flex;
  198. flex-direction: column;
  199. align-items: center;
  200. color: #fff;
  201. &_title {
  202. margin-top: 100px;
  203. font-size: 35px;
  204. font-weight: bold;
  205. position: relative;
  206. &::after {
  207. content: "";
  208. position: absolute;
  209. bottom: -12px;
  210. left: 50%;
  211. transform: translateX(-50%);
  212. width: 100px;
  213. height: 4px;
  214. background-image: linear-gradient(to right, #1d88f0, #00bfff);
  215. }
  216. }
  217. &_search {
  218. margin-top: 100px;
  219. font-size: 25px;
  220. display: flex;
  221. flex-wrap: nowrap;
  222. align-items: center;
  223. width: -webkit-fill-available;
  224. justify-content: center;
  225. }
  226. &_table {
  227. margin-top: 50px;
  228. width: 100vw;
  229. &_item {
  230. display: flex;
  231. justify-content: space-evenly;
  232. align-items: center;
  233. padding: 100px 0;
  234. &:nth-child(odd) {
  235. flex-direction: row;
  236. }
  237. &:nth-child(even) {
  238. flex-direction: row-reverse;
  239. }
  240. &_content {
  241. width: 760px;
  242. height: 100px;
  243. display: flex;
  244. flex-direction: column;
  245. justify-content: center;
  246. align-items: center;
  247. &_title {
  248. font-size: 35px;
  249. font-weight: bold;
  250. color: #4095e5;
  251. }
  252. &_text {
  253. margin-top: 35px;
  254. font-size: 18px;
  255. }
  256. &_button_box {
  257. display: flex;
  258. justify-content: space-evenly;
  259. width: 100%;
  260. &_item {
  261. margin-top: 35px;
  262. font-size: 20px;
  263. letter-spacing: 0.2rem;
  264. color: #4095e5;
  265. border: 1px solid #4095e5;
  266. border-radius: 10px;
  267. padding: 10px 36px;
  268. cursor: pointer;
  269. &:hover {
  270. background-color: #4095e5;
  271. color: #fff;
  272. }
  273. }
  274. }
  275. }
  276. &_image {
  277. width: 690px;
  278. display: flex;
  279. justify-content: center;
  280. align-items: center;
  281. border-radius: 30px;
  282. overflow: hidden;
  283. }
  284. }
  285. }
  286. }
  287. </style>