Browse Source

实体列表

maxiaoxiao 5 months ago
parent
commit
77508c5de8

+ 8 - 2
src/api/basicGeographic.js

@@ -8,7 +8,13 @@ export function getEntityTree(params) {
         params
     })
 }
-
+export function getList(params) {
+    return request({
+        url: '/apply/dimentity/entity/code/table/list',
+        method: 'get',
+        params
+    })
+}
 export function getData(params) {
     return request({
         url: '/apply/dimentity/entity/data',
@@ -16,7 +22,7 @@ export function getData(params) {
         params
     })
 }
-// 驾驶舱
+// 实体关系
 export function getRelationship(params) {
     return request({
         url: '/apply/dimentity/entity/relationship',

+ 2 - 2
src/common/scss/globe.scss

@@ -147,8 +147,8 @@ div {
     padding-left: 15px;
     border-bottom: 1px solid rgba(38, 38, 38, 0.6);
     background: url(/static/images/ghzc//second_titlebg.png) no-repeat;
-    background-size: 100% 100%;
-    background-position: center;
+    background-size: contain;
+    // background-position: center;
     text-align: left;
     font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
     font-weight: bold;

+ 12 - 1
src/components/echartsTemplate/graph.vue

@@ -64,7 +64,17 @@ let option = {
         },
       },
       symbolKeepAspect: false,
-      focusNodeAdjacency: true, // 指定的节点以及其所有邻接节点高亮
+      focusNodeAdjacency: false, // 指定的节点以及其所有邻接节点高亮
+      emphasis: {
+        // focus: 'none', // 不受鼠标操作影响
+        label: {
+          show: true // 显示标签
+        },
+        itemStyle: {
+          borderColor: 'red',
+          borderWidth: 2
+        }
+      },
       itemStyle: {
         normal: {
           borderColor: "#29ACFC",
@@ -153,6 +163,7 @@ export default {
         });
       });
       this.myChart.on('mouseout', (params) => {
+        this.$emit("mouseout", params)
         if (this.timer) clearTimeout(this.timer);
         this.timer = setTimeout(() => {
           var menu = document.getElementById('myContext');

+ 13 - 3
src/components/mapView/tablePage.vue

@@ -12,10 +12,13 @@
       fit
       :tree-props="treeProps"
       row-key="bsm"
+      @selection-change="selectionChange"
     >
       <el-table-column v-if="indexed" label="序号" width="70px" align="center">
         <template slot-scope="scope">{{ scope.$index + 1 }}</template>
       </el-table-column>
+      <el-table-column v-if="check" type="selection" width="55">
+      </el-table-column>
       <el-table-column
         v-for="(item, index) in cloumn"
         :prop="item.prop"
@@ -58,7 +61,7 @@
     </div>
   </div>
 </template>
-<script >
+<script>
 export default {
   components: {},
   props: {
@@ -87,7 +90,7 @@ export default {
     },
     overtip: {
       type: Boolean,
-      default: true
+      default: true,
     },
   },
   data() {
@@ -115,6 +118,10 @@ export default {
       this.pageSize = v;
       this.searchFun();
     },
+    selectionChange(v) {
+      console.log(v);
+      this.$emit("selectChange", v);
+    },
   },
   beforeDestroy() {},
   watch: {},
@@ -126,12 +133,13 @@ export default {
 .el-table {
   height: calc(100% - 50px);
 }
+
 .tabs-pagation {
   position: absolute;
   right: 30px;
 }
 </style>
-  <style lang="scss" >
+<style lang="scss">
 .cont-table {
   .el-pager li {
     background-color: transparent !important;
@@ -154,9 +162,11 @@ export default {
     border-radius: 5px;
     line-height: 28px;
   }
+
   .el-pagination .btn-prev {
     padding-right: 5px;
   }
+
   .el-pagination .btn-prev:hover {
     color: #1890ff;
   }

+ 131 - 0
src/views/basicGeographic/components/config.js

@@ -0,0 +1,131 @@
+
+
+export const FormConfig = [
+  [
+
+    // {
+    //   label: '申请状态:',
+    //   prop: 'state',
+    //   span: 5
+    // },
+    {
+      label: '实体名称:',
+      prop: 'entityname',
+      span: 5,
+      component: 'ElInput',
+      componentProps: {
+        placeholder: '实体名称'
+      }
+    },
+    {
+      label: '实体ID',
+      prop: 'entityid',
+      span: 5,
+      component: 'ElInput',
+      componentProps: {
+        placeholder: '实体ID'
+      }
+    },
+    {
+      prop: 'action',
+      span: 5
+    }
+  ]
+]
+
+export const TableHeader = [
+  // 序号
+  { label: "实体名称", prop: "entityname", width: 100 },
+  { label: "实体ID", prop: "entityid" },
+  { label: "图元标识码", prop: "elementid" },
+  { label: "图元编码", prop: "elementcode" },
+  { label: "位置码", prop: "locationid" },
+  { label: "操作", slot: "action" },
+]
+
+
+// 详情字段
+export const detailInfos = [
+  [
+    [
+      { flag: 'label', value: '申请时间', span: 8 },
+      { flag: 'value', value: 'sqTime', span: 16 }
+    ],
+    [
+      { flag: 'label', value: '申请部门', span: 8 },
+      { flag: 'value', value: 'sqDepartmentBy', span: 16 }
+    ]
+  ],
+  [
+    [
+      { flag: 'label', value: '数据服务', span: 8 },
+      { flag: 'value', value: 'systemName', span: 16 }
+    ],
+    [
+      { flag: 'label', value: '数据类型', span: 8 },
+      { flag: 'value', value: 'zymlTypeName', span: 16 }
+    ]
+  ],
+  [
+    [
+      { flag: 'label', value: '申请范围', span: 4 },
+      { flag: 'value', value: 'sqFw', span: 20 }
+    ],
+  ],
+  [[
+    { flag: 'label', value: '申请理由', span: 4 },
+    { flag: 'value', value: 'sqReason', span: 20 }
+  ]],
+  [[
+    { flag: 'label', value: '系统名称', span: 4 },
+    { flag: 'value', value: 'systemName', span: 20 }
+  ]],
+  [[
+    { flag: 'label', value: '调用IP', span: 4 },
+    { flag: 'value', value: 'callIp', span: 20 }
+  ]],
+  [[
+    { flag: 'label', value: '预期使用时间', span: 4 },
+    { flag: 'value', value: 'sqDeadline', span: 20 }
+  ]],
+  [[
+    { flag: 'label', value: '附件', span: 4 },
+    { flag: 'value', value: 'attachment', span: 20, isslot: true }
+  ]]
+]
+export const shjlInfos = [
+  [[
+    { flag: 'label', value: '审核结果', span: 4 },
+    { flag: 'value', value: 'jg', span: 20, isslot: true }
+  ]],
+  [[
+    { flag: 'label', value: '审核意见', span: 4 },
+    { flag: 'value', value: 'spReason', span: 20 }
+  ]],
+  [[
+    { flag: 'label', value: '有效截止日期', span: 4 },
+    { flag: 'value', value: 'deadline', span: 20 }
+  ]],
+  [[
+    { flag: 'label', value: '审核人', span: 4 },
+    { flag: 'value', value: 'sqUserBy', span: 20 }
+  ]],
+  [[
+    { flag: 'label', value: '审核时间', span: 4 },
+    { flag: 'value', value: 'spTime', span: 20 }
+  ]],
+]
+export const chInfos = [
+  [[
+    { flag: 'label', value: '撤回时间', span: 4 },
+    { flag: 'value', value: 'sqRevokeTime', span: 20 }
+  ]],
+  [[
+    { flag: 'label', value: '撤回原因', span: 4 },
+    { flag: 'value', value: 'sqRevokeReason', span: 20 }
+  ]],
+]
+
+
+
+