feat: 添加常驻通知管理功能,支持编辑和删除通知

This commit is contained in:
Sunwuyuan
2025-11-30 11:50:20 +08:00
parent 069f0a31c0
commit 46dffb02ca
6 changed files with 564 additions and 26 deletions
@@ -1,16 +1,17 @@
<template>
<v-col
v-if="studentList && studentList.length"
v-ripple="{
v-ripple="!isEditingDisabled ? {
class: `text-${
['primary', 'secondary', 'info', 'success', 'warning', 'error'][
Math.floor(Math.random() * 6)
]
}`,
}"
} : false"
:class="{ 'cursor-not-allowed': isEditingDisabled }"
class="attendance-area no-select"
cols="1"
@click="$emit('click')"
@click="handleClick"
>
<h1>出勤</h1>
<h2>
@@ -94,12 +95,25 @@ export default {
type: Object,
required: true,
},
isEditingDisabled: {
type: Boolean,
default: false,
},
},
emits: ["click"],
emits: ["click", "disabled-click"],
setup() {
const display = useDisplay();
return { display };
},
methods: {
handleClick() {
if (this.isEditingDisabled) {
this.$emit('disabled-click');
} else {
this.$emit('click');
}
},
},
};
</script>