|
|
@ -25,12 +25,12 @@ |
|
|
|
<el-card shadow="hover"> |
|
|
|
<el-card shadow="hover"> |
|
|
|
<div class="flex-between mgb20"> |
|
|
|
<div class="flex-between mgb20"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" size="small" round @click="addStudent">新增学生</el-button> |
|
|
|
<el-button type="primary" size="small" v-auth round @click="addStudent">新增学生</el-button> |
|
|
|
<el-button type="primary" size="small" round @click="batchImport">批量导入</el-button> |
|
|
|
<el-button type="primary" size="small" v-auth round @click="batchImport">批量导入</el-button> |
|
|
|
<el-button type="primary" size="small" round @click="delAllSelection">批量删除</el-button> |
|
|
|
<el-button type="primary" size="small" v-auth round @click="delAllSelection">批量删除</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-input placeholder="请输入学生姓名/学校名称" prefix-icon="el-icon-search" v-model="keyword" clearable></el-input> |
|
|
|
<el-input placeholder="请输入学生姓名/学号/学校名称" prefix-icon="el-icon-search" style="width: 260px" v-model="keyword" clearable></el-input> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-table :data="studentData" class="table" ref="table" stripe header-align="center" @selection-change="handleSelectionChange" :row-key="getRowKeys"> |
|
|
|
<el-table :data="studentData" class="table" ref="table" stripe header-align="center" @selection-change="handleSelectionChange" :row-key="getRowKeys"> |
|
|
@ -40,6 +40,8 @@ |
|
|
|
<el-table-column prop="account" label="账号" align="center"> |
|
|
|
<el-table-column prop="account" label="账号" align="center"> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="schoolName" label="院校" align="center"></el-table-column> |
|
|
|
<el-table-column prop="schoolName" label="院校" align="center"></el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="workNumber" label="学号" align="center"> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="userName" label="学生姓名" align="center"> |
|
|
|
<el-table-column prop="userName" label="学生姓名" align="center"> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="className" label="班级" align="center"></el-table-column> |
|
|
|
<el-table-column prop="className" label="班级" align="center"></el-table-column> |
|
|
@ -54,16 +56,17 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column label="操作" align="center" width="300"> |
|
|
|
<el-table-column label="操作" align="center" width="300"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button type="text" @click="editStudent(scope.row,true)">查看</el-button> |
|
|
|
<el-button type="text" v-auth @click="editStudent(scope.row,true)">查看</el-button> |
|
|
|
<el-button type="text" @click="editStudent(scope.row,false)">编辑</el-button> |
|
|
|
<el-button type="text" v-auth @click="editStudent(scope.row,false)">编辑</el-button> |
|
|
|
<el-button type="text" @click="resetPassword(scope.row)">重置密码</el-button> |
|
|
|
<el-button type="text" v-auth @click="resetPassword(scope.row)">重置密码</el-button> |
|
|
|
<el-button type="text" @click="handleDelete(scope.row)">删除</el-button> |
|
|
|
<el-button type="text" v-auth @click="handleDelete(scope.row)">删除</el-button> |
|
|
|
<el-switch |
|
|
|
<el-switch |
|
|
|
v-model="scope.row.disableAccount" |
|
|
|
v-model="scope.row.disableAccount" |
|
|
|
:active-value="0" |
|
|
|
:active-value="0" |
|
|
|
:inactive-value="1" |
|
|
|
:inactive-value="1" |
|
|
|
style="margin: 0 5px" |
|
|
|
style="margin: 0 5px" |
|
|
|
@change="switchOff($event,scope.row,scope.$index)" |
|
|
|
@change="switchOff($event,scope.row,scope.$index)" |
|
|
|
|
|
|
|
v-auth="'学生管理:禁用'" |
|
|
|
></el-switch> |
|
|
|
></el-switch> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|