diff --git a/ruoyi-admin/src/main/resources/templates/system/elExam/exam/edit.html b/ruoyi-admin/src/main/resources/templates/system/elExam/exam/edit.html index 4fb1bc2..37d1c52 100644 --- a/ruoyi-admin/src/main/resources/templates/system/elExam/exam/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/elExam/exam/edit.html @@ -154,12 +154,13 @@ ref="tree" lazy :data="treeData" + :default-expanded-keys="expandedKeys" :default-checked-keys="postForm.departIds" :props="defaultProps" :filter-node-method="filterNode" empty-text=" " show-checkbox - node-key="id" + node-key="deptId" :load="handleLoad" @check-change="handleCheckChange" > @@ -197,6 +198,7 @@ repoList: [], // 已选择的题库 excludes: [], + expandedKeys:[], postForm: { // 总分数 totalScore: 0, @@ -405,7 +407,7 @@ this.postForm.departIds = [] const nodes = this.$refs.tree.getCheckedNodes() nodes.forEach(function(item) { - that.postForm.departIds.push(item.id) + that.postForm.departIds.push(item.deptId) }) },