会议室预约添加下拉

This commit is contained in:
a0049873 2022-12-15 16:55:31 +08:00
parent 1e6707711e
commit 44d96c8154
1 changed files with 30 additions and 1 deletions

View File

@ -345,7 +345,22 @@
label="预约部门" label="预约部门"
v-bind="validateInfos.dept" v-bind="validateInfos.dept"
> >
<a-input v-model:value="formState.dept" style="width: 72%" /> <!-- <a-input v-model:value="formState.dept" style="width: 72%" /> -->
<a-select
ref="select"
v-model:value="formState.dept"
style="width: 200px"
dropdown-class-name="eia-dropdown-class"
:showSearch="true"
>
<a-select-option
:value="item.value"
v-for="item in deptList"
:key="item.value"
>
{{ item.label }}
</a-select-option>
</a-select>
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
@ -796,6 +811,7 @@
selectByChannelCode, selectByChannelCode,
} from '@/api/videoSurveillance' } from '@/api/videoSurveillance'
import { getCameraByCondition } from '@/api/file' import { getCameraByCondition } from '@/api/file'
import { getDeptAll } from '@/api/user'
import { import {
getUser, getUser,
getEnkeUsers, getEnkeUsers,
@ -853,6 +869,16 @@
'fullScreen', 'fullScreen',
], //, ], //,
}) })
const deptList = ref([])
getDeptAll().then((res) => {
deptList.value = []
res.data.data.map((val) => {
deptList.value.push({
value: val.name,
label: val.name,
})
})
})
const meetingList = ref([]) const meetingList = ref([])
const meetingPagination = ref({ const meetingPagination = ref({
total: 0, total: 0,
@ -2839,6 +2865,9 @@
} }
</style> </style>
<style lang="less"> <style lang="less">
.eia-dropdown-class {
z-index: 10010 !important;
}
.wrj { .wrj {
.ant-modal-body { .ant-modal-body {
height: 700px !important; height: 700px !important;