| | |
| | | <template> |
| | | <div> |
| | | <!--el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body--> |
| | | <el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="120px"> |
| | | <el-row> |
| | | <el-col :span="6"><el-form-item label=" 111题目ID " prop="topicid"> |
| | |
| | | <el-button type="primary" @click="submitForm">确 定</el-button> |
| | | <el-button @click="cancel">取 消</el-button> |
| | | </div> |
| | | <!--/el-dialog--> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | this.title = "新增问卷问题选项"; |
| | | } |
| | | }, |
| | | handleUpdate2(id,topicId) { |
| | | this.reset(); |
| | | this.open = true; |
| | | if (id != null) { |
| | | const optionid = id; |
| | | getSvytopicoption(optionid).then(response => { |
| | | this.form = response.data; |
| | | this.form.topicid = topicId; |
| | | this.title = "修改问卷问题选项"; |
| | | }); |
| | | }else |
| | | { |
| | | this.form.topicid = topicId; |
| | | this.title = "新增问卷问题选项"; |
| | | } |
| | | }, |
| | | /** 提交按钮 */ |
| | | submitForm() { |
| | | this.$refs["form"].validate(valid => { |