没权限的直接不让粘贴
This commit is contained in:
@@ -287,7 +287,7 @@ const calendarOptions = ref({
|
||||
select(info) {
|
||||
if (info.end - info.start > 86400000) {
|
||||
//选择了多日
|
||||
console.log("选择了多日:", info);
|
||||
//console.log("选择了多日:", info);
|
||||
openEventModal(info.startStr, info.endStr);
|
||||
} else {
|
||||
//选择单日 无功能
|
||||
@@ -658,12 +658,8 @@ onMounted(() => {
|
||||
<!-- 👇 主体区域:允许内部滚动 -->
|
||||
<div class="modal-body p-4 flex-1 overflow-y-auto">
|
||||
<!-- 日期选择区域 -->
|
||||
<DatatimePickerForFullCalendar
|
||||
v-model:startDate="eventData.startDate"
|
||||
v-model:endDate="eventData.endDate"
|
||||
:color="eventData.color"
|
||||
:title="eventData.title"
|
||||
:isEditable="eventData.isEditable" />
|
||||
<DatatimePickerForFullCalendar v-model:startDate="eventData.startDate" v-model:endDate="eventData.endDate"
|
||||
:color="eventData.color" :title="eventData.title" :isEditable="eventData.isEditable" />
|
||||
|
||||
<!-- 内容输入区域 -->
|
||||
<div class="mb-4">
|
||||
@@ -719,27 +715,20 @@ onMounted(() => {
|
||||
</button>
|
||||
</div>
|
||||
<div class="flex gap-2">
|
||||
<button class="btn px-4 py-2 text-gray-700 hover:bg-gray-100 rounded-md"
|
||||
@click="copyEvent"
|
||||
>
|
||||
<button class="btn px-4 py-2 text-gray-700 hover:bg-gray-100 rounded-md" @click="copyEvent">
|
||||
{{ t("schedule.copy") }}
|
||||
</button>
|
||||
<button class="btn px-4 py-2 text-gray-700 hover:bg-gray-100 rounded-md disabled:cursor-not-allowed"
|
||||
:disabled="!pageData.isCopy"
|
||||
@click="pastEvent"
|
||||
>
|
||||
:disabled="!pageData.isCopy || !eventData.isEditable"
|
||||
@click="pastEvent">
|
||||
{{ t("schedule.paste") }}
|
||||
</button>
|
||||
<button
|
||||
v-if="!eventData.isEditing"
|
||||
@click="saveEvent"
|
||||
<button v-if="!eventData.isEditing" @click="saveEvent"
|
||||
class="btn btn-primary px-4 py-2 bg-cyan-600 text-white hover:bg-cyan-700 rounded-md disabled:bg-gray-400 disabled:cursor-not-allowed"
|
||||
:disabled="!eventData.isEditable">
|
||||
{{ t("schedule.add_event_button") }}
|
||||
</button>
|
||||
<button
|
||||
v-if="eventData.isEditing"
|
||||
@click="editSaveEvent"
|
||||
<button v-if="eventData.isEditing" @click="editSaveEvent"
|
||||
class="btn btn-primary px-4 py-2 bg-teal-600 text-white hover:bg-teal-700 rounded-md disabled:bg-gray-400 disabled:cursor-not-allowed"
|
||||
:disabled="!eventData.isEditable">
|
||||
修改日程
|
||||
|
||||
Reference in New Issue
Block a user