|
@@ -231,7 +231,7 @@
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
import { doLogout, getHistoryTask } from "@/api/markPage";
|
|
import { doLogout, getHistoryTask } from "@/api/markPage";
|
|
-import { computed, defineComponent, ref } from "vue";
|
|
|
|
|
|
+import { computed, defineComponent, ref, watchEffect } from "vue";
|
|
import { store } from "./store";
|
|
import { store } from "./store";
|
|
import {
|
|
import {
|
|
ZoomInOutlined,
|
|
ZoomInOutlined,
|
|
@@ -248,6 +248,8 @@ import { ModeEnum } from "@/types";
|
|
import MarkChangeProfile from "./MarkChangeProfile.vue";
|
|
import MarkChangeProfile from "./MarkChangeProfile.vue";
|
|
import MarkSwitchGroupDialog from "./MarkSwitchGroupDialog.vue";
|
|
import MarkSwitchGroupDialog from "./MarkSwitchGroupDialog.vue";
|
|
import MarkProblemDialog from "./MarkProblemDialog.vue";
|
|
import MarkProblemDialog from "./MarkProblemDialog.vue";
|
|
|
|
+import { isNumber } from "lodash";
|
|
|
|
+import { Modal } from "ant-design-vue";
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: "MarkHeader",
|
|
name: "MarkHeader",
|
|
@@ -377,6 +379,26 @@ export default defineComponent({
|
|
problemRef.value?.showModal();
|
|
problemRef.value?.showModal();
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ watchEffect(() => {
|
|
|
|
+ if (
|
|
|
|
+ isNumber(store.setting.topCount) &&
|
|
|
|
+ store.setting.topCount === store.status.personCount
|
|
|
|
+ ) {
|
|
|
|
+ Modal.confirm({
|
|
|
|
+ centered: true,
|
|
|
|
+ mask: false,
|
|
|
|
+ zIndex: 10000,
|
|
|
|
+ content: `分配任务份已完成,是否继续?`,
|
|
|
|
+ okText: "继续",
|
|
|
|
+ cancelText: "退出",
|
|
|
|
+ onCancel: () => {
|
|
|
|
+ logout();
|
|
|
|
+ },
|
|
|
|
+ onOk: () => {},
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
return {
|
|
return {
|
|
store,
|
|
store,
|
|
modeName,
|
|
modeName,
|