|
@@ -88,7 +88,7 @@
|
|
|
style="line-height: 20px"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div>{{ group?.title }}(切换)</div>
|
|
|
+ <div @click="switchGroupDialog">{{ group?.title }}(切换)</div>
|
|
|
<div class="tw-flex tw-place-items-center">
|
|
|
<UserOutlined
|
|
|
:style="{ 'font-size': '18px' }"
|
|
@@ -105,7 +105,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { getHistoryTask } from "@/api/markPage";
|
|
|
+import { getGroups, getHistoryTask } from "@/api/markPage";
|
|
|
import { computed, defineComponent } from "vue";
|
|
|
import { store } from "./store";
|
|
|
import {
|
|
@@ -187,6 +187,11 @@ export default defineComponent({
|
|
|
return store.setting.uiSetting["answer.paper.scale"] < 1;
|
|
|
});
|
|
|
|
|
|
+ async function switchGroupDialog() {
|
|
|
+ const groups = await getGroups();
|
|
|
+ console.log(groups);
|
|
|
+ }
|
|
|
+
|
|
|
async function updateHistoryTask({
|
|
|
pageNumber = 1,
|
|
|
pageSize = 10,
|
|
@@ -225,6 +230,7 @@ export default defineComponent({
|
|
|
lessThanOneScale,
|
|
|
updateHistoryTask,
|
|
|
toggleHistory,
|
|
|
+ switchGroupDialog,
|
|
|
};
|
|
|
},
|
|
|
});
|