|
@@ -689,6 +689,7 @@ import axios from "axios";
|
|
|
import { getToken, getTenantId } from "@/utils/auth";
|
|
|
import { diffTimerFormMinute, addTimerFormMinute } from "@/utils/date";
|
|
|
import { queryOrganStudentList } from "@/api/studentManager";
|
|
|
+import { getSysTenantConfig } from "@/views/courseRulersManager/api";
|
|
|
import merge from "webpack-merge";
|
|
|
import dayjs from "dayjs";
|
|
|
export default {
|
|
@@ -876,6 +877,7 @@ export default {
|
|
|
chioseStudent: [],
|
|
|
classTimeDis: false,
|
|
|
studentRuleNum:0,
|
|
|
+ isFirst:false
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -1151,6 +1153,18 @@ export default {
|
|
|
this.pickerOptions = this.beginDate();
|
|
|
this.pickerOptions1 = this.processDate();
|
|
|
this.courseOption = this.coursesDate();
|
|
|
+ this.getInstitutionRules()
|
|
|
+ },
|
|
|
+ async getInstitutionRules() {
|
|
|
+ try {
|
|
|
+ const res = await getSysTenantConfig({ group: "OFFLINE" });
|
|
|
+ this.isFirst = Boolean(res.data[0].createOn)
|
|
|
+ if(!this.isFirst){
|
|
|
+ this.$bus.$emit("showguide", ['offline']);
|
|
|
+ }
|
|
|
+ } catch (e) {
|
|
|
+ console.log(e);
|
|
|
+ }
|
|
|
},
|
|
|
onCourseNumChange(type) {
|
|
|
// 折扣类型,并且设置的排课数有值
|