|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-row :gutter="20"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-col :span="4"> |
|
|
|
<div class="page"> |
|
|
|
<div class="page"> |
|
|
|
<div class="m-b-20"> |
|
|
|
<div class="m-b-20"> |
|
|
|
<h6 class="p-title">学生</h6> |
|
|
|
<h6 class="p-title">学生</h6> |
|
|
@ -22,7 +22,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div style="height: 500px; max-height: 500px; overflow: auto"> |
|
|
|
<div style="height: 500px; max-height: 500px; overflow: auto"> |
|
|
|
<student-tree |
|
|
|
<org-tree |
|
|
|
v-if="treeVisible" |
|
|
|
v-if="treeVisible" |
|
|
|
default-expand-all |
|
|
|
default-expand-all |
|
|
|
ref="orgTree" |
|
|
|
ref="orgTree" |
|
|
@ -51,7 +51,7 @@ |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</student-tree> |
|
|
|
</org-tree> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -89,13 +89,13 @@ |
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="18"> |
|
|
|
<el-col :span="20"> |
|
|
|
<div class="page"> |
|
|
|
<div class="page"> |
|
|
|
<h6 class="p-title">筛选</h6> |
|
|
|
<h6 class="p-title">筛选</h6> |
|
|
|
<div class="tool"> |
|
|
|
<div class="tool"> |
|
|
|
<ul class="filter"> |
|
|
|
<ul class="filter"> |
|
|
|
<li> |
|
|
|
<li> |
|
|
|
<el-input style="width: 250px;" placeholder="请输入学生账号/姓名" prefix-icon="el-icon-search" v-model="keyWord" clearable></el-input> |
|
|
|
<el-input style="width: 250px;" placeholder="请输入学生姓名/学号/账号" prefix-icon="el-icon-search" v-model="keyWord" clearable></el-input> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
<div> |
|
|
|
<div> |
|
|
@ -107,21 +107,16 @@ |
|
|
|
|
|
|
|
|
|
|
|
<el-table :data="listData" class="table" ref="table" stripe header-align="center" @selection-change="handleSelectionChange" :row-key="getRowKeys"> |
|
|
|
<el-table :data="listData" class="table" ref="table" stripe header-align="center" @selection-change="handleSelectionChange" :row-key="getRowKeys"> |
|
|
|
<el-table-column type="selection" width="55" align="center" :reserve-selection="true"></el-table-column> |
|
|
|
<el-table-column type="selection" width="55" align="center" :reserve-selection="true"></el-table-column> |
|
|
|
<el-table-column type="index" width="100" label="序号" align="center"> |
|
|
|
<el-table-column type="index" width="60" label="序号" align="center"></el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="userName" label="学生姓名" align="center"></el-table-column> |
|
|
|
<el-table-column prop="userName" label="学生姓名" align="center"> |
|
|
|
<el-table-column prop="workNumber" label="学生学号" align="center"></el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="className" label="班级" align="center" min-width="150" show-overflow-tooltip></el-table-column> |
|
|
|
<el-table-column prop="workNumber" label="学生学号" align="center"> |
|
|
|
<el-table-column prop="account" label="账号" align="center"></el-table-column> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="className" label="班级" align="center"> |
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column prop="countries" label="账号角色" align="center"> |
|
|
|
<el-table-column prop="countries" label="账号角色" align="center"> |
|
|
|
<template slot-scope="scope">学生</template> |
|
|
|
<template slot-scope="scope">学生</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="loginNumber" label="登录次数" align="center"> |
|
|
|
<el-table-column prop="loginNumber" label="登录次数" align="center"></el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="lastLoginTime" label="上次登录时间" align="center"></el-table-column> |
|
|
|
<el-table-column prop="lastLoginTime" label="上次登录时间" align="center"> |
|
|
|
|
|
|
|
</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 v-if="isRemove && auth('移除')" type="text" @click="removeStudent(scope.row)">移除</el-button> |
|
|
|
<el-button v-if="isRemove && auth('移除')" type="text" @click="removeStudent(scope.row)">移除</el-button> |
|
|
@ -186,8 +181,8 @@ |
|
|
|
> |
|
|
|
> |
|
|
|
</el-input> |
|
|
|
</el-input> |
|
|
|
<div style="height: 300px; max-height: 300px; border: 1px solid #DCDFE6; border-radius: 4px; padding: 10px 10px 10px 0px; overflow: auto"> |
|
|
|
<div style="height: 300px; max-height: 300px; border: 1px solid #DCDFE6; border-radius: 4px; padding: 10px 10px 10px 0px; overflow: auto"> |
|
|
|
<student-tree |
|
|
|
<org-tree |
|
|
|
v-if="showTree" |
|
|
|
v-if="showTree && treeVisible" |
|
|
|
ref="classTree" |
|
|
|
ref="classTree" |
|
|
|
show-checkbox |
|
|
|
show-checkbox |
|
|
|
node-key="id" |
|
|
|
node-key="id" |
|
|
@ -210,7 +205,7 @@ |
|
|
|
</el-button> |
|
|
|
</el-button> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</student-tree> |
|
|
|
</org-tree> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<p style="color: #C0C4CC;">提示:需创建班级后才可以勾选</p> |
|
|
|
<p style="color: #C0C4CC;">提示:需创建班级后才可以勾选</p> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
@ -260,9 +255,9 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import util from "@/libs/util"; |
|
|
|
import util from "@/libs/util"; |
|
|
|
import Setting from "@/setting"; |
|
|
|
import Setting from "@/setting"; |
|
|
|
import StudentTree from "@/components/student-tree/src/tree"; |
|
|
|
import OrgTree from "@/components/org-tree/src/tree"; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
components: { StudentTree }, |
|
|
|
components: { OrgTree }, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
let that = this; |
|
|
|
let that = this; |
|
|
|
return { |
|
|
|
return { |
|
|
@ -374,7 +369,6 @@ export default { |
|
|
|
defaultCheckedKeys: [], |
|
|
|
defaultCheckedKeys: [], |
|
|
|
filterText: "", // 通过关键字过滤树节点 |
|
|
|
filterText: "", // 通过关键字过滤树节点 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
importVisible: false, |
|
|
|
importVisible: false, |
|
|
|
uploadList: [], |
|
|
|
uploadList: [], |
|
|
|
uploadFaild: false, |
|
|
|
uploadFaild: false, |
|
|
@ -503,7 +497,6 @@ export default { |
|
|
|
this.treeVisible = false; |
|
|
|
this.treeVisible = false; |
|
|
|
setTimeout(() => { |
|
|
|
setTimeout(() => { |
|
|
|
this.treeVisible = true; |
|
|
|
this.treeVisible = true; |
|
|
|
|
|
|
|
|
|
|
|
}, 500); |
|
|
|
}, 500); |
|
|
|
this.treeNode.childNodes.splice(0); |
|
|
|
this.treeNode.childNodes.splice(0); |
|
|
|
this.loadNodeTree(this.treeNode, this.treeResolve); |
|
|
|
this.loadNodeTree(this.treeNode, this.treeResolve); |
|
|
|