|
|
|
@ -21,18 +21,24 @@
|
|
|
|
|
style="width: 100%;margin-top: 20px">
|
|
|
|
|
<el-table-column type="selection" width="40" align="center"></el-table-column>
|
|
|
|
|
<el-table-column prop="username" label="工号" sortable></el-table-column>
|
|
|
|
|
<el-table-column prop="position" label="职位" sortable></el-table-column>
|
|
|
|
|
<el-table-column prop="position" label="职位" sortable align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-tag
|
|
|
|
|
:type="scope.row.position === 1 ? 'primary' : scope.row.position ===2 ? 'success': 'warning'"
|
|
|
|
|
disable-transitions>{{scope.row.position ===1 ? '教 师' :
|
|
|
|
|
scope.row.position ===2 ? '实验室管理员': '超级管理员'}}
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="nickname" label="姓名" sortable></el-table-column>
|
|
|
|
|
<el-table-column prop="tel" label="联系电话"></el-table-column>
|
|
|
|
|
<el-table-column prop="office" label="办公室" sortable></el-table-column>
|
|
|
|
|
<el-table-column prop="email" label="邮箱"></el-table-column>
|
|
|
|
|
<el-table-column fixed="right" label="操作" width="300">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button @click="handleClick(scope.row)" size="mini" plain>查看课表</el-button>
|
|
|
|
|
<el-button @click="editUser(scope.row)" type="primary" size="mini" plain icon="el-icon-edit">编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button @click="deleteUser(scope.row)" type="danger" size="mini" plain icon="el-icon-delete">删除
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button @click="editUser(scope.row)" type="primary" size="mini" plain icon="el-icon-edit" v-if="scope.row.position!==3">编辑</el-button>
|
|
|
|
|
<el-button @click="deleteUser(scope.row)" type="danger" size="mini" plain icon="el-icon-delete" v-if="scope.row.position!==3">删除</el-button>
|
|
|
|
|
<el-button @click="handleClick(scope.row)" size="mini" plain v-if="scope.row.position === 1">查看课表</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|