|
@@ -0,0 +1,164 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <div class="user_num_content">
|
|
|
|
|
+ <div class="user_item all">
|
|
|
|
|
+ <div class="item_left">
|
|
|
|
|
+ <img src="@/assets/icon/user_all.svg" alt="">
|
|
|
|
|
+ <p>全部用户</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="item_right">5185</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="user_item blue">
|
|
|
|
|
+ <div class="item_left">
|
|
|
|
|
+ <img src="@/assets/icon/user_blue.svg" alt="">
|
|
|
|
|
+ <p>正式用户</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="item_right">5185</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="user_item green">
|
|
|
|
|
+ <div class="item_left">
|
|
|
|
|
+ <img src="@/assets/icon/user_green.svg" alt="">
|
|
|
|
|
+ <p>体验用户</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="item_right">5185</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="user_item orange">
|
|
|
|
|
+ <div class="item_left">
|
|
|
|
|
+ <img src="@/assets/icon/user_orange.svg" alt="">
|
|
|
|
|
+ <p>冻结用户</p>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="item_right">5185</div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <SearchMain />
|
|
|
|
|
+ <div class="module_content">
|
|
|
|
|
+ <div class="module_title">
|
|
|
|
|
+ <div class="title_left">
|
|
|
|
|
+ <el-select v-model="accountTypeSelect">
|
|
|
|
|
+ <el-option label="全部类型" :value="0"></el-option>
|
|
|
|
|
+ <el-option label="单校" :value="1"></el-option>
|
|
|
|
|
+ <el-option label="联考" :value="2"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ <el-input v-model="studentName" placeholder="请输入学生姓名">
|
|
|
|
|
+ <template #append>
|
|
|
|
|
+ <img src="@/assets/icon/search_line.svg" alt="">
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="title_right">
|
|
|
|
|
+ <el-button>
|
|
|
|
|
+ <img src="@/assets/icon/refresh.svg" alt="" style="margin-right: 5px;">刷新
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ <el-button>开通科目</el-button>
|
|
|
|
|
+ <el-button type="primary">新增用户</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="module_table">
|
|
|
|
|
+ <el-table :data="tableData">
|
|
|
|
|
+ <el-table-column type="index" label="序号" />
|
|
|
|
|
+ <el-table-column prop="schoolCode" label="学校编号" width="180" />
|
|
|
|
|
+ <el-table-column prop="schoolName" label="学校名称" width="180" />
|
|
|
|
|
+ <el-table-column prop="schoolAbbreviation" label="学校简称" />
|
|
|
|
|
+ <el-table-column prop="region" label="区域" />
|
|
|
|
|
+ <el-table-column prop="accountType" label="账号类型" />
|
|
|
|
|
+ <el-table-column prop="startTime" label="开始时间" />
|
|
|
|
|
+ <el-table-column prop="endTime" label="结束时间" />
|
|
|
|
|
+ <el-table-column prop="remainingDays" label="剩余天数" />
|
|
|
|
|
+ <el-table-column prop="status" label="状态" />
|
|
|
|
|
+ <el-table-column prop="maintenanceStaff" label="运维人员" />
|
|
|
|
|
+ <el-table-column label="操作" width="250" fixed="right">
|
|
|
|
|
+ <template #default="{ row }">
|
|
|
|
|
+ <el-button link>{{ row.status == '3' ? "解冻" : "冻结"}}</el-button>
|
|
|
|
|
+ <el-button link>编辑</el-button>
|
|
|
|
|
+ <el-button link>权限</el-button>
|
|
|
|
|
+ <el-button link>重置密码</el-button>
|
|
|
|
|
+ <el-button link>进入学校</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script>
|
|
|
|
|
+import SearchMain from '@/components/SearchMain.vue'
|
|
|
|
|
+import { ref } from 'vue'
|
|
|
|
|
+// import { Search } from '@element-plus/icons-vue'
|
|
|
|
|
+export default {
|
|
|
|
|
+ components: {
|
|
|
|
|
+ SearchMain,
|
|
|
|
|
+ // Search
|
|
|
|
|
+ },
|
|
|
|
|
+ setup() {
|
|
|
|
|
+ const tableData = ref([
|
|
|
|
|
+ {
|
|
|
|
|
+ schoolCode: '182900',
|
|
|
|
|
+ schoolName: '霍格沃茨魔法学校',
|
|
|
|
|
+ schoolAbbreviation: '霍格沃茨',
|
|
|
|
|
+ region: '九又四分之三站台',
|
|
|
|
|
+ accountType: '魔法版',
|
|
|
|
|
+ startTime: '2024-10-15',
|
|
|
|
|
+ endTime: '2024-10-16',
|
|
|
|
|
+ remainingDays: '1',
|
|
|
|
|
+ status: '1',
|
|
|
|
|
+ statusName: '正式',
|
|
|
|
|
+ maintenanceStaff: '哈利·波特',
|
|
|
|
|
+ }
|
|
|
|
|
+ ])
|
|
|
|
|
+ const accountTypeSelect = ref(0)
|
|
|
|
|
+ const studentName = ref('')
|
|
|
|
|
+ return {
|
|
|
|
|
+ accountTypeSelect,
|
|
|
|
|
+ studentName,
|
|
|
|
|
+ tableData
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
|
|
+<style scoped>
|
|
|
|
|
+.user_num_content {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ gap: 20px;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
|
+}
|
|
|
|
|
+.user_num_content .user_item {
|
|
|
|
|
+ flex-grow: 1;
|
|
|
|
|
+ height: 80px;
|
|
|
|
|
+ padding: 20px;
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ justify-content: space-between;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+ border-radius: 10px;
|
|
|
|
|
+}
|
|
|
|
|
+.user_num_content .user_item .item_left {
|
|
|
|
|
+ display: flex;
|
|
|
|
|
+ align-items: center;
|
|
|
|
|
+}
|
|
|
|
|
+.item_left img {
|
|
|
|
|
+ margin-right: 10px;
|
|
|
|
|
+}
|
|
|
|
|
+.user_item.all {
|
|
|
|
|
+ background: #2E64FA;
|
|
|
|
|
+ color: #fff;
|
|
|
|
|
+}
|
|
|
|
|
+.user_item.blue {
|
|
|
|
|
+ border: 1px solid #2E64FA;
|
|
|
|
|
+ background: #EAF0FF;
|
|
|
|
|
+ color: #333;
|
|
|
|
|
+}
|
|
|
|
|
+.user_item.green {
|
|
|
|
|
+ border: 1px solid #2BC644;
|
|
|
|
|
+ background: #EAF9EC;
|
|
|
|
|
+ color: #333;
|
|
|
|
|
+}
|
|
|
|
|
+.user_item.orange {
|
|
|
|
|
+ border: 1px solid #FB9F34;
|
|
|
|
|
+ background: #FFF5EB;
|
|
|
|
|
+ color: #333;
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|