提交修改

hangao
dshclm 5 months ago
parent f09cddaf48
commit bd1467f0a0

@ -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"
></el-tree>
@ -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)
})
},

Loading…
Cancel
Save