Commit 7b19e994 authored by Your Name's avatar Your Name

地图不见、机构管理

parent 6904ac15
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="page-tip"> <div class="page-tip">
<span class="page-tip-title">页面说明:</span> <span class="page-tip-title" style='width:80px'>页面说明:</span>
<span class="page-tips">可通过展板名称、创建时间对展板信息进行快速检索。可对展板进行上架、下架、删除、修改及查看展板详情等操作。已上架展板需先下架才能删除。</span> <span class="page-tips">可通过展板名称、创建时间对展板信息进行快速检索。可对展板进行上架、下架、删除、修改及查看展板详情等操作。已上架展板需先下架才能删除。</span>
</div> </div>
</div> </div>
......
...@@ -343,7 +343,7 @@ export default { ...@@ -343,7 +343,7 @@ export default {
// 删除 // 删除
handleDelete(row) { handleDelete(row) {
let _this = this; let _this = this;
this.$confirm("此操作将永久删除, 是否继续?", "提示", { this.$confirm("此操作将永久删除, 是否继续?", "提示",{
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning", type: "warning",
......
<template> <template>
<div class="map-box"> <div id="map-box">
<span id="back" v-if="parentInfo.length !== 1" @click="handleBack()" <span id="back" v-if="parentInfo.length !== 1" @click="handleBack()"
>返回</span >返回</span
> >
...@@ -118,14 +118,15 @@ export default { ...@@ -118,14 +118,15 @@ export default {
map: this.parentInfo.length === 1 ? "china" : "map", map: this.parentInfo.length === 1 ? "china" : "map",
roam: !1, roam: !1,
roam: true, //是否开启平游或缩放 roam: true, //是否开启平游或缩放
scaleLimit: { // scaleLimit: {
//滚轮缩放的极限控制 // //滚轮缩放的极限控制
min: 1 // min: 1
}, // },
zoom: 1.1, zoom: 1.1,
top: 100, top: 110,
left: "20%", bottom:0,
left: "24%",
label: { label: {
normal: { normal: {
show: !0, show: !0,
...@@ -159,6 +160,10 @@ export default { ...@@ -159,6 +160,10 @@ export default {
}, },
}, },
}, },
emphasis: {
// color: "#ffffff",
show: true,
},
itemStyle: { itemStyle: {
normal: { normal: {
borderColor: "rgba(0, 0, 0, 0.2)", borderColor: "rgba(0, 0, 0, 0.2)",
...@@ -195,7 +200,7 @@ export default { ...@@ -195,7 +200,7 @@ export default {
], ],
}; };
let echartsDiv = this.$echarts.init(document.getElementById("mapDiv")); let echartsDiv = this.$echarts.init(document.getElementById("mapDiv"));
echartsDiv.setOption(option); echartsDiv.setOption(option, true);
echartsDiv.on("click", this.echartsMapClick); echartsDiv.on("click", this.echartsMapClick);
}, },
handleBack() { handleBack() {
...@@ -262,7 +267,7 @@ export default { ...@@ -262,7 +267,7 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
.map-box { #map-box {
width: 100%; width: 100%;
height: 100%; height: 100%;
#back { #back {
......
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
}, },
}, },
}, },
mounted() { created() {
getAreas().then((res) => { getAreas().then((res) => {
this.areaOptions = res; this.areaOptions = res;
}); });
......
...@@ -205,6 +205,7 @@ export default { ...@@ -205,6 +205,7 @@ export default {
//导入 //导入
handleImport() {}, handleImport() {},
handleEdit() { handleEdit() {
this.getInfoById()
this.$refs.orgEdit.dialogVisible = true; this.$refs.orgEdit.dialogVisible = true;
}, },
downLoad() { downLoad() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment