| | |
| | | v-for="(item, index) in form.questionList" |
| | | :key="index" |
| | | > |
| | | <div class="close-icon"> |
| | | <div class="close-icon" @click="removeList(index)"> |
| | | <el-icon><Close /></el-icon> |
| | | </div> |
| | | <el-row> |
| | |
| | | placeholder="请输入" |
| | | v-model="item.questionType" |
| | | > |
| | | <el-radio value="1">选择</el-radio> |
| | | <el-radio value="2">打分</el-radio> |
| | | <el-radio :value="1">选择</el-radio> |
| | | <el-radio :value="2">打分</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row v-if="item.questionType === '1'"> |
| | | <el-row v-if="item.questionType === 1"> |
| | | <el-col :span="24"> |
| | | <el-form-item label="本题选项" style="width: 100%;" :prop="item.answerList"> |
| | | <div |
| | |
| | | |
| | | <script lang="ts" setup> |
| | | import { listEvaluate, saveEvaluate } from '@/api/system/company/company' |
| | | import { ElMessage} from 'element-plus' |
| | | import { ElMessage, ElMessageBox} from 'element-plus' |
| | | const tableData = ref([]) |
| | | const addNewRef = ref() |
| | | const { proxy } = getCurrentInstance() |
| | | const form: any = ref({ |
| | | questionList: [] |
| | | }) |
| | |
| | | }) |
| | | function getListEvaluate() { |
| | | listEvaluate().then((val) => { |
| | | tableData.value = val.data.questionList |
| | | form.value.questionList = val.data.questionList |
| | | }) |
| | | } |
| | | function addContent() { |
| | |
| | | }) |
| | | form.value.questionList[index].answerList[childIndex].isScore = 1 |
| | | } |
| | | function removeList(index) { |
| | | // ElMessageBox.confirm('确认移除该评价项?', 'Error', { |
| | | // confirmButtonText: 'OK', |
| | | // cancelButtonText: 'Cancel', |
| | | // type: 'erro', |
| | | // }) |
| | | |
| | | } |
| | | getListEvaluate() |
| | | </script> |
| | | |