From 8b2a9dcd9ada7a5fd40f8aa0993f6afef67493d3 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期三, 12 六月 2024 17:58:26 +0800 Subject: [PATCH] feat:科目、题目 --- src/views/exam/question/edit/gap-filling.vue | 13 ++----------- 1 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/views/exam/question/edit/gap-filling.vue b/src/views/exam/question/edit/gap-filling.vue index 29e98b5..88e94c2 100644 --- a/src/views/exam/question/edit/gap-filling.vue +++ b/src/views/exam/question/edit/gap-filling.vue @@ -1,14 +1,9 @@ <template> <div class="app-container"> <el-form :model="form" ref="form" label-width="100px" v-loading="formLoading" :rules="rules"> - <el-form-item label="骞寸骇锛�" prop="gradeLevel" required> - <el-select v-model="form.gradeLevel" placeholder="骞寸骇" @change="levelChange"> - <el-option v-for="item in levelEnum" :key="item.key" :value="item.key" :label="item.value"></el-option> - </el-select> - </el-form-item> <el-form-item label="瀛︾锛�" prop="subjectId" required> <el-select v-model="form.subjectId" placeholder="瀛︾" > - <el-option v-for="item in subjectFilter" :key="item.id" :value="item.id" :label="item.name+' ( '+item.levelName+' )'"></el-option> + <el-option v-for="item in subjects" :key="item.id" :value="item.id" :label="item.name"></el-option> </el-select> </el-form-item> <el-form-item label="棰樺共锛�" prop="title" required> @@ -17,14 +12,10 @@ <el-form-item label="濉┖绛旀锛�" required> <el-form-item :label="item.prefix" :key="item.prefix" v-for="item in form.items" label-width="50px" class="question-item-label"> <el-input v-model="item.content" @focus="inputClick(item,'content')" class="question-item-content-input" style="width: 80%"/> - <span class="question-item-span">鍒嗘暟锛�</span><el-input-number v-model="item.score" :precision="1" :step="1" :max="100" ></el-input-number> </el-form-item> </el-form-item> <el-form-item label="瑙f瀽锛�" prop="analyze" required> <el-input v-model="form.analyze" @focus="inputClick(form,'analyze')" /> - </el-form-item> - <el-form-item label="鍒嗘暟锛�" prop="score" required> - <el-input-number v-model="form.score" :precision="1" :step="1" :max="100"></el-input-number> </el-form-item> <el-form-item label="闅惧害锛�" required> <el-rate v-model="form.difficult" class="question-item-rate"></el-rate> @@ -115,7 +106,7 @@ if (id && parseInt(id) !== 0) { _this.formLoading = true questionApi.select(id).then(re => { - _this.form = re.response + _this.form = re.data _this.formLoading = false }) } -- Gitblit v1.8.0