提交修改

hangao
dshclm 5 months ago
parent f09cddaf48
commit bd1467f0a0

@ -154,12 +154,13 @@
ref="tree" ref="tree"
lazy lazy
:data="treeData" :data="treeData"
:default-expanded-keys="expandedKeys"
:default-checked-keys="postForm.departIds" :default-checked-keys="postForm.departIds"
:props="defaultProps" :props="defaultProps"
:filter-node-method="filterNode" :filter-node-method="filterNode"
empty-text=" " empty-text=" "
show-checkbox show-checkbox
node-key="id" node-key="deptId"
:load="handleLoad" :load="handleLoad"
@check-change="handleCheckChange" @check-change="handleCheckChange"
></el-tree> ></el-tree>
@ -197,6 +198,7 @@
repoList: [], repoList: [],
// 已选择的题库 // 已选择的题库
excludes: [], excludes: [],
expandedKeys:[],
postForm: { postForm: {
// 总分数 // 总分数
totalScore: 0, totalScore: 0,
@ -405,7 +407,7 @@
this.postForm.departIds = [] this.postForm.departIds = []
const nodes = this.$refs.tree.getCheckedNodes() const nodes = this.$refs.tree.getCheckedNodes()
nodes.forEach(function(item) { nodes.forEach(function(item) {
that.postForm.departIds.push(item.id) that.postForm.departIds.push(item.deptId)
}) })
}, },

Loading…
Cancel
Save