|
@@ -3,10 +3,10 @@
|
|
<el-form :inline="true" :model="searchForm">
|
|
<el-form :inline="true" :model="searchForm">
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-input
|
|
<el-input
|
|
- v-model.trim="searchForm.search"
|
|
|
|
- @keyup.enter.native="search"
|
|
|
|
|
|
+ v-model.trim="searchForm.queryCondition"
|
|
|
|
+ @keyup.enter.native="queryCondition"
|
|
clearable
|
|
clearable
|
|
- placeholder="学生编号"
|
|
|
|
|
|
+ placeholder="学生姓名/编号/电话"
|
|
></el-input>
|
|
></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
@@ -51,7 +51,7 @@
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column align="center" prop="name" label="学员姓名">
|
|
<el-table-column align="center" prop="name" label="学员姓名">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" prop="phone" label="联系电话">
|
|
|
|
|
|
+ <el-table-column align="center" prop="phone" label="手机号">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
align="center"
|
|
align="center"
|
|
@@ -64,7 +64,7 @@
|
|
label="团练宝类型"
|
|
label="团练宝类型"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- {{ scope.row.type | cloudGroupActive }}
|
|
|
|
|
|
+ {{ scope.row.type | memberEnumType }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -100,20 +100,32 @@
|
|
@pagination="getList"
|
|
@pagination="getList"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="激活会员"
|
|
|
|
+ :visible.sync="giveMemberVisible"
|
|
|
|
+ width="1000px"
|
|
|
|
+ v-if="giveMemberVisible"
|
|
|
|
+ append-to-body
|
|
|
|
+ >
|
|
|
|
+ <giveMemberModel :tableList="selectStudentList" @getList="getList" @close="giveMemberVisible = false" />
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import pagination from "@/components/Pagination/index";
|
|
import pagination from "@/components/Pagination/index";
|
|
import { findSound } from '@/api/buildTeam'
|
|
import { findSound } from '@/api/buildTeam'
|
|
import { queryInactive } from '../api'
|
|
import { queryInactive } from '../api'
|
|
|
|
+import giveMemberModel from "../modals/giveMemberModel";
|
|
export default {
|
|
export default {
|
|
- components: { pagination },
|
|
|
|
|
|
+ components: { pagination, giveMemberModel },
|
|
data() {
|
|
data() {
|
|
let musicGroupId = this.$route.query.id;
|
|
let musicGroupId = this.$route.query.id;
|
|
return {
|
|
return {
|
|
musicGroupId,
|
|
musicGroupId,
|
|
|
|
+ giveMemberVisible: false,
|
|
searchForm: {
|
|
searchForm: {
|
|
- search: "",
|
|
|
|
|
|
+ queryCondition: "",
|
|
subjectId: "",
|
|
subjectId: "",
|
|
},
|
|
},
|
|
soundList: [],
|
|
soundList: [],
|
|
@@ -125,6 +137,7 @@ export default {
|
|
total: 0, // 总条数
|
|
total: 0, // 总条数
|
|
page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
page_size: [10, 20, 40, 50], // 选择限制显示条数
|
|
},
|
|
},
|
|
|
|
+ selectStudentList: [], // 选中的学生列表
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -144,19 +157,32 @@ export default {
|
|
try {
|
|
try {
|
|
const res = await queryInactive({
|
|
const res = await queryInactive({
|
|
...this.searchForm,
|
|
...this.searchForm,
|
|
|
|
+ musicGroupId: this.musicGroupId,
|
|
page: this.rules.page,
|
|
page: this.rules.page,
|
|
rows: this.rules.limit,
|
|
rows: this.rules.limit,
|
|
});
|
|
});
|
|
- console.log(res)
|
|
|
|
this.rules.total = res.data.total;
|
|
this.rules.total = res.data.total;
|
|
this.tableList = res.data.rows;
|
|
this.tableList = res.data.rows;
|
|
} catch (e) { }
|
|
} catch (e) { }
|
|
queryInactive
|
|
queryInactive
|
|
},
|
|
},
|
|
- handleSelectionChange(val) {},
|
|
|
|
- search() {},
|
|
|
|
- onReSet() {},
|
|
|
|
- addMember(){}
|
|
|
|
|
|
+ handleSelectionChange(val) {
|
|
|
|
+ this.selectStudentList = val || []
|
|
|
|
+ },
|
|
|
|
+ search() {
|
|
|
|
+ this.rules.page = 1;
|
|
|
|
+ this.getList();
|
|
|
|
+ },
|
|
|
|
+ onReSet() {
|
|
|
|
+ this.searchForm = { search: "", subjectId: "" };
|
|
|
|
+ },
|
|
|
|
+ addMember(){
|
|
|
|
+ if(this.selectStudentList.length <= 0) {
|
|
|
|
+ this.$message.error('至少选择一名学生')
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ this.giveMemberVisible = true
|
|
|
|
+ }
|
|
},
|
|
},
|
|
};
|
|
};
|
|
-</script>
|
|
|
|
|
|
+</script>
|