zpf 11 сар өмнө
parent
commit
95c9440301

+ 125 - 5
src/views/cockpit/stxf.vue

@@ -18,8 +18,9 @@
       </div>
     </div>
 
-    <div v-show="model_switch == tab">
+    <div v-show="tab == options[0].value">
       <div class="legend_stxf">
+
         <div class="stxf_echart_tdzz_legend">
 
         </div>
@@ -27,8 +28,26 @@
       </div>
       <pie3d id="stxf_echart_tdzz" unit="个" ref="stxf_echart_tdzz"></pie3d>
     </div>
-    <div v-show="model_switch == tab">
-      
+    <div v-show="tab == options[1].value">
+      <div class="content">
+
+        <div class="infoLIst" v-if="jiDataInfo.length">
+          <div class="infoItem" v-for="(item, index) in jiDataInfo" :key="index">
+            <div class="itemIcon">
+              <span>
+                {{ index }}
+              </span>
+            </div>
+            <div class="itemCon">
+              <p>{{ item.xmmc }}</p>
+              <p>
+                <span>{{ item.yelx }}</span>
+                <span>{{ item.crnj }}公顷</span>
+              </p>
+            </div>
+          </div>
+        </div>
+      </div>
     </div>
 
   </borderTemplate>
@@ -44,12 +63,13 @@ export default {
   components: { borderTemplate, pie3d },
   data() {
     return {
+      jiDataInfo: [], //集体信息列表
       options: [
         { value: "tdzz", label: "土地整治" },
         { value: "ssxf", label: "山水工程" },
       ],
       tab: "tdzz",
-      model_switch:'tdzz',
+      model_switch: 'tdzz',
       paramdatas: {},
       sdlist: {
         tdzz: [
@@ -85,8 +105,20 @@ export default {
   //监控data中的数据变化
   watch: {},
   methods: {
+    async getInfo() {
+      let res = await QueryList({
+        val0: '区',
+        jscType: "jsc_tdgy_jt_xx",
+        id: 4602,
+      });
+      this.jiDataInfo = res.data
+    },
     changeCharts(e) {
-      this.model_switch == e
+      this.model_switch = e
+      console.log('options[1].value: ', this.options[0].value);
+      console.log('model_switch: ', this.model_switch);
+      console.log(this.model_switch == this.options[0].value);
+
     },
     GetQueryOne(datas) {
       let params = {
@@ -127,6 +159,9 @@ export default {
         { name: "历史文化保护项目", value: 22 },
 
       ]);
+
+      this.getInfo();
+
     })
   },
 };
@@ -197,4 +232,89 @@ export default {
     display: inline-block;
   }
 }
+
+.infoLIst {
+  width: 100%;
+  height: 12.5rem;
+  overflow: hidden;
+  overflow-y: auto;
+  margin-top: 10px;
+  margin-right: 10px;
+  padding-top: 5px;
+
+  .infoItem {
+    width: 100%;
+    height: 3.3rem;
+    background-color: #64daff;
+    background: url("/static/images/overview/list_bg.png") no-repeat;
+    background-size: 100% 100%;
+    display: flex;
+    margin-bottom: 10px;
+
+    .itemIcon {
+      width: 20px;
+      height: 20px;
+      background: url("/static/images/overview/stxf_sugc_index_back.png") no-repeat;
+      background-size: 100% 100%;
+      margin: 0.5rem;
+      text-align: center;
+
+      span {
+        width: 5px;
+        height: 10px;
+        font-family: HarmonyOS Sans SC, HarmonyOS Sans SC;
+        font-weight: 600;
+        font-size: 14px;
+        color: #F9B447;
+        line-height: 10px;
+        text-align: center;
+        font-style: normal;
+        text-transform: none;
+      }
+    }
+
+    .itemCon {
+
+      // width: 13.5rem;
+      // height: 1.55rem;
+      // background-color: #faa012;
+      // line-height: 1.55rem;
+      p {
+        height: 41%;
+        line-height: 1.55rem;
+        color: #ecf6ff;
+      }
+
+      p:first-child {
+        width: 177px;
+        overflow: hidden;
+        white-space: nowrap;
+        text-overflow: ellipsis;
+        color: #ecf6ff;
+      }
+
+      p:nth-child(2) {
+        span {
+          padding: 0 0.4rem;
+          display: inline-block;
+          background: rgba(100, 218, 255, 0.1);
+          border-radius: 2px 14px 2px 14px;
+          color: #64daff;
+          font-size: 12px;
+        }
+      }
+    }
+
+    .itemStatus1 {
+      background: url("/static/images/overview/yrsIcon.png") no-repeat;
+      background-size: 100% 100%;
+      width: 62px;
+      height: 18px;
+      position: relative;
+      right: -30px;
+    }
+
+
+  }
+}
 </style>

BIN
static/images/overview/stxf_sugc_index_back.png