7 changed files with 338 additions and 222 deletions
			
			
		@ -1,69 +0,0 @@ | 
				
			|||
export function getPolygonGeoJSON () { | 
				
			|||
    return { | 
				
			|||
        type: 'FeatureCollection', | 
				
			|||
        features: [ | 
				
			|||
            { | 
				
			|||
                type: 'Feature', | 
				
			|||
                geometry: { | 
				
			|||
                    type: 'Polygon', | 
				
			|||
                    coordinates: [ | 
				
			|||
                        [ | 
				
			|||
                            [120.34641692835909, 36.089631138388036], | 
				
			|||
                            [120.3610683961656, 36.07743361100231], | 
				
			|||
                            [120.41981862563858, 36.094178143435734], | 
				
			|||
                            [120.40240403504704, 36.11798699226542], | 
				
			|||
                            [120.34534806364974, 36.11752870787426], | 
				
			|||
                            [120.34191095693906, 36.117070430475906], | 
				
			|||
                            [120.34641692835909, 36.089631138388036] | 
				
			|||
                        ] | 
				
			|||
                    ] | 
				
			|||
                } | 
				
			|||
            } | 
				
			|||
        ] | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
export function getGridGeoJSON () { | 
				
			|||
    return { | 
				
			|||
        type: 'FeatureCollection', | 
				
			|||
        features: [ | 
				
			|||
            { | 
				
			|||
                type: 'Feature', | 
				
			|||
                properties: { | 
				
			|||
                    name: '第一网格', | 
				
			|||
                    index: 0 | 
				
			|||
                }, | 
				
			|||
                geometry: { | 
				
			|||
                    type: 'Polygon', | 
				
			|||
                    coordinates: [ | 
				
			|||
                        [ | 
				
			|||
                            [120.36042111463216, 36.123630243850776], | 
				
			|||
                            [120.37646657270601, 36.11574122696447], | 
				
			|||
                            [120.36427923644065, 36.105102846593255], | 
				
			|||
                            [120.34074589793231, 36.10363201293648], | 
				
			|||
                            [120.36042111463216, 36.123630243850776] | 
				
			|||
                        ] | 
				
			|||
                    ] | 
				
			|||
                } | 
				
			|||
            }, | 
				
			|||
            { | 
				
			|||
                type: 'Feature', | 
				
			|||
                properties: { | 
				
			|||
                    name: '第二网格', | 
				
			|||
                    index: 1 | 
				
			|||
                }, | 
				
			|||
                geometry: { | 
				
			|||
                    type: 'Polygon', | 
				
			|||
                    coordinates: [ | 
				
			|||
                        [ | 
				
			|||
                            [120.35623852355958, 36.0892643916626], | 
				
			|||
                            [120.37271801574708, 36.0903801906128], | 
				
			|||
                            [120.36894146545411, 36.08102464556885], | 
				
			|||
                            [120.35795513732911, 36.07767724871827], | 
				
			|||
                            [120.35623852355958, 36.0892643916626] | 
				
			|||
                        ] | 
				
			|||
                    ] | 
				
			|||
                } | 
				
			|||
            } | 
				
			|||
        ] | 
				
			|||
    } | 
				
			|||
} | 
				
			|||
@ -0,0 +1,162 @@ | 
				
			|||
<template> | 
				
			|||
  <div class="dialog-bg"> | 
				
			|||
      <div class="info-dialog"> | 
				
			|||
          <img src="../../../../../../assets/img/plugins/close.png" class="info-dialog-close" @click="closeDialog"> | 
				
			|||
          <div class="card-title"> | 
				
			|||
              <img class="title-icon" src="../../../../../../assets/img/shuju/title-tip.png" /> | 
				
			|||
              <div class="title-label">更多信息</div>  | 
				
			|||
          </div> | 
				
			|||
          <div class="info-dialog-content"> | 
				
			|||
            <screen-table :headerStyle="headerStyle" | 
				
			|||
                          :headerList="headerList" | 
				
			|||
                          :tableContentStyle="headerStyle" | 
				
			|||
                          :tableData="tableData" | 
				
			|||
                          :visibleLoading="visibleLoading" | 
				
			|||
                          :operate="false" | 
				
			|||
                          @look="handleLook"></screen-table> | 
				
			|||
          </div> | 
				
			|||
      </div> | 
				
			|||
  </div> | 
				
			|||
</template> | 
				
			|||
 | 
				
			|||
<script> | 
				
			|||
import screenTable from "../../../components/screen-table/index" | 
				
			|||
import { requestPost } from "@/js/dai/request" | 
				
			|||
export default { | 
				
			|||
  name: 'info-dialog', | 
				
			|||
  props: { | 
				
			|||
    houseId: { | 
				
			|||
      type: String, | 
				
			|||
      default: '' | 
				
			|||
    } | 
				
			|||
  }, | 
				
			|||
  watch: { | 
				
			|||
    houseId (newVal, oldVal) { | 
				
			|||
      this.getInfo() | 
				
			|||
    } | 
				
			|||
  }, | 
				
			|||
  components: { | 
				
			|||
    screenTable | 
				
			|||
  }, | 
				
			|||
  data () { | 
				
			|||
    return { | 
				
			|||
      headerList: [ | 
				
			|||
        { title: "序号", coulmn: 'index' }, | 
				
			|||
        { title: "家庭成员", coulmn: 'name' }, | 
				
			|||
        { title: "与户主关系", coulmn: 'yhzgx' }, | 
				
			|||
        { title: "性别", coulmn: 'gender' }, | 
				
			|||
        { title: "是否党员", coulmn: 'isParty' }, | 
				
			|||
        { title: "身份证号", coulmn: 'idCard' }, | 
				
			|||
        { title: "手机号", coulmn: 'mobile' } | 
				
			|||
      ], | 
				
			|||
      headerStyle: [ | 
				
			|||
        { width: '80px' }, | 
				
			|||
        { width: '180px' }, | 
				
			|||
        { width: '200px' }, | 
				
			|||
        { width: '120px' }, | 
				
			|||
        { width: '120px' }, | 
				
			|||
        { width: '300px' }, | 
				
			|||
        { width: '240px' } | 
				
			|||
      ], | 
				
			|||
      tableData: [], | 
				
			|||
      visibleLoading: true | 
				
			|||
    } | 
				
			|||
  }, | 
				
			|||
  created () { | 
				
			|||
    this.getInfo() | 
				
			|||
  }, | 
				
			|||
  methods: { | 
				
			|||
    closeDialog () { | 
				
			|||
        this.$emit('close') | 
				
			|||
    }, | 
				
			|||
    async handleLook (val) { | 
				
			|||
      console.log(val) | 
				
			|||
    }, | 
				
			|||
    async getInfo () { | 
				
			|||
      this.visibleLoading = true | 
				
			|||
      // console.log(this.axisStructId, this.leaderId) | 
				
			|||
      const url = `/epmetuser/icresiuser/listhomeuserbrief/${this.houseId}` | 
				
			|||
      const { data, code, msg } = await requestPost(url) | 
				
			|||
      if (code === 0) { | 
				
			|||
        this.tableData = data.map((item, index) => { | 
				
			|||
          return { | 
				
			|||
            ...item, | 
				
			|||
            index: index + 1, | 
				
			|||
            gender: item.gender == '1' ? '男' : item.gender == '2' ? '女' : '未知', | 
				
			|||
            isParty: item.isParty == '1' ? '是' : '否' | 
				
			|||
          } | 
				
			|||
        }) | 
				
			|||
      } else { | 
				
			|||
        this.$message.error(msg) | 
				
			|||
      } | 
				
			|||
      this.visibleLoading = false | 
				
			|||
    } | 
				
			|||
  } | 
				
			|||
} | 
				
			|||
</script> | 
				
			|||
 | 
				
			|||
<style lang="scss" scoped> | 
				
			|||
.card-title { | 
				
			|||
  display: flex; | 
				
			|||
  align-items: center; | 
				
			|||
  margin: 27px 20px; | 
				
			|||
  cursor: pointer; | 
				
			|||
  .title-icon { | 
				
			|||
    display: block; | 
				
			|||
    width: 46px; | 
				
			|||
    height: 34px; | 
				
			|||
    box-sizing: border-box; | 
				
			|||
    margin-right: 6px; | 
				
			|||
  } | 
				
			|||
  .title-label { | 
				
			|||
    font-size: 20px; | 
				
			|||
    font-weight: 800; | 
				
			|||
    ::v-deep .el-input { | 
				
			|||
      width: 180px; | 
				
			|||
      .el-input__inner { | 
				
			|||
        font-size: 18px; | 
				
			|||
        color: #fff; | 
				
			|||
        background: #06186d; | 
				
			|||
        border: 1px solid #1a64cc; | 
				
			|||
      } | 
				
			|||
      .el-icon-arrow-down::before { | 
				
			|||
          content: "\e790"; | 
				
			|||
      } | 
				
			|||
    } | 
				
			|||
  } | 
				
			|||
} | 
				
			|||
.dialog-bg { | 
				
			|||
  width: 100vw; | 
				
			|||
  height: 100vh; | 
				
			|||
  position: fixed; | 
				
			|||
  left: 0; | 
				
			|||
  top: 0; | 
				
			|||
  z-index: 9999; | 
				
			|||
  background-color: rgba($color: #000000, $alpha: 0.8); | 
				
			|||
  .info-dialog { | 
				
			|||
      width: 960px; | 
				
			|||
      height: auto; | 
				
			|||
      max-height: 800px; | 
				
			|||
      background: url('../../../../../../assets/img/modules/visual/warning-box.png') no-repeat; | 
				
			|||
      background-size: 100% 100%; | 
				
			|||
      position: absolute; | 
				
			|||
      left: 30%; | 
				
			|||
      top: 25%; | 
				
			|||
      z-index: 999; | 
				
			|||
      &-close { | 
				
			|||
          position: absolute; | 
				
			|||
          right: -15px; | 
				
			|||
          top: -10px; | 
				
			|||
      } | 
				
			|||
      &-content { | 
				
			|||
          width: 100%; | 
				
			|||
          height: 100%; | 
				
			|||
          display: flex; | 
				
			|||
          flex-direction: column; | 
				
			|||
          padding: 0 20px 20px 20px; | 
				
			|||
          box-sizing: border-box; | 
				
			|||
      } | 
				
			|||
  }   | 
				
			|||
} | 
				
			|||
 | 
				
			|||
</style> | 
				
			|||
					Loading…
					
					
				
		Reference in new issue