diff --git a/public/index.html b/public/index.html
index 13c0c29..24877b8 100644
--- a/public/index.html
+++ b/public/index.html
@@ -39,8 +39,8 @@
<% if (process.env.VUE_APP_NODE_ENV === 'dev') { %>
<% } %>
diff --git a/src/components/360View/collection.vue b/src/components/360View/collection.vue
index aa09217..dfc6526 100644
--- a/src/components/360View/collection.vue
+++ b/src/components/360View/collection.vue
@@ -14,11 +14,15 @@
新增节点
-
+
{{ node.label }}
@@ -32,8 +36,7 @@
新增子级节点
-
- handleNode(command,node,data)">
+ handleNode(command,node,data)">
···
编辑
@@ -103,11 +106,13 @@ export default {
},
data() {
return {
+ defaultExpandIds: [],
keyword: '',
dialogFormVisible: false,
remarkDialog: false,
remark: '',
curNode: '',
+ curExpand: '',
editName: '',
editRemark: '',
editMessage: '新增成功',
@@ -180,7 +185,7 @@ export default {
searchPatient() {
this.$http.get('/tree/findCollectPatient', {
params: {
- doctorld: this.doctorId,
+ doctorId: this.doctorId,
platform: this.platform,
queryStr: this.keyword
}
@@ -236,8 +241,9 @@ export default {
}
})
},
- levelClick(data) {
+ levelClick(data, node) {
this.curNode = data
+ this.curExpand = node
this.remark = data.remark || ''
this.tableData = data.treePatientVoList
},
@@ -371,6 +377,21 @@ export default {
this.editMessage = '重命名成功!'
this.addParam.id = data.id
this.addParam.parentId = data.parentId
+ },
+ // 树节点展开
+ handleNodeExpand() {
+ if (this.defaultExpandIds.indexOf(this.curNode.id) === -1) {
+ this.defaultExpandIds.push(this.curNode.id)
+ }
+ },
+ // 树节点关闭
+ handleNodeCollapse() {
+ if (!this.defaultExpandIds.indexOf(this.curNode.id)) {
+ const index = this.defaultExpandIds.findIndex(item => {
+ return item === this.curNode.id
+ })
+ this.defaultExpandIds.splice(index, 1)
+ }
}
}
}