|
@@ -3,7 +3,9 @@
|
|
|
<div class="rating-component">
|
|
<div class="rating-component">
|
|
|
<span>评分: </span>
|
|
<span>评分: </span>
|
|
|
<input type="number" class="score-input" :min="1" :max="100" placeholder="暂无分数" title="请输入0~100间的数字"
|
|
<input type="number" class="score-input" :min="1" :max="100" placeholder="暂无分数" title="请输入0~100间的数字"
|
|
|
- v-model="correction.score" :disabled="isStudent" />
|
|
|
|
|
|
|
+ v-model="correction.score" :disabled="isStudent" />
|
|
|
|
|
+ <!-- TODO:判定是否有报告存在 -->
|
|
|
|
|
+ <el-button color="#597D3B" @click="handleCorrectToPage" >查看AI智能批改报告</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="textarea-container">
|
|
<div class="textarea-container">
|
|
@@ -11,7 +13,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<el-button color="#597D3B" @click="handleCorrect" v-if="!isStudent">提交批改</el-button>
|
|
<el-button color="#597D3B" @click="handleCorrect" v-if="!isStudent">提交批改</el-button>
|
|
|
- <!-- TODO:增加学生智能批改报告查看的跳转 -->
|
|
|
|
|
|
|
+
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -24,6 +26,7 @@ import "./index.scss"
|
|
|
import { useStore } from "@/store";
|
|
import { useStore } from "@/store";
|
|
|
|
|
|
|
|
const store = useStore()
|
|
const store = useStore()
|
|
|
|
|
+const apis = useApis()
|
|
|
|
|
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
@@ -35,7 +38,8 @@ export default defineComponent({
|
|
|
assignmentId: {
|
|
assignmentId: {
|
|
|
type: Number,
|
|
type: Number,
|
|
|
required: true
|
|
required: true
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
setup(props) {
|
|
setup(props) {
|
|
|
const isStudent = computed(() => store.user.role === 'STUDENT');
|
|
const isStudent = computed(() => store.user.role === 'STUDENT');
|
|
@@ -64,6 +68,13 @@ export default defineComponent({
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ const handleCorrectToPage = () => {
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: `/home/assignment/${props.assignmentId}/AIEvaluation`,
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
fetchCorrection();
|
|
fetchCorrection();
|
|
@@ -94,6 +105,7 @@ export default defineComponent({
|
|
|
return {
|
|
return {
|
|
|
correction,
|
|
correction,
|
|
|
handleCorrect,
|
|
handleCorrect,
|
|
|
|
|
+ handleCorrectToPage,
|
|
|
isStudent
|
|
isStudent
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|