Browse Source

Merge branch 'master' of http://221.182.8.141:11666/sujunlin/xld-gis-admin

XiaXxxxxx 1 year ago
parent
commit
4986798cb8

+ 6 - 0
index.html

@@ -15,6 +15,12 @@
   <title>空间数据管理平台</title>
   <link rel="icon" href="/favicon.ico" />
   <style>
+    .ant-select-disabled.ant-select-multiple .ant-select-selection-item,
+    .ant-select-disabled.ant-select:not(.ant-select-customize-input) .ant-select-selector,
+    .ant-input[disabled] {
+      color: #555555 !important;
+    }
+
     #account:-webkit-autofill {
       -webkit-text-fill-color: white !important;
       background: transparent;

+ 87 - 0
public/mapsee.html

@@ -0,0 +1,87 @@
+<!DOCTYPE html>
+<html lang="en" id="htmlRoot">
+
+<head>
+    <meta charset="UTF-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+    <meta name="renderer" content="webkit" />
+    <meta name="keywords" content="空间数据管理平台" />
+    <meta name="description" content="空间数据管理平台" />
+    <meta http-equiv="Expires" content="0" />
+    <meta http-equiv="Cache-control" content="no-cache" />
+    <meta http-equiv="Cache" content="no-cache" />
+    <title>空间数据管理平台</title>
+    <link rel="icon" href="/favicon.ico" />
+    <style>
+        body {
+            margin: 0;
+            padding: 0;
+            overflow: hidden;
+            -ms-overflow-style: none;
+            scrollbar-width: none;
+        }
+
+        body::-webkit-scrollbar {
+            display: none;
+        }
+    </style>
+</head>
+
+<body>
+    <script>
+        window.οncοntextmenu = function (e) { return false; };
+        window.onkeydown = function () {
+            if (window.event && window.event.keyCode == 123) {
+                return false;
+            }
+            if (window.event && window.event.keyCode == 17) {
+                return false
+                if (window.event && window.event.keyCode == 16) {
+                    return false;
+                }
+            };
+
+        };
+        // const check = () => {
+        //     const doCheck = (a) => {
+        //         (function () { }["constructor"]("debugger")());
+        //         doCheck(++a);
+        //     };
+        //     try {
+        //         doCheck(0);
+        //     } catch (err) {
+        //         console.log("err", err);
+        //     }
+        // };
+        // check();
+        // setInterval(check, 1000);
+
+        window.onload = function () {
+            var obj = JSON.parse(JSON.stringify(window.location.href));
+            var arr = obj.split("?")
+            if (arr.length && arr[1]) {
+                if (arr[1].indexOf("onlineIde_") > -1) {
+                    creteIframe(`http://106.12.170.138:4001/examples/online.html#${arr[1].replace("onlineIde_", "")}`)
+                    // creteIframe(`http://127.0.0.1:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
+                    // creteIframe(`http://192.168.193.88:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
+                } else {
+                    // creteIframe(arr[1])
+                    // creteIframe(`http://192.168.193.88:8080/examples/webgl/onlineIde.html#${arr[1].replace("onlineIde_", "")}`)
+                    // creteIframe(`http://192.168.119.143:8080/onemapV5.0/mapview.html?${arr[1]}`)
+                    creteIframe(`http://106.12.170.138:8080/onemapV5.0/mapview.html?${arr[1]}`)
+                }
+            }
+        }
+
+        function creteIframe(url) {
+            const iframe = document.createElement('iframe');
+            iframe.style.width = '100vw';
+            iframe.style.height = '100vh';
+            iframe.style.border = '0px';
+            iframe.src = url;
+            document.body.appendChild(iframe);
+        }
+    </script>
+</body>
+
+</html>

+ 2 - 2
src/views/assembly/item/AssemblyData.vue

@@ -10,8 +10,8 @@
             <div><img :src="i.url" srcset=""></div>
             <b>{{ i.servicename }}</b>
             <p class="bottomBut">
-              <span><a :href="[`./mapview.html?onlineIde_${i.servicealiasname}`]" target="_blank"
-                  rel="noopener noreferrer">浏览</a></span>
+              <span><a :href="[`./map${i.SFJRSQK == '审核通过'?'view':'see'}.html?onlineIde_${i.servicealiasname}`]"
+                  target="_blank" rel="noopener noreferrer">浏览</a></span>
               <!-- <span @click="showDrawer(i)">详细</span> -->
               <span @click="handleDetailInfo(i)" style="color: #2D74E7;">详细</span>
               <span @click="applyWay(i)" v-if="i.SFJRSQK == '未加入'">加入申请库</span>

+ 3 - 2
src/views/assembly/item/child/DetailModal.vue

@@ -23,8 +23,9 @@
                 <div class="info-title">基本信息</div>
                 <div class="form-box">
                     <a-row>
-                        <a-col :span="3" class="form-item-title form-title">真实地址</a-col>
-                        <a-col :span="21" class="form-item-value form-title">{{ baseInfo.zsdz }}</a-col>
+                        <a-col :span="3" class="form-item-title form-title">资源地址</a-col>
+                        <!-- <a-col :span="21" class="form-item-value form-title">{{ baseInfo.zsdz }}</a-col> -->
+                        <a-col :span="21" class="form-item-value form-title">{{ '' }}</a-col>
                     </a-row>
                     <a-row>
                         <a-col :span="12">

+ 15 - 11
src/views/interface/item/child/Details.vue

@@ -7,13 +7,13 @@
                 <div class="title">基本信息</div>
                 <div class="btns">
                     <div class="btn" @click="openActionRemark">调试说明</div>
-                    <div class="btn" @click="openActionMock">在线调试</div>
+                    <div id="interfaceShow" class="btn" @click="openActionMock">在线调试</div>
                 </div>
             </div>
             <div class="item-body">
                 <div class="des" v-for="(item, index) of baseData" :key="index">
                     <div class="des-label">{{ item.label }}:</div>
-                    <div v-if="item.label!=='接口描述'">{{ item.value }}</div>
+                    <div v-if="item.label !== '接口描述'">{{ item.value }}</div>
                     <div v-else v-html="item.value"></div>
                 </div>
             </div>
@@ -51,7 +51,7 @@
             </div>
         </div>
     </div>
-    <a-modal v-model:visible="visible" centered title="调用说明"  width="700px" :footer="null">
+    <a-modal v-model:visible="visible" centered title="调用说明" width="700px" :footer="null">
         <div class="content" style="padding: 20px 10px 10px;font-size: 16px;">
             <p>· 使用需鉴权的接口要在网络请求头(Http Headers)中添加参数(Authorization)项,设置已授权的令牌(JWT:JSON Web Tokens)</p>
             <p>· 获取授权的JWT如下:</p>
@@ -62,7 +62,7 @@
             <p>5). 注意:access_token有效期为:30分钟,过期需重新获取</p>
         </div>
     </a-modal>
-    <ActionMock v-if="showActionMock" @closeModal="showActionMock = false" :action="actionData"/>
+    <ActionMock v-if="showActionMock" @closeModal="showActionMock = false" :action="actionData" />
 </template>
 
 <script>
@@ -79,7 +79,7 @@ const props = {
 
 export default defineComponent({
     name: 'assemblyDetail',
-    components: {ActionMock},
+    components: { ActionMock },
     props,
     setup(props) {
         //action数据,初始化时使用这个数据去组装需要的数据
@@ -205,11 +205,11 @@ export default defineComponent({
                 ]
                 reqData.value = actionData.value.queryParams
                 reqData.value.unshift({
-                    description:'令牌',
-                    in:'header',
-                    name:'Authorization',
-                    required:false,
-                    type:'string'
+                    description: '令牌',
+                    in: 'header',
+                    name: 'Authorization',
+                    required: false,
+                    type: 'string'
                 })
                 reqData.value.forEach((item, index) => {
                     item.key = index
@@ -225,7 +225,7 @@ export default defineComponent({
         const openActionRemark = () => {
             visible.value = true;
         }
-        const openActionMock = ()=>{
+        const openActionMock = () => {
             showActionMock.value = true
         }
         return {
@@ -249,6 +249,10 @@ export default defineComponent({
 </script>
 
 <style lang="less" scoped>
+#interfaceShow {
+    display: none;
+}
+
 .assembly-detail {
     .detail-item {
         margin-top: 10px;

+ 7 - 1
src/views/resource/plat/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="p-4">
-    <div class="resoure-center">
+    <div class="resoure-center resouresList">
       <div class="datacenter-left">
         <div class="page-name">
           <p>数据目录</p>
@@ -159,6 +159,12 @@ export default defineComponent({
   },
 });
 </script>
+<style>
+.resouresList .ant-tabs-nav .ant-tabs-tab {
+  font-weight: bold;
+  font-size: 16px;
+}
+</style>
 <style lang="less" scoped>
 .p-4 {
   height: 100%;

+ 3 - 2
src/views/resource/plat/item/FileData.vue

@@ -27,7 +27,7 @@
           </div>
           <div class="operation-box">
             <div class="left">
-              <div class="operation-item browse-item-btn browse-item-MR00001936">
+              <div class="operation-item browse-item-btn browse-item-MR00001936" v-if="i.SFJRSQK === '审核通过'">
                 <a target="_blank"
                   :href="(i.info && i.info.length && i.info[0].thumbnail) || './static/img/default-dr3.jpg'">
                   <span style="color: #2D74E7;">浏览</span>
@@ -59,6 +59,7 @@
             </div>
           </div>
         </div>
+        <a-empty style="margin: 100px auto;" v-else description="暂无数据"></a-empty>
       </div>
     </div>
     <MyPage :total="total"></MyPage>
@@ -73,7 +74,7 @@ import DetailModal from './child/DetailModal.vue';
 import Search from './child/Search.vue';
 import { platList, img, apply, tagAjax } from '/@/api/resource/plat';
 import { session } from '/@/utils/Memory';
-import { message } from 'ant-design-vue';
+import { message, Empty } from 'ant-design-vue';
 import MyPage from './child/MyPage.vue';
 import { setHtmlImg } from '/@/views/minWidgets/CommonWay.js';
 

+ 2 - 1
src/views/resource/plat/item/MapData.vue

@@ -58,6 +58,7 @@
             </div>
           </div>
         </div>
+        <a-empty style="margin: 100px auto;" v-else description="暂无数据"></a-empty>
       </div>
     </div>
     <MyPage :total="total"></MyPage>
@@ -68,7 +69,7 @@
 <script>
 import { defineComponent, defineEmits, nextTick, onMounted, ref, defineProps, watch } from 'vue';
 import { platList, img, apply, tagAjax } from '/@/api/resource/plat';
-import { message } from 'ant-design-vue';
+import { message, Empty } from 'ant-design-vue';
 // 导入子页面【详情】
 import DetailModal from './child/DetailModal.vue';
 import Search from './child/Search.vue';

+ 2 - 1
src/views/resource/plat/item/SceneData.vue

@@ -58,6 +58,7 @@
             </div>
           </div>
         </div>
+        <a-empty style="margin: 100px auto;" v-else description="暂无数据"></a-empty>
       </div>
     </div>
     <MyPage :total="total"></MyPage>
@@ -68,7 +69,7 @@
 <script>
 import { defineComponent, nextTick, onMounted, ref, defineProps, watch } from 'vue';
 import { BasicTable, useTable, TableAction } from '/@/components/Table';
-import { Popconfirm, Tooltip } from 'ant-design-vue';
+import { Popconfirm, Tooltip, Empty } from 'ant-design-vue';
 import { Authority } from '/@/components/Authority';
 // 加载自定义侧边弹出框 组件
 import { useDrawer } from '/@/components/Drawer';

+ 9 - 5
src/views/resource/plat/item/child/DetailModal.vue

@@ -13,7 +13,7 @@
                         <div class="update-time">更新时间:{{ baseInfo.updatedate }}</div>
                         <div class="service-type">服务类型:{{ baseInfo.servicetype }}</div>
                     </div>
-                    <div class="look">
+                    <div class="look" v-if="seeShow">
                         <a target="_blank" :href="`./mapview.html?${baseInfo.serviceid}`">
                             <span>浏览</span>
                         </a>
@@ -24,8 +24,8 @@
                 <div class="info-title">基本信息</div>
                 <div class="form-box">
                     <a-row>
-                        <a-col :span="3" class="form-item-title form-title">真实地址</a-col>
-                        <a-col :span="21" class="form-item-value form-title">{{ baseInfo.mapingurl }}</a-col>
+                        <a-col :span="3" class="form-item-title form-title">资源地址</a-col>
+                        <a-col :span="21" class="form-item-value form-title">{{ '' }}</a-col>
                     </a-row>
                     <a-row>
                         <a-col :span="12">
@@ -209,7 +209,8 @@
                         <a-col :span="12">
                             <a-row>
                                 <a-col :span="6" class="form-item-title form-title" style="border-left: none;">是否共享</a-col>
-                                <a-col :span="18" class="form-item-value form-title">{{ metaInfo.searched === '1' ? '是' : '否'
+                                <a-col :span="18" class="form-item-value form-title">{{ metaInfo.searched === '1' ? '是' :
+                                    '否'
                                 }}</a-col>
                             </a-row>
                         </a-col>
@@ -268,11 +269,13 @@ export default defineComponent({
         }
         const baseInfo = ref({})
         const metaInfo = ref({})
+        const seeShow = ref(false);
         //初始化请求所需数据
         onMounted(async () => {
             console.log(props.resId);
             let res = await getResViewInfo(props.resId)
             console.log(res);
+            seeShow.value = res.type == 'DR' ? false : true;
             baseInfo.value = res.servicebase;
             baseInfo.value.thumbnail = res.metadata.thumbnail
             session.getItem('thumbnail2') && (baseInfo.value.thumbnail2 = session.getItem('thumbnail2'));
@@ -305,7 +308,7 @@ export default defineComponent({
                         let tags = metaInfo.value.keywords.indexOf('[') > -1 ? JSON.parse(metaInfo.value.keywords) : [metaInfo.value.keywords];
                         let resStr = ''
                         tags.forEach(tag => {
-                            serviceTagsObj[tag]? resStr += serviceTagsObj[tag] + ',' : resStr += ''
+                            serviceTagsObj[tag] ? resStr += serviceTagsObj[tag] + ',' : resStr += ''
                         })
                         metaInfo.value.serviceTags = resStr.slice(0, -1)
                     }
@@ -317,6 +320,7 @@ export default defineComponent({
             }
         })
         return {
+            seeShow,
             // setHtmlImg,
             baseInfo,
             metaInfo,

+ 1 - 1
src/views/resource/plat/item/child/Search.vue

@@ -7,7 +7,7 @@
             </a-select>
         </span>
         <span>
-            <a-input-search allowClear v-model:value="keyWord" placeholder="请输入搜索内容" style="width: 200px"
+            <a-input-search allowClear v-model:value="keyWord" placeholder="请输入标题名称" style="width: 200px"
                 @search="onSearch" />
         </span>
         <a-checkbox v-model:checked="checkAll" :indeterminate="indeterminate" @change="onCheckAllChange">