<template>
  <div>
    <div>
      <el-tabs v-model="xiangTab">
        <el-tab-pane label="资源信息" name="first">
          <div style="margin-top: 30px;" class="editcss">
            <TitleWithCircle title="基础信息" />
            <div style="padding: 20px;">
              <el-form :model="editbgid" ref="formInline" label-width="120px" class="demo-ruleForm">
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="场地名称" prop="venueName">
                      <div  class="duiqi">{{editbgid.venueName}}</div>
                
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item label="场地类型" prop="venueType">
                      <div class="duiqi" >{{editbgid.venueType}}</div>
                
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="实际使用面积" prop="actualArea">
                      <div  class="duiqi">{{editbgid.actualArea}}</div>
               
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item label="所属区域" prop="district">
                      <div  class="duiqi">{{editbgid.district}}</div>
              
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="归属部门" prop="department">
                      <div  class="duiqi">{{editbgid.department}}</div>
                
                    </el-form-item>
                  </el-col>
                  <el-col :span="12">
                    <el-form-item label="负责人" prop="responsiblePerson">
                      <div  class="duiqi">{{editbgid.belongingParkTrail}}</div>
              
                    </el-form-item>
                  </el-col>
                </el-row>

                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="详细位置" prop="detailedLocation">
                      <div  class="duiqi">{{editbgid.detailedLocation}}</div>
          
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="24">
                    <el-form-item label="地图标点" prop="mapMarker">
                      <div style="width: 100%;height: 300px;">
                        <MapXian :message="parentMessage"></MapXian>

                      </div>
                    </el-form-item>
                  </el-col>

                </el-row>

                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="场地描述" prop="description">
                      <div  class="duiqi">{{editbgid.description}}</div>
             
                    </el-form-item>
                  </el-col>

                </el-row>

                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="规划图纸" prop="planningDrawing">
                      <!-- <img :src="editbgid.planningDrawing" alt="" style="width:140px;height:140px;" > -->

                      <div >
                        <img :src="item" alt="" style="width:140px;height:140px;"
                          v-for="item in editbgid.planningDrawing.split(',')">
                      </div>
                 
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="展示主图" prop="displayImage">
                      <img :src="editbgid.displayImage" alt="" style="width:140px;height:140px;" >
                    </el-form-item>
                  </el-col>
                </el-row>
                <el-row :gutter="20">
                  <el-col :span="12">
                    <el-form-item label="其他图片/视频" prop="otherMedia">
                      <div  class="duiqi">{{editbgid.otherMedia}}</div>
                    </el-form-item>
                  </el-col>
                </el-row>
              </el-form>
            </div>
          </div>
        </el-tab-pane>
        <!-- <el-tab-pane label="招商方案信息" name="second" >
            <div style="margin-top: 30px;" class="editcss">
              <div class="titles">
                招商方案信息
              </div>
              <div style="padding: 20px;">
                <el-form :model="editbgid" :rules="rules" ref="ruleForm" label-width="140px" class="demo-ruleForm">
                  <el-row :gutter="20">
                    <el-col :span="24">
                      <el-form-item label="招商方案名称" prop="shopName">
                        <div class="duiqi">{{editbgid.shopName}}</div>

                      </el-form-item>
                    </el-col>

                  </el-row>
                  <el-row :gutter="20">

                    <el-col :span="24">
                      <el-form-item label="招商政策与条件" prop="architecturalForm">
                        <div class="duiqi">{{editbgid.architecturalForm}}</div>

                      </el-form-item>
                    </el-col>

                    <el-col :span="24">
                      <el-form-item label="方案概述" prop="belongingGreenwaySection">
                        <div class="duiqi">{{editbgid.belongingGreenwaySection}}</div>

                      </el-form-item>
                    </el-col>
                  </el-row>

                  <el-row :gutter="20">
                    <el-col :span="24">
                      <el-form-item label="附件信息" prop="floorSpace">
                        <div class="duiqi">{{editbgid.floorSpace}}</div>

                      </el-form-item>
                    </el-col>
                  </el-row>



                </el-form>
              </div>
              <div class="titles">
                策略方案
              </div>
              <div style="padding: 20px;">
                <el-form :model="editbgid" :rules="rules" ref="ruleForm" label-width="140px" class="demo-ruleForm">
                  <el-row :gutter="20">
                    <el-col :span="8">
                      <el-form-item label="策略名称" prop="shopName">
                        <div class="duiqi">{{editbgid.shopName}}</div>

                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="适用资源" prop="shopName">
                        <div class="duiqi">{{editbgid.shopName}}</div>

                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="是否出租" prop="shopName">
                        <div class="duiqi">{{editbgid.shopName}}</div>

                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="8">
                      <el-form-item label="经营类型" prop="shopName">
                        <div class="duiqi">{{editbgid.shopName}}</div>

                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="租金价格" prop="shopName">
                        <div class="duiqi">{{editbgid.shopName}}</div>

                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="付款周期" prop="shopName">
                        <div class="duiqi">{{editbgid.shopName}}</div>

                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="8">
                      <el-form-item label="租赁时段" prop="shopName">
                        <div class="duiqi">{{editbgid.shopName}}</div>

                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="免租条件" prop="shopName">
                        <div class="duiqi">{{editbgid.shopName}}</div>

                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="免租期" prop="shopName">
                        <div class="duiqi">{{editbgid.shopName}}</div>

                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="8">
                      <el-form-item label="付款日" prop="shopName">
                        <div class="duiqi">{{editbgid.shopName}}</div>

                      </el-form-item>
                    </el-col>


                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="24">
                      <el-form-item label="优惠政策" prop="floorSpace">
                        <div class="duiqi">{{editbgid.floorSpace}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="24">
                      <el-form-item label="其他说明" prop="floorSpace">
                        <div class="duiqi">{{editbgid.floorSpace}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                </el-form>
              </div>
            </div>
          </el-tab-pane> -->
        <!-- <el-tab-pane label="租赁记录" name="third" >
            <div style="margin-top: 30px;" class="editcss">
              <div class="titles">
                租赁记录
              </div>
              <div style="padding: 20px;">
                <el-table :data="tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)"
                  :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}"
                  tooltip-effect="dark custom-tooltip-effect">
                  <el-table-column label="承租商家" min-width="80">

                  </el-table-column>
                  <el-table-column label="租赁期限" prop="houseNumber" min-width="80" show-overflow-tooltip>

                  </el-table-column>
                  <el-table-column label="经营类型" prop="actualUsableArea" min-width="150" show-overflow-tooltip>
                  </el-table-column>

                  <el-table-column label="租金/周期" prop="head" min-width="120" show-overflow-tooltip>
                  </el-table-column>
                  <el-table-column label="租赁状态" prop="rentalStatus" min-width="120" show-overflow-tooltip>
                    <template slot-scope="scope">
                      {{scope.row.rentalStatus=='0'?'待租':'已租'}}
                    </template>
                  </el-table-column>
                  <el-table-column label="当前状态" prop="publishStatus" min-width="150" show-overflow-tooltip>
                    <template slot-scope="scope">
                      {{scope.row.publishStatus=='0'?'待发布':scope.row.publishStatus=='1'?'待审核':'已审核'}}
                    </template>
                  </el-table-column>

                  <el-table-column label="操作" min-width="160" fixed="right">
                    <template slot-scope="scope">
                      <div @click="handleEditForm(scope.row)" class="tableBtn greens">查看</div>
                    </template>
                  </el-table-column>
                </el-table>
              </div>
            </div>
          </el-tab-pane> -->
        <!--   <el-tab-pane label="人流情况" name="fourth" >
              <div style="margin-top: 30px;" class="editcss">
                <div class="titles">
                  人流量情况
                </div>
               </div>
            </el-tab-pane>
            <el-tab-pane label="物业维护记录" name="five" >
              <div style="margin-top: 30px;" class="editcss">
                <div class="titles">
                  物业维护记录
                </div>
               </div>
            </el-tab-pane> -->
      </el-tabs>
    </div>
    <div>
      <el-button class="buttonHover"
        style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;margin-top: 20px;"
        @click="changetype">返回</el-button>
    </div>
  </div>
</template>

<script>
  import MapXian from "@/components/MapContainer/MapXian";
  import TitleWithCircle from '@/components/top/index';
  export default {
    components: {
      TitleWithCircle,
      MapXian
    },
    props: {
      leixing: {
        type: Boolean,
        default: true
      },
      editbgid: {
        type: Object,
        default: function() {
          return {};
        },
      },
    },
    data() {
      return {
        xiangTab: 'first',
        list: [],
        parentMessage: {}
      }
    },
    created() {
      if (typeof this.editbgid.mapMarker == 'string') {
        this.parentMessage = JSON.parse(this.editbgid.mapMarker)
      } else {
        this.parentMessage = this.editbgid.mapMarker
      }
    },
    computed: {

    },
    methods: {
      changetype() {
        this.xiangTab = 'first'
        this.$emit('removeonaction', '1')
      },
    }
  }
</script>
<style>
  .el-form-item__label {
    color: #a2a2a2;
  }

  .greens {
    color: #3F9B6A;
  }
</style>
