Browse Source

空间链接关系

haojianlong 5 years ago
parent
commit
ea3203b63e

File diff suppressed because it is too large
+ 10 - 6
src/assets/style/iconfont/iconfont.css


BIN
src/assets/style/iconfont/iconfont.eot


File diff suppressed because it is too large
+ 3 - 0
src/assets/style/iconfont/iconfont.svg


BIN
src/assets/style/iconfont/iconfont.ttf


BIN
src/assets/style/iconfont/iconfont.woff


+ 14 - 1
src/components/relation/overview/CardList.vue

@@ -11,7 +11,9 @@
           v-for="(child,childIndex) in item.ChildGraphicTypeList"
           v-for="(child,childIndex) in item.ChildGraphicTypeList"
       >
       >
         <p class="relation-text">
         <p class="relation-text">
-          {{child.GraphTypeName}}
+          <span @click="toDetail(child)" style="cursor:pointer;">
+            {{child.GraphTypeName}}
+            <i class="icon-zuzhiguanxi iconfont"/></span>
           <span class="pic-code">图类型编码:{{child.GraphTypeCode}}</span>
           <span class="pic-code">图类型编码:{{child.GraphTypeCode}}</span>
           <el-tooltip
           <el-tooltip
               :content="child.Note"
               :content="child.Note"
@@ -266,6 +268,17 @@
         this.$emit('openComputed', result)
         this.$emit('openComputed', result)
       },
       },
 
 
+      //空间连接关系详情
+      toDetail(detail){
+        return
+        this.$router.push({ 
+          name: 'relationDetail',
+          query: { 
+            type: detail.GraphTypeCode,
+            RelationTypeProjectList: detail.RelationTypeProjectList
+          } 
+        })
+      }
     },
     },
     components: {RelationMaintain}
     components: {RelationMaintain}
   }
   }

+ 2 - 0
src/router/system.js

@@ -82,6 +82,7 @@ import relatedSpace from '@/views/ledger/cenotelist/relatedSpace'
 /**  关系维护并计算 */
 /**  关系维护并计算 */
 import maintain from '@/views/relation/maintain'
 import maintain from '@/views/relation/maintain'
 import overView from '@/views/relation/overview'
 import overView from '@/views/relation/overview'
+import relationDetail from '@/views/relation/overview/detail'
 import data from '@/views/relation/data'
 import data from '@/views/relation/data'
 import datatable from '@/views/relation/datatable'
 import datatable from '@/views/relation/datatable'
 
 
@@ -486,6 +487,7 @@ export default [{
         children: [
         children: [
             { path: 'maintain', name: 'maintain', component: maintain, meta: { keepAlive: false, breadcrumbs: [{ label: '关系维护' }] } },
             { path: 'maintain', name: 'maintain', component: maintain, meta: { keepAlive: false, breadcrumbs: [{ label: '关系维护' }] } },
             { path: 'overview', name: 'overView', component: overView, meta: { keepAlive: false, breadcrumbs: [{ label: '关系维护计算' },{ label: '全部关系总览' }] } },
             { path: 'overview', name: 'overView', component: overView, meta: { keepAlive: false, breadcrumbs: [{ label: '关系维护计算' },{ label: '全部关系总览' }] } },
+            { path: 'relationDetail', name: 'relationDetail', component: relationDetail, meta: { keepAlive: false, breadcrumbs: [{ label: '关系维护计算' },{ label: '关系详情' }] } },
             { path: 'data', name: 'data', component: data, meta: { keepAlive: false, breadcrumbs: [{ label: '项目数据转换',path:'/relation/data' },{ label: '项目数据转换',path:'/relation/data' }] } },
             { path: 'data', name: 'data', component: data, meta: { keepAlive: false, breadcrumbs: [{ label: '项目数据转换',path:'/relation/data' },{ label: '项目数据转换',path:'/relation/data' }] } },
             { path: 'datatable', name: 'datatable', component: datatable}
             { path: 'datatable', name: 'datatable', component: datatable}
             ]
             ]

+ 13 - 0
src/views/relation/overview/detail/index.vue

@@ -0,0 +1,13 @@
+<template>
+  <div>
+    ...
+  </div>
+</template>
+<script>
+export default {
+  created(){
+    let detail = this.$route.query
+    console.log(detail)
+  }
+}
+</script>