| | |
| | | </el-form-item> |
| | | <el-form-item label="会议状态" prop="status"> |
| | | <el-select |
| | | v-model="searchForm.status" |
| | | v-model="searchForm.meetingStatus" |
| | | filterable |
| | | clearable |
| | | placeholder="请选择状态" |
| | |
| | | align="center" |
| | | min-width="100px" |
| | | ></el-table-column> |
| | | <el-table-column label="状态" align="center" min-width="60px"> |
| | | <el-table-column label="会议状态" align="center" min-width="60px"> |
| | | <template slot-scope="{ row }"> |
| | | <span v-if="row.status == 0" style="color: rgb(127, 178, 53)" |
| | | >正常</span |
| | | > |
| | | <span v-else style="color: rgb(234, 54, 38)">取消</span> |
| | | <span v-if="row.meetingStatus == 1">未开始</span> |
| | | <span v-if="row.meetingStatus == 2">进行中</span> |
| | | <span v-if="row.meetingStatus == 3">已结束</span> |
| | | <span v-if="row.meetingStatus == 4">即将开始</span> |
| | | <span v-if="row.meetingStatus == 5">已撤销</span> |
| | | <!-- {{ row.status==0 ? '正常' : '取消' }} --> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | prop="createDate" |
| | | label="创建时间" |
| | | align="center" |
| | | min-width="100px" |
| | | min-width="150px" |
| | | ></el-table-column> |
| | | <!-- <el-table-column prop="content" label="会议内容" min-width="100px"></el-table-column> --> |
| | | <el-table-column |
| | |
| | | @click="$refs.operaBookingsDetailWindow.open('会议详情', row)" |
| | | >查看详情</el-button |
| | | > |
| | | <!-- <el-button v-if="row.flag == 0" type="text" @click="$refs.operaBookingsWindow.open('编辑会议预约', row)" v-permissions="['business:bookings:update']">修改</el-button> --> |
| | | <el-button v-if="row.meetingStatus == '1'" type="text" @click="$refs.operaBookingsWindow.open('编辑会议预约', row)" v-permissions="['business:bookings:update']">编辑</el-button> |
| | | <!-- <el-button type="text" @click="copy(row)">复制</el-button> --> |
| | | <!-- <el-button v-if="row.flag == 0" type="text" @click="cancelMeeting(row.id)" v-permissions="['business:bookings:update']">取消</el-button> --> |
| | | <el-button v-if="row.meetingStatus == '1'" type="text" @click="cancelMeeting(row.id)" v-permissions="['business:bookings:update']">撤回</el-button> |
| | | </template> |
| | | <!-- <el-button v-else type="text" @click="deleteById(row)" v-permissions="['business:bookings:delete']">删除</el-button> --> |
| | | </template> |
| | |
| | | name: 'Bookings', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaBookingsWindow, OperaBookingsDetailWindow }, |
| | | data() { |
| | | data () { |
| | | return { |
| | | date: [], |
| | | // 搜索 |
| | |
| | | // departmentId: [], |
| | | department: [], |
| | | realName: '', |
| | | status: '', |
| | | meetingStatus: '', |
| | | createDate: '', |
| | | editor: '', |
| | | editDate: '', |
| | |
| | | { name: '开发部门', id: '0' } |
| | | ], |
| | | status: [ |
| | | { name: '全部', id: '' }, |
| | | { name: '正常', id: '0' }, |
| | | { name: '取消', id: '1' } |
| | | { name: '未开始', id: 1 }, |
| | | { name: '即将开始', id: 4 }, |
| | | { name: '进行中', id: 2 }, |
| | | { name: '已撤销', id: 5 }, |
| | | { name: '已结束', id: 3 } |
| | | ], |
| | | link: 'https://dmtest.ahapp.net/meeting_h5/' // H5_LINK_ADDR |
| | | } |
| | | }, |
| | | provide() { |
| | | provide () { |
| | | return { |
| | | rooms: () => this.rooms |
| | | } |
| | | }, |
| | | created() { |
| | | created () { |
| | | this.config({ |
| | | module: '会议室预定信息表', |
| | | api: '/meeting/bookings', |
| | |
| | | this.changeRadio('0') |
| | | }, |
| | | methods: { |
| | | changeRadio(e) { |
| | | changeRadio (e) { |
| | | if (e === '0') { |
| | | this.searchForm.startTime = timeForMat(0)[0] |
| | | this.searchForm.endTime = timeForMat(0)[1] |
| | |
| | | } |
| | | this.search() |
| | | }, |
| | | newTree(tree) { |
| | | newTree (tree) { |
| | | if (tree == null) { |
| | | return [] |
| | | } |
| | |
| | | return newItem |
| | | }) |
| | | }, |
| | | selectDate(v) { |
| | | selectDate (v) { |
| | | this.searchForm.endTime = v[1] + ' 23:59:59' |
| | | this.searchForm.startTime = v[0] + ' 00:00:00' |
| | | this.searchForm.radio = null |
| | | }, |
| | | reset() { |
| | | reset () { |
| | | this.$refs.searchForm.resetFields() |
| | | this.date = [] |
| | | this.searchForm.radio = '0' |
| | |
| | | this.searchForm.endTime = '' |
| | | this.changeRadio('0') |
| | | }, |
| | | copy(row) { |
| | | copy (row) { |
| | | const text = `${row.realName} 邀请您加入会议\n会议主题:${row.name}\n会议室:${row.roomName}\n会议时间:${row.meetingTime}\n点击链接直接加入会议:\n${this.link}?id=${row.id}` |
| | | this.$copyText(text) |
| | | .then(() => { |
| | |
| | | .catch(e => { |
| | | }) |
| | | }, |
| | | cancelMeeting(id) { |
| | | cancelMeeting (id) { |
| | | this.$dialog.messageWaring('取消会议', '是否取消当前会议?') |
| | | .then(() => { |
| | | cancelById({ id }) |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | showDetail(id) { |
| | | showDetail (id) { |
| | | bookingsDetail(id) |
| | | .then(res => { |
| | | this.$refs.operaBookingsDetailWindow.open('会议详情', res) |
| | |
| | | .catch(e => { |
| | | }) |
| | | }, |
| | | editBookings(id) { |
| | | editBookings (id) { |
| | | bookingsDetail(id) |
| | | .then(res => { |
| | | this.$refs.operaBookingsWindow.open('编辑会议预约', res) |
| | |
| | | .catch(e => { |
| | | }) |
| | | }, |
| | | handlePageChange(pageIndex) { |
| | | handlePageChange (pageIndex) { |
| | | this.__checkApi() |
| | | this.tableData.pagination.pageIndex = pageIndex || this.tableData.pagination.pageIndex |
| | | this.isWorking.search = true |