Browse Source

zzy + 元数据项详情

zhiyuan-007 4 months ago
parent
commit
a737fed570

+ 2 - 2
index.html

@@ -2,9 +2,9 @@
 <html lang="en">
   <head>
     <meta charset="UTF-8" />
-    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
+    <link rel="icon" type="image/svg+xml" href="/jianzhu.svg" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <title>Vite + Vue</title>
+    <title>上海市住建行业基础数据应用系统</title>
   </head>
   <body>
     <div id="app"></div>

File diff suppressed because it is too large
+ 1 - 0
public/jianzhu.svg


+ 5 - 0
src/data/all-headers.js

@@ -29,6 +29,11 @@ export const sjxHeaders = [
         label:"空值性",
         width:100
     },
+    {
+        prop:"children",
+        label:"值域",
+        width:100
+    },
     {
         prop:"UNIQUENESS",
         label:"唯一性",

+ 2 - 2
src/store/mapStore.js

@@ -15,8 +15,8 @@ export const useMapStore = defineStore('map',{
         },
         layerDetailObj:{},    //当前服务详情
         layerDetailShow:false,   //服务详情是否开启
-        left_board:false,     //左侧板是否开启
-        right_board:false,    //右侧板是否开启
+        left_board:true,     //左侧板是否开启
+        right_board:true,    //右侧板是否开启
     }),
     persist:true,
     actions:{

+ 3 - 0
src/unit/map/addLayer.js

@@ -57,6 +57,9 @@ export function SetBackground(){
 
 export function FeatureThreeDimension(params){
     debugger
+    if(params.token){
+        params.url = "https://cimweb.zjw.sh.cegn.cn:2008/MapServiceProxy/" + params.token;
+    }
     invokeParams('FeatureThreeDimension', {
         "url": params.url,
         "status": params.status

+ 12 - 1
src/views/c-cpns/LayerDetailDialog.vue

@@ -68,7 +68,18 @@
       </el-tab-pane>
       <el-tab-pane label="数据项" name="sjx">
         <MyTable :table-data="tableData" :headers="sjxHeaders" >
-
+          <template #children="{data}">
+<!--            {{data.children}}-->
+            <el-popover placement="right" :width="250" trigger="hover">
+              <template #reference>
+                {{ data.children?"详情":"" }}
+              </template>
+              <el-table :data="data.children">
+                <el-table-column width="100" property="key" label="编号" />
+                <el-table-column width="150" property="value" label="含义" />
+              </el-table>
+            </el-popover>
+          </template>
         </MyTable>
       </el-tab-pane>
     </el-tabs>

+ 0 - 1
src/views/c-cpns/MyTable.vue

@@ -11,7 +11,6 @@
           v-for="(header, index) in headers"
           :prop="header.prop"
           :label="header.label"
-          show-overflow-tooltip
       >
         <template #default="scope">
           <slot :name="header.prop" :data="scope.row" :index="scope.$index">

+ 4 - 0
src/views/c-cpns/ServiceTree.vue

@@ -61,11 +61,13 @@ export default {
       mapStore.layerDetailShow = true;
     }
     function showLayerGL(data){
+      debugger
       if(showGL&&data.ADDRESS == GLLayer.value){
         showGL.value = false;
         GLLayer.value = '';
         FeatureThreeDimension({
           url:data.ADDRESS,
+          token:data.TOKEN,
           status:"hide"
         })
         return
@@ -73,6 +75,7 @@ export default {
       GLLayer.value = data.ADDRESS;
       FeatureThreeDimension({
         url:data.ADDRESS,
+        token:data.TOKEN,
         status:"show"
       });
     }
@@ -99,6 +102,7 @@ export default {
       for(let i = 0; i < nowChecked.length; i++){
         if(mapStore.currentLayerList.findIndex(i2 =>i2.CODE === nowChecked[i].CODE) == -1){
           mapStore.currentLayerList.push(nowChecked[i]);
+          debugger
           AddSingleLayer({
             type:nowChecked[i].TYPE,
             id:nowChecked[i].S_CODE,