This commit is contained in:
@@ -45,7 +45,7 @@ const [BasicModal, modalApi] = useVbenModal({
|
||||
}
|
||||
modalApi.modalLoading(true);
|
||||
const {check} = modalApi.getData() as { check?: boolean };
|
||||
isClockIn.value = check;
|
||||
isClockIn.value = check || false;
|
||||
await markInitialized();
|
||||
modalApi.modalLoading(false);
|
||||
},
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import {computed, reactive, ref} from 'vue';
|
||||
import {computed, onMounted, reactive, ref} from 'vue';
|
||||
|
||||
import {useVbenModal} from '@vben/common-ui';
|
||||
import {$t} from '@vben/locales';
|
||||
@@ -36,10 +36,10 @@ const title = computed(() => {
|
||||
});
|
||||
const settingData = reactive({
|
||||
isAutomatic: true,
|
||||
weekdayData: [],
|
||||
cycleData: [],
|
||||
unCheckInData: [],
|
||||
checkInData: [],
|
||||
weekdayData: [] as any[],
|
||||
cycleData: [] as any[],
|
||||
unCheckInData: [] as any[],
|
||||
checkInData: [] as any[],
|
||||
shiftId: ''
|
||||
})
|
||||
const [BasicForm, formApi] = useVbenForm({
|
||||
@@ -65,6 +65,10 @@ const {onBeforeClose, markInitialized, resetInitialized} = useBeforeCloseDiff(
|
||||
},
|
||||
);
|
||||
|
||||
onMounted(()=>{
|
||||
getDictOptions('wy_kqgzr')
|
||||
})
|
||||
|
||||
const [BasicModal, modalApi] = useVbenModal({
|
||||
fullscreenButton: false,
|
||||
fullscreen: true,
|
||||
@@ -83,19 +87,15 @@ const [BasicModal, modalApi] = useVbenModal({
|
||||
const record = await groupInfo(id);
|
||||
await formApi.setValues(record);
|
||||
} else {
|
||||
const dictOptions = getDictOptions('wy_kqgzr');
|
||||
console.log(dictOptions)
|
||||
if (dictOptions) {
|
||||
dictOptions.forEach(item => {
|
||||
settingData.weekdayData.push({
|
||||
dayOfWeek: item.value,
|
||||
label: item.label,
|
||||
shiftValue: '休息',
|
||||
isRest: 1,
|
||||
id: null,
|
||||
})
|
||||
getDictOptions('wy_kqgzr').forEach(item => {
|
||||
settingData.weekdayData.push({
|
||||
dayOfWeek: item.value,
|
||||
label: item.label,
|
||||
shiftValue: '休息',
|
||||
isRest: 1,
|
||||
id: null,
|
||||
})
|
||||
}
|
||||
})
|
||||
settingData.cycleData = [{id: ''}, {id: ''}];
|
||||
}
|
||||
await markInitialized();
|
||||
|
@@ -12,7 +12,6 @@ dayjs.extend(relativeTime);
|
||||
import type {HouseChargeVO} from "#/api/property/costManagement/houseCharge/model";
|
||||
import {getHoliday} from "#/api/property/attendanceManagement/attendanceGroupSettings";
|
||||
import {Calendar, Tag} from 'ant-design-vue'
|
||||
import type {Holiday} from "#/api/property/attendanceManagement/attendanceGroupSettings/model";
|
||||
|
||||
const [BasicModal, modalApi] = useVbenModal({
|
||||
onOpenChange: handleOpenChange,
|
||||
@@ -25,7 +24,7 @@ const houseChargeDetail = shallowRef<null | HouseChargeVO>(null);
|
||||
|
||||
const holidayData = ref<any>({})
|
||||
|
||||
const year = ref<string>(new Date().getFullYear())
|
||||
const year = ref<string>(new Date().getFullYear().toString())
|
||||
|
||||
async function handleOpenChange(open: boolean) {
|
||||
if (!open) {
|
||||
|
Reference in New Issue
Block a user