diff --git a/.gitea/workflows/dev.yml b/.gitea/workflows/dev.yml index 9acb807d..01a06f2a 100644 --- a/.gitea/workflows/dev.yml +++ b/.gitea/workflows/dev.yml @@ -9,6 +9,8 @@ jobs: steps: - name: 拉取代码仓库 uses: http://git.missmoc.top/mocheng/checkout@v4 + with: + fetch-depth: 1 # 只拉取最新的1个提交(浅克隆) - name: Set up Node.js uses: http://git.missmoc.top/mocheng/setup-node@v3 diff --git a/apps/web-antd/src/api/property/resident/unit/model.d.ts b/apps/web-antd/src/api/property/resident/unit/model.d.ts index 8ae348bf..259e2abe 100644 --- a/apps/web-antd/src/api/property/resident/unit/model.d.ts +++ b/apps/web-antd/src/api/property/resident/unit/model.d.ts @@ -35,6 +35,7 @@ export interface Resident_unitVO { * 入驻位置 */ location: string; + locations: string[]; /** * 入驻时间 diff --git a/apps/web-antd/src/layouts/basic.vue b/apps/web-antd/src/layouts/basic.vue index f87a5fbd..61256dab 100644 --- a/apps/web-antd/src/layouts/basic.vue +++ b/apps/web-antd/src/layouts/basic.vue @@ -84,13 +84,13 @@ const menus = computed(() => { // icon: CircleHelp, // text: $t('ui.widgets.qa'), // }, - { - handler: () => { - router.push('/navigation'); - }, - // icon: TagOutlined, - text: '返回导航', - }, + // { + // handler: () => { + // router.push('/navigation'); + // }, + // // icon: TagOutlined, + // text: '返回导航', + // }, ]; /** * 租户选中状态 不显示个人中心 diff --git a/apps/web-antd/src/store/auth.ts b/apps/web-antd/src/store/auth.ts index cdb33525..cd8c4b9f 100644 --- a/apps/web-antd/src/store/auth.ts +++ b/apps/web-antd/src/store/auth.ts @@ -56,9 +56,7 @@ export const useAuthStore = defineStore('auth', () => { if (accessStore.loginExpired) { accessStore.setLoginExpired(false); } else { - onSuccess - ? await onSuccess?.() - : await router.push('/navigation'); + onSuccess ? await onSuccess?.() : await router.push('/analytics'); } if (userInfo?.realName) { diff --git a/apps/web-antd/src/views/dashboard/analytics/analytics-visits-source.vue b/apps/web-antd/src/views/dashboard/analytics/analytics-visits-source.vue index d97c3c0f..fd3bf104 100644 --- a/apps/web-antd/src/views/dashboard/analytics/analytics-visits-source.vue +++ b/apps/web-antd/src/views/dashboard/analytics/analytics-visits-source.vue @@ -26,7 +26,7 @@ onMounted(() => { { name: '搜索引擎', value: 1048 }, { name: '直接访问', value: 735 }, { name: '邮件营销', value: 580 }, - { name: '联盟广告', value: 484 }, + // { name: '联盟广告', value: 484 }, ], emphasis: { label: { diff --git a/apps/web-antd/src/views/dashboard/analytics/index.vue b/apps/web-antd/src/views/dashboard/analytics/index.vue index 5e3d6d28..0236c92a 100644 --- a/apps/web-antd/src/views/dashboard/analytics/index.vue +++ b/apps/web-antd/src/views/dashboard/analytics/index.vue @@ -25,29 +25,29 @@ const overviewItems: AnalysisOverviewItem[] = [ icon: SvgCardIcon, title: '用户量', totalTitle: '总用户量', - totalValue: 120_000, - value: 2000, + totalValue: 78, + value: 15, }, { icon: SvgCakeIcon, title: '访问量', totalTitle: '总访问量', - totalValue: 500_000, - value: 20_000, + totalValue: 2_278, + value: 461, }, { icon: SvgDownloadIcon, title: '下载量', totalTitle: '总下载量', - totalValue: 120_000, - value: 8000, + totalValue: 17, + value: 2, }, { icon: SvgBellIcon, title: '使用量', totalTitle: '总使用量', - totalValue: 50_000, - value: 5000, + totalValue: 6_652, + value: 3_739, }, ]; diff --git a/apps/web-antd/src/views/property/resident/unit/data.ts b/apps/web-antd/src/views/property/resident/unit/data.ts index a7ac0cae..7e7358f9 100644 --- a/apps/web-antd/src/views/property/resident/unit/data.ts +++ b/apps/web-antd/src/views/property/resident/unit/data.ts @@ -157,7 +157,7 @@ export const modalSchema: FormSchemaGetter = () => [ }, { label: '入驻位置', - fieldName: 'location', + fieldName: 'locations', component: 'TreeSelect', rules: 'selectRequired', formItemClass: 'col-span-2' diff --git a/apps/web-antd/src/views/property/resident/unit/unit-modal.vue b/apps/web-antd/src/views/property/resident/unit/unit-modal.vue index 3346c219..0d5d78a7 100644 --- a/apps/web-antd/src/views/property/resident/unit/unit-modal.vue +++ b/apps/web-antd/src/views/property/resident/unit/unit-modal.vue @@ -64,7 +64,11 @@ const [BasicModal, modalApi] = useVbenModal({ await initLocationOptions(); if (isUpdate.value && id) { const record = await resident_unitInfo(id); - await formApi.setValues({...record,authTime:[record.authBegDate,record.authEndDate]}); + let roomIds=record.location.split(',') + await formApi.setValues({...record, + authTime:[record.authBegDate,record.authEndDate], + locations:roomIds + }); } await markInitialized(); @@ -84,7 +88,7 @@ async function handleConfirm() { data.authBegDate = data.authTime[0]; data.authEndDate = data.authTime[1]; - + data.location=data.locations.join(',') await (isUpdate.value ? resident_unitUpdate(data) : resident_unitAdd(data)); resetInitialized(); emit('reload'); @@ -125,8 +129,9 @@ async function initLocationOptions() { treeNodeFilterProp: 'label', // 选中后显示在输入框的值 treeNodeLabelProp: 'fullName', + multiple:true }), - fieldName: 'location', + fieldName: 'locations', }, ]); } diff --git a/apps/web-antd/src/views/property/roomBooking/conferenceReservationRecords/data.ts b/apps/web-antd/src/views/property/roomBooking/conferenceReservationRecords/data.ts index e21faef6..6fd44227 100644 --- a/apps/web-antd/src/views/property/roomBooking/conferenceReservationRecords/data.ts +++ b/apps/web-antd/src/views/property/roomBooking/conferenceReservationRecords/data.ts @@ -43,16 +43,16 @@ export const columns: VxeGridProps['columns'] = [ field: 'unitName', minWidth:'120' }, - { - title: '预定人', - field: 'personName', - minWidth:'120' - }, - { - title: '联系方式', - field: 'phone', - minWidth:'120' - }, + // { + // title: '预定人', + // field: 'personName', + // minWidth:'120' + // }, + // { + // title: '联系方式', + // field: 'phone', + // minWidth:'120' + // }, // { // title: '预定时间', // field: 'scheduledStarttime', @@ -64,7 +64,7 @@ export const columns: VxeGridProps['columns'] = [ { title: '预定时间', field: 'scheduledStarttime', - minWidth: '180', + minWidth: '200', formatter: ({ row }) => { const start = row.scheduledStarttime; const end = row.scheduledEndtime; diff --git a/apps/web-antd/src/views/property/roomBooking/conferenceReservations/index.vue b/apps/web-antd/src/views/property/roomBooking/conferenceReservations/index.vue index 69fea076..43574bb7 100644 --- a/apps/web-antd/src/views/property/roomBooking/conferenceReservations/index.vue +++ b/apps/web-antd/src/views/property/roomBooking/conferenceReservations/index.vue @@ -10,8 +10,8 @@