From 125c98ba247890eb6eee6723019e48618605e705 Mon Sep 17 00:00:00 2001 From: xiaoheiiskinder <11674173+xiaohei102908@user.noreply.gitee.com> Date: Thu, 21 Sep 2023 18:05:17 +0800 Subject: [PATCH] 0921 --- dist/index.html | 2 +- src/components/houseing1.vue | 11 +- src/components/personLi.vue | 5 +- src/utils/i18n.js | 20 +- src/utils/index.js | 1 + src/views/UnlockRecord.vue | 1 + src/views/agreement.vue | 2 +- src/views/boYu/byRoom.vue | 469 ++++++++++++++++++++++--------------------- src/views/room.vue | 48 +++-- src/views/userManagement.vue | 28 +++ 10 files changed, 319 insertions(+), 268 deletions(-) diff --git a/dist/index.html b/dist/index.html index 8d9a0d0..b490bac 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1 +1 @@ -智慧公寓管理系统
\ No newline at end of file +智慧公寓管理系统
\ No newline at end of file diff --git a/src/components/houseing1.vue b/src/components/houseing1.vue index ce712dc..c53a2f7 100644 --- a/src/components/houseing1.vue +++ b/src/components/houseing1.vue @@ -8,7 +8,8 @@
-
{{ data.count.count ? data.count.count : data.count }}
+
{{ data1.count.quantityB ? data1.count.quantityB : data1.count }}
+
0
入住
@@ -37,14 +38,16 @@ name: "checkInRoom", props: { data: { - type: Object + type: Object || {} } }, data() { - return {} + return { + data1: {} + } }, mounted() { - console.log(this.data); + this.data1 = this.data }, methods: {}, }; diff --git a/src/components/personLi.vue b/src/components/personLi.vue index b1e0d87..e0fed9b 100644 --- a/src/components/personLi.vue +++ b/src/components/personLi.vue @@ -30,7 +30,10 @@ export default { name: "personLi", props: ['data'], - methods: {} + methods: {}, + mounted (){ + console.log(this.data); + } }; diff --git a/src/utils/i18n.js b/src/utils/i18n.js index bf9e2a3..b16b7d0 100644 --- a/src/utils/i18n.js +++ b/src/utils/i18n.js @@ -451,16 +451,16 @@ export default { status: 0, ChildrenStatus: false }, - // { - // icon: "iconfont httpicon-xitongguanli", - // index: "byRoom", - // title: "泊寓对接", - // pid:33, - // id:33, - // key: 'BOYU_Room', - // status: 0, - // ChildrenStatus: false - // } + { + icon: "iconfont httpicon-xitongguanli", + index: "byRoom", + title: "泊寓对接", + pid:33, + id:33, + key: 'BOYU_Room', + status: 0, + ChildrenStatus: false + } ], }, i18n1: { diff --git a/src/utils/index.js b/src/utils/index.js index c950a54..982a633 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -178,6 +178,7 @@ export function ztreeToElementTree(data, config) { if (idMap[item.pid] != idMap[item.id] && idMap[item.pid]) { // 该item项有爸爸,放到对应的父节点下 !idMap[item.pid].hasOwnProperty(children) && (idMap[item.pid][children] = []) idMap[item.pid][children].push(item) + idMap[item.pid][children].sort((a,b) => { return a.index - b.index }) } else { // 根节点 elementTree.push(item) } diff --git a/src/views/UnlockRecord.vue b/src/views/UnlockRecord.vue index 5b4804d..c02efd7 100644 --- a/src/views/UnlockRecord.vue +++ b/src/views/UnlockRecord.vue @@ -391,6 +391,7 @@ var str = this.getOpenType(li.openType); var compli = this.comparison(li.deviceNum); var name = utils.findIndexArray(this.options, li.roomId, []) + console.log(name, this.options, li.roomId); var path = '' if (name) { path = name.join('/') diff --git a/src/views/agreement.vue b/src/views/agreement.vue index 6f1c7d7..6dab86f 100644 --- a/src/views/agreement.vue +++ b/src/views/agreement.vue @@ -1974,7 +1974,7 @@ export default { q: JSON.stringify(q), type: 0, pageNum: 1, - pageSize: 10 + pageSize: 10, }; httpGet(data, this.$api.getSiteList).then(res => { if (res.success) { diff --git a/src/views/boYu/byRoom.vue b/src/views/boYu/byRoom.vue index f8d88af..751da21 100644 --- a/src/views/boYu/byRoom.vue +++ b/src/views/boYu/byRoom.vue @@ -1,93 +1,84 @@