From 4c5c20a7c03539104df74072b1b8a81b51c19ab8 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期四, 14 九月 2023 10:42:15 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/components/view/record-content.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/view/record-content.vue b/src/components/view/record-content.vue index 5fbeedf..921e8f3 100644 --- a/src/components/view/record-content.vue +++ b/src/components/view/record-content.vue @@ -46,6 +46,7 @@ height: calc(100% - 20px); border-right: 3px solid rgb(245, 247, 251); padding: 16px; + overflow-y: auto; } .thing .left .custom-tree-node span { @@ -141,7 +142,6 @@ <div class="left"> <el-input v-model="search.technology" suffix-icon="el-icon-search" placeholder="璇疯緭鍏ユ悳绱㈠唴瀹�" size="small" clearable @input="query"></el-input> <el-tree :data="list" ref="tree" - style="height: 500px;overflow-y: auto;" :props="{children: 'children',label: 'name'}" node-key="name" default-expand-all @node-click="handleNodeClick" highlight-current :key="upIndex"> @@ -464,12 +464,13 @@ "Content-Type": "application/json" } } - ) + ).then(res =>{ + this.selectjilu() + }) }, add() { this.dialogVisible = false this.addRecord() - this.selectjilu() this.form = {}; }, query() { @@ -493,6 +494,7 @@ console.log(one); let name=one.children[0].id console.log(name); + this.checkTreeNode.id = name this.selectjiluStart(name) this.selectDataList(); }); @@ -508,6 +510,7 @@ }, //selectjilu checkTreeNode selectjilu() { + console.log(this.checkTreeNode.id); this.$axios.get(this.$api.url.selectjilu,{ params:{id:this.checkTreeNode.id} }).then(res => { -- Gitblit v1.9.3