|
|
@@ -344,18 +344,19 @@ defineExpose<QuiskExpose>({
|
|
|
if (!bindFire.value.caseTitle || !bindFire.value.caseTitle.trim()) {
|
|
|
ElMessage.error("案件名称不能为空");
|
|
|
throw "案件名称不能为空";
|
|
|
- } else if (!bindFire.value.latAndLong || !bindFire.value.latAndLong.trim()) {
|
|
|
- ElMessage.error("详细地址不能为空");
|
|
|
- throw "详细地址不能为空!";
|
|
|
+ // } else if (!bindFire.value.latAndLong || !bindFire.value.latAndLong.trim()) {
|
|
|
+ // ElMessage.error("详细地址不能为空");
|
|
|
+ // throw "详细地址不能为空!";
|
|
|
}
|
|
|
await (bindFire.value.caseId ? setCriminalExample(bindFire.value as any) : addCriminalExample(bindFire.value as any));
|
|
|
// 保存成功后刷新页面数据
|
|
|
window.location.reload()
|
|
|
} else {
|
|
|
- if (!bindFire.value.latAndLong || !bindFire.value.latAndLong.trim()) {
|
|
|
- ElMessage.error("详细地址不能为空");
|
|
|
- throw "详细地址不能为空!";
|
|
|
- } else if (!bindFire.value.projectAddress || !bindFire.value.projectAddress.trim()) {
|
|
|
+ // if (!bindFire.value.latAndLong || !bindFire.value.latAndLong.trim()) {
|
|
|
+ // ElMessage.error("详细地址不能为空");
|
|
|
+ // throw "详细地址不能为空!";
|
|
|
+ // } else
|
|
|
+ if (!bindFire.value.projectAddress || !bindFire.value.projectAddress.trim()) {
|
|
|
ElMessage.error("起火地址不能为空!");
|
|
|
throw "起火地址不能为空!";
|
|
|
} else if (!bindFire.value.projectSn || !bindFire.value.projectSn.trim()) {
|