| | |
| | | ></el-date-picker> |
| | | <!-- <el-date-picker v-model="searchForm.startTime" value-format="yyyy-MM-dd" placeholder="请输入开始时间" @change="search"/> --> |
| | | </el-form-item> |
| | | <el-radio-group |
| | | v-model="searchForm.radio" |
| | | size="small" |
| | | @input="changeRadio" |
| | | > |
| | | <el-radio-button label="0">当天</el-radio-button> |
| | | <el-radio-button label="1">近7天</el-radio-button> |
| | | <el-radio-button label="2">近30天</el-radio-button> |
| | | </el-radio-group> |
| | | <!-- <el-form-item label="结束时间" prop="endTime"> |
| | | <el-date-picker v-model="searchForm.endTime" value-format="yyyy-MM-dd" placeholder="请输入结束时间" @change="search"/> |
| | | </el-form-item> --> |
| | |
| | | import { getSystemDictData } from '@/api/system/dictData' |
| | | import { fetchList } from '@/api/business/company' |
| | | import { cancelById, bookingsDetail } from '@/api/meeting/bookings' |
| | | import { timeForMat } from '@/utils/util' |
| | | export default { |
| | | name: 'Bookings', |
| | | extends: BaseTable, |
| | |
| | | name: '', |
| | | startTime: '', |
| | | endTime: '', |
| | | content: '' |
| | | content: '', |
| | | radio: 0 |
| | | }, |
| | | props: { |
| | | label: 'name', |
| | |
| | | status: [ |
| | | { name: '全部', id: '' }, |
| | | { name: '正常', id: '0' }, |
| | | { name: '取消', id: '1' }, |
| | | { name: '取消', id: '1' } |
| | | ], |
| | | link: 'https://dmtest.ahapp.net/meeting_h5/' //H5_LINK_ADDR |
| | | } |
| | |
| | | }) |
| | | getSystemDictData('H5_LINK_ADDR') |
| | | .then(res => { |
| | | console.log(res); |
| | | console.log(res) |
| | | this.link=res.code |
| | | }) |
| | | findList({status:0}) |
| | | .then(res => { |
| | | this.rooms = res |
| | | }) |
| | | this.search() |
| | | this.changeRadio('0') |
| | | }, |
| | | methods: { |
| | | changeRadio (e) { |
| | | if (e === '0') { |
| | | this.searchForm.startTime = timeForMat(0)[0] |
| | | this.searchForm.endTime = timeForMat(0)[1] |
| | | this.time = timeForMat(0) |
| | | } else if (e === '1') { |
| | | this.searchForm.startTime = timeForMat(6)[0] |
| | | this.searchForm.endTime = timeForMat(6)[1] |
| | | this.time = timeForMat(6) |
| | | } else if (e === '2') { |
| | | this.searchForm.startTime = timeForMat(29)[0] |
| | | this.searchForm.endTime = timeForMat(29)[1] |
| | | this.time = timeForMat(29) |
| | | } |
| | | this.search() |
| | | }, |
| | | newTree(tree) { |
| | | if(tree ==null){ |
| | | return [] |
| | | } |
| | | return tree.map(item => { |
| | | let newItem = {...item} |
| | | const newItem = { ...item } |
| | | if(newItem){ |
| | | newItem.children=newItem.childList |
| | | } |
| | |
| | | newItem.children = this.newTree(newItem.children) |
| | | } |
| | | return newItem |
| | | }); |
| | | }) |
| | | }, |
| | | selectDate(v) { |
| | | this.searchForm.endTime = v[1] + ' 23:59:59' |
| | | this.searchForm.startTime = v[0] + ' 00:00:00' |
| | | this.searchForm.radio = null |
| | | }, |
| | | reset () { |
| | | this.$refs.searchForm.resetFields() |
| | | this.date = [] |
| | | this.searchForm.radio = '0' |
| | | this.searchForm.startTime = '' |
| | | this.searchForm.endTime = '' |
| | | this.search() |
| | | }, |
| | | copy(row) { |
| | | let text = `${row.realName} 邀请您加入会议\n会议主题:${row.name}\n会议室:${row.roomName}\n会议时间:${row.meetingTime}\n点击链接直接加入会议:\n${this.link}?id=${row.id}` |
| | | const text = `${row.realName} 邀请您加入会议\n会议主题:${row.name}\n会议室:${row.roomName}\n会议时间:${row.meetingTime}\n点击链接直接加入会议:\n${this.link}?id=${row.id}` |
| | | this.$copyText(text) |
| | | .then(() => { |
| | | this.$message.success('会议信息复制成功,去分享给同事吧~') |
| | |
| | | this.$message.error(e) |
| | | }) |
| | | }) |
| | | |
| | | }, |
| | | showDetail(id) { |
| | | bookingsDetail(id) |
| | |
| | | .catch(e => { |
| | | this.$message.error(e) |
| | | }) |
| | | |
| | | }, |
| | | handlePageChange (pageIndex) { |
| | | this.__checkApi() |
| | | this.tableData.pagination.pageIndex = pageIndex || this.tableData.pagination.pageIndex |
| | | this.isWorking.search = true |
| | | let form = JSON.parse(JSON.stringify(this.searchForm)) |
| | | const form = JSON.parse(JSON.stringify(this.searchForm)) |
| | | if (form.department.length) { |
| | | form.departmentId = form.department[form.department.length-1] |
| | | } |
| | |
| | | .finally(() => { |
| | | this.isWorking.search = false |
| | | }) |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | } |
| | | </script> |