<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>住房公积金数据可视化分析平台</title>
<link rel="shortcut icon" href="../images/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="../css/element-ui.css" />
<link rel="stylesheet" href="../openLayers/css/ol.css">
<link rel="stylesheet" href="../openLayers/css/olStyle.css">
<link rel="stylesheet" href="../css/style.css" />
<style>
.layerPop{position: fixed; left:60px; top:50%; margin-top: -300px; width:400px; height:600px;z-index: 10;}
.tab{ background-color: #FFF; height: 550px; border-radius:4px; box-shadow:0px 0px 13px rgba(0,0,0,0.2); padding: 20px 20px 0 20px;}
.btnSave{ display: inline-block; margin-top: 10px; width: 100%; height:40px; line-height: 40px; text-align: center; background-color: #0375de; color: #FFF; border-radius:6px; font-size:16px; font-weight:bolder; text-decoration:none;box-shadow:0px 0px 13px rgba(0,0,0,0.2)}
.has-gutter{ display: none;}
.el-table td.el-table__cell, .el-table th.el-table__cell.is-leafs{ border-color:#e7f0ff}
.el-table .el-table__cell{ padding: 5px 0;}
.flag{ display: inline-block; width: 10px; height: 14px; margin-right: 5px; background:url(../images/icon_flag.png) no-repeat;}
.el-table .cell{ padding: 0 5px;}
i.icon_flag{ display: inline-block; width: 12px; height: 23px; background: url("../images/icon.png") no-repeat; vertical-align: middle;}
</style>
</head>
<body>
<div id="app" v-cloak style="overflow: hidden">
<div class="layerPop">
<div class="tab">
<el-select v-model="sltyear" placeholder="请选择" size="small" style="width: calc(50% - 10px); margin-bottom: 5px; float: left;">
<el-option
v-for="item in sltYearList"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
<el-select v-model="sltArea" placeholder="请选择" size="small" style="width: calc(50% - 10px); margin-left: 20px; margin-bottom: 5px; float: left;">
<el-option
v-for="item in sltAreaList"
:key="item['行政区划编码']"
:label="item['行政区划名称']"
:value="item['行政区划编码']">
</el-option>
</el-select>
<el-table ref="table" :row-class-name="tableRowClassName" :data="tableData" max-height='480' style="width: 100%;" highlight-current-row @cell-click="cellClick" class="pointerTab">
<el-table-column prop="" label="" align="left">
<template slot-scope="scope">
<div style="width: 20px; float: left;"><i class="icon_flag" v-if="scope.row['地图信息']"></i> </div>
<div style=" width: calc(100% - 20px); float: left;">{{ scope.row['住房位置'] }}({{isEmpty(scope.row['区县名称'])}})</div>
<div class="clear"></div>
</template>
</el-table-column>
<el-table-column prop="" label="" align="center" width='90'>
<template slot-scope="scope">
<el-button type="primary" size='mini' class="myBtn" @click.native.stop='handleFlag(scope.$index, scope.row)'><i class="flag fl"></i><span class="fl" style="font-size: 14px;">标记</span></el-button>
</template>
</el-table-column>
</el-table>
</div>
<a href="javascript:void(0)" class="btnSave" @click="saveBtnClick" v-show="addFlag==1">保存</a>
</div>
<div id="map" style="width:100%; height: 100%;"><div id="popup"></div></div>
<div id="mouse-position"></div>
<el-dialog title="保存标记" :visible.sync="dialogVisible" width="30%" center :close-on-click-modal="false">
<el-form ref="form" :model="form" label-width="100px">
<el-form-item label="所属区县:">
<el-input v-model="form.name"></el-input>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="saveForm">确 定</el-button>
<el-button @click="dialogVisible = false">取 消</el-button>
</span>
</el-dialog>
</div>
<script src="../js/jq3.4.1.js"></script>
<script src="../openLayers/js/ol.js"></script>
<script src="../openLayers/js/mapper.js"></script>
<script src="../js/vue.min.js"></script>
<script src="../js/element-ui.js"></script>
<script src="../../route/route.js"></script>
<script src="../js/mapFlagManager.js"></script>
</body>
</html>