|
@@ -7,12 +7,13 @@
|
|
<el-button
|
|
<el-button
|
|
type="primary"
|
|
type="primary"
|
|
style="margin-bottom: 20px"
|
|
style="margin-bottom: 20px"
|
|
- v-permission="'/vipNewActive'"
|
|
|
|
|
|
+ v-permission="'activityUserMapper/add'"
|
|
@click="addStudent"
|
|
@click="addStudent"
|
|
>添加学员</el-button
|
|
>添加学员</el-button
|
|
>
|
|
>
|
|
<save-form
|
|
<save-form
|
|
:inline="true"
|
|
:inline="true"
|
|
|
|
+ ref="searchForm"
|
|
:model="searchForm"
|
|
:model="searchForm"
|
|
@submit="search"
|
|
@submit="search"
|
|
@reset="onReSet"
|
|
@reset="onReSet"
|
|
@@ -75,14 +76,14 @@
|
|
label="手机号"
|
|
label="手机号"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
- v-if="courseType&&courseType == 'VIP'"
|
|
|
|
|
|
+ v-if="courseType && courseType == 'VIP'"
|
|
align="center"
|
|
align="center"
|
|
prop="studentId"
|
|
prop="studentId"
|
|
label="付费课已使用/剩余资格"
|
|
label="付费课已使用/剩余资格"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div v-if="scope.row.userId">
|
|
<div v-if="scope.row.userId">
|
|
- {{ scope.row.useVipNum+'' + "/" + scope.row.freeVipNum+'' }}
|
|
|
|
|
|
+ {{ scope.row.useVipNum + "" + "/" + scope.row.freeVipNum + "" }}
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -93,8 +94,14 @@
|
|
label="付费课已使用/剩余资格"
|
|
label="付费课已使用/剩余资格"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <div v-if="scope.row.userId">
|
|
|
|
- {{ scope.row.usePracticeNum+'' + "/" + scope.row.freePracticeNum+'' }}
|
|
|
|
|
|
+ <div v-if="scope.row.userId">
|
|
|
|
+ {{
|
|
|
|
+ scope.row.usePracticeNum +
|
|
|
|
+ "" +
|
|
|
|
+ "/" +
|
|
|
|
+ scope.row.freePracticeNum +
|
|
|
|
+ ""
|
|
|
|
+ }}
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -106,8 +113,14 @@
|
|
label="赠课已使用/剩余资格"
|
|
label="赠课已使用/剩余资格"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <div v-if="scope.row.userId">
|
|
|
|
- {{ scope.row.useGiveVipNum+'' + "/" + scope.row.freeGiveVipNum+'' }}
|
|
|
|
|
|
+ <div v-if="scope.row.userId">
|
|
|
|
+ {{
|
|
|
|
+ scope.row.useGiveVipNum +
|
|
|
|
+ "" +
|
|
|
|
+ "/" +
|
|
|
|
+ scope.row.freeGiveVipNum +
|
|
|
|
+ ""
|
|
|
|
+ }}
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -117,42 +130,56 @@
|
|
prop="studentId"
|
|
prop="studentId"
|
|
label="赠课已使用/剩余资格"
|
|
label="赠课已使用/剩余资格"
|
|
>
|
|
>
|
|
- <template slot-scope="scope" >
|
|
|
|
- <div v-if="scope.row.userId">
|
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <div v-if="scope.row.userId">
|
|
{{
|
|
{{
|
|
- scope.row.useGivePracticeNum+'' +
|
|
|
|
|
|
+ scope.row.useGivePracticeNum +
|
|
|
|
+ "" +
|
|
"/" +
|
|
"/" +
|
|
- scope.row.freeGivePracticeNum+''
|
|
|
|
|
|
+ scope.row.freeGivePracticeNum +
|
|
|
|
+ ""
|
|
}}
|
|
}}
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
- v-if="giveCourseType!='PRACTICE'&&giveCourseType!='VIP'"
|
|
|
|
|
|
+ v-if="giveCourseType != 'PRACTICE' && giveCourseType != 'VIP'"
|
|
align="center"
|
|
align="center"
|
|
prop="studentId"
|
|
prop="studentId"
|
|
label="赠课已使用/剩余资格"
|
|
label="赠课已使用/剩余资格"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <div v-if="scope.row.userId">
|
|
|
|
|
|
+ <div v-if="scope.row.userId">
|
|
{{ "--" + "/" + "--" }}
|
|
{{ "--" + "/" + "--" }}
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column align="center" prop="studentId" label="操作">
|
|
|
|
|
|
+ <el-table-column
|
|
|
|
+ align="center"
|
|
|
|
+ prop="studentId"
|
|
|
|
+ label="操作"
|
|
|
|
+ width="260px"
|
|
|
|
+ >
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
- v-permission="'vipGroupActivity/update'"
|
|
|
|
|
|
+ v-permission="'activityUserMapper/add'"
|
|
|
|
+ @click="addCount(scope.row)"
|
|
|
|
+ >添加资格</el-button
|
|
|
|
+ >
|
|
|
|
+ <el-button
|
|
|
|
+ type="text"
|
|
|
|
+ v-permission="'activityUserMapper/cut'"
|
|
@click="reduceCount(scope.row)"
|
|
@click="reduceCount(scope.row)"
|
|
>减少资格</el-button
|
|
>减少资格</el-button
|
|
>
|
|
>
|
|
|
|
+
|
|
<el-button
|
|
<el-button
|
|
type="text"
|
|
type="text"
|
|
- v-permission="'vipGroupActivity/update'"
|
|
|
|
- @click="addCount(scope.row)"
|
|
|
|
- >添加资格</el-button
|
|
|
|
|
|
+ v-permission="'activityUserMapperAdjustLog/queryPage'"
|
|
|
|
+ @click="lookInfo(scope.row)"
|
|
|
|
+ >调整记录</el-button
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -174,25 +201,48 @@
|
|
width="1000px"
|
|
width="1000px"
|
|
v-if="addStudentVisible"
|
|
v-if="addStudentVisible"
|
|
>
|
|
>
|
|
- <addStudentSenior :organList="organList" :hasGive="hasGive" />
|
|
|
|
|
|
+ <addStudentSenior
|
|
|
|
+ :organList="organList"
|
|
|
|
+ :hasGive="hasGive"
|
|
|
|
+ ref="addStudentSenior"
|
|
|
|
+ @getList="getList"
|
|
|
|
+ @close="addStudentVisible = false"
|
|
|
|
+ />
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="addStudentVisible = false">取 消</el-button>
|
|
<el-button @click="addStudentVisible = false">取 消</el-button>
|
|
- <el-button type="primary" @click="addStudentVisible = false"
|
|
|
|
- >确 定</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button type="primary" @click="submitStudent">确 定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
- <el-dialog title="添加资格" :visible.sync="addSeniorVisible" width="800px">
|
|
|
|
- <addSenior :hasGive="hasGive" />
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="添加资格"
|
|
|
|
+ :visible.sync="addSeniorVisible"
|
|
|
|
+ width="800px"
|
|
|
|
+ v-if="addSeniorVisible"
|
|
|
|
+ >
|
|
|
|
+ <addSenior
|
|
|
|
+ :hasGive="hasGive"
|
|
|
|
+ :activeRow="activeRow"
|
|
|
|
+ @getList="getList"
|
|
|
|
+ ref="addSenior"
|
|
|
|
+ @close="addSeniorVisible = false"
|
|
|
|
+ />
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="addSeniorVisible = false">取 消</el-button>
|
|
<el-button @click="addSeniorVisible = false">取 消</el-button>
|
|
- <el-button type="primary" @click="addSeniorVisible = false"
|
|
|
|
- >确 定</el-button
|
|
|
|
- >
|
|
|
|
|
|
+ <el-button type="primary" @click="addSeniorSubmit">确 定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
- <el-dialog title="减少资格" :visible.sync="reduceVisible" width="1000px">
|
|
|
|
- <reduceSenior />
|
|
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="减少资格"
|
|
|
|
+ :visible.sync="reduceVisible"
|
|
|
|
+ width="1000px"
|
|
|
|
+ v-if="reduceVisible"
|
|
|
|
+ >
|
|
|
|
+ <reduceSenior
|
|
|
|
+ :activeRow="activeRow"
|
|
|
|
+ :courseType="courseType"
|
|
|
|
+ :giveCourseType="giveCourseType"
|
|
|
|
+ @getList="getList"
|
|
|
|
+ />
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<!-- <el-button @click="addStudentVisible = false">取 消</el-button> -->
|
|
<!-- <el-button @click="addStudentVisible = false">取 消</el-button> -->
|
|
<el-button type="primary" @click="reduceVisible = false"
|
|
<el-button type="primary" @click="reduceVisible = false"
|
|
@@ -200,6 +250,17 @@
|
|
>
|
|
>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <el-dialog
|
|
|
|
+ title="资格记录"
|
|
|
|
+ :visible.sync="infoVisible"
|
|
|
|
+ width="1000px"
|
|
|
|
+ v-if="infoVisible"
|
|
|
|
+ >
|
|
|
|
+ <seniorInfo :activeRow="activeRow" />
|
|
|
|
+ <!-- <span slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button type="primary" @click="infoVisible = false">确 定</el-button>
|
|
|
|
+ </span>-->
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -215,8 +276,15 @@ import {
|
|
import addSenior from "./modals/addSenior.vue";
|
|
import addSenior from "./modals/addSenior.vue";
|
|
import reduceSenior from "./modals/reduceSenior.vue";
|
|
import reduceSenior from "./modals/reduceSenior.vue";
|
|
import addStudentSenior from "./modals/addStudentSenior.vue";
|
|
import addStudentSenior from "./modals/addStudentSenior.vue";
|
|
|
|
+import seniorInfo from "./modals/seniorInfo";
|
|
export default {
|
|
export default {
|
|
- components: { pagination, addSenior, reduceSenior, addStudentSenior },
|
|
|
|
|
|
+ components: {
|
|
|
|
+ pagination,
|
|
|
|
+ addSenior,
|
|
|
|
+ reduceSenior,
|
|
|
|
+ addStudentSenior,
|
|
|
|
+ seniorInfo,
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
searchForm: {
|
|
searchForm: {
|
|
@@ -226,10 +294,12 @@ export default {
|
|
title: "",
|
|
title: "",
|
|
tableList: [{}],
|
|
tableList: [{}],
|
|
organList: [],
|
|
organList: [],
|
|
|
|
+ activeRow: null,
|
|
hasGive: false,
|
|
hasGive: false,
|
|
addStudentVisible: false,
|
|
addStudentVisible: false,
|
|
addSeniorVisible: false,
|
|
addSeniorVisible: false,
|
|
reduceVisible: false,
|
|
reduceVisible: false,
|
|
|
|
+ infoVisible: false,
|
|
courseType: "",
|
|
courseType: "",
|
|
giveCourseType: "",
|
|
giveCourseType: "",
|
|
rules: {
|
|
rules: {
|
|
@@ -283,7 +353,10 @@ export default {
|
|
this.rules.page = 1;
|
|
this.rules.page = 1;
|
|
this.getList();
|
|
this.getList();
|
|
},
|
|
},
|
|
- onReSet() {},
|
|
|
|
|
|
+ onReSet() {
|
|
|
|
+ this.$refs.searchForm.resetFields();
|
|
|
|
+ this.search();
|
|
|
|
+ },
|
|
onCancel() {
|
|
onCancel() {
|
|
this.$store.dispatch("delVisitedViews", this.$route);
|
|
this.$store.dispatch("delVisitedViews", this.$route);
|
|
this.$router.push({
|
|
this.$router.push({
|
|
@@ -307,18 +380,30 @@ export default {
|
|
);
|
|
);
|
|
this.courseType = data.courseType;
|
|
this.courseType = data.courseType;
|
|
this.giveCourseType = data.giveCourseType;
|
|
this.giveCourseType = data.giveCourseType;
|
|
- console.log( this.courseType , this.giveCourseType )
|
|
|
|
|
|
+ console.log(this.courseType, this.giveCourseType);
|
|
// selects.branchs
|
|
// selects.branchs
|
|
},
|
|
},
|
|
- addCount() {
|
|
|
|
|
|
+ addCount(row) {
|
|
|
|
+ this.activeRow = row;
|
|
this.addSeniorVisible = true;
|
|
this.addSeniorVisible = true;
|
|
},
|
|
},
|
|
- reduceCount() {
|
|
|
|
|
|
+ reduceCount(row) {
|
|
|
|
+ this.activeRow = row;
|
|
this.reduceVisible = true;
|
|
this.reduceVisible = true;
|
|
},
|
|
},
|
|
addStudent() {
|
|
addStudent() {
|
|
this.addStudentVisible = true;
|
|
this.addStudentVisible = true;
|
|
},
|
|
},
|
|
|
|
+ submitStudent() {
|
|
|
|
+ this.$refs.addStudentSenior.submit();
|
|
|
|
+ },
|
|
|
|
+ addSeniorSubmit() {
|
|
|
|
+ this.$refs.addSenior.submit();
|
|
|
|
+ },
|
|
|
|
+ lookInfo(row) {
|
|
|
|
+ this.activeRow = row;
|
|
|
|
+ this.infoVisible = true;
|
|
|
|
+ },
|
|
},
|
|
},
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|