mo 3 anos atrás
pai
commit
aafcf173fd

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/index.html


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/app.bd2018bc.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-113d417a.34408806.js


+ 4 - 0
dist/static/js/chunk-14f81e1c.636dc361.js

@@ -1,4 +1,8 @@
+<<<<<<< HEAD:dist/static/js/chunk-14f81e1c.636dc361.js
 (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-14f81e1c","chunk-e1e767e6","chunk-4e56be9c","chunk-584f76a2","chunk-4c5113fa","chunk-59c1227c","chunk-4a5f46a6","chunk-081a8b8e","chunk-171bdaae","chunk-6e855f0c","chunk-c8c7f280"],{"010e":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
+=======
+(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-14f81e1c","chunk-e1e767e6","chunk-bd334e84","chunk-584f76a2","chunk-4c5113fa","chunk-59c1227c","chunk-4a5f46a6","chunk-081a8b8e","chunk-171bdaae","chunk-6e855f0c","chunk-c8c7f280"],{"010e":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
+>>>>>>> 03/03GRADE:dist/static/js/chunk-14f81e1c.c5f604cd.js
 //! moment.js locale configuration
 var t=e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}});return t}))},"027d":function(e,t,a){},"02fb":function(e,t,a){(function(e,t){t(a("c1df"))})(0,(function(e){"use strict";
 //! moment.js locale configuration

Diferenças do arquivo suprimidas por serem muito extensas
+ 8 - 0
dist/static/js/chunk-14f81e1c.c5f604cd.js


Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-7356d038.884295f0.js


+ 2 - 1
src/constant/index.js

@@ -43,6 +43,7 @@ export const courseType = {
   DEMO: '试听课',
   PRACTICE: '网管课',
   COMM: '对外课',
+  MEMBER:'会员'
 }
 
 export const boolOptions = {
@@ -324,4 +325,4 @@ export const orderType = {
   REPLACEMENT: '乐器置换',
   ADD_STUDENT: '进行中乐团加学员',
   OTHER: "其他",
-}
+}

+ 4 - 4
src/views/accompanyManager/accompanyList.vue

@@ -22,7 +22,7 @@
       </div>
       <div
         class="newBand"
-        v-permission="'/buildVip'"
+        v-permission="'/newPractice'"
         @click="newPractice"
         style="width: 120px"
       >
@@ -248,9 +248,9 @@
           <el-table-column align="center" label="是否续费" fixed="right">
             <template slot-scope="scope">
               <div>
-                <p v-if="scope.row.buyMonths == 0">免费</p>
-                <p v-if="scope.row.buyMonths > 0">
-                  {{ scope.row.beRenewGroupId > 0 ? "续费" : "首充" }}
+                <p v-if="scope.row.type=='FREE'|| scope.row.type=='CARE_PACKAGE' || scope.row.type=='TRIAL' " >免费</p>
+                <p v-if="scope.row.type=='CHARGE'||scope.row.type=='COME_ON_PACKAGE'">
+                   {{ scope.row.beRenewGroupId > 0 ? "续费" : "首充" }}
                 </p>
               </div>
             </template>

+ 39 - 15
src/views/activityScheduling/activeMarketing.vue

@@ -1,10 +1,11 @@
 <template>
     <div class="m-container">
         <h2>
-            <div class="squrt"></div>营销活动列表
+            <div class="squrt"></div>营销活动
         </h2>
 
         <div class="m-core">
+            <el-button type="primary" class='newBand' @click="() => { operationType = 'create'; marketVisible = true }">添加营销活动</el-button>
             <save-form
                 ref="searchForm"
                 :inline="true"
@@ -21,15 +22,14 @@
                 </el-form-item>
                 <el-form-item prop="search">
                     <el-input
-                        v-model="searchForm.search"
+                        v-model="searchForm.activityIds"
                         clearable
-                        placeholder="活动方案编号"
+                        placeholder="关联活动方案"
                     />
                 </el-form-item>
                 <el-form-item>
                     <el-button native-type="submit" type="primary">搜索</el-button>
                     <el-button native-type="reset" type="danger">重置</el-button>
-                    <!-- <el-button @click="marketVisible = true">新建</el-button> -->
                 </el-form-item>
             </save-form>
 
@@ -38,7 +38,7 @@
                 :header-cell-style="{ background: '#EDEEF0', color: '#444' }"
                 :data="tableList"
             >
-                <el-table-column align="center" prop="id" label="营销活动编号">
+                <el-table-column align="center" prop="id" label="营销活动编号" width="200">
                     <template slot-scope="scope">
                         <div>
                         <copy-text>{{ scope.row.id }}</copy-text>
@@ -50,9 +50,9 @@
                         <copy-text>{{ scope.row.name }}</copy-text>
                     </template>
                 </el-table-column>
-                <el-table-column align="center" prop="type" label="关联活动方案">
+                <el-table-column align="center" prop="activityIds" label="关联活动方案">
                     <template slot-scope="scope">
-                        {{ scope.row.type | songUseTypeFormat }}
+                        {{ scope.row.activityIds }}
                     </template>
                 </el-table-column>
                 <el-table-column
@@ -62,9 +62,7 @@
                     fixed="right"
                 >
                     <template slot-scope="scope">
-                        <el-button
-                            type="text"
-                        >修改</el-button>
+                        <el-button type="text" @click="onUpdate(scope.row)">修改</el-button>
                     </template>
                 </el-table-column>
             </el-table>
@@ -79,12 +77,14 @@
         </div>
 
         <el-dialog
-            title="修改"
+            :title="(operationType == 'create' ? '添加' : '修改') + '营销活动'"
             :visible.sync="marketVisible"
             width="550px"
             v-if="marketVisible"
         >
             <market-form
+                :marketId="marketId"
+                :operationType="operationType"
                 @submited="FetchList"
                 @close="marketVisible = false"
             />
@@ -96,6 +96,7 @@
 import saveForm from "@/components/save-form";
 import pagination from "@/components/Pagination/index";
 import marketForm from './modals/market'
+import { marketActivityQueryPage } from './api'
 export default {
     components: {
         saveForm,
@@ -104,9 +105,12 @@ export default {
     },
     data() {
         return {
+            operationType: 'create',
             marketVisible: false,
+            marketId: null,
             searchForm: {
-                search: null
+                search: null,
+                activityIds: null
             },
             rules: {
                 // 分页规则
@@ -118,16 +122,36 @@ export default {
             tableList: [],
         }
     },
+    mounted() {
+        this.FetchList()
+    },
     methods: {
         search() {
-
+            this.rules.page = 1
+            this.FetchList()
         },
         onReSet() {
             this.$refs.searchForm.resetFields();
+            this.rules.page = 1
             this.FetchList();
         },
-        FetchList() {
-
+        async FetchList() {
+            try {
+                let res = await marketActivityQueryPage({
+                    ...this.searchForm,
+                    page: this.rules.page,
+                    rows: this.rules.limit
+                })
+                this.tableList = res.data.rows || []
+                this.rules.total = res.data.total
+            } catch {
+                //
+            }
+        },
+        onUpdate(row) {
+            this.marketId = row.id
+            this.operationType = 'update'
+            this.marketVisible = true
         }
     }
 }

+ 29 - 3
src/views/activityScheduling/api.js

@@ -1,9 +1,35 @@
-import request from '@/utils/request'
+import request from '@/utils/request2'
 
-export function getCountCloudTeacherList (data) {
+export function marketActivityAdd (data) {
     return request({
-        url: '/api-web/studentManage/countCloudTeacherActive',
+        url: '/api-web/marketActivity/add',
+        method: 'post',
+        data,
+        requestType: 'form'
+    })
+}
+
+export function marketActivityUpdate (data) {
+    return request({
+        url: '/api-web/marketActivity/update',
+        method: 'post',
+        data,
+        requestType: 'form'
+    })
+}
+
+export function marketActivityGet (data) {
+    return request({
+        url: '/api-web/marketActivity/get',
         method: 'get',
         params: data
     })
 }
+
+export function marketActivityQueryPage (data) {
+    return request({
+        url: '/api-web/marketActivity/queryPage',
+        method: 'get',
+        params: data
+    })
+}

+ 72 - 9
src/views/activityScheduling/modals/market.vue

@@ -1,25 +1,29 @@
 <template>
     <div>
-        <el-form ref="form" :model="form" label-width="100px">
+        <el-form ref="form" :model="form" label-width="120px">
             <el-form-item
                 prop="activeId"
                 label="营销活动编号"
+                v-if="type == 'update'"
             >
                 <el-input placeholder="请输入营销活动编号" disabled v-model="form.activeId"/>
             </el-form-item>
             <el-form-item
-                prop="activeName"
+                prop="name"
                 label="活动名称"
+                :rules="[{required: true, message: '请输入活动名称'}]"
             >
-                <el-input placeholder="请输入活动名称" disabled v-model="form.activeName"/>
+                <!-- :disabled="type == 'update'"  -->
+                <el-input placeholder="请输入活动名称" v-model="form.name"/>
             </el-form-item>
-            <el-form-item label="收费详情" prop="ids" :rules="[{required: true, message: '请输入收费详情'}]">
+            <el-form-item label="关联活动方案" prop="activityIds" :rules="[{required: true, message: '请输入关联活动方案'}]">
                 <el-input
                     type="textarea"
-                    v-model.trim="form.ids"
+                    v-model.trim="form.activityIds"
                     style="width: 100%"
                     maxlength="300"
                     :autosize="{ minRows: 5 }"
+                     placeholder="请输入关联活动方案(多个活动以英文“,”分割)"
                 ></el-input>
             </el-form-item>
 
@@ -32,19 +36,78 @@
 </template>
 
 <script>
+import { validUsername } from '@/utils/validate'
+import { marketActivityAdd, marketActivityUpdate, marketActivityGet } from '../api'
 export default {
+    props: {
+        operationType: {
+            type: String,
+            default: 'create'
+        },
+        marketId: {
+            type: Number || String,
+            default: null
+        }
+    },
     data() {
         return {
             form: {
-                activeId: '00001',
-                activeName: '活动名称',
-                ids: '13132,1445,12345,5643',
+                activeId: null,
+                name: null,
+                activityIds: null,
+            }
+        }
+    },
+    computed: {
+        type() {
+            return this.operationType
+        }
+    },
+    async mounted() {
+        console.log(this.type, this.marketId)
+        if(this.type == 'update' && this.marketId) {
+            try {
+                let res = await marketActivityGet({ id: this.marketId })
+                let result = res.data
+                this.form = {
+                    activeId: result.id,
+                    name: result.name,
+                    activityIds: result.activityIds
+                }
+
+            } catch {
+                //
             }
         }
     },
     methods: {
         submit() {
-            console.log('提交')
+            this.$refs.form.validate(async (valid) => {
+                console.log(valid)
+                if(!valid) return
+                try {
+                    let form = this.form
+                    if(this.type == 'create') {
+                        await marketActivityAdd({
+                            name: form.name,
+                            activityIds: form.activityIds
+                        })
+                        this.$message.success('添加营销活动成功')
+                    } else if(this.type == 'update') {
+                        console.log('join')
+                        await marketActivityUpdate({
+                            id: this.marketId,
+                            name: form.name,
+                            activityIds: form.activityIds
+                        })
+                        this.$message.success('修改营销活动成功')
+                    }
+                    this.$listeners.submited()
+                    this.$listeners.close()
+                } catch {
+                    //
+                }
+            })
         }
     }
 }

+ 51 - 27
src/views/buildVip/index.vue

@@ -213,7 +213,7 @@
               />
             </el-select>
           </el-form-item>
-          <el-form-item label="每课时长">
+          <el-form-item label="每课时长" prop="classTime">
             <el-select
               v-model.trim="leftForm.classTime"
               :disabled="timeTable.length > 0"
@@ -837,6 +837,13 @@ export default {
             trigger: "change",
           },
         ],
+        classTime: [
+          {
+            required: true,
+            message: "请选择报每课时长",
+            trigger: "change",
+          },
+        ],
       },
       id: "",
       studentList: [],
@@ -933,6 +940,8 @@ export default {
           this.teacherList = sotrage.teacherList;
           this.isMusicTheory = sotrage.isMusicTheory;
           this.chioseStudent = sotrage.chioseStudent;
+          this.maxCourseNum = sotrage.maxCourseNum;
+          this.minCourseNum = sotrage.minCourseNum;
           if (this.leftForm?.courseType) {
             this.changePrice(this.leftForm.courseType);
           }
@@ -956,6 +965,8 @@ export default {
           this.timeTable = sotrage.timeTable;
           this.educationList = sotrage.educationList;
           this.courseTypeList = sotrage.courseTypeList;
+          this.maxCourseNum = sotrage.maxCourseNum;
+          this.minCourseNum = sotrage.minCourseNum;
           // 为了刷新线上课单价和线下课单价
           await vipGroupCategory({
             organId: sotrage?.leftForm?.classOrganId,
@@ -1003,6 +1014,9 @@ export default {
       studentLimit: this.studentLimit,
       isMusicTheory: this.isMusicTheory,
       chioseStudent: this.chioseStudent,
+      maxCourseNum: this.maxCourseNum,
+      minCourseNum: this.minCourseNum,
+
       // computationalBtn:this.computationalBtn,
     };
     if (this.courseType == "PRACTICE") {
@@ -1076,6 +1090,7 @@ export default {
       this.chioseStudent = [];
       this.$refs["leftForm"].resetFields();
       localStorage.removeItem("newVip");
+      localStorage.removeItem(`newPractice`);
     },
     async init() {
       if (this.$route.query.rules) {
@@ -1206,7 +1221,11 @@ export default {
       }
       this.activeStudentList = [];
       this.studentList.forEach((stu) => {
-        if (this.chioseStudent.indexOf(stu.userId) != -1) {
+        if (
+          Array.isArray(this.chioseStudent)
+            ? this.chioseStudent.indexOf(stu.userId) != -1
+            : stu.userId == this.chioseStudent
+        ) {
           let discount = this.rightForm.discount
             ? this.rightForm.discount
             : 100;
@@ -1244,6 +1263,10 @@ export default {
       this.leftForm.courseEnd = "";
       this.hasOnline = true;
       this.hasOffline = true;
+      this.maxCourseNum = 0;
+      this.minCourseNum = 0;
+      this.rightForm.discount = 100;
+
       if (val) {
         for (let i in this.courseTypeList) {
           if (this.courseTypeList[i].id == this.leftForm.courseType) {
@@ -1284,31 +1307,27 @@ export default {
             // 存储课酬是否可配置
             this.salaryReadonlyFlag = this.activeList[i].salaryReadonlyFlag;
             this.paymentReadonlyFlag = this.activeList[i].paymentReadonlyFlag;
-            //  hasOnline: false, hasOffline: false 还需要判断type类型 根据活动id获取
-            if (this.activeList[i].salarySettlementJson) {
-              let obj = JSON.parse(this.activeList[i].salarySettlementJson);
-              if (obj && obj.onlineSalarySettlement) {
-                // 有线上课
-                this.hasOnline = true;
-                this.onlineSalary =
-                  obj.onlineSalarySettlement.salarySettlementType;
-                //  ('线上:' + this.onlineSalary)
-              } else {
-                this.hasOnline = false;
-              }
-              if (obj && obj.offlineSalarySettlement) {
-                // 有线下课
-                this.hasOffline = true;
-                this.offlineSalary =
-                  obj.offlineSalarySettlement.salarySettlementType;
-                //  ('线下:' + this.offlineSalary)
-              } else {
+            if (this.courseType == "PRACTICE") {
+              this.hasOffline = false;
+              this.hasOnline = true;
+            } else {
+              if (this.activeList[i].teachMode == 0) {
                 this.hasOffline = false;
+                // -1:所有;0:线上;1:线下"
+              }
+              if (this.activeList[i].teachMode == 1) {
+                this.hasOnline = false;
               }
             }
+
             this.activeStudentList = [];
+
             this.studentList.forEach((stu) => {
-              if (this.chioseStudent.indexOf(stu.userId) != -1) {
+              if (
+                Array.isArray(this.chioseStudent)
+                  ? this.chioseStudent.indexOf(stu.userId) != -1
+                  : stu.userId == this.chioseStudent
+              ) {
                 let discount = this.rightForm.discount
                   ? this.rightForm.discount
                   : 100;
@@ -1329,6 +1348,11 @@ export default {
             });
           }
         }
+      } else {
+        if (this.courseType == "PRACTICE") {
+          this.hasOffline = false;
+          this.hasOnline = true;
+        }
       }
       // 重置课程单价
     },
@@ -1788,7 +1812,7 @@ export default {
       if (this.courseType == "PRACTICE") {
         studentIdList = this.leftForm.students;
         obj.practiceGroupApplyBaseInfoDto = {
-            studentId: studentIdList, // 这个不要了
+          studentId: studentIdList, // 这个不要了
           vipGroupStudentCoursePrices: this.activeStudentList,
           coursesExpireDate: this.leftForm.courseEnd,
           teacherSchoolId: this.leftForm.section,
@@ -1807,16 +1831,17 @@ export default {
           onlineTeacherSalary: this.rightForm.onlineCourse || 0,
           offlineTeacherSalary: this.rightForm.offlineCourse || 0,
           giveTeachMode: this.centerForm.radio,
-          subjectIdList: this.leftForm.subject,
+          subjectId: this.leftForm.subject,
           educationalTeacherId: this.leftForm.educationalTeacherId,
           organId: this.leftForm.classOrganId,
           firstStudentId: this.leftForm.students[0] || null,
-          allCourseNum :online
-        }
+          allCourseNum: online,
+        };
       } else {
         studentIdList = this.leftForm.students.join(",") || null;
         obj.vipGroupApplyBaseInfo = {
           studentId: studentIdList, // 这个不要了
+          studentIdList,
           vipGroupStudentCoursePrices: this.activeStudentList,
           coursesExpireDate: this.leftForm.courseEnd,
           teacherSchoolId: this.leftForm.section,
@@ -1887,7 +1912,6 @@ export default {
           }
         });
       } else {
-        createPractice;
         // 新增
         createVip(obj).then((res) => {
           if (res.code == 200) {

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

@@ -234,7 +234,7 @@ export default {
           { required: false, message: "请选择课程时间", trigger: "blur" },
         ],
         studentMaxUsedTimes: [
-          { required: true, message: "请输入购买次数", trigger: "blur" },
+          { required: false, message: "请输入购买次数", trigger: "blur" },
         ],
         organ: [{ required: true, message: "请选择适用分部", trigger: "blur" }],
         stauts: [

+ 2 - 3
src/views/categroyManager/modals/payInfo.vue

@@ -49,7 +49,6 @@
               style="width: 400px"
               @visible-change="$forceUpdate()"
               clearable
-              multiple
               :disabled="isDisabled"
             >
               <el-option
@@ -393,7 +392,7 @@
           </el-input>
         </el-form-item>
       </el-row>
-      <el-row v-if="payForm.giveCourseType == 'MEMBER'">
+      <el-row v-if="payForm.giveCourseType == 'MEMBER'&&payForm.fullMinusCourseTimes">
         <el-form-item
           label="赠送会员名称"
           prop="giveMemberRankId"
@@ -421,7 +420,7 @@
         <el-form-item
           prop="givePeriod"
           label="赠送会员时长"
-          v-if="payForm.giveCourseType == 'MEMBER'"
+          v-if="payForm.giveCourseType == 'MEMBER'&&payForm.fullMinusCourseTimes"
           :rules="[
             { required: true, message: '请输入赠送会员时长', trigger: 'blur' },
           ]"

+ 61 - 27
src/views/categroyManager/vipActiveList.vue

@@ -2,7 +2,7 @@
   <div class="m-container">
     <h2>
       <div class="squrt"></div>
-      VIP活动管理
+      活动管理
     </h2>
 
     <div class="m-core">
@@ -18,7 +18,7 @@
         style="margin-bottom: 20px"
         v-permission="'export/vipGroupActivity'"
         @click="onExport"
-        >VIP活动导出</el-button
+        >活动导出</el-button
       >
       <save-form
         :inline="true"
@@ -109,25 +109,66 @@
               <copy-text>{{ scope.row.id }}</copy-text>
             </template>
           </el-table-column>
+          <el-table-column align="center" prop="name" label="活动名称">
+            <template slot-scope="scope">
+              <copy-text>{{ scope.row.name }}</copy-text>
+            </template>
+          </el-table-column>
+          <el-table-column
+            align="center"
+            prop="activityType"
+            label="活动类型"
+          >
+          <template slot-scope="scope">
+            <div>
+              {{scope.row.activityType?'会员活动':'课程活动'}}
+            </div>
+          </template>
+          </el-table-column>
           <el-table-column
             align="center"
             prop="type"
+            label="活动购买"
+          >
+          <template slot-scope="scope">
+            <div>
+              <p v-if="scope.row.activityType">会员</p>
+                <p v-else>{{scope.row.courseType |courseTypeFormat}}</p>
+            </div>
+          </template>
+          </el-table-column>
+          <!-- <el-table-column
+            align="center"
+            prop="type"
             :formatter="fommatterType"
-            label="活动类型"
-          ></el-table-column>
-          <el-table-column align="center" prop="name" label="活动名称">
+            label="是否赠送"
+          ></el-table-column> -->
+          <el-table-column
+            align="center"
+            prop="type"
+            label="赠送类型"
+          >
+          <template slot-scope="scope">
+            <div>
+              {{scope.row.giveCourseType | courseTypeFormat}}
+            </div>
+          </template>
+          </el-table-column>
+          <el-table-column align="center" width="150px" label="活动持续时间">
             <template slot-scope="scope">
-              <copy-text>{{ scope.row.name }}</copy-text>
+              <div>
+                <p>{{ scope.row.startTime }}</p>
+                <p>{{ scope.row.endTime }}</p>
+              </div>
             </template>
           </el-table-column>
-
-          <el-table-column
+          <!-- <el-table-column
             align="center"
             prop="vipGroupCategoryNames"
             label="适用课程形式"
-          ></el-table-column>
+          ></el-table-column> -->
 
-          <el-table-column
+          <!-- <el-table-column
             align="center"
             label="适用课时类型"
             :formatter="fommatterCourseType"
@@ -142,16 +183,16 @@
             align="center"
             label="使用学员"
             :formatter="formatStudentType"
-          ></el-table-column>
+          ></el-table-column> -->
 
-          <el-table-column label="结算标准">
+          <!-- <el-table-column label="结算标准">
             <template slot-scope="scope">
               <div>
                 <p>{{ scope.row.salarySettlementJson | onlineDesc }}</p>
                 <p>{{ scope.row.salarySettlementJson | unonlineDesc }}</p>
               </div>
             </template>
-          </el-table-column>
+          </el-table-column> -->
           <!-- <el-table-column align="center" label="结算说明">
             <template slot-scope="scope">
               <div>
@@ -162,26 +203,19 @@
           </el-table-column> -->
           <el-table-column
             align="center"
-            label="启用状态"
+            label="活动状态"
             prop="enable"
             :formatter="fommatterEnable"
           ></el-table-column>
-          <el-table-column align="center" width="150px" label="活动持续时间">
-            <template slot-scope="scope">
-              <div>
-                <p>{{ scope.row.startTime }}</p>
-                <p>{{ scope.row.endTime }}</p>
-              </div>
-            </template>
-          </el-table-column>
-          <el-table-column align="center" width="150px" label="课程安排时间">
+
+          <!-- <el-table-column align="center" width="150px" label="课程安排时间">
             <template slot-scope="scope">
               <div>
                 <p>{{ scope.row.coursesStartTime }}</p>
                 <p>{{ scope.row.coursesEndTime }}</p>
               </div>
             </template>
-          </el-table-column>
+          </el-table-column> -->
           <el-table-column align="center" label="操作">
             <template slot-scope="scope">
               <div>
@@ -193,7 +227,7 @@
                   >查看</el-button
                 >
                 <el-button
-                style="margin-left:0px"
+                  style="margin-left: 0px"
                   type="text"
                   v-permission="'vipGroupActivity/update'"
                   @click="reset(scope.row)"
@@ -564,8 +598,8 @@ export default {
         query: { id: row.id },
       });
     },
-    look(row){
-           this.$router.push({
+    look(row) {
+      this.$router.push({
         path: "/operateManager/vipNewActive?type=look",
         query: { id: row.id },
       });

+ 13 - 11
src/views/categroyManager/vipNewActive.vue

@@ -98,7 +98,7 @@ import {
 import cleanDeep from "clean-deep";
 const payBaseForm = {
   courseType: "",
-  vipGroupCategoryIdList: [],
+  vipGroupCategoryIdList: '',
   applyToStudentType: [],
   teachMode: null,
   allowOnlineToOffline: "",
@@ -193,11 +193,11 @@ export default {
       //   this.active--;
       //   console.log(this.active);
       // } else {
-        this.$store.dispatch("delVisitedViews", this.$route);
-        this.$router.push({
-          path: "/vipActiveManager/vipActiveList",
-          query: { rules: this.rules, searchForm: this.searchForm },
-        });
+      this.$store.dispatch("delVisitedViews", this.$route);
+      this.$router.push({
+        path: "/vipActiveManager/vipActiveList",
+        query: { rules: this.rules, searchForm: this.searchForm },
+      });
       // }
     },
     next() {
@@ -234,14 +234,14 @@ export default {
     changeCourseType(val) {
       // this.$emit("changeCourseType", val);
       if (val == "PRACTICE") {
-        this.$set(this.payForm, "vipGroupCategoryIdList", []);
+        this.$set(this.payForm, "vipGroupCategoryIdList", '');
         this.$set(this.payForm, "teachMode", "");
         this.$set(this.payForm, "singleCourseTime", 25);
         this.$set(this.payForm, "allowOnlineToOffline", []);
       } else {
         this.$set(this.payForm, "singleCourseTime", 45);
         this.$set(this.payForm, "allowOnlineToOffline", []);
-        this.$set(this.payForm, "vipGroupCategoryIdList", []);
+        this.$set(this.payForm, "vipGroupCategoryIdList", '');
         this.$set(this.payForm, "teachMode", "");
       }
       // vip
@@ -291,15 +291,15 @@ export default {
         endTime = this.baseForm.activeTime[1];
       }
       let organId = this.baseForm.organ.join(",");
-
+      this.baseForm.studentMaxUsedTimes?this.baseForm.studentMaxUsedTimes:this.baseForm.studentMaxUsedTimes=-1
       for (let item in this.salaryForm) {
         if (this.salaryForm[item].salarySettlementType == "TEACHER_DEFAULT") {
           this.salaryForm[item].settlementValue = null;
         }
       }
       let applyToStudentType = this.baseForm.applyToStudentType.join(",");
-      let vipGroupCategoryIdList =
-        this.payForm.vipGroupCategoryIdList.join(",");
+      // let vipGroupCategoryIdList =
+      //   this.payForm.vipGroupCategoryIdList.join(",");
       let vipGroupSalarySettlement = this.salaryForm;
       let obj = {
         ...this.baseForm,
@@ -325,6 +325,8 @@ export default {
                 }),
               });
             } else {
+              localStorage.removeItem("newVip");
+              localStorage.removeItem(`newPractice`);
               this.$message.success("活动修改成功");
               this.$store.dispatch("delVisitedViews", this.$route);
               this.$router.push({

+ 2 - 2
vue.config.js

@@ -17,10 +17,10 @@ const name = defaultSettings.title || '管乐迷后台管理系统' // page titl
 // //  https://online.dayaedu.com
 // let target = 'https://online.dayaedu.com' //线上
 // let target = 'http://192.168.3.139:8000' // 箭河
-let target = 'http://192.168.3.124:8000' //邹璇
+// let target = 'http://192.168.3.124:8000' //邹璇
 // let target = 'http://192.168.3.112:8000' //勇哥
 // let target = 'http://dev.dayaedu.com' // 开发环境
-// let target = 'https://test.dayaedu.com' //测试环境
+let target = 'https://test.dayaedu.com' //测试环境
 // let target = 'http://192.168.3.134:8000' // 乔
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff