<template>
  <div>
    <div class="dialog-h-content scroll-h">

      <div v-if="initLoading"
           class="m-row">
        <div class="m-info">
          <div class="info-prop">
            <span class="info-title-2">所属网格：</span>
            <span>{{ fmData.gridName }}</span>
          </div>

          <div class="info-prop">
            <span class="info-title-2">分类类别：</span>
            <span>{{ fmData.categoryName?fmData.categoryName:'--' }}</span>
          </div>

          <div class="info-prop">
            <span class="info-title-2">党员姓名：</span>
            <span>{{ fmData.name?fmData.name:'--' }}</span>
          </div>

          <div class="info-prop">
            <span class="info-title-2">主要事迹：</span>
            <span>{{ fmData.mainDeed?fmData.mainDeed:'--'}}</span>
          </div>

          <div class="info-prop">
            <span class="info-title-2">照片：</span>
            <span v-if="fmData.imageList.length===0">无</span>
            <div v-else
                 class="info-pics">

              <img v-for="(item,index) in fmData.imageList"
                   :key="index"
                   :src="item"
                   @click="watchImg(item)">

            </div>
          </div>

        </div>
      </div>

    </div>
    <div class="div-btn">
      <el-button size="small"
                 @click="handleCancle">关 闭</el-button>

    </div>
  </div>
</template>

<script>
import { requestPost } from "@/js/dai/request";



export default {
  data () {
    return {
      initLoading: false,
      fmData: {},

    }
  },
  components: {},
  computed: {

  },
  props: {},
  watch: {},

  async mounted () {
    console.log('mounted-----我执行了')

  },

  methods: {
    handleCancle () {

      this.$emit('diaDetailClose')

    },

    async initForm (row) {

      this.fmData = JSON.parse(JSON.stringify(row))

      this.initLoading = true

    },

    watchImg (src) {
      window.open(src);
    },

  }
}
</script>

<style lang="scss" scoped >
@import "@/assets/scss/modules/management/detail-main.scss";
</style>

