1
0
mirror of https://github.com/ZeroCatDev/Classworks.git synced 2026-02-04 07:53:11 +00:00

feat: 更新作业编辑和考勤管理对话框以支持强制一体机UI模式

This commit is contained in:
Sunwuyuan 2026-01-11 16:11:19 +08:00
parent 1325038fa0
commit f3534f9411
No known key found for this signature in database
GPG Key ID: A6A54CF66F56BB64
2 changed files with 19 additions and 2 deletions

View File

@ -277,7 +277,7 @@ export default {
emits: ["update:modelValue", "save"], emits: ["update:modelValue", "save"],
setup() { setup() {
const { mobile } = useDisplay(); const { mobile } = useDisplay();
return { isMobile: mobile }; return { mobile };
}, },
data() { data() {
return { return {
@ -290,6 +290,14 @@ export default {
}; };
}, },
computed: { computed: {
isMobile() {
// UIfalse使UI
const forceDesktopMode = getSetting('display.forceDesktopMode');
if (forceDesktopMode) {
return false;
}
return this.mobile;
},
dialogVisible: { dialogVisible: {
get() { get() {
return this.modelValue; return this.modelValue;

View File

@ -244,6 +244,7 @@
<script> <script>
import { pinyin } from "pinyin-pro"; import { pinyin } from "pinyin-pro";
import { useDisplay } from "vuetify"; import { useDisplay } from "vuetify";
import { getSetting } from "@/utils/settings";
export default { export default {
name: "AttendanceManagementDialog", name: "AttendanceManagementDialog",
@ -268,7 +269,7 @@ export default {
emits: ["update:modelValue", "save", "change"], emits: ["update:modelValue", "save", "change"],
setup() { setup() {
const { mobile } = useDisplay(); const { mobile } = useDisplay();
return { isMobile: mobile }; return { mobile };
}, },
data() { data() {
return { return {
@ -277,6 +278,14 @@ export default {
}; };
}, },
computed: { computed: {
isMobile() {
// UIfalse使UI
const forceDesktopMode = getSetting('display.forceDesktopMode');
if (forceDesktopMode) {
return false;
}
return this.mobile;
},
filteredStudents() { filteredStudents() {
let students = [...this.studentList]; let students = [...this.studentList];