|
@@ -3,13 +3,20 @@
|
|
<el-input v-model="search" type="text" prefix-icon="el-icon-search" @keyup.enter.native="queryOrgList">
|
|
<el-input v-model="search" type="text" prefix-icon="el-icon-search" @keyup.enter.native="queryOrgList">
|
|
<el-button slot="append" icon="el-icon-search" @click="queryOrgList" />
|
|
<el-button slot="append" icon="el-icon-search" @click="queryOrgList" />
|
|
</el-input>
|
|
</el-input>
|
|
- <div class="org-manager-list">
|
|
|
|
- <div class="org-manager-list-title">
|
|
|
|
- <div>机构管理</div>
|
|
|
|
- <div>
|
|
|
|
- <el-button icon="el-icon-plus" @click="$router.push('/add_org')">创建机构</el-button>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <CommonTable
|
|
|
|
+ name="机构管理"
|
|
|
|
+ :page-size="page_capacity"
|
|
|
|
+ :total="total_count"
|
|
|
|
+ :current-page="cur_page"
|
|
|
|
+ @prev-click="changePage"
|
|
|
|
+ @next-click="changePage"
|
|
|
|
+ @current-change="changePage"
|
|
|
|
+ @size-change="changePageSize"
|
|
|
|
+ >
|
|
|
|
+ <template #button>
|
|
|
|
+ <el-button icon="el-icon-plus" @click="$router.push('/add_org')">创建机构</el-button>
|
|
|
|
+ </template>
|
|
|
|
+
|
|
<el-table :data="org_list">
|
|
<el-table :data="org_list">
|
|
<el-table-column prop="name" label="名称" width="240" />
|
|
<el-table-column prop="name" label="名称" width="240" />
|
|
<el-table-column prop="teacher_count" label="注册教师人数" width="110" />
|
|
<el-table-column prop="teacher_count" label="注册教师人数" width="110" />
|
|
@@ -49,19 +56,7 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
- </div>
|
|
|
|
- <el-pagination
|
|
|
|
- background
|
|
|
|
- :page-sizes="[10, 20, 30, 40, 50]"
|
|
|
|
- :page-size="page_capacity"
|
|
|
|
- layout="prev, pager, next, total, sizes, jumper"
|
|
|
|
- :total="total_count"
|
|
|
|
- :current-page="cur_page"
|
|
|
|
- @prev-click="changePage"
|
|
|
|
- @next-click="changePage"
|
|
|
|
- @current-change="changePage"
|
|
|
|
- @size-change="changePageSize"
|
|
|
|
- />
|
|
|
|
|
|
+ </CommonTable>
|
|
|
|
|
|
<reset-password ref="reset" :user-id="curUserId" />
|
|
<reset-password ref="reset" :user-id="curUserId" />
|
|
<show-org ref="showOrg" :org-id="curOrgId" />
|
|
<show-org ref="showOrg" :org-id="curOrgId" />
|
|
@@ -73,6 +68,7 @@
|
|
import ResetPassword from '@/components/ResetPassword.vue';
|
|
import ResetPassword from '@/components/ResetPassword.vue';
|
|
import ShowOrg from './ShowOrg.vue';
|
|
import ShowOrg from './ShowOrg.vue';
|
|
import UpdateOrg from './UpdateOrg.vue';
|
|
import UpdateOrg from './UpdateOrg.vue';
|
|
|
|
+import CommonTable from '@/components/common/CommonTable.vue';
|
|
import { pageQueryOrgList } from '@/api/list';
|
|
import { pageQueryOrgList } from '@/api/list';
|
|
import { GetDistributablePopedomList_OrgManager, SetDistributablePopedom_OrgManager } from '@/api/org';
|
|
import { GetDistributablePopedomList_OrgManager, SetDistributablePopedom_OrgManager } from '@/api/org';
|
|
|
|
|
|
@@ -81,7 +77,8 @@ export default {
|
|
components: {
|
|
components: {
|
|
ResetPassword,
|
|
ResetPassword,
|
|
ShowOrg,
|
|
ShowOrg,
|
|
- UpdateOrg
|
|
|
|
|
|
+ UpdateOrg,
|
|
|
|
+ CommonTable
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -163,27 +160,12 @@ export default {
|
|
|
|
|
|
.org-manager {
|
|
.org-manager {
|
|
@include container;
|
|
@include container;
|
|
- @include pagination;
|
|
|
|
|
|
|
|
padding: 24px 0 46px;
|
|
padding: 24px 0 46px;
|
|
|
|
|
|
> .el-input {
|
|
> .el-input {
|
|
width: 528px;
|
|
width: 528px;
|
|
}
|
|
}
|
|
-
|
|
|
|
- &-list {
|
|
|
|
- @include list;
|
|
|
|
-
|
|
|
|
- &-title {
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: space-between;
|
|
|
|
-
|
|
|
|
- &:first-child {
|
|
|
|
- font-size: 24px;
|
|
|
|
- font-weight: 700;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
|
|
|