zhanghua
2024-09-14 be30a62a2dddf9ba36e69ade654513cbd7aa0c52
src/views/student/index.vue
@@ -8,7 +8,9 @@
    </el-tabs>
    <div style="display: flex; justify-content: space-between">
      <!-- <el-button type="primary" size="small" @click="showCreate">新建学员</el-button> -->
      <el-button type="primary" size="small" @click="handleExport">导出学员</el-button>
            <el-button type="primary" size="small" @click="handleExport"
                >导出学员</el-button
            >
      <div style="width: 500px">
      <!-- <el-date-picker v-model="dateRange" type="daterange" range-separator="至" start-placeholder="开始日期"
        end-placeholder="结束日期" value-format="yyyy-MM-dd" style="margin-right: 10px">
@@ -57,7 +59,7 @@
          v-if="activeName !== 'deactivated'"
        >
          <template slot-scope="scope">
            {{ scope.row.gender == "FEMALE" ? "女" : "男" }}
                        {{ scope.row.gender == 'FEMALE' ? '女' : '男' }}
          </template>
        </el-table-column>
        <el-table-column
@@ -67,7 +69,7 @@
          v-if="activeName !== 'deactivated'"
        >
          <template slot-scope="scope">
            {{ scope.row.mobile ? scope.row.mobile : "--" }}
                        {{ scope.row.mobile ? scope.row.mobile : '--' }}
          </template>
        </el-table-column>
        <el-table-column
@@ -76,7 +78,7 @@
          v-if="activeName !== 'deactivated'"
        >
          <template slot-scope="scope">
            {{ scope.row.user ? "是" : "否" }}
                        {{ scope.row.user ? '是' : '否' }}
          </template>
        </el-table-column>
        <el-table-column
@@ -85,9 +87,13 @@
          v-if="activeName == 'deactivated'"
        >
          <template slot-scope="">
            <el-link type="primary" :underline="false">删除</el-link>
                        <el-link type="primary" :underline="false"
                            >删除</el-link
                        >
            &nbsp;&nbsp;&nbsp;&nbsp;
            <el-link type="primary" :underline="false">恢复</el-link>
                        <el-link type="primary" :underline="false"
                            >恢复</el-link
                        >
          </template>
        </el-table-column>
        <el-table-column
@@ -144,7 +150,7 @@
      activeName: "all",
      total: 0,
      data: {
        staffId: JSON.parse(localStorage.getItem("user")).staffs[0].id,
                staffId: JSON.parse(localStorage.getItem("selectStaff")).id,
        keyword: "",
        pageIn: {
          //可选,如果是分页查询,需要加上。
@@ -210,6 +216,7 @@
      this.handleClick();
    },
    handleClick(tab, event) {
            this.data.staffId = JSON.parse(localStorage.getItem("selectStaff")).id
      if (this.activeName == "pendingFees") {
        this.listLoading = true;
        getRenew(this.data).then((response) => {
@@ -230,7 +237,7 @@
        this.listLoading = true;
        let data = {
          itemType: "PLAYER",
          staffId: JSON.parse(localStorage.getItem("user")).staffs[0].id,
                    staffId: JSON.parse(localStorage.getItem("selectStaff")).id,
          keyword: this.data.keyword,
          pageIn: { ...this.data.pageIn },
        };