diff --git a/packages/conv/AppReturnHomeRegister/components/Detail.vue b/packages/conv/AppReturnHomeRegister/components/Detail.vue
index 60bf85e1..974e0a64 100644
--- a/packages/conv/AppReturnHomeRegister/components/Detail.vue
+++ b/packages/conv/AppReturnHomeRegister/components/Detail.vue
@@ -16,7 +16,7 @@
- {{dict.getLabel('epidemicMemberType', info.type)}}
+ {{dict.getLabel('epidemicRecentPersonType', info.type)}}
@@ -87,7 +87,7 @@
-
+
{{ info.unusual || '-' }}
@@ -172,7 +172,7 @@
created () {
if (this.params && this.params.id) {
this.id = this.params.id
- this.$dict.load(['epidemicRecentHealth', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicMemberType', 'epidemicRecentTestResult']).then(() => {
+ this.$dict.load(['epidemicRecentHealth', 'epidemicRecentTravel', 'epidemicTouchInFourteen', 'epidemicRecentPersonType', 'epidemicRecentTestResult']).then(() => {
this.getInfo(this.params.id)
})
diff --git a/packages/extra/AppCodeGeneration/components/Add.vue b/packages/extra/AppCodeGeneration/components/Add.vue
index c4759144..fb36c68c 100644
--- a/packages/extra/AppCodeGeneration/components/Add.vue
+++ b/packages/extra/AppCodeGeneration/components/Add.vue
@@ -140,15 +140,15 @@
width="720px">
+ :data="treeObj.treeList"
+ :props="treeObj.defaultProps"
+ node-key="id"
+ ref="tree"
+ :check-strictly="true"
+ show-checkbox
+ :default-checked-keys="treeObj.checkedKeys"
+ :default-expanded-keys="treeObj.checkedKeys"
+ @check="onCheckChange">
@@ -192,7 +192,7 @@ export default {
treeObj: {
treeList: [],
defaultProps: {
- children: "girdList",
+ children: "children",
label: "girdName",
},
checkedKeys: [],
@@ -223,12 +223,20 @@ export default {
},
methods: {
getGridList() {
- this.instance.post(`/app/appgirdinfo/listAll`).then((res) => {
+ this.instance.post(`/app/appgirdinfo/listAll3`).then((res) => {
if (res.code == 0) {
- this.treeObj.treeList = this.format(res.data)
if (this.formData.girdId) {
this.$set(this.treeObj, 'checkedKeys', [this.formData.girdId])
}
+ this.treeObj.treeList = res.data.filter(e => !e.parentGirdId)
+ this.treeObj.treeList.map(p => this.addChild(p, res.data.map(v => {
+
+ return {
+ ...v
+ }
+ }), {
+ parent: 'parentGirdId'
+ }))
}
})
},
diff --git a/packages/grid/AppCommunityManage/components/Add.vue b/packages/grid/AppCommunityManage/components/Add.vue
index 2c699885..d6996755 100644
--- a/packages/grid/AppCommunityManage/components/Add.vue
+++ b/packages/grid/AppCommunityManage/components/Add.vue
@@ -37,17 +37,20 @@
-
+
@@ -98,7 +101,7 @@ export default {
treeObj: {
treeList: [],
defaultProps: {
- children: "girdList",
+ children: "children",
label: "girdName",
},
checkedKeys: [],
@@ -115,6 +118,7 @@ export default {
},
created() {
+ this.beforeSelectTree()
this.dict.load('cardType', 'sex', 'nation').then(() => {
if (this.params && this.params.id) {
this.getInfo(this.params.id)
@@ -123,15 +127,23 @@ export default {
},
methods: {
beforeSelectTree() {
- this.treeObj.checkedKeys = [];
- this.instance.post(`/app/appgirdinfo/listAll`, null, null).then((res) => {
+ this.instance.post(`/app/appgirdinfo/listAll3`).then((res) => {
if (res.code == 0) {
- this.treeObj.treeList = this.format(res.data)
+ this.treeObj.checkedKeys = []
if (this.form.girdInfoList.length) {
this.form.girdInfoList.map((e) => {
this.treeObj.checkedKeys.push(e.id);
});
}
+ this.treeObj.treeList = res.data.filter(e => !e.parentGirdId)
+ this.treeObj.treeList.map(p => this.addChild(p, res.data.map(v => {
+
+ return {
+ ...v
+ }
+ }), {
+ parent: 'parentGirdId'
+ }))
}
});
},
diff --git a/packages/grid/AppGridBlock/components/add.vue b/packages/grid/AppGridBlock/components/add.vue
index 290ea61f..df0d1511 100644
--- a/packages/grid/AppGridBlock/components/add.vue
+++ b/packages/grid/AppGridBlock/components/add.vue
@@ -17,10 +17,10 @@
-
+
-
+
@@ -184,13 +184,15 @@ export default {
girdMemberManageList: res.data.girdMemberManageList ? res.data.girdMemberManageList.map(v => {
return {
...v,
- id: v.wxUserId
+ id: v.wxUserId,
+ avatar: v.photo
}
}) : [],
girdMemberList: res.data.girdMemberList ? res.data.girdMemberList.map(v => {
return {
...v,
- id: v.wxUserId
+ id: v.wxUserId,
+ avatar: v.photo
}
}) : []
};
diff --git a/packages/grid/AppGridBlock/components/list.vue b/packages/grid/AppGridBlock/components/list.vue
index ff999eab..97e411a9 100644
--- a/packages/grid/AppGridBlock/components/list.vue
+++ b/packages/grid/AppGridBlock/components/list.vue
@@ -13,7 +13,6 @@
node-key="id"
ref="tree"
:filter-node-method="filterNode"
- default-expand-all
highlight-current>
@@ -153,7 +152,7 @@ export default {
treeObj: {
treeList: [],
defaultProps: {
- children: "girdList",
+ children: "children",
label: "girdName",
},
defaultExpandedKeys: [],
@@ -216,13 +215,26 @@ export default {
this.getList();
},
getTreeList() {
- this.instance.post("/app/appgirdinfo/listAllByTop").then(res => {
+ this.instance.post(`/app/appgirdinfo/listAll3`).then((res) => {
if (res?.data) {
- this.treeObj.treeList = [res.data];
- this.info = res.data
this.$nextTick(() => {
- this.$refs.tree.setCurrentKey(this.info.id)
+ this.$refs.tree.setCurrentKey(res.data.id)
})
+
+ this.treeObj.treeList = res.data.filter(e => !e.parentGirdId)
+ const parentGirdId = this.treeObj.treeList[0].id
+
+ this.treeObj.treeList.map(p => this.addChild(p, res.data.map(v => {
+ if (v.id === parentGirdId) {
+ // this.defaultExpandedKeys.push(v.id)
+ }
+
+ return {
+ ...v
+ }
+ }), {
+ parent: 'parentGirdId'
+ }))
}
});
},
diff --git a/packages/grid/AppGridMap/components/list.vue b/packages/grid/AppGridMap/components/list.vue
index 0a5277f1..a22f1b33 100644
--- a/packages/grid/AppGridMap/components/list.vue
+++ b/packages/grid/AppGridMap/components/list.vue
@@ -13,19 +13,19 @@
+ :data="treeObj.treeList"
+ :props="treeObj.defaultProps"
+ @node-click="handleNodeClick"
+ node-key="id"
+ ref="tree"
+ :expand-on-click-node="false"
+ :filter-node-method="filterNode"
+ :default-expanded-keys="treeObj.defaultExpandedKeys"
+ highlight-current>
-
-
-
+
+
+
@@ -61,7 +61,7 @@ export default {
treeObj: {
treeList: [],
defaultProps: {
- children: "girdList",
+ children: "children",
label: "girdName",
},
defaultExpandedKeys: [],
@@ -88,9 +88,7 @@ export default {
},
created() {
this.dict.load("onlineStatus")
- this.getTreeList().then(() => {
- this.getLeafNodes()
- })
+ this.getTreeList()
},
watch: {
filterText(val) {
@@ -103,15 +101,29 @@ export default {
return data.girdName.indexOf(value) !== -1;
},
getTreeList() {
- return this.instance.post(`/app/appgirdinfo/listAll`).then((res) => {
- if (res.code == 0) {
- this.treeObj.treeList = res.data;
-
+ this.instance.post(`/app/appgirdinfo/listAll3`).then((res) => {
+ if (res?.data) {
this.$nextTick(() => {
- res.data.length && this.$refs.tree.setCurrentKey(res.data[0].id)
+ this.$refs.tree.setCurrentKey(res.data.id)
})
+
+ this.treeObj.treeList = res.data.filter(e => !e.parentGirdId)
+ const parentGirdId = this.treeObj.treeList[0].id
+
+ this.treeObj.treeList.map(p => this.addChild(p, res.data.map(v => {
+ if (v.id === parentGirdId) {
+ this.treeObj.defaultExpandedKeys.push(v.id)
+ }
+
+ return {
+ ...v
+ }
+ }), {
+ parent: 'parentGirdId'
+ }))
+ this.getLeafNodes()
}
- })
+ });
},
onMapInit() {
diff --git a/packages/grid/AppGridMember/components/list.vue b/packages/grid/AppGridMember/components/list.vue
index 67c43799..1f67de04 100644
--- a/packages/grid/AppGridMember/components/list.vue
+++ b/packages/grid/AppGridMember/components/list.vue
@@ -21,12 +21,12 @@
@@ -65,7 +65,7 @@ export default {
data() {
return {
searchObj: {
- name: "",
+ con: "",
selectionDate: "",
},
page: {