加分钟和阻止刷新

This commit is contained in:
joylink_zhaoerwei 2024-02-27 16:52:49 +08:00
parent 7cc8b14555
commit 87a86e1de0

View File

@ -1,10 +1,10 @@
<template> <template>
<el-dialog v-dialogDrag :title="title" :visible.sync="dialogVisible" width="500px" :before-close="handleClose" center :close-on-click-modal="false" append-to-body> <el-dialog v-dialogDrag :title="title" :visible.sync="dialogVisible" width="540px" :before-close="handleClose" center :close-on-click-modal="false" append-to-body @keydown.enter.native.prevent>
<el-form ref="ruleForm" :model="formModel" :rules="rules" label-width="100px"> <el-form ref="ruleForm" :model="formModel" :rules="rules" label-width="120px">
<el-form-item v-if="editType == 'module'" label="模块名称:" prop="moduleName"> <el-form-item v-if="editType == 'module'" label="模块名称:" prop="moduleName">
<el-input v-model="formModel.moduleName" style="width: 350px;" /> <el-input v-model="formModel.moduleName" style="width: 350px;" />
</el-form-item> </el-form-item>
<el-form-item v-if="editType == 'module'" label="考试时间:" prop="duration"> <el-form-item v-if="editType == 'module'" label="考试时间(分钟):" prop="duration">
<el-input v-model="formModel.duration" style="width:350px;" /> <el-input v-model="formModel.duration" style="width:350px;" />
</el-form-item> </el-form-item>
<el-form-item v-if="editType == 'module'" label="评分规则:" prop="moduleScoreRuleId"> <el-form-item v-if="editType == 'module'" label="评分规则:" prop="moduleScoreRuleId">