|
|
@@ -983,10 +983,10 @@ const projectTypes = {
|
|
|
|
|
|
// 题型配置
|
|
|
const questionTypes = ref([
|
|
|
- { name: "单选题", scorePerQuestion: 0, questionCount: 1, romanNumeral: "一" },
|
|
|
- { name: "判断题", scorePerQuestion: 0, questionCount: 0, romanNumeral: "二" },
|
|
|
- { name: "多选题", scorePerQuestion: 0, questionCount: 0, romanNumeral: "三" },
|
|
|
- { name: "简答题", scorePerQuestion: 0, questionCount: 0, romanNumeral: "四" },
|
|
|
+ { name: "单选题", scorePerQuestion: 2, questionCount: 10, romanNumeral: "一" },
|
|
|
+ { name: "判断题", scorePerQuestion: 2, questionCount: 10, romanNumeral: "二" },
|
|
|
+ { name: "多选题", scorePerQuestion: 5, questionCount: 8, romanNumeral: "三" },
|
|
|
+ { name: "简答题", scorePerQuestion: 10, questionCount: 2, romanNumeral: "四" },
|
|
|
]);
|
|
|
|
|
|
// 保存初始配置
|
|
|
@@ -1085,10 +1085,10 @@ const createNewChat = async () => {
|
|
|
} else {
|
|
|
// 如果没有初始配置,使用默认配置
|
|
|
questionTypes.value = [
|
|
|
- { name: "单选题", scorePerQuestion: 0, questionCount: 1, romanNumeral: "一" },
|
|
|
- { name: "判断题", scorePerQuestion: 0, questionCount: 0, romanNumeral: "二" },
|
|
|
- { name: "多选题", scorePerQuestion: 0, questionCount: 0, romanNumeral: "三" },
|
|
|
- { name: "简答题", scorePerQuestion: 0, questionCount: 0, romanNumeral: "四" },
|
|
|
+ { name: "单选题", scorePerQuestion: 2, questionCount: 10, romanNumeral: "一" },
|
|
|
+ { name: "判断题", scorePerQuestion: 2, questionCount: 10, romanNumeral: "二" },
|
|
|
+ { name: "多选题", scorePerQuestion: 5, questionCount: 8, romanNumeral: "三" },
|
|
|
+ { name: "简答题", scorePerQuestion: 10, questionCount: 2, romanNumeral: "四" },
|
|
|
];
|
|
|
}
|
|
|
|
|
|
@@ -1183,8 +1183,19 @@ const clearSettings = () => {
|
|
|
totalScore.value = 100; // 清空时配置总分恢复默认值 100
|
|
|
// 保留原数组引用,更新每个对象的属性,避免破坏 Vue 3 响应式绑定
|
|
|
questionTypes.value.forEach(type => {
|
|
|
- type.scorePerQuestion = 0;
|
|
|
- type.questionCount = type.name === '单选题' ? 1 : 0;
|
|
|
+ if (type.name === '单选题') {
|
|
|
+ type.scorePerQuestion = 2;
|
|
|
+ type.questionCount = 10;
|
|
|
+ } else if (type.name === '判断题') {
|
|
|
+ type.scorePerQuestion = 2;
|
|
|
+ type.questionCount = 10;
|
|
|
+ } else if (type.name === '多选题') {
|
|
|
+ type.scorePerQuestion = 5;
|
|
|
+ type.questionCount = 8;
|
|
|
+ } else if (type.name === '简答题') {
|
|
|
+ type.scorePerQuestion = 10;
|
|
|
+ type.questionCount = 2;
|
|
|
+ }
|
|
|
});
|
|
|
console.log("清除设置");
|
|
|
};
|