mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 11:26:45 +08:00
feat:修改版本号
This commit is contained in:
@@ -44,7 +44,7 @@ export default defineComponent({
|
||||
const store = useStore();
|
||||
const isLogin = ref(false);
|
||||
// console.log("router", router.getRoutes(), route);
|
||||
console.log("版本0.9.12------------");
|
||||
console.log("版本0.9.13------------");
|
||||
const routes = computed(() => {
|
||||
return router.getRoutes().filter((e) => e.meta?.isLink);
|
||||
});
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
<div class="btnbox">
|
||||
<a-input
|
||||
v-model:value="test.examinationName"
|
||||
style="width: 400px; height: 40px; border-radius: 8px;"
|
||||
style="width: 400px; height: 40px; border-radius: 8px"
|
||||
placeholder="请输入考试名称"
|
||||
:maxlength="20"
|
||||
/>
|
||||
@@ -71,17 +71,11 @@
|
||||
{{ chooseCourse ? "重选" : "选择" }}试卷
|
||||
</button>
|
||||
<div v-if="paperName != ''">
|
||||
<a-tag
|
||||
|
||||
closable
|
||||
color="processing"
|
||||
@close="delTag"
|
||||
>
|
||||
<a-tag closable color="processing" @close="delTag">
|
||||
<span style="font-size: 14px; line-height: 33px">{{
|
||||
paperName
|
||||
}}</span>
|
||||
</a-tag>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- 选择面授侧弹窗 -->
|
||||
@@ -106,7 +100,8 @@
|
||||
<span style="margin-right: 3px">考试时间:</span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
<a-range-picker style="width: 400px; height: 40px; border-radius: 8px;"
|
||||
<a-range-picker
|
||||
style="width: 400px; height: 40px; border-radius: 8px"
|
||||
show-time
|
||||
format="YYYY/MM/DD HH:mm"
|
||||
v-model:value="test.chooseTime"
|
||||
@@ -129,7 +124,7 @@
|
||||
:min="0"
|
||||
:max="300"
|
||||
:precision="0"
|
||||
style="width: 400px; height: 40px; border-radius: 8px;"
|
||||
style="width: 400px; height: 40px; border-radius: 8px"
|
||||
v-model:value="test.examinationDuration"
|
||||
></a-input-number>
|
||||
<span style="color: #999999; margin-left: 8px">分钟</span>
|
||||
@@ -170,37 +165,30 @@
|
||||
"
|
||||
v-model:value="test.examinationLimit"
|
||||
></a-input-number>
|
||||
<span style="color: #999999; margin-left: 8px">次,-1表示无限制</span>
|
||||
<span style="color: #999999; margin-left: 8px"
|
||||
>次,-1表示无限制</span
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="main_item">
|
||||
<div class="signbox">
|
||||
<span style="margin-right: 3px">显示答案:</span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
|
||||
<a-radio-group
|
||||
style="margin-right: 12px"
|
||||
v-model:value="test.showAnswers"
|
||||
>
|
||||
<a-radio
|
||||
v-model:checked="checked"
|
||||
:value="1"
|
||||
@click="cloradio1"
|
||||
<a-radio v-model:checked="checked" :value="1" @click="cloradio1"
|
||||
>允许查看
|
||||
</a-radio>
|
||||
<a-radio
|
||||
v-model:checked="checked"
|
||||
:value="2"
|
||||
@click="cloradio1"
|
||||
<a-radio v-model:checked="checked" :value="2" @click="cloradio1"
|
||||
>不允许查看
|
||||
</a-radio>
|
||||
</a-radio-group>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item">
|
||||
@@ -208,25 +196,17 @@
|
||||
<span style="margin-right: 3px">显示解析:</span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
|
||||
<a-radio-group
|
||||
style="margin-right: 12px"
|
||||
v-model:value="test.showAnalysis"
|
||||
>
|
||||
<a-radio
|
||||
v-model:checked="checked"
|
||||
:value="1"
|
||||
@click="cloradio2"
|
||||
<a-radio v-model:checked="checked" :value="1" @click="cloradio2"
|
||||
>允许查看
|
||||
</a-radio>
|
||||
<a-radio
|
||||
v-model:checked="checked"
|
||||
:value="2"
|
||||
@click="cloradio2"
|
||||
<a-radio v-model:checked="checked" :value="2" @click="cloradio2"
|
||||
>不允许查看
|
||||
</a-radio>
|
||||
</a-radio-group>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item">
|
||||
@@ -234,25 +214,17 @@
|
||||
<span style="margin-right: 3px">评分模式:</span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
|
||||
<a-radio-group
|
||||
style="margin-right: 12px"
|
||||
v-model:value="test.scoringModel"
|
||||
>
|
||||
<a-radio
|
||||
v-model:checked="checked"
|
||||
:value="1"
|
||||
@click="cloradio3"
|
||||
<a-radio v-model:checked="checked" :value="1" @click="cloradio3"
|
||||
>最高一次
|
||||
</a-radio>
|
||||
<a-radio
|
||||
v-model:checked="checked"
|
||||
:value="2"
|
||||
@click="cloradio3"
|
||||
<a-radio v-model:checked="checked" :value="2" @click="cloradio3"
|
||||
>最后一次
|
||||
</a-radio>
|
||||
</a-radio-group>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="main_item">
|
||||
@@ -260,11 +232,10 @@
|
||||
<span style="margin-right: 3px">及格线:</span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
|
||||
<a-input
|
||||
v-model:value="test.passLine"
|
||||
type="number"
|
||||
style="width: 400px; height: 40px; border-radius: 8px;"
|
||||
style="width: 400px; height: 40px; border-radius: 8px"
|
||||
/>
|
||||
|
||||
<span style="color: #999999; margin-left: 8px">分</span>
|
||||
@@ -276,7 +247,6 @@
|
||||
<span style="margin-right: 3px">作业要求:</span>
|
||||
</div>
|
||||
<div class="btnbox">
|
||||
|
||||
<a-radio-group
|
||||
style="margin-right: 12px"
|
||||
v-model:value="test.questionArrangement"
|
||||
@@ -306,13 +276,10 @@
|
||||
>不乱序
|
||||
</a-radio>
|
||||
</a-radio-group>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="main_btns">
|
||||
<a-button class="btn1" @click="closeDrawer2">取消</a-button>
|
||||
@@ -407,9 +374,7 @@ export default {
|
||||
},
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
test:{
|
||||
|
||||
},
|
||||
test: {},
|
||||
|
||||
addLoading: false,
|
||||
isOuter: 1, // 是否为外部考试
|
||||
@@ -433,14 +398,11 @@ export default {
|
||||
],
|
||||
});
|
||||
|
||||
|
||||
const clearAll = () => {
|
||||
state.test = {};
|
||||
|
||||
};
|
||||
|
||||
const closeDrawer = () => {
|
||||
|
||||
state.statechoosedTime = "";
|
||||
ctx.emit("update:addtestVisible", false);
|
||||
ctx.emit("update:edit", false);
|
||||
@@ -474,14 +436,15 @@ export default {
|
||||
state.paperName = "";
|
||||
};
|
||||
const queryTest = () => {
|
||||
|
||||
queryExaminationDetailById({ examinationId: props.EditTestId })
|
||||
.then((res) => {
|
||||
state.test = res.data.data;
|
||||
state.test.showAnswers = Number(state.test.showAnswers);
|
||||
state.test.showAnalysis = Number(state.test.showAnalysis);
|
||||
state.test.scoringModel = Number(state.test.scoringModel);
|
||||
state.test.questionArrangement =Number(state.test.questionArrangement);
|
||||
state.test.questionArrangement = Number(
|
||||
state.test.questionArrangement
|
||||
);
|
||||
state.test.chooseTime = [
|
||||
dayjs(res.data.data.examinationStartTime, "YYYY-MM-DD HH:mm:ss"),
|
||||
dayjs(res.data.data.examinationEndTime, "YYYY-MM-DD HH:mm:ss"),
|
||||
@@ -497,8 +460,6 @@ export default {
|
||||
});
|
||||
};
|
||||
const updateTest = () => {
|
||||
|
||||
|
||||
if (!state.test.examinationName) {
|
||||
message.destroy();
|
||||
return message.warning("请输入考试名称");
|
||||
@@ -673,7 +634,6 @@ export default {
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
afterVisibleChange,
|
||||
closeDrawer,
|
||||
closeDrawer2,
|
||||
|
||||
Reference in New Issue
Block a user