bug
This commit is contained in:
@@ -140,14 +140,14 @@
|
||||
<div class="middle-content form">
|
||||
<div class="middle-content__wrapper">
|
||||
<div>
|
||||
<div class="left-item__item left-item__item--banner" key="banner" v-if="info.headPicture">
|
||||
<img :src="info.headPicture">
|
||||
<div class="left-item__item left-item__item--banner" key="banner" v-if="templateInfo.headPicture">
|
||||
<img :src="templateInfo.headPicture">
|
||||
</div>
|
||||
<div class="left-item__item left-item__item--formname" key="title">
|
||||
<h2>{{ info.title }}</h2>
|
||||
<h2>{{ templateInfo.title }}</h2>
|
||||
</div>
|
||||
<div class="left-item__item left-item__item--text" key="text">
|
||||
<p>{{ info.tableExplain }}</p>
|
||||
<p>{{ templateInfo.tableExplain }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
@@ -174,7 +174,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<template v-if="item.type === 'select'">
|
||||
<el-input resize="none" class="preview" type="textarea" style="color: #333" :placeholder="item.placeholder" v-model="formInfo[`field_${i}`]" disabled></el-input>
|
||||
<el-input resize="none" class="preview" style="color: #333" :placeholder="item.placeholder" v-model="formInfo[`field_${i}`]" disabled></el-input>
|
||||
</template>
|
||||
<template v-if="(item.type === 'checkbox')">
|
||||
<div class="radio-item" v-for="(field, index) in item.options" :key="index">
|
||||
@@ -258,6 +258,7 @@
|
||||
dictValue: '1'
|
||||
}
|
||||
],
|
||||
templateInfo: {},
|
||||
formInfo: {},
|
||||
isShow: false,
|
||||
targetList: []
|
||||
@@ -277,6 +278,7 @@
|
||||
this.info = res.data
|
||||
this.instance.post(`/app/appassessmentscoretemplate/queryDetailById?id=${res.data.templateId}`).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.templateInfo = res.data
|
||||
this.targetList = res.data.fields.map(item => {
|
||||
return JSON.parse(item.fieldInfo)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user