| | |
| | | <template> |
| | | <div> |
| | | <div class="topicxq" v-for="item in TargetoptionList"> |
| | | <el-form :rules="rules"> |
| | | <el-form :inline="true" :rules="rules" :model="item"> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item prop="targetvalue" label="选项名称"> |
| | |
| | | </el-radio-group> |
| | | </el-form-item></el-col |
| | | > |
| | | <el-col :span="12" v-if="intent" |
| | | <!-- <el-col :span="12" v-if="intent" |
| | | ><el-form-item label="选项节点"> |
| | | <el-input |
| | | type="text" |
| | |
| | | show-word-limit |
| | | > |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | ></el-col> --> |
| | | </el-row> |
| | | <el-row :gutter="10" v-if="!intent"> |
| | | <el-col :span="20" |
| | |
| | | </el-form-item> |
| | | |
| | | <el-row :gutter="10"> |
| | | <el-col :span="16" v-if="intent"> |
| | | <el-form-item label="语音文件"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | style="display: flex" |
| | | action="https://jsonplaceholder.typicode.com/posts/" |
| | | :file-list="fileList" |
| | | :limit="1" |
| | | :on-exceed="handleExceed" |
| | | > |
| | | <el-button size="small" type="primary">点击上传</el-button> |
| | | </el-upload> |
| | | </el-form-item></el-col |
| | | > |
| | | <el-col :span="intent ? 8 : 22"> |
| | | <el-col> |
| | | <div style="text-align: right; padding-right: 10px"> |
| | | <el-button |
| | | v-if="controlsc" |
| | | v-if="controlsc || addoption" |
| | | @click="$emit('addoption', item)" |
| | | type="success" |
| | | icon="el-icon-circle-plus-outline" |
| | |
| | | rules: { |
| | | targetvalue: [ |
| | | { required: true, message: "请输入选项名称", trigger: "blur" }, |
| | | { |
| | | min: 1, |
| | | max: 20, |
| | | message: "长度在 1 到 20 个字符", |
| | | trigger: "blur", |
| | | }, |
| | | ], |
| | | }, |
| | | }; |
| | |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | addoption: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | intent: { |
| | | type: Boolean, |
| | | default: true, |