会议室管理

This commit is contained in:
XaoLi717 2024-11-11 10:56:53 +08:00
parent 3e78b8a826
commit ded1cf8008
2 changed files with 62 additions and 54 deletions

View File

@ -3,6 +3,7 @@ import request from '@/config/axios'
// 会议室管理 VO // 会议室管理 VO
export interface HsglVO { export interface HsglVO {
id: number // 会议室管理id id: number // 会议室管理id
deptId: number
title: string // 标题 title: string // 标题
name: string // 会议室名 name: string // 会议室名
location: string // 会议室地址 location: string // 会议室地址

View File

@ -93,6 +93,7 @@ import { HsglApi, HsglVO } from '@/api/home/hsgl'
import * as DefinitionApi from '@/api/bpm/definition' import * as DefinitionApi from '@/api/bpm/definition'
import * as UserApi from '@/api/system/user' import * as UserApi from '@/api/system/user'
import {useTagsViewStore} from "@/store/modules/tagsView"; import {useTagsViewStore} from "@/store/modules/tagsView";
import {getUserProfile} from "@/api/system/user/profile";
/** 会议室管理 表单 */ /** 会议室管理 表单 */
defineOptions({ name: 'HsglCreate' }) defineOptions({ name: 'HsglCreate' })
@ -109,6 +110,7 @@ const formData = ref({
title: undefined, title: undefined,
name: undefined, name: undefined,
location: undefined, location: undefined,
deptId: undefined,
roomType: undefined, roomType: undefined,
manager: undefined, manager: undefined,
roomMax: undefined, roomMax: undefined,
@ -158,9 +160,14 @@ const submitForm = async () => {
formLoading.value = false formLoading.value = false
} }
} }
//
const getUserInfo = async () => {
const user = await getUserProfile();
formData.value.deptId = formData.value.deptId || user.dept.id;
};
/** 初始化 */ /** 初始化 */
onMounted(async () => { onMounted(async () => {
await getUserInfo()
const processDefinitionDetail = await DefinitionApi.getProcessDefinition( const processDefinitionDetail = await DefinitionApi.getProcessDefinition(
undefined, undefined,
processDefineKey processDefineKey