|
@@ -108,7 +108,7 @@
|
|
|
</el-form-item>
|
|
|
<el-form-item label="经纬度" prop="name">
|
|
|
<el-input
|
|
|
- v-model="bindExample.latAndLong"
|
|
|
+ v-model="bindExample.latAndLongs"
|
|
|
placeholder="请输入"
|
|
|
show-word-limit
|
|
|
maxlength="100"
|
|
@@ -268,6 +268,7 @@ const bindExample = ref({
|
|
|
homicideCase: 0,
|
|
|
criminalCase: 0,
|
|
|
latAndLong: "",
|
|
|
+ latAndLongs: "",
|
|
|
criminalType: "",
|
|
|
});
|
|
|
const criminalType = [
|
|
@@ -294,7 +295,7 @@ onMounted(async () => {
|
|
|
if (caseInfo) {
|
|
|
ruleForm.value = caseData || {};
|
|
|
bindExample.value = JSON.parse(JSON.stringify(caseInfo));
|
|
|
-
|
|
|
+ bindExample.value.latAndLongs = bindExample.value.latAndLong.split(',').reverse().join(',')
|
|
|
}
|
|
|
});
|
|
|
const options = Array.from({ length: 10000 }).map((_, idx) => ({
|
|
@@ -334,7 +335,8 @@ const submit = async () => {
|
|
|
ElMessage.error("案件名称不能为空");
|
|
|
throw "案件名称不能为空";
|
|
|
}
|
|
|
- await setExample({...bindExample.value, caseId :caseId.value })
|
|
|
+ let latAndLong = bindExample.value.latAndLongs?.split(',').reverse().join(',')
|
|
|
+ await setExample({...bindExample.value, latAndLong, caseId :caseId.value })
|
|
|
await getCaseInfo(caseId.value)
|
|
|
}else{
|
|
|
await casesaveOrUpDate({...ruleForm.value, caseId :caseId.value })
|
|
@@ -367,7 +369,8 @@ const searchAMapAddress = async () => {
|
|
|
console.log("searchAMapAddress", data);
|
|
|
if (!data?.search) return;
|
|
|
bindExample.value.caseAddress = data.search.text;
|
|
|
- bindExample.value.latAndLong = `${data.search.lng},${data.search.lat}`;
|
|
|
+ bindExample.value.latAndLong = `${data.search.lat},${data.search.lng}`;
|
|
|
+ bindExample.value.latAndLongs = `${data.search.lng},${data.search.lat}`;
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|