jiangping
2024-10-14 2079ba28f20bde46f7736699c97abf0e1564770d
admin/src/views/meeting/rooms.vue
@@ -45,6 +45,11 @@
        @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>
@@ -68,7 +73,7 @@
        </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>
@@ -152,7 +157,7 @@
      }
    }
  },
  provide() {
  provide () {
    return {
      userList: () => this.userList
    }
@@ -167,7 +172,8 @@
    userList({
      page: 1,
      capacity: 9999,
      model: { realname: this.filterText },
      memberType: 2,
      model: { realname: this.filterText }
    })
      .then(res => {
        this.userList = res.records
@@ -175,16 +181,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,
@@ -199,7 +205,7 @@
          this.tableData.pagination.total = data.total
        })
        .catch(e => {
          this.$tip.apiFailed(e)
          // this.$tip.apiFailed(e)
        })
        .finally(() => {
          this.isWorking.search = false
@@ -209,23 +215,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>