diff --git a/src/views/components/countryMap.vue b/src/views/components/countryMap.vue index df329a1..3e2a933 100644 --- a/src/views/components/countryMap.vue +++ b/src/views/components/countryMap.vue @@ -10,7 +10,7 @@ @@ -40,7 +40,7 @@ @pagination="getDialogList" /> - + @@ -51,7 +51,7 @@ import mapChinaJson from '@/utils/mapJson/china.json' import { listDept } from "@/api/system/dept"; import { listUser} from "@/api/system/userInfo"; import Treeselect from "@riophae/vue-treeselect"; -import "@riophae/vue-treeselect/dist/vue-treeselect.css"; +import "@riophae/vue-treeselect/dist/vue-treeselect.css"; export default { name: 'centerTopPage', components: { Treeselect }, @@ -104,13 +104,13 @@ export default { open:false, title:'人员信息', dialogList:[], - + } }, created() { }, mounted() { - + this.getInitData() /*let mapElem = document.querySelector('#mapEcharts') mapElem.addEventListener('click', (e) => { @@ -125,7 +125,7 @@ export default { ) this.mapJson = mapChinaJson echarts.registerMap('china', this.mapJson) - this.$nextTick(() => { + this.$nextTick(() => { this.setMapOption() }) }, @@ -143,7 +143,7 @@ export default { // 获取当前地区的经纬度 geoCoordMap[name] = v.properties.center } - }) + }) let that = this this.pointAll = this.cityCount @@ -167,7 +167,7 @@ export default { // }, title: { top: 10, - text: '贵州送变电工程有限公司人员分布图', + text: '贵州送变电有限公司人员分布图', x: 'letf', textStyle: { color: '#006EFF' @@ -246,7 +246,7 @@ export default { // // 可以在这里编写轮播的格式化内容 // // return params.name + ': ' + params.value; // } - + // }, }, { @@ -365,8 +365,8 @@ export default { data: this.geoVal || [], }, ], - } - + } + this.mapEcharts.setOption(echartOption) this.mapEcharts.on('georoam', function (params) { let option = that.mapEcharts.getOption() //获得option对象 @@ -409,7 +409,7 @@ export default { // that.$emit('closeMap', { value: params.data }) } }) - + }, openDialog(item){ this.open=true; @@ -423,7 +423,7 @@ export default { getDialogList() { listUser(this.dialogQueryForm).then(response => { this.dialogList = response.rows; - this.dialogTotal = response.total; + this.dialogTotal = response.total; }); }, /** 搜索按钮操作 */ @@ -437,7 +437,7 @@ export default { // this.resetForm("dialogQueryForm"); this.handleDialogQuery(); }, - + getDeptList(){ listDept().then(response => { this.deptOptions = this.handleTree(response.data, "id");