update
1.根据新疆反馈(12.22),修改相关问题
This commit is contained in:
+14
-6
@@ -64,7 +64,7 @@
|
||||
/>
|
||||
</div>
|
||||
<div class="sun-body-right-three">
|
||||
<two-new-r :center-id="centerId" :bKey="`two-n-r-${count}`" @handle-view="handleTwoNewRClick" />
|
||||
<two-new-r ref="twoNewR" :center-id="centerId" :bKey="`two-n-r-${count}`" @handle-view="handleTwoNewRClick" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -99,7 +99,10 @@
|
||||
</template>
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'cz'">
|
||||
<a-button type="link" @click="forHelp(record)">求助信息</a-button>
|
||||
<a-button type="link" @click="forHelp(record, false)">求助信息</a-button>
|
||||
</template>
|
||||
<template v-if="column.dataIndex === 'gName'">
|
||||
<a-button type="link" @click="openRBModal(record)">{{ record?.name }}</a-button>
|
||||
</template>
|
||||
</template>
|
||||
</IndexModal>
|
||||
@@ -200,6 +203,7 @@
|
||||
const showMapBottom = ref(false);
|
||||
const userData = ref<object>({});
|
||||
const centerMapRef = ref();
|
||||
const twoNewR = ref();
|
||||
const otherLoading = ref<boolean>(false);
|
||||
|
||||
onMounted(() => {
|
||||
@@ -225,6 +229,10 @@
|
||||
}
|
||||
});
|
||||
|
||||
function openRBModal(item: any) {
|
||||
twoNewR.value.handlePolice(item);
|
||||
}
|
||||
|
||||
const getTime = () => {
|
||||
dateInfo.value = {
|
||||
day: dayjs().format('YYYY年MM月DD日'),
|
||||
@@ -238,7 +246,7 @@
|
||||
}
|
||||
);
|
||||
|
||||
async function forHelp(record: any) {
|
||||
async function forHelp(record: any, showBottomInfo = true) {
|
||||
indexModalRef.value.closeDialog();
|
||||
record['lat'] = record?.latitude;
|
||||
record['lon'] = record?.longitude;
|
||||
@@ -260,7 +268,7 @@
|
||||
showRestB.value = false;
|
||||
userData.value = record;
|
||||
}
|
||||
await confirmHelp(record);
|
||||
await confirmHelp(record, showBottomInfo);
|
||||
}
|
||||
|
||||
function toOther() {
|
||||
@@ -399,7 +407,7 @@
|
||||
const hospitalList = ref([]); //医院列表
|
||||
const showHospitalList = ref(false);
|
||||
|
||||
async function confirmHelp(data: any) {
|
||||
async function confirmHelp(data: any, showBottomInfo = true) {
|
||||
showMapBottom.value = false;
|
||||
Map.driveLine && Map.driveLine.clear();
|
||||
try {
|
||||
@@ -414,7 +422,7 @@
|
||||
userData.value = data;
|
||||
if (!data.lon || !data.lat) {
|
||||
centerMapRef.value.newResetMap();
|
||||
showMapBottom.value = data?.emergencyType != 2;
|
||||
showMapBottom.value = data?.emergencyType != 2 && showBottomInfo;
|
||||
return;
|
||||
}
|
||||
Map.removeOverlayGroup();
|
||||
|
||||
Reference in New Issue
Block a user