基本信息
@@ -108,11 +108,9 @@
+
diff --git a/src/views/system/Repair/addRepair.vue b/src/views/system/Repair/addRepair.vue
index d0e15bc..fafe8f7 100644
--- a/src/views/system/Repair/addRepair.vue
+++ b/src/views/system/Repair/addRepair.vue
@@ -246,7 +246,6 @@ const submitForm = () => {
const sendForm = (str: string) => {
form.value.problemImageUrl = str;
- form.value.villageId = Number(localStorage.getItem('villageid'));
if (userid.value) {
updateRepair(form.value).then((res) => {
ElMessage.success('编辑成功');
diff --git a/src/views/system/Repair/addRepairlist.vue b/src/views/system/Repair/addRepairlist.vue
index 86e2a30..f27f1f1 100644
--- a/src/views/system/Repair/addRepairlist.vue
+++ b/src/views/system/Repair/addRepairlist.vue
@@ -118,7 +118,6 @@ init();
const submitForm = () => {
formRef.value?.validate(async (valid: boolean) => {
if (valid) {
- form.value.villageId = Number(localStorage.getItem('villageid'));
if (!userid.value) {
addRepairProject(form.value).then(() => {
ElMessage.success('添加成功');
@@ -136,7 +135,7 @@ const submitForm = () => {
// 推出
const cancelForm = () => {
router.push({
- path: '/repair/repairProjectList'
+ path: '/system/repairProjectList'
});
};
diff --git a/src/views/system/Repair/index.vue b/src/views/system/Repair/index.vue
index 795581c..d0cc8cf 100644
--- a/src/views/system/Repair/index.vue
+++ b/src/views/system/Repair/index.vue
@@ -127,7 +127,6 @@ const data = reactive
>({
queryParams: {
pageNum: 1,
pageSize: 10,
- villageId: Number(localStorage.getItem('villageid')),
houseId: undefined,
maintenanceItemId: undefined,
problem: undefined,
diff --git a/src/views/system/Repair/repairlist.vue b/src/views/system/Repair/repairlist.vue
index 5fea44a..8efe1c8 100644
--- a/src/views/system/Repair/repairlist.vue
+++ b/src/views/system/Repair/repairlist.vue
@@ -186,7 +186,6 @@ const initFormData: RepairProjectForm = {
const data = reactive>({
form: { ...initFormData },
queryParams: {
- villageId: Number(localStorage.getItem('villageid')),
projectName: undefined,
parentId: undefined,
projectType: undefined,
@@ -259,14 +258,14 @@ const handleSelectionChange = (selection: RepairProjectVO[]) => {
/** 新增按钮操作 */
const handleAdd = () => {
router.push({
- path: '/repair/addRepairProjectList'
+ path: '/system/addRepairProjectList'
});
};
/** 修改按钮操作 */
const handleUpdate = async (row?: RepairProjectVO) => {
router.push({
- path: '/repair/addRepairProjectList',
+ path: '/system/addRepairProjectList',
query: {
id: row.id
}
diff --git a/src/views/system/Visitor/index.vue b/src/views/system/Visitor/index.vue
index 48cb5fe..c256fab 100644
--- a/src/views/system/Visitor/index.vue
+++ b/src/views/system/Visitor/index.vue
@@ -94,7 +94,6 @@ const data = reactive>({
queryParams: {
pageNum: 1,
pageSize: 10,
- villageId: Number(localStorage.getItem('villageid')),
houseId: undefined,
visitorName: undefined,
visitorGender: undefined,
diff --git a/src/views/system/carArea/addCarArea.vue b/src/views/system/carArea/addCarArea.vue
index aae2032..eb8be8b 100644
--- a/src/views/system/carArea/addCarArea.vue
+++ b/src/views/system/carArea/addCarArea.vue
@@ -61,7 +61,6 @@ const route = useRoute();
const formRef = ref();
const form = ref({
id: null,
- villageId: Number(localStorage.getItem('villageid')),
areaName: null,
areaCode: null,
area: null,
@@ -90,7 +89,6 @@ if (route.query.id) {
const submitForm = () => {
formRef.value?.validate(async (valid: boolean) => {
if (valid) {
- form.value.villageId = Number(localStorage.getItem('villageid'));
if (parkingid.value) {
updateArea(form.value).then(() => {
ElMessage.success('编辑成功');
diff --git a/src/views/system/carArea/index.vue b/src/views/system/carArea/index.vue
index 1069878..43293d7 100644
--- a/src/views/system/carArea/index.vue
+++ b/src/views/system/carArea/index.vue
@@ -97,7 +97,6 @@ const data = reactive>({
queryParams: {
pageNum: 1,
pageSize: 10,
- villageId: Number(localStorage.getItem('villageid')),
areaName: undefined,
areaCode: undefined,
area: undefined,
diff --git a/src/views/system/cars/addCars.vue b/src/views/system/cars/addCars.vue
index 996d530..ce4505e 100644
--- a/src/views/system/cars/addCars.vue
+++ b/src/views/system/cars/addCars.vue
@@ -121,7 +121,6 @@ const form = ref({
id: null,
areaId: null, // 区域id
residentId: null, // 车位id
- villageId: Number(localStorage.getItem('villageid')), // 小区id
parkingId: null, // 持有人id
carNum: '', //车牌号
carBrand: '', //车辆品牌
@@ -207,7 +206,6 @@ function changeArealist(val: string) {
const submitForm = () => {
formRef.value?.validate(async (valid: boolean) => {
if (valid) {
- form.value.villageId = Number(localStorage.getItem('villageid'));
if (userid.value.trim() !== '') {
updateCar(form.value).then(() => {
ElMessage.success('编辑成功');
diff --git a/src/views/system/cars/index.vue b/src/views/system/cars/index.vue
index efb81b4..da3b711 100644
--- a/src/views/system/cars/index.vue
+++ b/src/views/system/cars/index.vue
@@ -1,5 +1,5 @@
-
+
@@ -23,7 +23,7 @@
-
+
@@ -109,7 +109,6 @@ const data = reactive>({
queryParams: {
pageNum: 1,
pageSize: 10,
- villageId: Number(localStorage.getItem('villageid')),
areaId: undefined,
parkingId: undefined,
residentId: undefined,
@@ -196,3 +195,8 @@ onMounted(() => {
getList();
});
+
diff --git a/src/views/system/house/AddBuilding.vue b/src/views/system/house/AddBuilding.vue
index 568f1b3..2e313d1 100644
--- a/src/views/system/house/AddBuilding.vue
+++ b/src/views/system/house/AddBuilding.vue
@@ -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(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('添加成功');
diff --git a/src/views/system/house/AddHouse.vue b/src/views/system/house/AddHouse.vue
index aa4aa24..dd45816 100644
--- a/src/views/system/house/AddHouse.vue
+++ b/src/views/system/house/AddHouse.vue
@@ -4,19 +4,19 @@
基本信息
-
+
-
+
-
+
-
+
diff --git a/src/views/system/house/components/components/table.vue b/src/views/system/house/components/components/table.vue
index 30aae6b..a8c7daf 100644
--- a/src/views/system/house/components/components/table.vue
+++ b/src/views/system/house/components/components/table.vue
@@ -2,14 +2,13 @@
-
+
{{ row }}楼
.TableBox {
- overflow: hidden;
- flex: 1;
- .column {
- width: 200px;
- background-color: red;
+ .el-table {
+ height: calc(100% - 500px);
}
}
diff --git a/src/views/system/house/components/unit.vue b/src/views/system/house/components/unit.vue
index cb1b7f7..632e43f 100644
--- a/src/views/system/house/components/unit.vue
+++ b/src/views/system/house/components/unit.vue
@@ -77,6 +77,8 @@ $primary_color: #1978fe;
}
.UnitBody {
flex: 1;
+ overflow-x: hidden;
+ overflow-y: auto;
}
}
diff --git a/src/views/system/houseRental/addhouseResident.vue b/src/views/system/houseRental/addhouseResident.vue
index 018729b..2edd54c 100644
--- a/src/views/system/houseRental/addhouseResident.vue
+++ b/src/views/system/houseRental/addhouseResident.vue
@@ -4,7 +4,7 @@
基本信息
-
+
@@ -22,7 +22,7 @@
-
+
@@ -30,7 +30,7 @@
-
+
@@ -57,7 +57,7 @@
-
+
@@ -202,7 +202,7 @@ const route = useRoute();
const formRef = ref();
const houseformat = ['东', '西', '南', '北'];
-const form = ref({
+const form = ref({
id: null,
houseId: null,
rentalName: '', // 租户姓名
@@ -251,6 +251,8 @@ async function gettreedata() {
...form.value,
...res.data
};
+ console.log(form.value);
+ housedeviceslist.value = form.value.facilities.split(',').filter((item) => item);
const imgurllist = splitStringUrl(form.value.houseImageUrl);
fileList.value = imgurllist;
const arr = getHousePathById(treedata.value, form.value.houseId);
@@ -354,7 +356,6 @@ const submitForm = () => {
};
const sendForm = (val: string) => {
form.value.houseImageUrl = val;
- form.value.villageId = Number(localStorage.getItem('villageid'));
// edit or add
if (userid.value) {
updateHouseRental(form.value).then(() => {
@@ -363,8 +364,7 @@ const sendForm = (val: string) => {
});
} else {
addHouseRental({
- ...form.value,
- villageid: Number(localStorage.getItem('villageid'))
+ ...form.value
}).then(() => {
ElMessage.success('添加成功');
cancelForm();
diff --git a/src/views/system/houseRental/houseMain.vue b/src/views/system/houseRental/houseMain.vue
index 8eb354f..9262050 100644
--- a/src/views/system/houseRental/houseMain.vue
+++ b/src/views/system/houseRental/houseMain.vue
@@ -2,9 +2,12 @@
-
-
基础资料
-
编辑
+
@@ -46,6 +49,7 @@
房屋设施:
+ {{ handlefacilities(item.name) }}
@@ -86,6 +90,7 @@ import PageHeader from '@/components/Pageheader/index.vue';
import { getHouseRental } from '@/api/system/houseRental';
import { useHouseStore } from '@/store/modules/house';
import { getHousePathById } from '@/utils/house';
+import { listHouseFacilities } from '@/api/system/HouseFacilities';
const houseStore = useHouseStore();
const { treedata } = storeToRefs(houseStore);
@@ -97,8 +102,7 @@ const route = useRoute();
const router = useRouter();
const houseRentalid = ref(null);
const HouseInfo = ref({
- 'id': '',
- house: '',
+ 'house': '',
'name': null,
'rentalStatus': null,
'rentalName': '',
@@ -118,14 +122,21 @@ const HouseInfo = ref({
'houseUse': '',
'pubBy': null,
'pubTime': '',
- houseImageUrls: []
+ 'facilitieslist': [],
+ 'houseImageUrls': []
});
-function init() {
+
+const housefacilities = ref([]);
+async function init() {
if (route.query.id) {
houseRentalid.value = route.query.id;
}
+ const reslist = await listHouseFacilities();
+ housefacilities.value = reslist.rows;
+
getHouseRental(houseRentalid.value).then((res) => {
HouseInfo.value = res.data;
+ HouseInfo.value.facilitieslist = res.data.facilities.split(',').filter((item) => item);
HouseInfo.value.houseImageUrls = HouseInfo.value.houseImageUrl.split(',').filter((item) => item);
const arr = getHousePathById(treedata.value, HouseInfo.value.houseId, 'label');
HouseInfo.value.house = arr.join(' - ');
@@ -133,6 +144,10 @@ function init() {
}
init();
+function handlefacilities(id: string) {
+ const find = housefacilities.value.find((item) => item.id === id);
+}
+
function hanlededit() {
router.push({
path: '/house/addhouseRental',
@@ -141,6 +156,12 @@ function hanlededit() {
}
});
}
+
+function handlBack() {
+ router.push({
+ path: '/house/houseRental'
+ });
+}
diff --git a/src/views/system/parking/parkMain.vue b/src/views/system/parking/parkMain.vue
index bd13d20..aa55469 100644
--- a/src/views/system/parking/parkMain.vue
+++ b/src/views/system/parking/parkMain.vue
@@ -130,7 +130,7 @@
审核通过
审核不通过
- 返回
+ 返回
@@ -232,6 +232,11 @@ function handleActivestaus(rews) {
console.log(active.value);
}
+
+const router = useRouter();
+function handlBacK() {
+ router.back();
+}