|  |  | 
 |  |  |           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.companyName}-${item.companyName}`:item.realname" | 
 |  |  |             ></el-option> | 
 |  |  |             <!-- :label="`${item.department.name}-${item.realname}`" --> | 
 |  |  |           <!-- <el-option :key="1" :value="1" label="禁用" /> --> | 
 |  |  | 
 |  |  |         </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 OperaRoomsWindow from '@/views/meeting/components/OperaRoomsWindow' | 
 |  |  | import { fetchList 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 }, | 
 |  |  |       memberType: 2, | 
 |  |  |       model: { realname: this.filterText } | 
 |  |  |     }) | 
 |  |  |       .then(res => { | 
 |  |  |         this.userList = res.records | 
 |  |  | 
 |  |  |     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, | 
 |  |  | 
 |  |  |     //   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> | 
 |  |  |  |