|
@@ -1,11 +1,11 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
- <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
+ <!-- <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
<el-form-item>
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
</el-form-item>
|
|
|
- </el-form>
|
|
|
+ </el-form> -->
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
@@ -94,7 +94,7 @@
|
|
|
<div v-for="(option, optionIndex) in answer.options" :key="optionIndex" class="option-item">
|
|
|
<div class="option-input">
|
|
|
<el-input
|
|
|
- v-model="answer.options[optionIndex]"
|
|
|
+ v-model="answer.options[optionIndex].name"
|
|
|
:placeholder="`选项 ${optionIndex + 1}`">
|
|
|
</el-input>
|
|
|
</div>
|
|
@@ -195,7 +195,7 @@ export default {
|
|
|
answers: [
|
|
|
{
|
|
|
title: '',
|
|
|
- options: ['']
|
|
|
+ options: [{name:'',value:0}]
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -216,7 +216,7 @@ export default {
|
|
|
addItem(length) {
|
|
|
this.form.answers.push({
|
|
|
title: '',
|
|
|
- options: ['']
|
|
|
+ options: [{name:'',value:0}]
|
|
|
})
|
|
|
},
|
|
|
delItem(item, index) {
|
|
@@ -242,7 +242,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
addOption(answerIndex, optionIndex) {
|
|
|
- this.form.answers[answerIndex].options.push('')
|
|
|
+ this.form.answers[answerIndex].options.push({name:'',value:optionIndex + 1})
|
|
|
},
|
|
|
delOption(options, index) {
|
|
|
if (options.length > 1) {
|
|
@@ -330,7 +330,7 @@ export default {
|
|
|
this.form = {
|
|
|
answers: [{
|
|
|
title: '',
|
|
|
- options: ['']
|
|
|
+ options: [{name:'',value:0}]
|
|
|
}
|
|
|
|
|
|
]
|
|
@@ -347,7 +347,7 @@ export default {
|
|
|
this.form = {
|
|
|
answers: [{
|
|
|
title: '',
|
|
|
- options: []
|
|
|
+ options: [{name:'',value:0}]
|
|
|
}
|
|
|
|
|
|
]
|