找专家

This commit is contained in:
hh
2022-01-27 13:33:17 +08:00
parent 52a068bf7d
commit 8176871fcf
18 changed files with 1385 additions and 121 deletions

View File

@ -128,9 +128,9 @@ const state = reactive({
isShowTips: false,//是否显示下载提示
});
onMounted(async () => {
onMounted(() => {
// 数据接口
await achievement().then(res => {
achievement().then(res => {
if (200 == res.code) {
treeData = res.data;
snapTree.value = res.data;
@ -156,21 +156,23 @@ onMounted(async () => {
state.echartsMap = echarts.init(dom);
state.echartsMap.on('click', echartsMapClick);
state.map = new AMap.Map('container', {
resizeEnable: true,
center: [116.30946, 39.937629],
zoom: 3
});
state.opts = {
subdistrict: 1, //返回下一级行政区
showbiz: false //最后一级返回街道信息
};
state.district = new AMap.DistrictSearch(state.opts);//注意:需要使用插件同步下发功能才能这样直接使用
state.district.search('中国', (status, result) => {
if (status == 'complete') {
getData(result.districtList[0], '', 100000);
}
});
setTimeout(() => {
state.map = new AMap.Map('container', {
resizeEnable: true,
center: [116.30946, 39.937629],
zoom: 3
});
state.opts = {
subdistrict: 1, //返回下一级行政区
showbiz: false //最后一级返回街道信息
};
state.district = new AMap.DistrictSearch(state.opts);//注意:需要使用插件同步下发功能才能这样直接使用
state.district.search('中国', (status, result) => {
if (status == 'complete') {
getData(result.districtList[0], '', 100000);
}
});
}, 3000)
});