zhanghua
2024-12-22 9d059f329e8d9fd629bdbf209e66ae7220155320
src/views/student/index.vue
@@ -37,7 +37,7 @@
                </el-input>
            </div>
        </div>
        <div style="height: calc(100vh - 248px)">
    <div style="height: calc(100vh - 208px)">
            <el-table
                v-loading="listLoading"
                :data="list"
@@ -64,7 +64,7 @@
                    v-if="activeName !== 'deactivated'"
                >
                    <template slot-scope="scope">
                        {{ scope.row.gender == 'FEMALE' ? '女' : '男' }}
            {{ scope.row.gender == "FEMALE" ? "女" : "男" }}
                    </template>
                </el-table-column>
                <el-table-column
@@ -74,7 +74,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
@@ -83,7 +83,7 @@
                    v-if="activeName !== 'deactivated'"
                >
                    <template slot-scope="scope">
                        {{ scope.row.user ? '是' : '否' }}
            {{ scope.row.user ? "是" : "否" }}
                    </template>
                </el-table-column>
                <el-table-column
@@ -92,13 +92,9 @@
                    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
@@ -190,11 +186,7 @@
        //     this.$router.push("/login");
        //   }
        // }
        if (localStorage.getItem("user")) {
            this.fetchData();
        } else {
            this.$router.push("/login");
        }
    },
    methods: {
        handleExport() {
@@ -286,7 +278,6 @@
        showCreate() {
            this.$refs.studentCreate.showDialog();
        },
    },
};
</script>