|
@@ -174,7 +174,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { markHistoryList, markTask } from "@/api";
|
|
|
+import { markHistoryList, markTask, markPaper } from "@/api";
|
|
|
import { CODE_TYPE } from "@/constants/enumerate";
|
|
|
import { mapState, mapMutations } from "vuex";
|
|
|
import { levelNameTransform } from "@/plugins/utils";
|
|
@@ -537,11 +537,19 @@ export default {
|
|
|
if (this.loading) return;
|
|
|
this.loading = true;
|
|
|
let res = null;
|
|
|
- res = await markTask({
|
|
|
- markTaskId: this.curPaperOrTask.id,
|
|
|
- isMark: !this.curPaperOrTask.mark,
|
|
|
- stage: this.curSubject.stage,
|
|
|
- }).catch(() => {});
|
|
|
+ if (this.curUserRoleType === "MARK_LEADER") {
|
|
|
+ res = await markPaper({
|
|
|
+ paperId: this.curPaperOrTask.id,
|
|
|
+ isMark: !this.curPaperOrTask.mark,
|
|
|
+ role: this.curUserRoleType,
|
|
|
+ }).catch(() => {});
|
|
|
+ } else {
|
|
|
+ res = await markTask({
|
|
|
+ markTaskId: this.curPaperOrTask.id,
|
|
|
+ isMark: !this.curPaperOrTask.mark,
|
|
|
+ stage: this.curSubject.stage,
|
|
|
+ }).catch(() => {});
|
|
|
+ }
|
|
|
|
|
|
this.loading = false;
|
|
|
if (!res) return;
|