提交 90103255 authored 作者: zfl's avatar zfl

提示框修改,快速筛选题目

上级 e4c862ac
...@@ -61,6 +61,9 @@ ...@@ -61,6 +61,9 @@
}} }}
</div> </div>
<div class="right_data"> <div class="right_data">
<el-button type="text" style="color: #303133; width: 70px" @click="s_item=(e + (i - 1) * 5 - 1);dialogVisible=true" >
{{test_result_sub_data[e + (i - 1) * 5 - 1].value}}
</el-button>
<!-- <el-input <!-- <el-input
v-if="test_result_sub_data[e + (i - 1) * 5 - 1]" v-if="test_result_sub_data[e + (i - 1) * 5 - 1]"
v-model=" v-model="
...@@ -70,35 +73,31 @@ ...@@ -70,35 +73,31 @@
class="input_box" class="input_box"
> >
</el-input> --> </el-input> -->
<el-popover <!-- <el-popover
style="display: block; width: 100%; height: 100%" style="display: block; width: 100%; height: 100%"
v-if="test_result_sub_data[e + (i - 1) * 5 - 1]" v-if="test_result_sub_data[e + (i - 1) * 5 - 1]"
placement="bottom" placement="bottom"
width="300" width="370"
height="400"
v-model=" v-model="
test_result_sub_data[e + (i - 1) * 5 - 1].visible test_result_sub_data[e + (i - 1) * 5 - 1].visible
" "
trigger="click" trigger="click"
> >
<div> <div style="overflow-y: scroll;max-height: 400px;">
<el-row> <el-row >
<el-radio-group <el-col :span="8" v-for="(tobacco_grades_data_f, tobacco_grades_data_index) in tobacco_grades_data"
v-model=" :key="'t'+(e + (i - 1) * 5 - 1)+tobacco_grades_data_index" style="height:119px;border-bottom: 1px solid #e6ebf5; padding:8px 0px">
test_result_sub_data[e + (i - 1) * 5 - 1]
.value <div style="padding:2px 0px"><el-tag>组别:{{tobacco_grades_data_f.name}}</el-tag></div>
" <el-radio-group size="mini" @change="test_result_sub_data[e + (i - 1) * 5 - 1].visible=false" v-model="test_result_sub_data[e + (i - 1) * 5 - 1].value">
> <el-radio-button
<el-col v-for="(grade_code_i, grade_code_index) in tobacco_grades_data_f.value"
:span="6" :key="'s'+tobacco_grades_data_index+(e + (i - 1) * 5 - 1)+grade_code_index"
v-for="(i, index) in tobacco_grades_data" :label="grade_code_i.grade_code">{{grade_code_i.grade_code}}</el-radio-button>
:key="index"
>
<el-radio :label="i.grade_code">{{
i.grade_code
}}</el-radio>
</el-col>
</el-radio-group> </el-radio-group>
</el-row> </el-col>
</el-row>
</div> </div>
<el-button <el-button
type="text" type="text"
...@@ -109,7 +108,7 @@ ...@@ -109,7 +108,7 @@
test_result_sub_data[e + (i - 1) * 5 - 1].value test_result_sub_data[e + (i - 1) * 5 - 1].value
}} }}
</el-button> </el-button>
</el-popover> </el-popover> -->
</div> </div>
</div> </div>
</div> </div>
...@@ -211,6 +210,34 @@ ...@@ -211,6 +210,34 @@
> >
</div> </div>
</el-card> </el-card>
<el-button type="primary" style="width: 100%" @click="dialogVisible=true"
>sssss</el-button
>
<el-dialog
title="请选择等级"
v-if="test_result_sub_data[s_item]"
:visible.sync="dialogVisible"
width="400px"
>
<div style="overflow-y: scroll;max-height: 500px;">
<el-row >
<el-col :span="8" v-for="(tobacco_grades_data_f, tobacco_grades_data_index) in tobacco_grades_data"
:key="'t'+(s_item)+tobacco_grades_data_index" style="height:119px;border-bottom: 1px solid #e6ebf5; padding:8px 0px">
<div style="padding:2px 0px"><el-tag>组别:{{tobacco_grades_data_f.name}}</el-tag></div>
<el-radio-group size="mini" @change="dialogVisible=false" v-model="test_result_sub_data[s_item].value">
<el-radio-button
v-for="(grade_code_i, grade_code_index) in tobacco_grades_data_f.value"
:key="'s'+tobacco_grades_data_index+(s_item)+grade_code_index"
:label="grade_code_i.grade_code">{{grade_code_i.grade_code}}</el-radio-button>
</el-radio-group>
</el-col>
</el-row>
</div>
<!-- <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible = false">取 消</el-button>
<el-button type="primary" @click="dialogVisible = false">确 定</el-button>
</span> -->
</el-dialog>
</div> </div>
</template> </template>
...@@ -224,6 +251,8 @@ export default { ...@@ -224,6 +251,8 @@ export default {
components: { TestInfo, AnswerView }, components: { TestInfo, AnswerView },
data() { data() {
return { return {
s_item:0,
dialogVisible:false,
headers: { Authorization: ' Bearer ' + getToken() }, headers: { Authorization: ' Bearer ' + getToken() },
IP: process.env.VUE_APP_BASE_API, IP: process.env.VUE_APP_BASE_API,
row: 1, row: 1,
...@@ -292,7 +321,7 @@ export default { ...@@ -292,7 +321,7 @@ export default {
begin_answer_time: res.begin_answer_time, begin_answer_time: res.begin_answer_time,
duration: res.examination_questions.duration * 60, duration: res.examination_questions.duration * 60,
const_down: const_down:
res.examination_questions.duration * res.examination_questions.duration * 60
-(res.begin_answer_duration ? res.begin_answer_duration : 0), -(res.begin_answer_duration ? res.begin_answer_duration : 0),
status: res.status, status: res.status,
title: res.examination_questions_title, title: res.examination_questions_title,
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论