Browse Source

修改活动

1
mo 3 năm trước cách đây
mục cha
commit
885cfde0e5

+ 14 - 0
src/views/buildVip/index.vue

@@ -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) {
       // 折扣类型,并且设置的排课数有值

+ 1 - 1
src/views/categroyManager/modals/salaryInfo.vue

@@ -187,7 +187,7 @@
           </el-input>
         </el-form-item>
       </el-row> -->
-      <el-row >
+      <el-row v-if="payForm.giveCourseType == 'VIP'">
         <el-form-item
           label="赠送VIP课课酬"
           prop="giveVipOfflineSalarySettlement.salarySettlementType"

+ 8 - 2
src/views/teamBuild/components/teamBaseInfo.vue

@@ -224,7 +224,7 @@
 
           </el-select>
         </el-form-item> -->
-        <el-form-item label="机构类型" prop="ownershipType">
+        <el-form-item label="机构类型" prop="ownershipType" v-if="tenantId ==1">
           <el-select
             v-model.trim="topFrom.ownershipType"
             :disabled="basdisabled"
@@ -527,7 +527,7 @@ export default {
       codeStatus: false,
       qrCodeUrl: null,
       codeTitle: null,
-      teamid: "",
+      tenantId: "",
     };
   },
   created() {},
@@ -665,6 +665,7 @@ export default {
       }
       this.teamStatus = this.$route.query.type;
       this.team_status = this.$route.query.team_status;
+      this.tenantId = this.$helpers.tenantId
       // if (this.teamStatus == "newTeam") {
       //   this.$store.dispatch("buildIndex", 0);
       // }
@@ -756,6 +757,11 @@ export default {
           let arr = [];
           if (this.sectionList.length <= 0) {
             arr.push("organ");
+          }else{
+            if(!this.topFrom.section){
+               this.$set(this.topFrom,'section',this.sectionList[0].id)
+            }
+
           }
           if (this.typeList.length <= 0) {
             arr.push("teamPayType");