ソースを参照

疑点审计后的状态保存

Bella 2 年 前
コミット
e49dfb16cb
2 ファイル変更68 行追加11 行削除
  1. 20 8
      src/components/map/MapHolder.vue
  2. 48 3
      src/components/popup/LawPopup.vue

+ 20 - 8
src/components/map/MapHolder.vue

@@ -32,6 +32,8 @@ export default {
       currentLabelCid: null,
       currentLabelHtml: null,
       tableObj: {},
+      // 疑点审计的保存后的疑点状态集合
+      caseStatusMap: new Map(),
     };
   },
   created() {},
@@ -177,6 +179,14 @@ export default {
             );
           }
 
+          if ($(`#${str}_id .center-table-item-special select`)) {
+            if (this.caseStatusMap.has(str)) {
+              $(`#${str}_id .center-table-item-special select`).val(
+                this.caseStatusMap.get(str)
+              );
+            }
+          }
+
           // 法律法规点击事件
           if ($(`#${str}_id a`)) {
             $(`#${str}_id a`).click((e) => {
@@ -243,6 +253,7 @@ export default {
     confirmBtnEvent(str) {
       // isTrue
       let selectVal = $(`#${str}_id .center-table-item-special select`).val();
+      this.caseStatusMap.set(str, selectVal);
       let obj = {
         c_date_time: this.$dayjs().valueOf(),
         c_boolean: selectVal === "isTrue" ? true : false,
@@ -257,12 +268,14 @@ export default {
         modelId: 49,
         content: JSON.stringify(obj),
       };
-      this.$Post(this.urlsCollection.updateContent,modifyParams).then((res)=>{
-        if(res.code === 200 ){
-          this.$message.success("数据修改成功")
-          map2DViewer.map.closePopup()
+      this.$Post(this.urlsCollection.updateContent, modifyParams).then(
+        (res) => {
+          if (res.code === 200) {
+            this.$message.success("数据修改成功");
+            map2DViewer.map.closePopup();
+          }
         }
-      });
+      );
     },
     cancelBtnEvent() {
       map2DViewer.map.closePopup();
@@ -590,7 +603,6 @@ export default {
       }
     },
     addSinglePolygon(geometry, cid, color, uniqueId) {
-      // debugger;
       let coordinates = "";
 
       if (uniqueId === "一般耕地_47") {
@@ -625,7 +637,7 @@ export default {
         this.auditPopupShow = true;
         this.popup = L.popup({ maxWidth: 700, maxHeight: 600 })
           .setLatLng(e.latlng)
-          .setContent(this.createAuditDiv("cid", properties));
+          .setContent(this.createAuditDiv(cid, properties));
         this.auditPopupShow = false;
         this.popup.openOn(map2DViewer.map);
         this.currentCid = cid;
@@ -654,7 +666,7 @@ export default {
 
           this.popup = L.popup({ maxWidth: 700, maxHeight: 600 })
             .setLatLng(e.latlng)
-            .setContent(this.createAuditDiv("cid"));
+            .setContent(this.createAuditDiv(cid));
           // .openOn(map2DViewer.map);
           this.auditPopupShow = false;
           this.popup.openOn(map2DViewer.map);

+ 48 - 3
src/components/popup/LawPopup.vue

@@ -25,9 +25,21 @@
         </el-input>
       </div>
       <div class="option-right">
-        <NewSelect class="option-right-item" :placeholder="'排序方式'" />
+        <NewSelect
+          class="option-right-item"
+          :placeholder="'排序方式'"
+          style="left: 10px; top: 3px"
+        />
         <!-- <NewSelect class="option-right-item" :placeholder="'搜索范围'" /> -->
-        <NewSelect class="option-right-item" :placeholder="'时间范围'" />
+        <NewSelect
+          class="option-right-item"
+          :placeholder="'年份'"
+          style="right: 100px; top: 2px"
+          v-model="timeSelectVal"
+          :options="timeOptions"
+          :value="timeSelectVal"
+        />
+        <div class="option-right-search" @click="getTableData(1)">查询</div>
       </div>
     </div>
     <div class="table">
@@ -153,6 +165,20 @@ export default {
         searchParam.push(paramSearch);
       }
 
+      // 年份查询
+      if (this.timeSelectVal) {
+        let paramTime = {
+          field: "c_new_date",
+          // field: "c_date_time",
+          // 模糊查询
+          searchType: "2",
+          content: {
+            value: this.timeSelectVal + "",
+          },
+        };
+        searchParam.push(paramTime);
+      }
+
       let params = new FormData();
       params = {
         columnId: 23,
@@ -330,9 +356,28 @@ export default {
       right: 0;
       width: 65%;
       &-item {
-        width: 120px;
+        width: 150px;
         height: 40px;
         line-height: 50px;
+        position: absolute;
+      }
+      &-search {
+        width: 60px;
+        height: 30px;
+        border-radius: 3px;
+        background-image: linear-gradient(
+          to top,
+          rgba(79, 172, 254, 1),
+          rgba(0, 242, 254, 1)
+        );
+        color: #fff;
+        cursor: pointer;
+        display: flex;
+        align-items: center;
+        justify-content: center;
+        position: absolute;
+        top: 12px;
+        right: 15px;
       }
     }
   }