@@ -57,7 +60,10 @@ export default {
name: {default: ''},
value: String,
all: Boolean,
- icon: {default: "location.svg"}
+ icon: {default: "location.svg"},
+ isForm: Boolean,
+ valueLevel: {default: 5},
+ fullName: {default: ''}
},
computed: {
...mapState(['user']),
@@ -102,9 +108,9 @@ export default {
v && (this.getFullArea())
},
- value (v) {
+ value(v) {
if (this.list.length && v) {
- this.areaName = this.list.find((e) => e.id == this.value).name
+ this.areaName = this.list.find((e) => e.id == this.value).name
}
},
@@ -118,7 +124,7 @@ export default {
}
}
},
- mounted () {
+ mounted() {
this.handleInit()
},
methods: {
@@ -126,7 +132,7 @@ export default {
this.handleInit()
this.$refs.areaSelector.showPopup()
},
- scrollHeight () {
+ scrollHeight() {
this.height = document.querySelector('.areaSelector') && `calc(100% - ${document.querySelector('.areaSelector').offsetHeight}px)`
},
getFullArea() {
@@ -156,10 +162,10 @@ export default {
}).then((res) => {
if (res.data.length) {
this.list = res.data
- let self = this.fullArea.find((e) => e.id == this.areaId)
-
+ let self = this.fullArea.find((e) => e.id == this.areaId)
+
if (this.value && !this.areaName && this.value !== this.areaId) {
- this.areaName = this.list.find((e) => e.id == this.value).name
+ this.areaName = this.list.find((e) => e.id == this.value).name
}
if (!this.areaName && this.value === this.areaId) {
this.areaName = self.name
@@ -204,7 +210,7 @@ export default {
},
getChild(op) {
if (op.id != this.index) {
- if (op.type < 5 && (/0{3}$/g.test(this.index) || !this.index)) {
+ if (op.type <= this.valueLevel && op.type < 5 && (/0{3}$/g.test(this.index) || !this.index)) {
this.fullArea.push(op)
this.getChildAreas(op.id)
}
@@ -213,7 +219,7 @@ export default {
}
this.$nextTick(() => {
-
+
this.scrollHeight()
})
},
From 9af707fa886d0f6f11435a4822777587d66e228b Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Tue, 15 Mar 2022 08:31:53 +0800
Subject: [PATCH 09/11] 28205
---
src/apps/AppPeopleList/DetailCard.vue | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/apps/AppPeopleList/DetailCard.vue b/src/apps/AppPeopleList/DetailCard.vue
index 54cc041c..e7f5c2cc 100644
--- a/src/apps/AppPeopleList/DetailCard.vue
+++ b/src/apps/AppPeopleList/DetailCard.vue
@@ -199,9 +199,7 @@ export default {
}
.spacial {
margin-top: 10px;
- overflow:hidden;
- text-overflow:ellipsis;
- white-space:nowrap;
+ white-space: wrap;
span {
margin-right: 10px;
color: #ff4466;
From d2776593c58afe009e25d5ea6f520cd1576f7514 Mon Sep 17 00:00:00 2001
From: shijingjing <1789544664@qq.com>
Date: Tue, 15 Mar 2022 08:36:33 +0800
Subject: [PATCH 10/11] 28200
---
src/apps/AppPeopleList/DetailPeople.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/apps/AppPeopleList/DetailPeople.vue b/src/apps/AppPeopleList/DetailPeople.vue
index 0042c425..0a571c9e 100644
--- a/src/apps/AppPeopleList/DetailPeople.vue
+++ b/src/apps/AppPeopleList/DetailPeople.vue
@@ -135,7 +135,7 @@