会议室列表加入设备筛选;

统计页面文字调整
This commit is contained in:
471615499@qq.com 2024-10-31 18:41:15 +08:00
parent a3f2edf6a9
commit 5ec3ad3abf
2 changed files with 41 additions and 12 deletions

View File

@ -72,8 +72,8 @@
<a-card title='会议日历' bodyStyle='height: 780px'>
<a-calendar :header-render='headerRender' @select='onSelect'>
<ul slot='dateCellRender' slot-scope='value' class='c_meeting'
style='padding: 0;text-align: center; font-size: 24px;font-weight: 700; margin-top: 10px'>
{{ getListData(value).length == 0 ? '' : getListData(value).length }}
style='padding: 0;text-align: center; font-size: 30px;font-weight: 700; margin-top: 6px'>
{{ getListData(value).length == 0 ? '' : getListData(value).length + ' 场' }}
<a-popover style='display: none' @click.stop='showMeeting(item.id)' :title='item.title'
v-for='item in getListData(value)'>
<template slot='content'>

View File

@ -78,6 +78,15 @@
</a-select>
</a-form-item>
</a-col>
<a-col :md='5' :sm='15'>
<a-form-item label='设备'>
<a-select v-model='queryParam.devices' mode="multiple" placeholder='请选择设备'>
<a-select-option v-for='item in itemList' :value='item.value'>
{{ item.text }}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
<a-col :md='8' :sm='24'>
<span class='table-page-search-submitButtons'>
<a-button type='primary' @click='getAllRoomList'>查询会议室</a-button>
@ -148,12 +157,14 @@ export default {
meetingName: '',
typeName: '',
shape: '',
capacityNum: ''
capacityNum: '',
devices: []
},
capacityList: [],
shapeList: [],
typeList: [],
roomList: [],
itemList: [],
showDepForm: true,
depId: '',
dep: '',
@ -253,6 +264,23 @@ export default {
value: ''
}, ..._shapeList]
this.shapeList = _shapeList
//
let _itemList = []
for (let key in dataObj.devices) {
let eachObj = dataObj.devices[key]
const keys = Object.keys(eachObj)
_itemList.push({
text: keys[0],
value: keys[0]
})
}
// _itemList = [{
// text: '',
// value: ''
// }, ..._itemList]
this.itemList = _itemList
})
},
reset() {
@ -260,7 +288,8 @@ export default {
meetingName: '',
typeName: '',
shape: '',
capacityNum: ''
capacityNum: '',
devices: []
}
this.getAllRoomList()
},
@ -289,12 +318,11 @@ export default {
minPerNum = 1
maxPerNum = 1000
}
let param = {
floor: this.queryParam.typeName, //
min: minPerNum, //
max: maxPerNum, //
// devices: devicesArr, //
devices: this.queryParam.devices, //
typeName: this.queryParam.shape, //
timeFormat: 1, // 0 123 4 0startTimeendTimemrdate1 am 0 1 pm 0 1 night 0 11
mrdate: this.nowDate
@ -315,12 +343,12 @@ export default {
list: []
}
}
if (this.isAdmin) {
//
eachObj.am = 0
eachObj.pm = 0
eachObj.night = 0
}
// if (this.isAdmin) {
// //
// eachObj.am = 0
// eachObj.pm = 0
// eachObj.night = 0
// }
roomArr[eachObj['floorId']]['list'].push(eachObj)
}
this.roomList = roomArr
@ -359,6 +387,7 @@ export default {
if (this.isAdmin) {
//
timeRange = 4
status = 0
}
let data = {
date: this.nowDate,