|
@@ -2,7 +2,7 @@
|
|
|
<div class="teacher-manager">
|
|
|
<!--搜索-->
|
|
|
<div class="teacher-manager-search">
|
|
|
- <el-row type="flex" justify="space-between">
|
|
|
+ <el-row type="flex" justify="space-between" class="search-condition">
|
|
|
<el-col :span="20">
|
|
|
<span class="search-name">用户名</span>
|
|
|
<el-input
|
|
@@ -19,12 +19,13 @@
|
|
|
@keyup.enter.native="queryOrgTeacherUserList"
|
|
|
/>
|
|
|
<span class="search-name">审核状态</span>
|
|
|
- <el-select v-model="is_audited">
|
|
|
+ <el-select v-model="is_audited" :style="{ 'margin-right': '12px' }">
|
|
|
<el-option v-for="{ value, label } in auditedList" :key="value" :value="value" :label="label" />
|
|
|
</el-select>
|
|
|
+ <date-search ref="dateSearch" name="加入机构时间" />
|
|
|
</el-col>
|
|
|
<el-col :span="2">
|
|
|
- <el-button class="search-button" icon="el-icon-search" @click="queryOrgTeacherUserList"></el-button>
|
|
|
+ <el-button class="search-button" icon="el-icon-search" @click="queryOrgTeacherUserList" />
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -37,8 +38,8 @@
|
|
|
<el-table-column prop="user_name" label="用户名" width="180" />
|
|
|
<el-table-column prop="user_real_name" label="姓名" width="180" />
|
|
|
<el-table-column prop="org_name" label="服务机构" width="180" />
|
|
|
- <el-table-column prop="user_phone" label="手机号" width="120" />
|
|
|
<el-table-column prop="user_email" label="邮箱" width="180" />
|
|
|
+ <el-table-column prop="join_org_time" label="加入机构时间" width="180" />
|
|
|
<el-table-column prop="is_audited" label="已审核">
|
|
|
<template slot-scope="{ row }">
|
|
|
<div :style="{ 'text-align': 'center', width: '40px' }">{{ row.is_audited === 'true' ? '√' : '' }}</div>
|
|
@@ -92,9 +93,13 @@
|
|
|
<script>
|
|
|
import { pageQueryOrgTeacherUserList } from '@/api/list';
|
|
|
import { auditOrgTeacherUser, getPopedomList_OrgTeacherUse, setPopedom_OrgTeacherUser } from '@/api/teacher';
|
|
|
+import DateSearch from '@/components/common/DateSearch.vue';
|
|
|
|
|
|
export default {
|
|
|
name: 'TeacherManager',
|
|
|
+ components: {
|
|
|
+ DateSearch
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
user_name: '',
|
|
@@ -129,17 +134,21 @@ export default {
|
|
|
this.cur_page = newPage;
|
|
|
this.queryOrgTeacherUserList();
|
|
|
},
|
|
|
+
|
|
|
changePageSize(pageSize) {
|
|
|
this.page_capacity = pageSize;
|
|
|
this.queryOrgTeacherUserList();
|
|
|
},
|
|
|
+
|
|
|
queryOrgTeacherUserList() {
|
|
|
pageQueryOrgTeacherUserList({
|
|
|
user_name: this.user_name,
|
|
|
user_real_name: this.user_real_name,
|
|
|
page_capacity: this.page_capacity,
|
|
|
cur_page: this.cur_page,
|
|
|
- is_audited: this.is_audited
|
|
|
+ is_audited: this.is_audited,
|
|
|
+ join_org_time_min: this.$refs?.dateSearch?.join_org_time_min ?? '',
|
|
|
+ join_org_time_max: this.$refs?.dateSearch?.join_org_time_max ?? ''
|
|
|
}).then(({ cur_page, org_teacher_user_list, total_count }) => {
|
|
|
this.cur_page = cur_page;
|
|
|
this.org_teacher_user_list = org_teacher_user_list;
|
|
@@ -167,10 +176,12 @@ export default {
|
|
|
},
|
|
|
// 设置教师权限
|
|
|
setPopedom(user_org_id) {
|
|
|
- let popedom_code_list = [];
|
|
|
- this.popedom_list.forEach(({ popedom_code, is_selected }) => {
|
|
|
- if (is_selected) popedom_code_list.push(popedom_code);
|
|
|
- });
|
|
|
+ let popedom_code_list = this.popedom_list
|
|
|
+ .map(({ popedom_code, is_selected }) => {
|
|
|
+ if (is_selected) return popedom_code;
|
|
|
+ })
|
|
|
+ .filter(item => item !== undefined);
|
|
|
+
|
|
|
setPopedom_OrgTeacherUser({
|
|
|
user_org_id,
|
|
|
popedom_code_list
|
|
@@ -196,6 +207,10 @@ export default {
|
|
|
margin-right: 14px;
|
|
|
}
|
|
|
|
|
|
+ .search-condition {
|
|
|
+ align-items: center;
|
|
|
+ }
|
|
|
+
|
|
|
.account-search {
|
|
|
width: 240px;
|
|
|
margin-right: 48px;
|
|
@@ -209,6 +224,8 @@ export default {
|
|
|
&-list {
|
|
|
@include list;
|
|
|
|
|
|
+ min-height: 554px;
|
|
|
+
|
|
|
&-title {
|
|
|
font-size: 20px;
|
|
|
font-weight: 400;
|