新增数据,开始安全巡检模块
This commit is contained in:
@@ -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('添加成功');
|
||||
|
||||
Reference in New Issue
Block a user