parent
e66295f016
commit
7ff9a044b8
@ -185,20 +185,18 @@ export default {
|
|||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.form.resetFields()
|
this.$refs.form.resetFields()
|
||||||
if (detail) {
|
if (detail) {
|
||||||
|
this.isEditMode = true
|
||||||
|
this.index = detail.index
|
||||||
|
this.sceneInfo = detail.sceneInfo || []
|
||||||
|
this.form = {
|
||||||
|
type: detail.type,
|
||||||
|
subtype: detail.subtype,
|
||||||
|
amount: detail.amount,
|
||||||
|
score: detail.score,
|
||||||
|
id: detail.id || '',
|
||||||
|
tags: detail.tags ? detail.tags[0] : '',
|
||||||
|
}
|
||||||
this.fillLabelsOption().then(() => {
|
this.fillLabelsOption().then(() => {
|
||||||
this.isEditMode = true
|
|
||||||
this.index = detail.index
|
|
||||||
console.log(detail)
|
|
||||||
this.form = {
|
|
||||||
type: detail.type,
|
|
||||||
subtype: detail.subtype,
|
|
||||||
amount: detail.amount,
|
|
||||||
score: detail.score,
|
|
||||||
id: detail.id || '',
|
|
||||||
tags: detail.tags ? detail.tags[0] : '',
|
|
||||||
}
|
|
||||||
this.sceneInfo = detail.sceneInfo || []
|
|
||||||
this.topicNum = detail.topicNum
|
|
||||||
this.getQuestionAmount()
|
this.getQuestionAmount()
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user