|
@@ -206,19 +206,6 @@
|
|
|
<div>{{ scope.row.status | coursesStatus }}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column align="center"
|
|
|
- label="是否签到">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>{{ scope.row.isSignIn | attendanceType}}</div>
|
|
|
- </template>
|
|
|
- </el-table-column> -->
|
|
|
- <!-- <el-table-column align="center"
|
|
|
- label="是否签退"
|
|
|
- fixed="right">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div>{{ scope.row.isSignOut | attendanceOutType}}</div>
|
|
|
- </template>
|
|
|
- </el-table-column> -->
|
|
|
<el-table-column align="center"
|
|
|
prop="isCallNames"
|
|
|
label="是否点名"
|
|
@@ -249,6 +236,13 @@
|
|
|
v-if="permission('courseSchedule/classStartDateAdjust?hight')"
|
|
|
@click="resetClass(scope.row)">调整</el-button>
|
|
|
<el-button type="text"
|
|
|
+ @click="addCompound(scope.row)"
|
|
|
+ v-if="(scope.row.groupType=='MUSIC'&&scope.row.type!='MUSIC_NETWORK'&&scope.row.type!='HIGH_ONLINE'&&scope.row.status=='NOT_START'&&!isAddCom(scope.row))">添加合班</el-button>
|
|
|
+ <el-button type="
|
|
|
+ text"
|
|
|
+ v-if="isAddCom(scope.row)"
|
|
|
+ @click="cancleCompound(scope.row)">取消合班</el-button>
|
|
|
+ <el-button type="text"
|
|
|
v-if="
|
|
|
scope.row.status=='OVER'
|
|
|
&&
|
|
@@ -320,7 +314,17 @@
|
|
|
<el-form-item label="上课时长">
|
|
|
|
|
|
<div class="inputStyle"
|
|
|
- :class=" (maskForm.attendClassTime <= 120)?'':'red'">{{ maskForm.attendClassTime>=0?maskForm.attendClassTime:0+'分钟'}}</div>
|
|
|
+ :class=" (maskForm.attendClassTime <= 120)?'':'red'">{{ (maskForm.attendClassTime>=0?maskForm.attendClassTime:0)}}分钟 <el-tooltip placement="top"
|
|
|
+ popper-class="mTooltip">
|
|
|
+ <div slot="content">
|
|
|
+ 学员和老师同时在教室里的时长。
|
|
|
+ </div>
|
|
|
+ <!-- <img :src="imageIcon" class="micon el-tooltip" style="width:8px height:8px" alt /> -->
|
|
|
+ <i class="el-icon-question micon el-tooltip"
|
|
|
+ style="font-size: 18px; color: #F56C6C"
|
|
|
+ v-permission="'export/teacherSalary'"></i>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
|
@@ -363,6 +367,14 @@
|
|
|
<courseEvaluate :courseScheduleId="maskForm.id"></courseEvaluate>
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
+ <el-tab-pane label="调整记录"
|
|
|
+ v-if="permission('courseSchedule/queryCourseAdjustDetail')"
|
|
|
+ name="five">
|
|
|
+ <div v-if="activeName == 'five'">
|
|
|
+ <infoMsg :courseScheduleId="maskForm.id"></infoMsg>
|
|
|
+ </div>
|
|
|
+ </el-tab-pane>
|
|
|
+ <!-- infoMsg -->
|
|
|
</el-tabs>
|
|
|
</el-dialog>
|
|
|
<el-dialog :visible.sync="show"
|
|
@@ -372,6 +384,9 @@
|
|
|
@getList='getList'
|
|
|
:id='id' />
|
|
|
</el-dialog>
|
|
|
+ <addCompound :compoundList='compoundList'
|
|
|
+ @clearCom='clearCom'
|
|
|
+ @cancleCompound='cancleCompound' />
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -396,6 +411,8 @@ import { getToken } from "@/utils/auth";
|
|
|
import load from "@/utils/loading";
|
|
|
import resetClass from './componentCourse/resetClass'
|
|
|
import teacherList from './componentCourse/teacherList'
|
|
|
+import addCompound from './componentCourse/addCompound'
|
|
|
+import infoMsg from './componentCourse/infoMsg'
|
|
|
let nowTime = new Date();
|
|
|
nowTime =
|
|
|
nowTime.getFullYear() +
|
|
@@ -439,8 +456,8 @@ export default {
|
|
|
maskForm: {},
|
|
|
activeName: "first",
|
|
|
id: null,
|
|
|
- show: false
|
|
|
- // classList: []
|
|
|
+ show: false,
|
|
|
+ compoundList: []
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -450,7 +467,9 @@ export default {
|
|
|
studentWork,
|
|
|
courseEvaluate,
|
|
|
resetClass,
|
|
|
- teacherList
|
|
|
+ teacherList,
|
|
|
+ addCompound,
|
|
|
+ infoMsg
|
|
|
},
|
|
|
activated () {
|
|
|
this.init();
|
|
@@ -669,6 +688,33 @@ export default {
|
|
|
})
|
|
|
.catch(() => { });
|
|
|
},
|
|
|
+ addCompound (row) {
|
|
|
+ this.compoundList.push(row)
|
|
|
+ this.compoundList = [...new Set(this.compoundList)]
|
|
|
+ },
|
|
|
+ isAddCom (row) {
|
|
|
+ let flag = false
|
|
|
+ this.compoundList.forEach(com => {
|
|
|
+ if (com.id == row.id) {
|
|
|
+ flag = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ return flag
|
|
|
+ },
|
|
|
+ cancleCompound (row) {
|
|
|
+ let indexNum = null
|
|
|
+ this.compoundList.forEach((com, index) => {
|
|
|
+ if (com.id == row.id) {
|
|
|
+ indexNum = index
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (indexNum + '') {
|
|
|
+ this.compoundList.splice(indexNum, 1)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ clearCom () {
|
|
|
+ this.compoundList = []
|
|
|
+ }
|
|
|
|
|
|
},
|
|
|
filters: {
|