''
liukangdong
2024-07-04 5a85dcab83e969d6b21c599b512a15117e9b8651
admin/src/views/meeting/rooms.vue
@@ -152,7 +152,7 @@
      }
    }
  },
  provide() {
  provide () {
    return {
      userList: () => this.userList
    }
@@ -167,7 +167,7 @@
    userList({
      page: 1,
      capacity: 9999,
      model: { realname: this.filterText },
      model: { realname: this.filterText }
    })
      .then(res => {
        this.userList = res.records
@@ -175,16 +175,16 @@
    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,
@@ -209,23 +209,21 @@
    //   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>