Bläddra i källkod

合规性分析做两套数据

Maxx 11 månader sedan
förälder
incheckning
b857e58e38

+ 2 - 2
src/views/complianceAnalysis/components/scjg.vue

@@ -81,7 +81,7 @@ export default {
   },
   methods: {
     initData(){
-      this.fileid = this.$props.scjgObj.xmmc == '东岸卓越城项目合规性分析'? 1 : 2
+    this.fileid = this.$props.scjgObj.xmmc.indexOf("东岸卓越城项目") >= 0 ? 'hgxfx1' : 'hgxfx2'
     hgxfx.jgtreeData.forEach((e) => {
       // if (e.label == "控制性详细规划") e.label = "详细规划分析";
       this.echarts.push({ ...e, iseyes: false, isshow: false });
@@ -162,7 +162,7 @@ export default {
         : Cesium.Color.WHITE;
 
       let polygon = Cesium.GeoJsonDataSource.load(
-        `/static/data/ghss/${ this.fileid}/${id + label}.geojson`,
+        `/static/data/ghss/${this.fileid}/${id + label}.geojson`,
         {
           clampToGround: true,
           stroke: scolor,

+ 5 - 4
static/data/ghss/data.js

@@ -3,8 +3,8 @@ var data = {
     datalist: [{
         xmmc: '东岸卓越城项目合规性分析', xzmj: 0.16, xmlx: '合规性分析', jsdw: "建设单位", rwzt: 2,
         bsm: '767d0754a41f43fb86982678134ff768',
-        geojson: '/static/data/ghss/导入.geojson',
-        fxbg: "@/../static/data/ghss/合规性分析报告.docx",
+        geojson: '/static/data/ghss/hgxfx1/导入.geojson',
+        fxbg: "@/../static/data/ghss/hgxfx1/合规性分析报告.docx",
     }],
     treeData: [
         { id: "XZFX", label: "现状分析" },
@@ -92,9 +92,10 @@ var data = {
     ]
 };
 data.addList = function (adata) {
+    let fid = adata.xmmc.indexOf("东岸卓越城项目") >= 0 ? 1 : 2;
     if (!adata.bsm) adata.bsm = '767d0754a41f43fb86982678134ff768'
-    if (!adata.geojson) adata.geojson = '/static/data/ghss/导入.geojson'
-    if (!adata.fxbg) adata.fxbg = '@/../static/data/ghss/合规性分析报告.docx'
+    if (!adata.geojson)adata.geojson = `/static/data/ghss/hgxfx${fid}/导入.geojson`
+    if (!adata.fxbg) adata.fxbg = `@/../static/data/ghss/hgxfx${fid}/合规性分析报告.docx`
     if (!adata.rwzt) adata.rwzt = 2
     data.datalist.unshift(adata)
 }

+ 0 - 0
static/data/ghss/1/CZKFBJ城镇开发边界.geojson → static/data/ghss/hgxfx1/CZKFBJ城镇开发边界.geojson


+ 0 - 0
static/data/ghss/1/STBHHX生态保护红线.geojson → static/data/ghss/hgxfx1/STBHHX生态保护红线.geojson


+ 0 - 0
static/data/ghss/1/XXGH04商业服务业用地.geojson → static/data/ghss/hgxfx1/XXGH04商业服务业用地.geojson


+ 0 - 0
static/data/ghss/1/XZFX01种植园用地.geojson → static/data/ghss/hgxfx1/XZFX01种植园用地.geojson


+ 0 - 0
static/data/ghss/1/XZFX02林地.geojson → static/data/ghss/hgxfx1/XZFX02林地.geojson


+ 0 - 0
static/data/ghss/1/XZFX03商业服务业用地.geojson → static/data/ghss/hgxfx1/XZFX03商业服务业用地.geojson


+ 0 - 0
static/data/ghss/1/XZFX04住宅用地.geojson → static/data/ghss/hgxfx1/XZFX04住宅用地.geojson


+ 0 - 0
static/data/ghss/1/XZFX05交通运输用地.geojson → static/data/ghss/hgxfx1/XZFX05交通运输用地.geojson


+ 0 - 0
static/data/ghss/1/YJJBNT永久基本农田.geojson → static/data/ghss/hgxfx1/YJJBNT永久基本农田.geojson


+ 0 - 0
static/data/ghss/合规性分析报告.docx → static/data/ghss/hgxfx1/合规性分析报告.docx


+ 0 - 0
static/data/ghss/合规性分析报告.pdf → static/data/ghss/hgxfx1/合规性分析报告.pdf


+ 0 - 0
static/data/ghss/导入.geojson → static/data/ghss/hgxfx1/导入.geojson