2020-12-31 09:32:25 +08:00
|
|
|
<template>
|
2020-12-31 16:40:13 +08:00
|
|
|
<div>
|
2021-01-05 13:56:51 +08:00
|
|
|
<div class="back_box">
|
|
|
|
<el-button type="text" @click="goBack">返回</el-button>
|
|
|
|
</div>
|
|
|
|
<el-tabs v-model="activeName" type="card" @tab-click="handleClick">
|
|
|
|
<el-tab-pane label="部门管理" name="first">
|
|
|
|
<el-tree :data="data" :props="defaultProps" @node-click="handleNodeClick" />
|
|
|
|
</el-tab-pane>
|
|
|
|
<el-tab-pane label="成员管理" name="second">
|
|
|
|
<QueryListPage ref="queryListPage" :pager-config="pagerConfig" :query-form="queryForm" :query-list="queryList" />
|
|
|
|
</el-tab-pane>
|
2020-12-31 09:32:25 +08:00
|
|
|
</el-tabs>
|
2020-12-31 16:40:13 +08:00
|
|
|
</div>
|
2020-12-31 09:32:25 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'Organization',
|
|
|
|
data() {
|
|
|
|
return {
|
2021-01-05 13:56:51 +08:00
|
|
|
activeName: 'first',
|
|
|
|
defaultProps: '',
|
|
|
|
data: '',
|
|
|
|
pagerConfig: {
|
|
|
|
pageSize: 'pageSize',
|
|
|
|
pageIndex: 'pageNum'
|
|
|
|
},
|
|
|
|
queryForm: {
|
|
|
|
labelWidth: '140px',
|
|
|
|
reset: true,
|
|
|
|
queryObject: {
|
|
|
|
classId: {
|
|
|
|
type: 'select',
|
|
|
|
label: '班级',
|
|
|
|
config: {
|
|
|
|
data: []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
queryList: {
|
|
|
|
query: this.queryFunction,
|
|
|
|
selectCheckShow: false,
|
|
|
|
indexShow: true,
|
|
|
|
columns: [
|
|
|
|
{
|
|
|
|
title: '学号',
|
|
|
|
prop: 'studentID'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '姓名',
|
|
|
|
prop: 'name'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '班级',
|
|
|
|
prop: 'classId'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2020-12-31 09:32:25 +08:00
|
|
|
};
|
|
|
|
},
|
|
|
|
methods: {
|
2021-01-05 13:56:51 +08:00
|
|
|
handleClick() {
|
2020-12-31 09:32:25 +08:00
|
|
|
this.dialogVisible = false;
|
2021-01-05 13:56:51 +08:00
|
|
|
},
|
|
|
|
goBack() {
|
|
|
|
this.$router.go(-1);
|
|
|
|
},
|
|
|
|
queryFunction() {
|
|
|
|
|
|
|
|
},
|
|
|
|
handleNodeClick(e) {
|
2020-12-31 09:32:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
2021-01-05 13:56:51 +08:00
|
|
|
.back_box {
|
|
|
|
float: right;
|
|
|
|
padding-right: 20px;
|
|
|
|
height: 40px;
|
|
|
|
z-index: 36;
|
|
|
|
width: 60px;
|
|
|
|
text-align: center;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
}
|
2020-12-31 09:32:25 +08:00
|
|
|
</style>
|