Browse Source

peter

360view
newPeter7 2 years ago
parent
commit
24ab308a85
  1. 6
      src/components/360View/medicalRecord/index.vue

6
src/components/360View/medicalRecord/index.vue

@ -239,12 +239,12 @@ export default {
})
if (res.code === 0) {
this.formList = res.data || []
if (!mode) {
if (this.formList.length && !mode) {
this.name = this.formList[0].name
this.id = this.formList[0].id
this.curIndex = this.formList.findIndex(item => item.id === this.id)
this.jsonText = this.formList[this.curIndex].jsonText
}
this.curIndex = this.formList.findIndex(item => item.id === this.id)
this.jsonText = this.formList[this.curIndex].jsonText
} else {
this.$message.error(res.msg)
}

Loading…
Cancel
Save