修改禅道已知bug

This commit is contained in:
sunFlower
2022-09-29 14:53:57 +08:00
parent 5b4c7f8cb0
commit d4f335717e
2 changed files with 4 additions and 2 deletions
@@ -51,6 +51,7 @@
style="margin-bottom: 60px;height: 600px" style="margin-bottom: 60px;height: 600px"
v-if="treeVisible" v-if="treeVisible"
checkable checkable
checkStrictly
:loading="loading" :loading="loading"
:tree-data="gData" :tree-data="gData"
@check="onCheck" @check="onCheck"
@@ -164,7 +165,7 @@
// }, // },
onCheck(checkedKeys, info) { onCheck(checkedKeys, info) {
this.userIds = checkedKeys this.userIds = checkedKeys.checked
this.userName = [] this.userName = []
if (this.userIds.length > 0) { if (this.userIds.length > 0) {
for (let i = 0; i < this.userIds.length; i++) { for (let i = 0; i < this.userIds.length; i++) {
@@ -335,6 +335,7 @@
}) })
this.yearNameDataList = content[0].yearNameDataList || [] this.yearNameDataList = content[0].yearNameDataList || []
this.formInline = value this.formInline = value
this.formInline = { ...this.formInline }
} }
} else { } else {
this.projectNameList = [] this.projectNameList = []
@@ -348,7 +349,7 @@
this.getNameList() this.getNameList()
this.formInline.studioEngineerName = this.userInfo().username this.formInline.studioEngineerName = this.userInfo().username
this.formInline.studioEngineer = this.userInfo().id this.formInline.studioEngineer = this.userInfo().id
this.formInline = {...this.formInline} this.formInline = { ...this.formInline }
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.ruleForm.clearValidate() this.$refs.ruleForm.clearValidate()
}) })