This commit is contained in:
parent
15ccb7f0b9
commit
85e021b5ac
Binary file not shown.
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 15 KiB |
@ -21,6 +21,8 @@ export interface GroupVO {
|
|||||||
*/
|
*/
|
||||||
attendanceType: number;
|
attendanceType: number;
|
||||||
|
|
||||||
|
isAutomatic: number;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GroupForm extends BaseEntity {
|
export interface GroupForm extends BaseEntity {
|
||||||
|
BIN
apps/web-antd/src/assets/logo.png
Normal file
BIN
apps/web-antd/src/assets/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
@ -1,5 +1,5 @@
|
|||||||
import { defineOverridesPreferences } from '@vben/preferences';
|
import { defineOverridesPreferences } from '@vben/preferences';
|
||||||
|
import logo from '../src/assets/logo.png'
|
||||||
/**
|
/**
|
||||||
* @description 项目配置文件
|
* @description 项目配置文件
|
||||||
* 只需要覆盖项目中的一部分配置,不需要的配置不用覆盖,会自动使用默认配置
|
* 只需要覆盖项目中的一部分配置,不需要的配置不用覆盖,会自动使用默认配置
|
||||||
@ -62,8 +62,8 @@ export const overridesPreferences = defineOverridesPreferences({
|
|||||||
*
|
*
|
||||||
* !!! 更改配置后请清空浏览器缓存
|
* !!! 更改配置后请清空浏览器缓存
|
||||||
*/
|
*/
|
||||||
// logo: {
|
logo: {
|
||||||
// enable: true,
|
enable: true,
|
||||||
// source: '',
|
source: logo,
|
||||||
// },
|
},
|
||||||
});
|
});
|
||||||
|
@ -45,7 +45,7 @@ const [BasicModal, modalApi] = useVbenModal({
|
|||||||
}
|
}
|
||||||
modalApi.modalLoading(true);
|
modalApi.modalLoading(true);
|
||||||
const {check} = modalApi.getData() as { check?: boolean };
|
const {check} = modalApi.getData() as { check?: boolean };
|
||||||
isClockIn.value = check;
|
isClockIn.value = check || false;
|
||||||
await markInitialized();
|
await markInitialized();
|
||||||
modalApi.modalLoading(false);
|
modalApi.modalLoading(false);
|
||||||
},
|
},
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {computed, reactive, ref} from 'vue';
|
import {computed, onMounted, reactive, ref} from 'vue';
|
||||||
|
|
||||||
import {useVbenModal} from '@vben/common-ui';
|
import {useVbenModal} from '@vben/common-ui';
|
||||||
import {$t} from '@vben/locales';
|
import {$t} from '@vben/locales';
|
||||||
@ -36,10 +36,10 @@ const title = computed(() => {
|
|||||||
});
|
});
|
||||||
const settingData = reactive({
|
const settingData = reactive({
|
||||||
isAutomatic: true,
|
isAutomatic: true,
|
||||||
weekdayData: [],
|
weekdayData: [] as any[],
|
||||||
cycleData: [],
|
cycleData: [] as any[],
|
||||||
unCheckInData: [],
|
unCheckInData: [] as any[],
|
||||||
checkInData: [],
|
checkInData: [] as any[],
|
||||||
shiftId: ''
|
shiftId: ''
|
||||||
})
|
})
|
||||||
const [BasicForm, formApi] = useVbenForm({
|
const [BasicForm, formApi] = useVbenForm({
|
||||||
@ -65,6 +65,10 @@ const {onBeforeClose, markInitialized, resetInitialized} = useBeforeCloseDiff(
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
onMounted(()=>{
|
||||||
|
getDictOptions('wy_kqgzr')
|
||||||
|
})
|
||||||
|
|
||||||
const [BasicModal, modalApi] = useVbenModal({
|
const [BasicModal, modalApi] = useVbenModal({
|
||||||
fullscreenButton: false,
|
fullscreenButton: false,
|
||||||
fullscreen: true,
|
fullscreen: true,
|
||||||
@ -83,10 +87,7 @@ const [BasicModal, modalApi] = useVbenModal({
|
|||||||
const record = await groupInfo(id);
|
const record = await groupInfo(id);
|
||||||
await formApi.setValues(record);
|
await formApi.setValues(record);
|
||||||
} else {
|
} else {
|
||||||
const dictOptions = getDictOptions('wy_kqgzr');
|
getDictOptions('wy_kqgzr').forEach(item => {
|
||||||
console.log(dictOptions)
|
|
||||||
if (dictOptions) {
|
|
||||||
dictOptions.forEach(item => {
|
|
||||||
settingData.weekdayData.push({
|
settingData.weekdayData.push({
|
||||||
dayOfWeek: item.value,
|
dayOfWeek: item.value,
|
||||||
label: item.label,
|
label: item.label,
|
||||||
@ -95,7 +96,6 @@ const [BasicModal, modalApi] = useVbenModal({
|
|||||||
id: null,
|
id: null,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
|
||||||
settingData.cycleData = [{id: ''}, {id: ''}];
|
settingData.cycleData = [{id: ''}, {id: ''}];
|
||||||
}
|
}
|
||||||
await markInitialized();
|
await markInitialized();
|
||||||
|
@ -12,7 +12,6 @@ dayjs.extend(relativeTime);
|
|||||||
import type {HouseChargeVO} from "#/api/property/costManagement/houseCharge/model";
|
import type {HouseChargeVO} from "#/api/property/costManagement/houseCharge/model";
|
||||||
import {getHoliday} from "#/api/property/attendanceManagement/attendanceGroupSettings";
|
import {getHoliday} from "#/api/property/attendanceManagement/attendanceGroupSettings";
|
||||||
import {Calendar, Tag} from 'ant-design-vue'
|
import {Calendar, Tag} from 'ant-design-vue'
|
||||||
import type {Holiday} from "#/api/property/attendanceManagement/attendanceGroupSettings/model";
|
|
||||||
|
|
||||||
const [BasicModal, modalApi] = useVbenModal({
|
const [BasicModal, modalApi] = useVbenModal({
|
||||||
onOpenChange: handleOpenChange,
|
onOpenChange: handleOpenChange,
|
||||||
@ -25,7 +24,7 @@ const houseChargeDetail = shallowRef<null | HouseChargeVO>(null);
|
|||||||
|
|
||||||
const holidayData = ref<any>({})
|
const holidayData = ref<any>({})
|
||||||
|
|
||||||
const year = ref<string>(new Date().getFullYear())
|
const year = ref<string>(new Date().getFullYear().toString())
|
||||||
|
|
||||||
async function handleOpenChange(open: boolean) {
|
async function handleOpenChange(open: boolean) {
|
||||||
if (!open) {
|
if (!open) {
|
||||||
|
Loading…
Reference in New Issue
Block a user