mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2026-02-04 07:53:11 +00:00
feat: 更新作业编辑和考勤管理对话框以支持强制一体机UI模式
This commit is contained in:
parent
1325038fa0
commit
f3534f9411
@ -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() {
|
||||||
|
// 如果启用了强制一体机UI模式,返回false(使用桌面UI)
|
||||||
|
const forceDesktopMode = getSetting('display.forceDesktopMode');
|
||||||
|
if (forceDesktopMode) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return this.mobile;
|
||||||
|
},
|
||||||
dialogVisible: {
|
dialogVisible: {
|
||||||
get() {
|
get() {
|
||||||
return this.modelValue;
|
return this.modelValue;
|
||||||
|
|||||||
@ -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() {
|
||||||
|
// 如果启用了强制一体机UI模式,返回false(使用桌面UI)
|
||||||
|
const forceDesktopMode = getSetting('display.forceDesktopMode');
|
||||||
|
if (forceDesktopMode) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return this.mobile;
|
||||||
|
},
|
||||||
filteredStudents() {
|
filteredStudents() {
|
||||||
let students = [...this.studentList];
|
let students = [...this.studentList];
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user