|
@@ -35,7 +35,8 @@
|
|
|
|
|
|
</el-collapse-item>
|
|
|
</el-collapse>
|
|
|
- <courseItem v-if="activeRow" :surplustime="form.courseConvertSum.courseMinute" :activeType="'HIGH_ONLINE'" :teacherList="teacherList" :cooperationList="teacherList" :coreid="activeRow.coreTeacher" :type='"HIGH_ONLINE"'/>
|
|
|
+ <courseItem v-if="activeRow" :surplustime="form.courseConvertSum.courseMinute" :activeType="'HIGH_ONLINE'" :teacherList="teacherList" :cooperationList="teacherList" :coreid="activeRow.coreTeacher" :type='"HIGH_ONLINE"' :prices="prices"
|
|
|
+ :holidays="holidays"/>
|
|
|
</div>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button @click="transClassVisible = false">取 消</el-button>
|
|
@@ -47,6 +48,8 @@
|
|
|
<script>
|
|
|
import tranCourseItem from "./tranCourseItem";
|
|
|
import courseItem from '../modals/classroom-setting-item.vue'
|
|
|
+import { getSysTenantConfig } from "@/views/courseRulersManager/api";
|
|
|
+import { queryByOrganIdAndCourseType } from "@/views/resetTeaming/api";
|
|
|
export default {
|
|
|
props: ["form",'teacherList'],
|
|
|
components: {
|
|
@@ -57,14 +60,51 @@ export default {
|
|
|
return {
|
|
|
transPlanVisible: false,
|
|
|
activeNames: [],
|
|
|
- activeRow:null
|
|
|
+ activeRow:null,
|
|
|
+ prices:[],
|
|
|
+ holidays:[]
|
|
|
};
|
|
|
},
|
|
|
mounted() {},
|
|
|
methods: {
|
|
|
async openDialog() {
|
|
|
// 获取列表
|
|
|
+ this.init()
|
|
|
this.transPlanVisible = true;
|
|
|
+
|
|
|
+ },
|
|
|
+ async init() {
|
|
|
+ try {
|
|
|
+ await MusicStore.dispatch("getBaseInfo", {
|
|
|
+ data: { musicGroupId: this.musicGroupId },
|
|
|
+ });
|
|
|
+ const res = await queryByOrganIdAndCourseType({
|
|
|
+ organId: this.musicGroup.organId,
|
|
|
+ });
|
|
|
+ const res1 = await getSysTenantConfig({
|
|
|
+ group: "holiday",
|
|
|
+ });
|
|
|
+
|
|
|
+ this.holidays = JSON.parse(
|
|
|
+ res1.data[0].paranValue ? res1.data[0].paranValue : "[]"
|
|
|
+ );
|
|
|
+ this.prices = res.data;
|
|
|
+ let arr = [];
|
|
|
+ if (JSON.stringify(this.prices) == "{}") {
|
|
|
+ // 课程时长
|
|
|
+ arr.push("teamCourseTimer");
|
|
|
+ }
|
|
|
+ if (this.holidays.length <= 0) {
|
|
|
+ arr.push("holiday");
|
|
|
+ }
|
|
|
+ //
|
|
|
+ if (arr.length > 0) {
|
|
|
+ this.$bus.$emit("showguide", arr);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ } catch (error) {
|
|
|
+ console.log(error);
|
|
|
+ }
|
|
|
},
|
|
|
gotoNext() {},
|
|
|
gotoPlan(item){
|