From 4a87dd9e76843670b734fc71ce7d6f94738d5859 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Tue, 20 May 2025 10:27:01 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E7=BC=BAi?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.production | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.env.production b/.env.production
index 1a8f272..134cd88 100644
--- a/.env.production
+++ b/.env.production
@@ -6,4 +6,4 @@ VUE_APP_TITLE = 青岛免租金住房服务平台
ENV = 'production'
# 青岛市免租金住宿保障平台/生产环境
-VUE_APP_BASE_API = 'http://219.146.91.110:30801/mz-ap'
+VUE_APP_BASE_API = 'http://219.146.91.110:30801/mz-api'
From 154d23ca563f2a1413a9ff5dac036940ca96a2e7 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Tue, 20 May 2025 11:05:26 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E7=9B=91=E5=90=AC=E8=B7=AF=E7=94=B1?=
=?UTF-8?q?=E5=86=99=E9=94=99=E4=BD=8D=E7=BD=AE=E4=BA=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/records/checkin/index.vue | 12 +-----------
src/views/residence/checkIn/index.vue | 15 +++++++++++++++
2 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/src/views/records/checkin/index.vue b/src/views/records/checkin/index.vue
index 5e3db51..17dd187 100644
--- a/src/views/records/checkin/index.vue
+++ b/src/views/records/checkin/index.vue
@@ -726,17 +726,7 @@ export default {
deptName(val) {
this.$refs.tree.filter(val);
},
- $route:{
- handler: function (newVal, oldVal) {
- console.log(newVal);
- if (newVal.query) {
- this.queryParams.idCard = newVal.query.idCard;
- this.handleQuery()
- }
- },
- immediate: true,
- deep: true,
- }
+
},
created() {
this.getList();
diff --git a/src/views/residence/checkIn/index.vue b/src/views/residence/checkIn/index.vue
index 1a6861d..7d7b093 100644
--- a/src/views/residence/checkIn/index.vue
+++ b/src/views/residence/checkIn/index.vue
@@ -423,6 +423,21 @@ export default {
mounted() {
// 挂载后执行的逻辑
},
+ watch: {
+ // 这里可以监听数据变化
+ $route:{
+ handler: function (newVal, oldVal) {
+ if (newVal.query) {
+ this.$nextTick(()=>{
+ this.checnInForm.idCard = newVal.query.idCard;
+ this.handleQuery()
+ })
+ }
+ },
+ immediate: true,
+ deep: true,
+ }
+ }
};
From 00a83cfd7703420ccd89b98581b0862680efb906 Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Tue, 20 May 2025 13:56:25 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E6=88=BF=E5=B1=8B=E7=BB=84=E7=BB=87?=
=?UTF-8?q?=E6=A0=91=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9=20=E6=A5=BC?=
=?UTF-8?q?=E6=A0=8B=E8=B7=B3=E8=BD=AC=E6=88=BF=E5=B1=8B=E5=8A=9F=E8=83=BD?=
=?UTF-8?q?=E5=AE=9E=E7=8E=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/dept.js | 7 +++
src/layout/components/Navbar.vue | 4 +-
src/utils/ruoyi.js | 13 +++--
src/views/mz/building/index.vue | 11 +++-
src/views/mz/house/index.vue | 88 ++++++++++++++++++++++++++------
5 files changed, 101 insertions(+), 22 deletions(-)
diff --git a/src/api/system/dept.js b/src/api/system/dept.js
index fc943cd..ed3b08f 100644
--- a/src/api/system/dept.js
+++ b/src/api/system/dept.js
@@ -49,4 +49,11 @@ export function delDept(deptId) {
url: '/system/dept/' + deptId,
method: 'delete'
})
+}
+// 房屋专属左侧组织树
+export function getdeptList() {
+ return request({
+ url: '/mz/building/getdeptList',
+ method: 'get'
+ })
}
\ No newline at end of file
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 9369b06..311faea 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -88,7 +88,9 @@ export default {
type: 'warning'
}).then(() => {
this.$store.dispatch('LogOut').then(() => {
- location.href = '/index';
+ this.$router.replace({
+ path: "/login"
+ });
})
}).catch(() => {});
}
diff --git a/src/utils/ruoyi.js b/src/utils/ruoyi.js
index 44bf9c4..0cf3799 100644
--- a/src/utils/ruoyi.js
+++ b/src/utils/ruoyi.js
@@ -157,7 +157,7 @@ export function mergeRecursive(source, target) {
* @param {*} parentId 父节点字段 默认 'parentId'
* @param {*} children 孩子节点字段 默认 'children'
*/
-export function handleTree(data, id, parentId, children) {
+export function handleTree(data, id, parentId, children, maxLevel) {
let config = {
id: id || 'id',
parentId: parentId || 'parentId',
@@ -185,16 +185,21 @@ export function handleTree(data, id, parentId, children) {
}
for (let t of tree) {
- adaptToChildrenList(t);
+ adaptToChildrenList(t, 1);
}
- function adaptToChildrenList(o) {
+ function adaptToChildrenList(o, level) {
if (childrenListMap[o[config.id]] !== null) {
+ if (maxLevel && level >= maxLevel) {
+ // 当达到最大层级时,清除子节点数据
+ o[config.childrenList] = [];
+ return;
+ }
o[config.childrenList] = childrenListMap[o[config.id]];
}
if (o[config.childrenList]) {
for (let c of o[config.childrenList]) {
- adaptToChildrenList(c);
+ adaptToChildrenList(c, level + 1);
}
}
}
diff --git a/src/views/mz/building/index.vue b/src/views/mz/building/index.vue
index 4ae3c65..d1b164f 100644
--- a/src/views/mz/building/index.vue
+++ b/src/views/mz/building/index.vue
@@ -50,7 +50,13 @@
-