修正编辑活动时, 无法显示已选题库分类的问题
This commit is contained in:
parent
85c1aafd30
commit
6108f3ce82
@ -483,14 +483,15 @@ export default class extends Vue {
|
|||||||
this.initTimes()
|
this.initTimes()
|
||||||
const id = this.$route.params?.id
|
const id = this.$route.params?.id
|
||||||
await this.getRemoteCategory()
|
await this.getRemoteCategory()
|
||||||
|
if (id) {
|
||||||
|
await this.fetchData(id)
|
||||||
|
}
|
||||||
if (UserModule.level === 1) {
|
if (UserModule.level === 1) {
|
||||||
await this.getRemoteDeptList()
|
await this.getRemoteDeptList()
|
||||||
} else {
|
} else {
|
||||||
this.postForm.shop = UserModule.department
|
this.postForm.shop = UserModule.department
|
||||||
}
|
}
|
||||||
if (id) {
|
|
||||||
await this.fetchData(id)
|
|
||||||
}
|
|
||||||
this.tempTagView = Object.assign({}, this.$route)
|
this.tempTagView = Object.assign({}, this.$route)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -639,9 +640,7 @@ export default class extends Vue {
|
|||||||
|
|
||||||
if (this.postForm.qtypes?.length > 0) {
|
if (this.postForm.qtypes?.length > 0) {
|
||||||
this.typeSelected = this.postForm.qtypes
|
this.typeSelected = this.postForm.qtypes
|
||||||
return
|
} else if (this.postForm.shop) {
|
||||||
}
|
|
||||||
if (this.postForm.shop) {
|
|
||||||
let currentShop
|
let currentShop
|
||||||
for (const p of this.allDepts) {
|
for (const p of this.allDepts) {
|
||||||
if (p._id === this.postForm.shop) {
|
if (p._id === this.postForm.shop) {
|
||||||
@ -654,8 +653,8 @@ export default class extends Vue {
|
|||||||
} else {
|
} else {
|
||||||
this.typeSelected = []
|
this.typeSelected = []
|
||||||
}
|
}
|
||||||
this.$refs.typeTree.setCheckedKeys(this.typeSelected)
|
|
||||||
}
|
}
|
||||||
|
this.$refs.typeTree.setCheckedKeys(this.typeSelected)
|
||||||
}
|
}
|
||||||
|
|
||||||
// begin of set puzzle types
|
// begin of set puzzle types
|
||||||
|
Loading…
x
Reference in New Issue
Block a user