|
@@ -194,6 +194,15 @@
|
|
|
@click="signPostpone(scope.row)"
|
|
|
>顺延课程</el-button
|
|
|
>
|
|
|
+ <el-button
|
|
|
+ type="text"
|
|
|
+ v-if="
|
|
|
+ team_status == 'PROGRESS' &&
|
|
|
+ permission('classGroup/update')
|
|
|
+ "
|
|
|
+ @click="resetClassName(scope.row)"
|
|
|
+ >班级名称调整</el-button
|
|
|
+ >
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -263,7 +272,6 @@
|
|
|
title="老师调整"
|
|
|
width="750px"
|
|
|
:visible.sync="teacherVisible"
|
|
|
-
|
|
|
v-if="teacherVisible"
|
|
|
>
|
|
|
<changeTeacher
|
|
@@ -277,6 +285,20 @@
|
|
|
@close="teacherVisible = false"
|
|
|
/>
|
|
|
</el-dialog>
|
|
|
+ <!-- 修改班级名称 -->
|
|
|
+ <el-dialog
|
|
|
+ title="班级名称调整"
|
|
|
+ width="400px"
|
|
|
+ :visible.sync="classNameVisible"
|
|
|
+ v-if="classNameVisible"
|
|
|
+ >
|
|
|
+ <changeClassName
|
|
|
+ :classGroupId="activeClass"
|
|
|
+ :detail="classDetail"
|
|
|
+ @submited="submitedResetClassName"
|
|
|
+ @close="classNameVisible = false"
|
|
|
+ />
|
|
|
+ </el-dialog>
|
|
|
<!-- 学员选择 -->
|
|
|
<el-dialog
|
|
|
:title="isOnlyChangeUser ? '学员调整' : '新建班级'"
|
|
@@ -738,11 +760,12 @@ import selectStudent from "./modals/select-student";
|
|
|
import changeTeacher from "./modals/change-teacher";
|
|
|
import classroomSetting from "./modals/classroom-setting";
|
|
|
import studentResetView from "./modals/student-reset-view";
|
|
|
+import changeClassName from "./modals/class-resetclass-name.vue";
|
|
|
import qs from "qs";
|
|
|
import { permission } from "@/utils/directivePage";
|
|
|
import { getCourseType } from "@/utils/utils";
|
|
|
import { getSysTenantConfig } from "@/views/courseRulersManager/api";
|
|
|
-
|
|
|
+import {resetClassName} from '../api'
|
|
|
const formatClassGroupTeacherMapperList = (core, ass) => {
|
|
|
const list = [];
|
|
|
if (core) {
|
|
@@ -765,6 +788,7 @@ export default {
|
|
|
classroomSetting,
|
|
|
studentResetView,
|
|
|
changeTeacher,
|
|
|
+ changeClassName,
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -917,13 +941,14 @@ export default {
|
|
|
activeList: [],
|
|
|
courseViewType: "",
|
|
|
tenantId: null,
|
|
|
- isFirst:false
|
|
|
-
|
|
|
+ isFirst: false,
|
|
|
+ classDetail: null,
|
|
|
+ classNameVisible: false,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.init();
|
|
|
- this.getInstitutionRules()
|
|
|
+ this.getInstitutionRules();
|
|
|
},
|
|
|
// activated() {
|
|
|
// this.init();
|
|
@@ -937,9 +962,9 @@ export default {
|
|
|
async getInstitutionRules() {
|
|
|
try {
|
|
|
const res = await getSysTenantConfig({ group: "OFFLINE" });
|
|
|
- this.isFirst = Boolean(res.data[0].createOn)
|
|
|
- if(!this.isFirst){
|
|
|
- this.$bus.$emit("showguide", ['offline']);
|
|
|
+ this.isFirst = Boolean(res.data[0].createOn);
|
|
|
+ if (!this.isFirst) {
|
|
|
+ this.$bus.$emit("showguide", ["offline"]);
|
|
|
}
|
|
|
} catch (e) {
|
|
|
console.log(e);
|
|
@@ -1793,6 +1818,20 @@ export default {
|
|
|
console.log(e);
|
|
|
}
|
|
|
},
|
|
|
+ resetClassName(row) {
|
|
|
+ this.classDetail = row;
|
|
|
+ this.classNameVisible = true;
|
|
|
+ },
|
|
|
+ async submitedResetClassName(data) {
|
|
|
+ const obj = {...data};
|
|
|
+ resetClassName(obj).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success("修改成功");
|
|
|
+ this.classNameVisible = false;
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
watch: {
|