|
@@ -55,7 +55,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
-import { onMounted, watch, h } from "vue";
|
|
|
|
|
|
+import { onMounted, watch, h, nextTick } from "vue";
|
|
import {
|
|
import {
|
|
clearMarkTask,
|
|
clearMarkTask,
|
|
getGroup,
|
|
getGroup,
|
|
@@ -230,7 +230,7 @@ watch(
|
|
|
|
|
|
const showRejectedReason = (task: Task) => {
|
|
const showRejectedReason = (task: Task) => {
|
|
if (task.rejected && task.rejectReason) {
|
|
if (task.rejected && task.rejectReason) {
|
|
- const [reasonType,reasonDesc] = task.rejectReason.split(':')
|
|
|
|
|
|
+ const [reasonType, reasonDesc] = task.rejectReason.split(":");
|
|
Modal.info({
|
|
Modal.info({
|
|
title: null,
|
|
title: null,
|
|
closable: false,
|
|
closable: false,
|
|
@@ -262,11 +262,7 @@ const showRejectedReason = (task: Task) => {
|
|
h("span", reasonType),
|
|
h("span", reasonType),
|
|
]),
|
|
]),
|
|
h("div", { style: { fontWeight: "bold" } }, "详情描述: "),
|
|
h("div", { style: { fontWeight: "bold" } }, "详情描述: "),
|
|
- h(
|
|
|
|
- "div",
|
|
|
|
- { style: { padding: "4px 2px" } },
|
|
|
|
- reasonDesc
|
|
|
|
- ),
|
|
|
|
|
|
+ h("div", { style: { padding: "4px 2px" } }, reasonDesc),
|
|
]
|
|
]
|
|
),
|
|
),
|
|
});
|
|
});
|
|
@@ -280,9 +276,13 @@ watch(
|
|
// 重置当前选择的quesiton和score
|
|
// 重置当前选择的quesiton和score
|
|
store.currentQuestion = undefined;
|
|
store.currentQuestion = undefined;
|
|
store.currentScore = undefined;
|
|
store.currentScore = undefined;
|
|
- if (store.currentTask) {
|
|
|
|
- showRejectedReason(store.currentTask);
|
|
|
|
- }
|
|
|
|
|
|
+ nextTick()
|
|
|
|
+ .then(() => {
|
|
|
|
+ if (store.currentTask) {
|
|
|
|
+ showRejectedReason(store.currentTask);
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {});
|
|
}
|
|
}
|
|
);
|
|
);
|
|
|
|
|