Преглед изворни кода

首页土地数据整理,添加所属图斑定位事件。

DESKTOP-6LTVLN7\Liumouren пре 2 година
родитељ
комит
c123c72894
3 измењених фајлова са 108 додато и 47 уклоњено
  1. 12 12
      public/static/json/home/layout_land.json
  2. 58 27
      src/components/common/StepsMyBox.vue
  3. 38 8
      src/views/FrequencyView.vue

+ 12 - 12
public/static/json/home/layout_land.json

@@ -168,62 +168,62 @@
             {
                 "year": 2018,
                 "type": "基本农田面积",
-                "area": 13.40
+                "area": 215.30
             },
             {
                 "year": 2019,
                 "type": "基本农田面积",
-                "area": 13.42
+                "area": 215.31
             },
             {
                 "year": 2020,
                 "type": "基本农田面积",
-                "area": 13.41
+                "area": 215.32
             },
             {
                 "year": 2018,
                 "type": "减量化面积",
-                "area": 1.97
+                "area": 42.94
             },
             {
                 "year": 2019,
                 "type": "减量化面积",
-                "area": 1.99
+                "area": 42.97
             },
             {
                 "year": 2020,
                 "type": "减量化面积",
-                "area": 2.01
+                "area": 42.96
             },
             {
                 "year": 2018,
                 "type": "带征地",
-                "area": 12
+                "area": 26.59
             },
             {
                 "year": 2019,
                 "type": "带征地",
-                "area": 13
+                "area": 26.91
             },
             {
                 "year": 2020,
                 "type": "带征地",
-                "area": 15
+                "area": 26.90
             },
             {
                 "year": 2018,
                 "type": "设施农用地",
-                "area": 0.04
+                "area": 4.06
             },
             {
                 "year": 2019,
                 "type": "设施农用地",
-                "area": 0.05
+                "area": 4.05
             },
             {
                 "year": 2020,
                 "type": "设施农用地",
-                "area": 0.04
+                "area": 4.07
             },
             {
                 "year": 2018,

+ 58 - 27
src/components/common/StepsMyBox.vue

@@ -7,29 +7,24 @@
       :append-to-body="true"
       :modal="true"
       :visible.sync="dialogVisible"
-      width="600px"
+      width="70%"
       height="60%"
       :before-close="handleClose"
     >
       <div>
         <div class="dialog_title_info">
-          <div>立项年度:2021</div>
-          <div>被审计镇:周浦</div>
+          <div>立项年度:{{ formData && formData.c_lxndwt ? formData.c_lxndwt : "--" }}</div>
+          <div>被审计镇:{{ clickData.c_owning_street_town_str ? clickData.c_owning_street_town_str : "--" }}</div>
         </div>
-        <div class="dialog_title_info">问题金额(万元):/</div>
-        <div class="dialog_title">按指引应纳分类情况</div>
+        <div class="dialog_title_info">问题金额(万元):{{ formData && formData.c_wtjewt ? formData.c_wtjewt : "--" }}</div>
+        <div class="dialog_title">审计报告中的问题反映情况</div>
         <div v-for="(item, index) in dialogData" :key="index" class="dialog_table">
           <div>{{ item.title }}</div>
-          <div>{{ item.info }}</div>
+          <div>{{ formData && formData[item.columnName] ? formData[item.columnName] : "--" }}</div>
         </div>
-        <div class="dialog_title">审计报告中的问题反映情况</div>
-        <div v-for="(item, index) in dialogData2" :key="index" class="dialog_table">
-          <div>{{ item.title }}</div>
-          <div>{{ item.info }}</div>
+        <div class="dialog_title3">
+          <el-button size="mini" type="primary" class="infoBut" @click="gotoView(formData)">查看疑点图斑</el-button>
         </div>
-        <div class="dialog_title2">边审边改情况:老港镇对29个案件问题进行了整改</div>
-        <div class="dialog_title2">使用法条:xxxxxx</div>
-        <div class="dialog_title3"><el-button size="mini" type="primary" class="infoBut">查看疑点图斑</el-button></div>
       </div>
     </el-dialog>
     <div style="padding: 10px">
@@ -48,11 +43,11 @@
           </div>
           <div class="StepsMyBox_main_left_main_info">
             <div>项目类型:</div>
-            <div>{{ clickData.c_task_type_str ? clickData.c_task_type_str : "" }}</div>
+            <div>{{ clickData.c_task_type_str ? clickData.c_task_type_str : "--" }}</div>
           </div>
           <div class="StepsMyBox_main_left_main_info">
             <div>涉及街镇:</div>
-            <div>{{ clickData.c_owning_street_town_str ? clickData.c_owning_street_town_str : "" }}</div>
+            <div>{{ clickData.c_owning_street_town_str ? clickData.c_owning_street_town_str : "--" }}</div>
           </div>
           <div class="StepsMyBox_main_left_main_info">
             <div>牵头部门:</div>
@@ -184,17 +179,17 @@ export default {
       dialogVisible: false,
       // 该项目关联任务列表
       tableData: [],
+      // 暂存对象
+      formData: {},
       // 参与人员
       countUser: 0,
       dialogData: [
-        { title: "类别", info: "生态环境保护政策执行情况审计" },
-        { title: "重点审计事项", info: "环保督察、执法检查、信访投诉反映问题整治情况" },
-        { title: "参考问题定性", info: "发现问题整改不到位,存在长期……" }
-      ],
-      dialogData2: [
-        { title: "类别", info: "生态环境保护政策执行情况审计" },
-        { title: "重点审计事项", info: "环保督察、执法检查、信访投诉反映问题整治情况" },
-        { title: "参考问题定性", info: "发现问题整改不到位,存在长期……" }
+        { title: "问题分类", columnName: "c_wtflwt", info: "--" },
+        { title: "问题定性1", columnName: "c_wtdx1wt", info: "--" },
+        { title: "问题定性2", columnName: "c_wtdx2wt", info: "--" },
+        { title: "问题事项", columnName: "c_wtsxwt", info: "--" },
+        { title: "使用法条", columnName: "c_syftwt", info: "--" },
+        { title: "边审边改情况", columnName: "c_bsbgqkwt", info: "--" }
       ],
       // 步骤条列表
       stepsList: [
@@ -421,9 +416,45 @@ export default {
     }
   },
   methods: {
+    gotoView(fromData) {
+      // 调用全局事件总线中的指定事件
+      this.$bus.$emit("openMyTask", [fromData.c_sjlbwt, fromData.c_bsjzwt]);
+      this.dialogVisible = false;
+      this.$store.commit("changeNavSelect", {
+        "index": "3",
+        "name": "综合分析"
+      });
+    },
     // 流程管理【实施】节点,根据id查看详情
-    getInfoById(id) {
-      this.dialogVisible = true;
+    getInfoById(val) {
+      let searchParam = [];
+      // 立项年度
+      if (val.desc) {
+        let paramTime = {
+          field: "c_wtdx2wt",
+          // 等值查询
+          searchType: "1",
+          content: {
+            value: val.desc
+          }
+        };
+        searchParam.push(paramTime);
+      }
+      let params = new FormData();
+      params = {
+        columnId: 1127,
+        states: "0,1,2,3",
+        pageSize: 1,
+        page: 0,
+        search: JSON.stringify(searchParam)
+      };
+
+      this.$Post(this.urlsCollection.selectContentList, params).then(res => {
+        if (res.code === 200 && res.content.data.length > 0) {
+          this.formData = res.content.data[0];
+          this.dialogVisible = true;
+        }
+      });
     },
     // 返回上级
     backEvent() {
@@ -650,13 +681,13 @@ export default {
   div {
     width: 50%;
     text-align: center;
-    background-color: #ffffff64 !important;
+    background-color: #00000064 !important;
     margin: 1px;
     padding: 5px 10px;
     display: flex;
     justify-content: center;
     color: #dcdfe6;
-    border: 1px solid #001d3c00;    
+    border: 1px solid #001d3c00;
   }
 }
 </style>

+ 38 - 8
src/views/FrequencyView.vue

@@ -12,14 +12,37 @@
     >
       <div>
         <div class="dialog_title_info">
-          <div>立项年度:{{ formData[activeRowIndex] && formData[activeRowIndex].c_lxndwt ? formData[activeRowIndex].c_lxndwt : '--' }}</div>
-          <div>被审计镇:{{ formData[activeRowIndex] && formData[activeRowIndex].c_bsjzwt && unTownOptions && unTownOptions[formData[activeRowIndex].c_bsjzwt] ? unTownOptions[formData[activeRowIndex].c_bsjzwt] : '--' }}</div>
+          <div>
+            立项年度:{{
+              formData[activeRowIndex] && formData[activeRowIndex].c_lxndwt ? formData[activeRowIndex].c_lxndwt : "--"
+            }}
+          </div>
+          <div>
+            被审计镇:{{
+              formData[activeRowIndex] &&
+              formData[activeRowIndex].c_bsjzwt &&
+              unTownOptions &&
+              unTownOptions[formData[activeRowIndex].c_bsjzwt]
+                ? unTownOptions[formData[activeRowIndex].c_bsjzwt]
+                : "--"
+            }}
+          </div>
+        </div>
+        <div class="dialog_title_info">
+          问题金额(万元):{{
+            formData[activeRowIndex] && formData[activeRowIndex].c_wtjewt ? formData[activeRowIndex].c_wtjewt : "--"
+          }}
         </div>
-        <div class="dialog_title_info">问题金额(万元):{{ formData[activeRowIndex] && formData[activeRowIndex].c_wtjewt ? formData[activeRowIndex].c_wtjewt : '--'}}</div>
         <div class="dialog_title">审计报告中的问题反映情况</div>
         <div v-for="(item, index) in dialogData" :key="index" class="dialog_table">
           <div>{{ item.title }}</div>
-          <div>{{ formData[activeRowIndex] && formData[activeRowIndex][item.columnName] ? formData[activeRowIndex][item.columnName] : '--'}}</div>
+          <div>
+            {{
+              formData[activeRowIndex] && formData[activeRowIndex][item.columnName]
+                ? formData[activeRowIndex][item.columnName]
+                : "--"
+            }}
+          </div>
         </div>
         <!-- <div class="dialog_title3"><el-button size="mini" type="primary" class="infoBut">查看疑点图斑</el-button></div> -->
       </div>
@@ -68,7 +91,14 @@
       <div class="center">
         <el-table :data="tableData" style="width: 100%" max-height="600" @row-click="rowClick">
           <el-table-column type="index" width="70" align="center"> </el-table-column>
-          <el-table-column prop="createYear" label="立项年度" width="150" align="center"> </el-table-column>
+          <el-table-column
+            prop="createYear"
+            label="立项年度"
+            width="150"
+            align="center"
+            :filters="[{ text: '2019', value: '2019' }]"
+          >
+          </el-table-column>
           <el-table-column prop="auditTown" label="被审计镇" align="center" width="180"> </el-table-column>
           <el-table-column prop="type" label="类别" align="center"> </el-table-column>
           <el-table-column prop="keyPoint" label="重点审计事项" align="center"> </el-table-column>
@@ -176,7 +206,7 @@ export default {
                 value: i,
                 label: v
               });
-              this.unTownOptions[i]=v;
+              this.unTownOptions[i] = v;
             });
             this.townOptions.unshift({
               value: "全部",
@@ -267,7 +297,7 @@ export default {
           this.formData = res.content.data;
           let rowIndex = 0;
           this.tableData = res.content.data.map(v => {
-            rowIndex ++;            
+            rowIndex++;
             return {
               rowIndex: rowIndex,
               id: v.id || "--",
@@ -425,7 +455,7 @@ export default {
   div {
     width: 50%;
     text-align: center;
-    background-color: #ffffff64 !important;
+    background-color: #00000064 !important;
     margin: 1px;
     padding: 5px 10px;
     display: flex;