1.优化
This commit is contained in:
2025-07-09 17:33:51 +08:00
parent cd1b085499
commit cf129e6d23
18 changed files with 48 additions and 60 deletions
+6 -10
View File
@@ -200,12 +200,12 @@
Map.map.on('moveend', logMapinfo);
return;
}
if (TabType.zhiShengJi == item.type) {
Map.createAircraft(aircraft);
return;
} else {
getMapData(item.type, { type: item.type });
}
// if (TabType.zhiShengJi == item.type) {
// Map.createAircraft(aircraft);
// return;
// } else {
// getMapData(item.type, { type: item.type });
// }
}
function watchInfoChangeTab(item: any) {
@@ -238,14 +238,12 @@
// console.log('绘制驾车路线完成');
searchFlag.value = false;
} else {
console.log('获取驾车数据失败:', result);
searchFlag.value = false;
}
});
AMap.Event.addListener(driving, 'complete', (res) => {
const data = JSON.parse(JSON.stringify(res));
searchFlag.value = false;
console.log('查询结果', data);
if (data.info == 'OK') {
const { routes } = data;
setTitle(routes[0]);
@@ -263,7 +261,6 @@
async function getMapData(type, params = { type: '' }) {
try {
console.log(type, params, 'asghujis');
const { code, result } = await mapApiSwitch(type, params);
if (code == 200) {
if (Array.isArray(result) && result.length > 0) {
@@ -339,7 +336,6 @@
}
function drawMarker(data: any) {
console.log(data);
const { lon, lat } = data;
if (!lon || !lat) {
Map.clearMarker();
-1
View File
@@ -130,7 +130,6 @@
}
function handleDataChange(type) {
console.log(formState.value, formRecord.value);
if (type == dataActity.value) return;
dataActity.value = type;
getField();
+2 -3
View File
@@ -154,8 +154,8 @@ export function infoContent1(res) {
return `
<div class="modal-box modal-box-normal">
<div class="modal-item">
<span class="item-one">单位</span>
<span class="item-two">${res.orgName ? res.orgName : '--'}</span>
<span class="item-one">${res.type === '1' ? '医院名称' : '救护车名称'}</span>
<span class="item-two">${res.name ? res.name : '--'}</span>
</div>
<div class="modal-item">
<span class="item-one">地点:</span>
@@ -538,7 +538,6 @@ export const centerMapColumns = [
dataIndex: 'checkType',
key: 'checkType',
customRender: ({ text }) => {
console.log(text, checkData);
const dddd = checkData.filter((item) => item.value == text);
return dddd[0].label;
},