|
@@ -177,7 +177,11 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { examStructureListPage, examBindMarkLeader } from "../api";
|
|
|
+import {
|
|
|
+ examStructureListPage,
|
|
|
+ examBindMarkLeader,
|
|
|
+ examTransferUser
|
|
|
+} from "../api";
|
|
|
import UploadPaperAnswerDialog from "../components/UploadPaperAnswerDialog";
|
|
|
import ModifyMarkParams from "../components/markParam/ModifyMarkParams";
|
|
|
import ModifyObjectiveAnswer from "../components/markParam/ModifyObjectiveAnswer.vue";
|
|
@@ -283,9 +287,25 @@ export default {
|
|
|
this.$message.success("绑定成功!");
|
|
|
this.getList();
|
|
|
},
|
|
|
- toTransfer(row) {
|
|
|
- this.curTask = row;
|
|
|
- this.$refs.SelectTransferUser.open();
|
|
|
+ async toTransfer(row) {
|
|
|
+ if (row.transferId) {
|
|
|
+ const confirm = await this.$confirm(`确定要打回当前任务吗?`, "提示", {
|
|
|
+ type: "warning"
|
|
|
+ }).catch(() => {});
|
|
|
+ if (confirm !== "confirm") return;
|
|
|
+
|
|
|
+ const res = await examTransferUser({
|
|
|
+ courseCode: this.task.courseCode,
|
|
|
+ paperNumber: this.task.paperNumber
|
|
|
+ }).catch(() => {});
|
|
|
+ if (!res) return;
|
|
|
+
|
|
|
+ this.$message.success("操作成功!");
|
|
|
+ this.getList();
|
|
|
+ } else {
|
|
|
+ this.curTask = row;
|
|
|
+ this.$refs.SelectTransferUser.open();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|