管理系统PC前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dm-manage-web/src/views/sch/place/index.vue

751 lines
24 KiB

2 years ago
2 years ago
<template>
<div class="amap-page-container">
<div id="map" class="amap-cavans" />
<el-input id="search" v-model="searchBody" class="search-body" placeholder="请输入..." @keyup.enter.native="submitSearch">
<el-button slot="append" icon="el-icon-search" @click="submitSearch" />
</el-input>
2 years ago
<div class="asider" :class="showSchool ? '' : 'hidden-school'">
<el-card class="box-card" :body-style="{ flex: 1, 'overflow-y': 'scroll', padding: 0 }">
<div style="margin:10px;">
<el-input v-model="searchValue" placeholder="请输入驾校名" ></el-input>
</div>
2 years ago
<div slot="header" class="clearfix">
<div class="map-card-title">驾校列表</div>
</div>
<div v-for="school in schoolList.filter(item => (searchValue == undefined || item.schoolName.includes(searchValue)))" :key="school.schoolId" style="margin:10px;" :class="currentdeptId == school.schoolId ? 'actived-school' : ''">
2 years ago
<el-card :body-style="{ padding: '10px' }">
<div slot="header" class="clearfix">
<div class="map-card-title">{{ school.schoolName }}</div>
2 years ago
<el-switch v-model="school.showInMap" v-hasPermi="['sch:place:edit']" class="add-icon" active-text="展示" inactive-text="隐藏" @change="changeSchoolStatus(school)" />
2 years ago
</div>
<el-button @click="handleClickSchool(school)">{{ `数据管理(${getCount(school.schoolId)})` }}</el-button>
2 years ago
<el-tooltip v-hasPermi="['sch:place:add']" content="新增场地" placement="left" effect="dark">
2 years ago
<el-button icon="el-icon-plus" class="add-place-btn" @click="handleInsertPlace(school.schoolId)" />
</el-tooltip>
</el-card>
</div>
</el-card>
<div class="asider-sub">
<el-tooltip content="放大" placement="left" effect="dark">
<el-button icon="el-icon-plus" class="is-circle" :disabled="zomm >= 18" @click="bigger" />
</el-tooltip>
<el-tooltip content="缩小" placement="left" effect="dark">
<el-button icon="el-icon-minus" class="is-circle" :disabled="zomm <= 8" @click="smaller" />
</el-tooltip>
<div class="mt10">
<el-tooltip content="驾校" placement="left" effect="dark">
<el-button icon="el-icon-school" class="is-circle" @click="toggleSchool" />
</el-tooltip>
<el-tooltip content="定位" placement="left" effect="dark">
<el-button icon="el-icon-help" class="is-circle" @click="geolocation" />
</el-tooltip>
<el-tooltip content="测距" placement="left" effect="dark">
<el-button icon="el-icon-thumb" class="is-circle" @click="ranging" />
</el-tooltip>
<el-tooltip content="分享" placement="left" effect="dark">
<el-button icon="el-icon-share" class="is-circle" />
</el-tooltip>
</div>
</div>
</div>
<el-card v-if="placeDialogShow" class="place-dialog" :body-style="{ padding: '10px' }">
<div slot="header" class="clearfix">
<div class="map-card-title">场地设置</div>
<el-tooltip content="取点" placement="right" effect="dark">
<el-button icon="el-icon-location" class="add-icon" @click="getPoint" />
</el-tooltip>
</div>
<el-form ref="placeForm" :model="placeForm" label-width="70px">
<el-form-item label="所属驾校" prop="schoolId">
<el-select v-model="placeForm.schoolId" placeholder="请选择" clearable>
<el-option v-for="dict in schoolList" :key="dict.schoolId" :label="dict.schoolName" :value="dict.schoolId" />
</el-select>
</el-form-item>
<el-form-item label="名称" prop="name">
<el-input v-model="placeForm.name" placeholder="输入名称" />
</el-form-item>
<el-form-item label="旗子颜色" prop="flagColor">
<el-radio-group v-model="placeForm.flagColor">
<el-radio v-for="(item, index) in colorOptions" :key="index" :label="item">
2 years ago
<img :src="require(`@/assets/images/place/flag_${item}.png`)" width="20px">
2 years ago
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="地址" prop="address">
<el-input v-model="placeForm.address" placeholder="输入地址" />
</el-form-item>
<el-form-item label="经度" prop="lng">
<el-input v-model="placeForm.lng" placeholder="输入经度" />
</el-form-item>
<el-form-item label="纬度" prop="lat">
<el-input v-model="placeForm.lat" placeholder="输入纬度" />
</el-form-item>
<el-form-item label="所属区域" prop="area">
<el-select v-model="placeForm.area" placeholder="请选择" clearable size="small">
<el-option v-for="dict in areaOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
</el-select>
</el-form-item>
<el-form-item label="电话" prop="phone">
<el-input v-model="placeForm.phone" placeholder="输入电话" />
</el-form-item>
<el-form-item label="负责人" prop="contact">
<el-input v-model="placeForm.contact" placeholder="输入负责人" />
</el-form-item>
<el-form-item label="是否推荐" prop="contact">
<el-radio v-model="placeForm.recommend" :label="true"></el-radio>
<el-radio v-model="placeForm.recommend" :label="false"></el-radio>
</el-form-item>
<el-form-item label="备注" prop="remark">
2 years ago
<el-input v-model="placeForm.remark" placeholder="输入备注" type="textarea" :autosize="{ minRows: 2, maxRows: 4 }" />
2 years ago
</el-form-item>
<el-form-item style="text-align:right;">
2 years ago
<el-button v-hasPermi="['sch:place:edit']" type="primary" @click="onSubmit">保存</el-button>
2 years ago
<el-button @click="closePlaceDialog">取消</el-button>
</el-form-item>
</el-form>
</el-card>
2 years ago
<el-card :class="placeListDialogShow ? '' : 'hidden-place-list'" class="place-list-dialog" :style="{ right: showSchool ? '300px' : '0', top: fullScreenPlaceList ? '0px' : '420px' }" :body-style="{ padding: '10px', height: 'calc(100% - 52px)' }">
2 years ago
<div slot="header" class="clearfix">
<div class="map-card-title">
{{ placeListDialogTitle }}
<el-input v-model="tableSearch" placeholder="请输入搜索的内容" clearable />
</div>
<el-tooltip content="全屏" placement="top" effect="dark">
<el-button icon="el-icon-full-screen" class="add-icon" @click="fullScreenPlaceList = !fullScreenPlaceList" />
</el-tooltip>
<el-tooltip content="关闭" placement="top" effect="dark">
2 years ago
<el-button icon="el-icon-close" class="add-icon" @click="() => { placeListDialogShow = false; fullScreenPlaceList = false }" />
2 years ago
</el-tooltip>
</div>
<el-table :data="placeTableData" border stripe class="place-table-list" height="100%">
<el-table-column label="序号" type="index" fixed="left" width="50" />
<el-table-column prop="name" label="名称" min-width="100" />
<el-table-column prop="phone" label="电话" width="120" />
<el-table-column prop="contact" label="负责人" width="120" />
<el-table-column prop="address" label="地址" min-width="100" />
<el-table-column prop="lng" label="经度" width="110" />
<el-table-column prop="lat" label="纬度" width="110" />
<el-table-column prop="area" label="所属区域" width="110" />
<el-table-column label="展示" width="100">
<template slot-scope="scope">
2 years ago
<el-switch v-model="scope.row.showInMap" v-hasPermi="['sch:place:edit']" @change="changePlaceStatus(scope.row)" />
2 years ago
</template>
</el-table-column>
<el-table-column label="操作" width="100">
<template slot-scope="scope">
2 years ago
<el-tooltip v-hasPermi="['sch:place:edit']" content="编辑" placement="top" effect="dark">
2 years ago
<el-button icon="el-icon-edit" type="primary" style="padding: 4px 8px;" @click="handleEditPlace(scope.row)" />
</el-tooltip>
</template>
</el-table-column>
</el-table>
</el-card>
2 years ago
<div v-if="isPointing || isRanging" class="map-tip" :style="{ transform: 'translate3D(' + (tipPostion.x + 15) + 'px,' + (tipPostion.y - 10) + 'px, 0)' }">{{ mapHelpText }}</div>
<i v-if="isPointing" class="el-icon-s-flag circle" :style="{ transform: 'translate3D(' + tipPostion.x + 'px,' + tipPostion.y + 'px, 0)' }" />
2 years ago
</div>
</template>
2 years ago
<!-- eslint-disable no-undef -->
2 years ago
<script>
2 years ago
import { getMapData, addPlace, updatePlace, updateSchoolStatus } from '@/api/sch/place';
2 years ago
export default {
name: 'Place',
data() {
return {
aMap: null,
zomm: 12,
showSchool: true,
isRanging: false,
aMapLocation: null,
aMouseTool: null,
searchBody: '',
placeSearch: null,
placeDialogShow: false,
isPointing: false,
placeForm: {
lat: undefined,
lng: undefined,
name: undefined,
address: undefined,
remark: undefined,
phone: undefined,
2 years ago
flagColor: 'red'
2 years ago
},
colorOptions: ['red', 'yellow', 'blue', 'green', 'purple', 'black'],
mapHelpText: '',
tipPostion: {
x: 0,
2 years ago
y: 0
2 years ago
},
geocoder: null,
locationMarker: null,
selectMarker: null,
placeListDialogShow: false,
placeListDialogTitle: '',
fullScreenPlaceList: false,
tableSearch: '',
tableData: [],
schoolList: [],
currentdeptId: undefined,
placeMarkerList: [],
areaOptions: [],
searchValue: undefined
2 years ago
};
2 years ago
},
computed: {
placeTableData: function () {
if (this.tableSearch) {
return this.tableData.filter((dataNews) => {
return (
dataNews.schoolId === this.currentdeptId &&
Object.keys(dataNews).some((key) => {
2 years ago
return String(dataNews[key]).toLowerCase().indexOf(this.tableSearch) > -1;
2 years ago
})
2 years ago
);
});
2 years ago
}
2 years ago
return this.tableData.filter((dataNews) => dataNews.schoolId === this.currentdeptId);
}
2 years ago
},
mounted() {
2 years ago
this.initMap();
2 years ago
this.getDicts('dm_area').then((response) => {
2 years ago
this.areaOptions = response.data;
});
2 years ago
},
methods: {
initMap() {
window.onLoad = () => {
this.aMap = new AMap.Map('map', {
zoom: this.zomm,
2 years ago
center: [117.226095, 31.814372],
2 years ago
zooms: [8, 18]
});
2 years ago
// 监听缩放
this.aMap.on('zoomend', () => {
2 years ago
this.zomm = this.aMap.getZoom();
this.$message('当前缩放等级:' + this.zomm);
});
2 years ago
// 监听点击
this.aMap.on('click', (ev) => {
if (this.isPointing) {
2 years ago
this.placeForm.lat = ev.lnglat.lat;
this.placeForm.lng = ev.lnglat.lng;
this.regeoCode();
2 years ago
if (this.selectMarker) {
2 years ago
this.selectMarker.setPosition([this.placeForm.lng, this.placeForm.lat]);
2 years ago
} else {
2 years ago
this.locationMarker.setPosition([this.placeForm.lng, this.placeForm.lat]);
this.aMap.add(this.locationMarker);
2 years ago
}
2 years ago
this.isPointing = false;
2 years ago
}
2 years ago
});
2 years ago
// 监听移动
this.aMap.on('mousemove', (ev) => {
if (this.isRanging) {
2 years ago
this.mapHelpText = '左键单击选点,双击/右键单击完成选点,再次点击测距按钮可退出测距模式,并清除测距结果';
2 years ago
this.tipPostion = {
x: ev.pixel.x,
2 years ago
y: ev.pixel.y
};
2 years ago
} else if (this.isPointing) {
2 years ago
this.mapHelpText = '点击地图添加标注';
2 years ago
this.tipPostion = {
x: ev.pixel.x,
2 years ago
y: ev.pixel.y
};
2 years ago
}
2 years ago
});
2 years ago
// 添加地图插件
2 years ago
AMap.plugin(['AMap.Scale', 'AMap.Geolocation', 'AMap.MouseTool', 'AMap.PlaceSearch', 'AMap.Autocomplete', 'AMap.Geocoder'], () => {
this.aMap.addControl(new AMap.Scale());
const geoLoca = new AMap.Geolocation({
showButton: false
});
this.aMapLocation = geoLoca;
this.aMap.addControl(geoLoca);
this.aMouseTool = new AMap.MouseTool(this.aMap);
const auto = new AMap.Autocomplete({
input: 'search' // 前端搜索框
});
this.placeSearch = new AMap.PlaceSearch({
map: this.aMap
});
AMap.event.addListener(auto, 'select', this.select);
this.geocoder = new AMap.Geocoder();
this.locationMarker = new AMap.Marker({
icon: require(`@/assets/images/place/flag_red.png`)
});
});
this.getPageData();
};
this.importMap();
2 years ago
},
// 导入地图
importMap() {
2 years ago
const url = 'https://webapi.amap.com/maps?v=1.4.15&key=0e62be0896c6b8d27d453445f0fb8bc4&callback=onLoad';
2 years ago
var jsapi = document.createElement('script');
jsapi.charset = 'utf-8';
jsapi.src = url;
document.head.appendChild(jsapi);
2 years ago
},
toggleSchool() {
2 years ago
this.showSchool = !this.showSchool;
2 years ago
},
// 经纬度 -> 地址
regeoCode() {
2 years ago
this.geocoder.getAddress([this.placeForm.lng, this.placeForm.lat], (status, result) => {
if (status === 'complete' && result.regeocode) {
this.placeForm.address = result.regeocode.formattedAddress;
} else {
console.log('根据经纬度查询地址失败');
2 years ago
}
2 years ago
});
2 years ago
},
// 定位
geolocation() {
2 years ago
this.aMapLocation.getCurrentPosition();
2 years ago
},
// 测距
ranging() {
2 years ago
this.isPointing = false;
this.isRanging = !this.isRanging;
2 years ago
if (this.isRanging) {
2 years ago
this.aMap.setDefaultCursor('crosshair');
this.drawLine();
2 years ago
} else {
2 years ago
this.aMap.setDefaultCursor('default');
this.aMouseTool.close(true);
2 years ago
}
},
// 画线
drawLine() {
this.aMouseTool.rule({
startMarkerOptions: {
// 可缺省
icon: new AMap.Icon({
size: new AMap.Size(19, 31), // 图标大小
imageSize: new AMap.Size(19, 31),
2 years ago
image: 'https://webapi.amap.com/theme/v1.3/markers/b/start.png'
})
2 years ago
},
endMarkerOptions: {
// 可缺省
icon: new AMap.Icon({
size: new AMap.Size(19, 31), // 图标大小
imageSize: new AMap.Size(19, 31),
2 years ago
image: 'https://webapi.amap.com/theme/v1.3/markers/b/end.png'
2 years ago
}),
2 years ago
offset: new AMap.Pixel(-9, -31)
2 years ago
},
midMarkerOptions: {
// 可缺省
icon: new AMap.Icon({
size: new AMap.Size(19, 31), // 图标大小
imageSize: new AMap.Size(19, 31),
2 years ago
image: 'https://webapi.amap.com/theme/v1.3/markers/b/mid.png'
2 years ago
}),
2 years ago
offset: new AMap.Pixel(-9, -31)
2 years ago
},
lineOptions: {
// 可缺省
strokeStyle: 'solid',
strokeColor: '#FF33FF',
strokeOpacity: 1,
2 years ago
strokeWeight: 2
2 years ago
},
tmpLineOptions: {
strokeStyle: 'dashed',
strokeColor: '#FF33FF',
strokeOpacity: 1,
2 years ago
strokeWeight: 2
}
});
2 years ago
},
// 选择查询结果
select(e) {
2 years ago
this.placeSearch.setCity(e.poi.adcode);
this.placeSearch.search(e.poi.name); // 关键字查询查询
2 years ago
},
// 查询按钮/回车事件
submitSearch() {
2 years ago
this.placeSearch.search(this.searchBody);
2 years ago
},
// 缩放
bigger() {
2 years ago
this.zomm++;
this.aMap.setZoom(this.zomm);
2 years ago
},
smaller() {
2 years ago
this.zomm--;
this.aMap.setZoom(this.zomm);
2 years ago
},
// 点击数据管理
handleClickSchool(item) {
2 years ago
this.placeListDialogShow = true;
this.placeListDialogTitle = `数据管理 [${item.schoolName}]`;
this.currentdeptId = item.schoolId;
2 years ago
},
// 新增场地
handleInsertPlace(schoolId) {
if (this.selectMarker) {
2 years ago
this.selectMarker.setAnimation('AMAP_ANIMATION_NONE');
this.selectMarker = null;
2 years ago
}
2 years ago
this.placeDialogShow = true;
this.aMap.setDefaultCursor('default');
this.isRanging = false;
2 years ago
this.placeForm = {
lat: undefined,
lng: undefined,
name: undefined,
address: undefined,
remark: undefined,
phone: undefined,
schoolId: schoolId,
showInMap: true,
2 years ago
flagColor: 'red'
};
2 years ago
},
// 编辑场地
handleEditPlace(item) {
2 years ago
this.placeDialogShow = true;
this.aMap.setDefaultCursor('default');
2 years ago
if (this.selectMarker) {
2 years ago
this.selectMarker.setAnimation('AMAP_ANIMATION_NONE');
2 years ago
}
2 years ago
this.isRanging = false;
this.placeForm = Object.assign({}, item);
this.selectMarker = this.placeMarkerList.filter((marker) => marker.getExtData().placeId === item.placeId)[0];
this.selectMarker && this.selectMarker.setAnimation('AMAP_ANIMATION_BOUNCE');
this.aMap.setCenter([item.lng, item.lat]);
2 years ago
},
getPoint() {
2 years ago
this.isPointing = !this.isPointing;
2 years ago
},
// 保存
async onSubmit() {
// 保存接口
if (this.checkPlaceFormValidate()) {
// 先访问接口,返回id插入placeForm
2 years ago
const resp = this.savePlace(this.placeForm);
2 years ago
if (resp.code != 200) {
2 years ago
return;
2 years ago
} else {
this.$message.success('操作成功');
}
if (!this.placeForm.placeId && resp.data) {
2 years ago
this.$set(this.placeForm, 'placeId', resp.data);
2 years ago
}
// 移除选点用 的标记
2 years ago
this.aMap.remove(this.locationMarker);
2 years ago
// 根据form创建新marker 并添加到地图上
const tmpMarker = new AMap.Marker({
map: this.aMap,
position: [this.placeForm.lng, this.placeForm.lat],
icon: require(`@/assets/images/place/flag_${this.placeForm.flagColor}.png`),
label: {
content: this.placeForm.name,
2 years ago
direction: 'right'
2 years ago
},
2 years ago
extData: this.placeForm
});
2 years ago
// 新marker事件
2 years ago
tmpMarker.on('click', this.handleClickMarker);
2 years ago
// 如果当前选择的marker点存在(编辑)
if (this.selectMarker) {
// 地图上 移除选择的点
2 years ago
this.aMap.remove(this.selectMarker);
this.selectMarker = null;
2 years ago
}
// 关闭场地弹窗
2 years ago
this.placeDialogShow = false;
this.isPointing = false;
2 years ago
// 场地列表 移除原列表中操作的场地数据
2 years ago
const tmpArr = this.tableData.filter((item) => item.placeId !== this.placeForm.placeId);
2 years ago
// 新增新的场地
2 years ago
tmpArr.push(this.placeForm);
2 years ago
// 重置场地数组
2 years ago
this.tableData = tmpArr;
2 years ago
// 地图marker列表 移除操作的原marker 添加新marker进数组
2 years ago
const tmpArr1 = this.placeMarkerList.filter((item) => item.getExtData().placeId !== this.placeForm.placeId);
tmpArr1.push(tmpMarker);
this.placeMarkerList = tmpArr1;
2 years ago
}
},
2 years ago
async savePlace(item) {
if (item.placeId) {
return updatePlace(item);
} else {
2 years ago
return addPlace(item);
2 years ago
}
},
2 years ago
checkPlaceFormValidate() {
2 years ago
const valid = [];
2 years ago
if (!this.placeForm.name) {
2 years ago
valid.push('名称');
2 years ago
}
if (!this.placeForm.address) {
2 years ago
valid.push('地址');
2 years ago
}
if (!this.placeForm.lng) {
2 years ago
valid.push('经度');
2 years ago
}
if (!this.placeForm.lat) {
2 years ago
valid.push('纬度');
2 years ago
}
if (!this.placeForm.phone) {
2 years ago
valid.push('电话');
2 years ago
}
if (valid.length == 0) {
2 years ago
return true;
2 years ago
} else {
2 years ago
this.$message.error(`请将以下填写完整: ${valid.join(',')}`);
return false;
2 years ago
}
},
// 关闭场地弹窗
closePlaceDialog() {
2 years ago
this.placeDialogShow = false;
this.isPointing = false;
this.aMap.remove(this.locationMarker);
2 years ago
if (this.selectMarker) {
2 years ago
this.selectMarker.setAnimation('AMAP_ANIMATION_NONE');
this.selectMarker = null;
2 years ago
}
},
handleClickMarker(ev) {
if (this.selectMarker) {
2 years ago
this.selectMarker.setAnimation('AMAP_ANIMATION_NONE');
2 years ago
}
2 years ago
this.placeForm = ev.target.getExtData();
this.placeDialogShow = true;
ev.target.setAnimation('AMAP_ANIMATION_BOUNCE');
this.selectMarker = ev.target;
2 years ago
},
getPageData() {
getMapData().then((resp) => {
if (resp.code == 200) {
2 years ago
this.schoolList = resp.data.schoolList;
this.tableData = resp.data.placeList;
this.currentdeptId = this.schoolList[0].schoolId;
this.createMarkersInMap();
2 years ago
}
2 years ago
});
2 years ago
},
getCount(schoolId) {
2 years ago
return this.tableData.filter((item) => item.schoolId === schoolId).length;
2 years ago
},
// 重置markers
resetMarkers() {
2 years ago
this.aMap.clearMap();
this.createMarkersInMap();
2 years ago
},
// 生成markers
createMarkersInMap() {
for (let i = 0; i < this.tableData.length; i++) {
2 years ago
const element = this.tableData[i];
const tempSchool = this.schoolList.filter((item) => item.schoolId === element.schoolId)[0];
2 years ago
if (!element.schoolShow || !element.showInMap) {
2 years ago
continue;
2 years ago
}
const tmpMarker = new AMap.Marker({
map: this.aMap,
position: [element.lng, element.lat],
icon: require(`@/assets/images/place/flag_${element.flagColor}.png`),
label: {
content: element.name,
2 years ago
direction: 'right'
2 years ago
},
2 years ago
extData: element
});
tmpMarker.on('click', this.handleClickMarker);
this.placeMarkerList.push(tmpMarker);
2 years ago
}
},
// 修改驾校状态
changeSchoolStatus(item) {
// 访问接口,成功后重置markers
updateSchoolStatus(item).then((resp) => {
if (resp.code == 200) {
this.$message.success('操作成功');
// this.aMap.clearMap()
// this.getPageData()
2 years ago
this.resetMarkers();
2 years ago
}
2 years ago
});
2 years ago
},
// 修改场地状态
async changePlaceStatus(item) {
2 years ago
const resp = await updatePlace(item);
2 years ago
if (resp.code == 200) {
2 years ago
this.resetMarkers();
2 years ago
}
2 years ago
}
}
};
2 years ago
</script>
<style scoped>
.amap-page-container {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.amap-cavans {
width: 100%;
height: 100%;
}
.asider {
position: absolute;
right: 0;
top: 0;
width: 300px;
height: 100%;
transition: 0.3s;
z-index: 9;
}
.box-card {
display: flex;
flex-direction: column;
height: 100%;
}
2 years ago
::v-deep .el-card__header {
2 years ago
padding: 10px 15px;
}
.clearfix {
display: flex;
}
.clearfix .map-card-title {
flex: 1;
line-height: 30px;
}
.clearfix .add-icon {
width: auto;
height: 30px;
}
.asider-sub {
position: absolute;
top: 40px;
left: -45px;
padding: 10px 10px 0 0;
z-index: 900;
}
.asider-sub .is-circle {
display: block;
margin: 0;
padding: 10px;
color: #464646;
border-radius: 0;
font-size: 16px;
box-shadow: 2px 2px 2px rgba(80, 80, 80, 0.67);
}
.mt10 {
margin-top: 10px;
}
.hidden-school {
transform: translateX(300px);
}
.search-body {
position: absolute;
top: 20px;
left: 20px;
width: 400px;
}
.add-place-btn {
float: right;
border: none;
font-size: 16px;
color: #409eff;
}
2 years ago
::v-deep .place-dialog {
2 years ago
position: absolute;
left: 20px;
top: 60px;
width: 350px;
}
.map-tip {
position: absolute;
left: 0;
top: 0;
max-width: 150px;
padding: 5px;
border-radius: 2px;
background: #000;
color: #fff;
opacity: 0.7;
font-size: 12px;
transition-duration: 1ms;
}
.circle {
position: absolute;
left: -8px;
top: -25px;
font-size: 24px;
color: red;
transition-duration: 1ms;
}
.place-dialog .el-form .el-form-item {
margin-bottom: 8px;
}
.place-list-dialog {
position: absolute;
top: 420px;
left: 0;
bottom: 0;
transition: 0.3s;
z-index: 151;
background: #e2e5ea;
}
.place-list-dialog .add-icon {
font-size: 18px;
border: none;
}
.hidden-place-list {
transform: translateY(100%);
}
.place-list-dialog .clearfix .map-card-title {
font-weight: bold;
}
.place-list-dialog .clearfix .map-card-title .el-input {
margin-left: 20px;
width: 240px;
}
.actived-school {
border: 2px solid #409eff !important;
}
2 years ago
2 years ago
::v-deep .el-radio__label {
2 years ago
vertical-align: middle;
}
</style>