新增数据,开始安全巡检模块

This commit is contained in:
Zy
2026-04-17 19:39:21 +08:00
parent 4184f1c55d
commit 9a95e2b7e3
74 changed files with 1942 additions and 403 deletions

View File

@@ -50,7 +50,6 @@ import { useRouter } from 'vue-router';
import { useHouseStore } from '@/store/modules/house';
const houseStore = useHouseStore();
const { currentVilageInfo } = storeToRefs(houseStore);
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { com_build_use } = toRefs<any>(proxy?.useDict('com_build_use'));
@@ -100,7 +99,6 @@ const submitForm = () => {
if (buildingId) {
editBuildingApi({
...form.value,
villageId: currentVilageInfo.value.villageId,
id: buildingId
})
.then((res) => {
@@ -113,8 +111,7 @@ const submitForm = () => {
});
} else {
addBuildingApi({
...form.value,
villageId: currentVilageInfo.value.villageId
...form.value
})
.then((res) => {
ElMessage.success('添加成功');