|
@@ -100,14 +100,15 @@
|
|
|
<template slot-scope="scope">
|
|
|
<!-- v-if="permission('teamCourseList/details')" -->
|
|
|
<div>
|
|
|
- <el-button type="text"
|
|
|
- v-if="scope.row.groupType ==='MUSIC'"
|
|
|
- @click="lookDetail(scope.row)">调整</el-button>
|
|
|
- <el-button v-if="!scope.row.settlementTime && permission('courseSchedule/classStartDateAdjust')&&scope.row.groupType ==='MUSIC'"
|
|
|
+ <el-button v-if="!scope.row.isSettlement && permission('courseSchedule/classStartDateAdjust')&&scope.row.groupType ==='MUSIC'"
|
|
|
+ type="text"
|
|
|
+ @click="resetClass(scope.row)">调整</el-button>
|
|
|
+ <el-button v-if="!scope.row.isSettlement && permission('courseSchedule/classStartDateAdjust')&&scope.row.groupType ==='VIP'"
|
|
|
type="text"
|
|
|
@click="resetClass(scope.row)">调整</el-button>
|
|
|
<el-button type="text"
|
|
|
- @click="lookDetail(scope.row)">调整</el-button>
|
|
|
+ v-if="!scope.row.isSettlement && permission('courseSchedule/practiceCourseAdjust')&&scope.row.groupType==='PRACTICE'"
|
|
|
+ @click="resetClass(scope.row)">调整</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -124,6 +125,7 @@
|
|
|
import { superFindCourseSchedules, getTeacher } from "@/api/buildTeam";
|
|
|
import { setDate, getCurrentMonthFirst, getCurrentMonthLast } from "@/utils/date"
|
|
|
import pagination from "@/components/Pagination/index";
|
|
|
+import { permission } from "@/utils/directivePage";
|
|
|
export default {
|
|
|
components: { pagination },
|
|
|
data () {
|
|
@@ -240,7 +242,10 @@ export default {
|
|
|
this.startTime = setDate(val)
|
|
|
this.endTime = setDate(val)
|
|
|
this.getList()
|
|
|
- }
|
|
|
+ },
|
|
|
+ permission (str, parent) {
|
|
|
+ return permission(str, parent);
|
|
|
+ },
|
|
|
|
|
|
}
|
|
|
}
|