|
@@ -6,7 +6,14 @@
|
|
|
<el-button type="primary" size="mini" @click="back()">返回</el-button>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="down">
|
|
|
- <data-form :data="form" :fields="fields" :rules="rules" @save="toSave"> </data-form>
|
|
|
+ <data-form :data="form" :fields="fields" :rules="rules" @save="toSave">
|
|
|
+ <template #radios="{item}">
|
|
|
+ <template v-if="item.model === 'column'">
|
|
|
+ <el-radio label="定制问卷">定制问卷</el-radio>
|
|
|
+ <el-radio label="常规问卷">常规问卷</el-radio>
|
|
|
+ </template>
|
|
|
+ </template>
|
|
|
+ </data-form>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -26,6 +33,7 @@ export default {
|
|
|
form: {},
|
|
|
fields: [
|
|
|
{ label: '问卷标题', model: 'title' },
|
|
|
+ { label: '问卷类型', model: 'column', type: 'radio' },
|
|
|
{ label: '问卷简介', model: 'brief', type: 'textarea' },
|
|
|
],
|
|
|
rules: {},
|