| | |
| | | <el-form-item label="会议室名称" prop="name"> |
| | | <el-input v-model="searchForm.name" placeholder="请输入名称" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="管理员" prop="sysList"> |
| | | <!-- <el-form-item label="管理员" prop="sysList"> |
| | | <el-select |
| | | v-model="searchForm.sysList" |
| | | filterable |
| | | clearable |
| | | multiple |
| | | style="width: 250px" |
| | | placeholder="选择部门成员" |
| | | > |
| | | <el-option |
| | | v-for="item in userList" |
| | | :key="item.id" |
| | | :value="item.id" |
| | | :label="item.department?`${item.department.name}-${item.realname}`:item.realname" |
| | | :label="item.companyId?`${item.realname}-${item.companyName}`:item.realname" |
| | | ></el-option> |
| | | <!-- :label="`${item.department.name}-${item.realname}`" --> |
| | | <!-- <el-option :key="1" :value="1" label="禁用" /> --> |
| | | <!– :label="`${item.department.name}-${item.realname}`" –> |
| | | <!– <el-option :key="1" :value="1" label="禁用" /> –> |
| | | </el-select> |
| | | </el-form-item> |
| | | </el-form-item>--> |
| | | |
| | | <section> |
| | | <el-button type="primary" @click="search">搜索</el-button> |
| | |
| | | v-loading="isWorking.search" |
| | | :data="tableData.list" |
| | | stripe |
| | | border |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <!-- <el-table-column type="selection" width="55"></el-table-column> --> |
| | | <el-table-column prop="id" label="唯一标识" align="center" min-width="80px" show-overflow-tooltip> |
| | | <template slot-scope="{row}"> |
| | | <span class="long-title-style">{{ row.id }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="会议室名称" align="center" min-width="120px" show-overflow-tooltip> |
| | | <template slot-scope="{row}"> |
| | | <span class="long-title-style">{{ row.name }}</span> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="limitNum" label="可选服务项" align="center" min-width="140px" show-overflow-tooltip> |
| | | <template slot-scope="{row}"> |
| | | <div class="long-title-style">{{ row.projectList.map(item => item.projectName).join('|') }}</div> |
| | | <div class="long-title-style">{{ row.projectList.map(item => item.projectName).join(' | ') }}</div> |
| | | |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="createDate" label="创建时间" align="center" min-width="140px"></el-table-column> |
| | | <el-table-column prop="editDate" label="更新时间" min-width="140px"></el-table-column> |
| | | <!-- <el-table-column prop="editor" label="更新人编码" min-width="100px"></el-table-column> |
| | | <el-table-column prop="editDate" label="更新时间" min-width="100px"></el-table-column> |
| | | <el-table-column prop="isdeleted" label="是否删除0否 1是" min-width="100px"></el-table-column> |
| | | <el-table-column prop="remark" label="备注" min-width="100px"></el-table-column> |
| | | <el-table-column prop="imgurl" label="会议室图片" min-width="100px"></el-table-column> |
| | |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaRoomsWindow from '@/views/meeting/components/OperaRoomsWindow' |
| | | import { fetchList as userList } from '@/api/system/user' |
| | | import { findAllList as userList } from '@/api/system/user' |
| | | // import selectMember from '@/components/meeting/selectMember' |
| | | import { updateStatusById } from '@/views/meeting/api/rooms' |
| | | import { updateStatusById } from '@/api/meeting/rooms' |
| | | export default { |
| | | name: 'Rooms', |
| | | extends: BaseTable, |
| | |
| | | } |
| | | } |
| | | }, |
| | | provide() { |
| | | provide () { |
| | | return { |
| | | userList: () => this.userList |
| | | } |
| | |
| | | created () { |
| | | this.config({ |
| | | module: '会议室信息表', |
| | | api: '@/views/meeting/api/rooms', |
| | | api: '/meeting/rooms', |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | userList({ |
| | | page: 1, |
| | | capacity: 9999, |
| | | model: { realname: this.filterText }, |
| | | }) |
| | | userList({ queryParam: this.filterText ,workStatus:0,type:2} ) |
| | | .then(res => { |
| | | this.userList = res.records |
| | | this.userList = res |
| | | }) |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | // 页码变更处理 |
| | | // 页码变更处理 |
| | | handlePageChange (pageIndex) { |
| | | this.__checkApi() |
| | | this.tableData.pagination.pageIndex = pageIndex || this.tableData.pagination.pageIndex |
| | | this.isWorking.search = true |
| | | let sysList = [...this.searchForm.sysList] |
| | | sysList = sysList.map(item => { |
| | | return {userId: item} |
| | | return { userId: item } |
| | | }) |
| | | console.log(sysList); |
| | | console.log(sysList) |
| | | this.api.fetchList({ |
| | | page: this.tableData.pagination.pageIndex, |
| | | capacity: this.tableData.pagination.pageSize, |
| | |
| | | this.tableData.pagination.total = data.total |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | // this.$tip.apiFailed(e) |
| | | }) |
| | | .finally(() => { |
| | | this.isWorking.search = false |
| | |
| | | // console.log('21212'); |
| | | // this.$refs.selectMember.open('选择管理员') |
| | | // }, |
| | | changeStatus(item) { |
| | | changeStatus (item) { |
| | | updateStatusById({ |
| | | id: item.id, |
| | | status: item.status |
| | | }) |
| | | .then(() => { |
| | | this.$message.success('修改成功') |
| | | |
| | | }) |
| | | .catch(e => { |
| | | this.$message.error(e) |
| | | }) |
| | | .finally(() => { |
| | | this.handlePageChange() |
| | | }) |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |