|
@@ -211,7 +211,6 @@ import {onMounted, reactive, ref} from "vue";
|
|
|
import huiZhouGeoJSON from "./geo"
|
|
|
import {getPosition, setBoundary} from "@/utils/position";
|
|
|
import redThIcon from "@/assets/images/redTh.png"
|
|
|
-import thIcon from "@/assets/images/th.jpg"
|
|
|
import {message, type SelectProps} from "ant-design-vue";
|
|
|
import {getSysDictionaryList} from "@/api/system/dictionary";
|
|
|
import {getSiteList} from "@/api/baseSettings/siteInfo";
|
|
@@ -225,14 +224,12 @@ const zoom = 9;
|
|
|
let map = null;
|
|
|
// 地图标记点
|
|
|
let markerList = new Array<any>([]);
|
|
|
-// 地图标记点文本
|
|
|
-let labelList = new Array<any>([]);
|
|
|
// 查询类型
|
|
|
const searchType = ref("company")
|
|
|
// 企业查询条件
|
|
|
const companySearchParam = reactive({
|
|
|
pageIndex: 1,
|
|
|
- pageSize: 5,
|
|
|
+ pageSize: 50,
|
|
|
companyName: "",
|
|
|
maxDistance: 5,
|
|
|
companyModel: undefined,
|
|
@@ -257,7 +254,7 @@ const nowCheckCompany = ref({
|
|
|
// 岗位查询条件
|
|
|
const postSearchParams = reactive({
|
|
|
pageIndex: 1,
|
|
|
- pageSize: 5,
|
|
|
+ pageSize: 20,
|
|
|
})
|
|
|
// 当前选中的企业岗位列表
|
|
|
const postList = ref<Array<any>>([]);
|
|
@@ -423,6 +420,10 @@ function setCompanyMarker() {
|
|
|
const marker = new T.Marker(point, {
|
|
|
icon: icon
|
|
|
}); // 创建标注
|
|
|
+ // 给每个地图标点添加点击事件,打印item
|
|
|
+ marker.addEventListener('click', () => {
|
|
|
+ checkCompanyChange(item);
|
|
|
+ });
|
|
|
(map as any).addOverLay(marker);// 将标注添加到地图中
|
|
|
markerList.push(marker);
|
|
|
}
|