Sfoglia il codice sorgente

Merge branch 'master' of http://114.244.114.158:8802/siwei/real3d-portalsite

maxiaoxiao 1 anno fa
parent
commit
094b68b79f

+ 5 - 0
src/store/store.js

@@ -58,6 +58,11 @@ var store2 = {
                 xdata: [],
                 result: [],
             },
+            jt_jg:{
+                "商服用地":{},
+                "工业用地":{},
+
+            }
         },
         cockpit_hysy: {//海域使用
             info: {

+ 13 - 7
src/views/cockpit/jcbd.vue

@@ -15,7 +15,7 @@
                     </div>
                 </div>
                 <div class="text">
-                    <span>{{ item.value }}</span>k㎡
+                    <span>{{ item.value }}  </span>{{ item.unit }}
                 </div>
             </div>
         </div>
@@ -34,27 +34,33 @@ export default {
                 {
                     name: "陆域",
                     img: "/static/images/overview/jcbd_ly.png",
-                    value: 1233.32
+                    value: 1233.32,
+                    unit: "k㎡"
                 }, {
                     name: "海域",
                     img: "/static/images/overview/jcbd_hy.png",
-                    value: 1233.32
+                    value: 1233.32,
+                    unit: "k㎡"
                 }, {
                     name: "海岸线",
                     img: "/static/images/overview/jcbd_hax.png",
-                    value: 1233.32
+                    value: 1233.32,
+                    unit: "k㎡"
                 }, {
                     name: "耕地",
                     img: "/static/images/overview/jcbd_gd.png",
-                    value: 1233.32
+                    value: 1233.32,
+                    unit: "k㎡"
                 }, {
                     name: "林地",
                     img: "/static/images/overview/jcbd_ld.png",
-                    value: 1233.32
+                    value: 1233.32,
+                    unit: "k㎡"
                 }, {
                     name: "深林覆盖率",
                     img: "/static/images/overview/jcbd_lyslfgl.png",
-                    value: 1233.32
+                    value: 1233.32,
+                    unit: "%"
                 },
             ]
         };

+ 46 - 13
src/views/cockpit/tdsy.vue

@@ -172,6 +172,35 @@ export default {
   created() { }, //生命周期 - 创建完成(可以访问当前this实例)
   beforeMount() { }, //生命周期 - 挂载之前
   methods: {
+    async init_tdgy_jt_jg(params) {
+      const that = this;
+      let obj = {
+        jscType: 'jsc_tdgy_jt_yelx',
+        id: params ? params.id : '4602'
+      };
+      let data = await QueryList(obj);
+      data.data.forEach((res) => {
+        let obj_echart = {
+          type: res.tdyt,
+          data: [{
+            name: "未供应", value: res.ce_crmj
+          },
+          { name: "已供应", value: res.sj_crmj }]
+        };
+
+        if (obj_echart.type == "商服用地") {
+          store.state.cockpit_tdgy.jt_jg.商服用地 = obj_echart
+          this.$refs.tdgy_echart_sfyd.setOptions(store.state.cockpit_tdgy.jt_jg.商服用地.data);
+
+        }
+        if (obj_echart.type == "工业用地") {
+          store.state.cockpit_tdgy.jt_jg.工业用地 = obj_echart
+
+          this.$refs.tdgy_echart_gyyd.setOptions(store.state.cockpit_tdgy.jt_jg.工业用地.data);
+
+        }
+      })
+    },
     init_gy_jg_echart() {
 
       var dom = document.getElementById("gy_jg_echart");
@@ -759,6 +788,7 @@ export default {
     const that = this;
     this.$nextTick(() => {
 
+      this.init_tdgy_jt_jg();
 
       this.init_tdgy_gy_jd();
       that.init_echart();
@@ -769,14 +799,15 @@ export default {
         { name: "以划拨", value: 21 },
         { name: "已出让", value: 24 },
       ]);
-      this.$refs.tdgy_echart_sfyd.setOptions([
-        { name: "未供应", value: 12.86 },
-        { name: "已供应", value: 21.56 },
-      ]);
-      this.$refs.tdgy_echart_gyyd.setOptions([
-        { name: "未供应", value: 12.65 },
-        { name: "已供应", value: 21.21 },
-      ]);
+      //  store.start.cockpit_tdgy.jt_jg
+      // this.$refs.tdgy_echart_sfyd.setOptions([
+      //   { name: "未供应", value: 12.86 },
+      //   { name: "已供应", value: 21.56 },
+      // ]);
+      // this.$refs.tdgy_echart_gyyd.setOptions([
+      //   { name: "未供应", value: 12.65 },
+      //   { name: "已供应", value: 21.21 },
+      // ]);
     });
   },
   beforeUpdate() { }, //生命周期 - 更新之前
@@ -823,11 +854,11 @@ export default {
 
       span {
         color: #fff;
-    font-size: 14px;
-    font-weight: bold;
-    position: relative;
-    bottom: -0.2rem;
-    right: -2.3rem;
+        font-size: 14px;
+        font-weight: bold;
+        position: relative;
+        bottom: -0.2rem;
+        right: -2.3rem;
       }
     }
 
@@ -835,10 +866,12 @@ export default {
       position: fixed;
       left: 10rem;
     }
+
     .right_tab {
       position: fixed;
       left: 19rem;
     }
+
     .selectTab {
       /deep/ .el-input__inner {
         // padding-right: 30px;

+ 83 - 16
src/views/siteselection/components/xzjg.vue

@@ -1,13 +1,13 @@
 <template>
   <div class="xzjg">
-    <div>项目名称XXXXXX</div>
+    <div>项目名称:选址结果</div>
     <div class="box-sizing" style="height: 47%; width: 100%">
-      <div class="title site-title">
+      <div class="title block-title">
         <!-- <span class="block-title"
           >意向地块{{ bgList ? bgList.length : 0 }})</span
         > -->
         意向地块({{ bgList ? bgList.length : 0 }})
-        <span @click="download">导出报告</span>
+        <span @click="download" class="export">导出报告</span>
       </div>
       <el-scrollbar
         class="height-100-50 max-width"
@@ -41,8 +41,10 @@
                 <span>{{ item1.properties.kzxxgydmc }}</span>
                 <span>{{ item1.properties.ydmj.toFixed(2) }}平方米</span>
               </p>
-              <p>
-                基准地标价:<span style="color: #02a7f0"
+              <p style="color: #cddeeb">
+                <img src="/static/images/ghzc/iconSun.png" />
+                <span style="margin-left: 20px">基准地标价:</span
+                ><span style="color: #02a7f0"
                   >{{ item1.properties.landPrice }}万元</span
                 >
               </p>
@@ -75,7 +77,10 @@
                 item.properties.ydmj.toFixed(0)
               }})
               <span class="tools">
-                <i class="header-icon el-icon-place" @click.stop="mapview(item)"></i>
+                <i
+                  class="header-icon el-icon-place"
+                  @click.stop="mapview(item)"
+                ></i>
                 <i
                   class="header-icon el-icon-plus"
                   @click="addprogramme($event, item)"
@@ -87,8 +92,11 @@
                 <span>{{ item.properties.kzxxgydmc }}</span>
                 <span>{{ item.properties.ydmj.toFixed(2) }}平方米</span>
               </p>
-              <p>
-                基准地标价:<span style="color: #02a7f0"
+              <p style="color: #cddeeb">
+                <!-- <i class="iconSun"></i> -->
+                <img src="/static/images/ghzc/iconSun.png" />
+                <span style="margin-left: 20px">基准地标价:</span
+                ><span style="color: #02a7f0"
                   >{{ item.properties.landPrice }}万元</span
                 >
               </p>
@@ -119,6 +127,7 @@
 </template>
 
 <script>
+import { color } from "highcharts";
 import drawData from "./draw.json";
 import ghjgData from "./规划结果.json";
 export default {
@@ -163,8 +172,8 @@ export default {
   },
   mounted() {
     this.copyData = JSON.parse(JSON.stringify(ghjgData));
-    this.addPolygon("规划结果", "ghjg");
-    this.addPolygon("draw", "draw");
+    this.addPolygon("规划结果", "ghjg",'#0000FF');
+    this.addPolygon("draw", "draw",'#FF0000');
   },
   methods: {
     download() {
@@ -177,13 +186,15 @@ export default {
       );
     },
     // 加载GeoJSON数据
-    addPolygon(label, id) {
+    addPolygon(label, id,color) {
       let _this = this;
+      let yanse = color
       let polygon = Cesium.GeoJsonDataSource.load(
         `static/data/${label}.geojson`,
         {
           clampToGround: true,
-          stroke: Cesium.Color.BLUE,
+          // stroke: Cesium.Color.color,
+          stroke: Cesium.Color.fromCssColorString(yanse),
           fill: Cesium.Color.WHITE.withAlpha(0.3), //注意:颜色必须大写,即不能为blue
           strokeWidth: 5,
         }
@@ -232,7 +243,7 @@ export default {
       this.bgList = [];
     },
     mapview(item) {
-      this.edlARR()
+      this.edlARR();
       // e.stopPropagation()
       let tempArr = item.geometry.coordinates[0];
       for (let i = 0; i < tempArr.length; i++) {
@@ -309,7 +320,7 @@ export default {
 
   beforeDestroy() {
     viewer.dataSources.removeAll();
-    this.edlARR()
+    this.edlARR();
   },
 };
 </script>
@@ -333,6 +344,15 @@ export default {
       margin-right: 5px;
       min-height: unset;
     }
+    .export {
+      display: inline-block;
+      background-color: #0f7ac8;
+      text-align: center;
+      width: 95px;
+      height: 28px;
+      line-height: 28px;
+      float: right;
+    }
   }
   .el-form-item {
     margin-bottom: 0;
@@ -374,12 +394,59 @@ export default {
     // background-color: pink;
     color: #fff;
   }
+  p:nth-child(2) {
+    position: relative;
+    // padding-right: 20px;
+    img {
+      position: absolute;
+      top: 6px;
+    }
+  }
   .oneItem {
+    .iconSun {
+      width: 16px;
+      height: 16px;
+      display: inline-block;
+      background: url("../../../../static//images//ghzc//iconSun.png") no-repeat;
+      background-size: 100% 100%;
+    }
     span {
-      border: 1px solid #02a7f0;
+      // border: 1px solid #02a7f0;
       padding: 3px 5px;
-      border-radius: 5px;
+      border-radius: 2px 2px 2px 2px;
+    }
+    span:first-child {
+      background: rgba(253, 219, 59, 0.2);
+      font-size: 14px;
+      color: #ffc700;
+    }
+    span:nth-child(2) {
+      background: rgba(155, 255, 139, 0.2);
+      font-size: 14px;
+      color: #9bff8b;
+    }
+    p {
+      font-size: 14px;
+      color: #cddeeb;
     }
   }
 }
+/deep/ .el-collapse {
+  // width: 95%;
+  border: none;
+}
+/deep/ .el-scrollbar {
+  border: 1px solid #0f7ac8 !important;
+  // padding: 0 10px;
+}
+/deep/ .el-collapse-item__header {
+  border-bottom: 1px solid rgba(102, 126, 143, 0.747);
+  position: relative;
+}
+/deep/ .el-collapse-item__wrap {
+  border-bottom: 1px solid rgba(102, 126, 143, 0.5) !important;
+}
+/deep/ .el-scrollbar__wrap {
+  padding: 0 10px;
+}
 </style>

BIN
static/images/ghzc/iconSun.png