会议室管理
This commit is contained in:
parent
3e78b8a826
commit
ded1cf8008
@ -3,6 +3,7 @@ import request from '@/config/axios'
|
||||
// 会议室管理 VO
|
||||
export interface HsglVO {
|
||||
id: number // 会议室管理id
|
||||
deptId: number
|
||||
title: string // 标题
|
||||
name: string // 会议室名
|
||||
location: string // 会议室地址
|
||||
|
@ -93,6 +93,7 @@ import { HsglApi, HsglVO } from '@/api/home/hsgl'
|
||||
import * as DefinitionApi from '@/api/bpm/definition'
|
||||
import * as UserApi from '@/api/system/user'
|
||||
import {useTagsViewStore} from "@/store/modules/tagsView";
|
||||
import {getUserProfile} from "@/api/system/user/profile";
|
||||
|
||||
/** 会议室管理 表单 */
|
||||
defineOptions({ name: 'HsglCreate' })
|
||||
@ -109,6 +110,7 @@ const formData = ref({
|
||||
title: undefined,
|
||||
name: undefined,
|
||||
location: undefined,
|
||||
deptId: undefined,
|
||||
roomType: undefined,
|
||||
manager: undefined,
|
||||
roomMax: undefined,
|
||||
@ -158,9 +160,14 @@ const submitForm = async () => {
|
||||
formLoading.value = false
|
||||
}
|
||||
}
|
||||
|
||||
// 获取用户部门
|
||||
const getUserInfo = async () => {
|
||||
const user = await getUserProfile();
|
||||
formData.value.deptId = formData.value.deptId || user.dept.id;
|
||||
};
|
||||
/** 初始化 */
|
||||
onMounted(async () => {
|
||||
await getUserInfo()
|
||||
const processDefinitionDetail = await DefinitionApi.getProcessDefinition(
|
||||
undefined,
|
||||
processDefineKey
|
||||
|
Loading…
Reference in New Issue
Block a user