浏览代码

1220 15:56

手误版本 千万不要提交
mo 5 年之前
父节点
当前提交
7d2360486f
共有 3 个文件被更改,包括 20 次插入4 次删除
  1. 17 1
      src/views/buildVip/index.vue
  2. 1 1
      src/views/teamBuild/teamSeting/components/setImprovement.vue
  3. 2 2
      vue.config.js

+ 17 - 1
src/views/buildVip/index.vue

@@ -408,6 +408,7 @@ export default {
         offlinePrice: '',
         allPrice: ''
       },
+      computationalBtn: false,
       subjectList: [], // 科目列表
       teacherList: [], // 老师列表
       courseTypeList: [], // 课程类型集合
@@ -570,6 +571,8 @@ export default {
     },
     // 选择活动方案
     chioseActive (val) {
+      this.rightForm.offlineCourse = '';
+      this.rightForm.onlineCourse = '';
       this.lookList = []
       this.timeTable = []
       this.attribute1 = '';
@@ -886,6 +889,7 @@ export default {
     },
     // 计算课酬
     computational () {
+      this.computationalBtn = true;
       let userId = this.leftForm.teacher || null;
       let giveTeachMode = this.centerForm.radio || null;
       let vipGroupCategoryId = this.leftForm.courseType || null;
@@ -923,6 +927,11 @@ export default {
       }
     },
     submitInfo () {
+      if (!this.computationalBtn) {
+        this.$message.error('请点击计算按钮计算课酬')
+        return
+      }
+      // 判断线上课课酬和线下课课酬
       let online = parseInt(this.centerForm.onlineCourseNum);
       let offline = parseInt(this.centerForm.offlineCourseNum);
 
@@ -1068,7 +1077,14 @@ export default {
 
       //subjectIdList
     }
-  },
+  }, watch: {
+    rightForm: {
+      handler (newName, oldName) {
+        this.computationalBtn = false
+      },
+      deep: true
+    }
+  }
 }
 </script>
 <style lang="scss" scoped>

+ 1 - 1
src/views/teamBuild/teamSeting/components/setImprovement.vue

@@ -183,7 +183,7 @@ export default {
         pushMessage({ musicGroupId: this.teamid }).then(res => {
           let result = res.data
           if (res.code == 200) {
-            this.$message.success('报名成功')
+            this.$message.success('开启成功')
           } else {
             this.$message.error(res.msg)
           }

+ 2 - 2
vue.config.js

@@ -18,8 +18,8 @@ const name = defaultSettings.title || '管乐迷后台管理系统' // page titl
 // //  https://online.dayaedu.com
 // let target = 'https://online.dayaedu.com' //线上
 // let target = 'http://testadm.dayaedu.com/' //勇哥迁库
-// let target = 'http://192.168.3.27:8000' // 箭河
-let target = 'http://192.168.3.28:8000' //邹璇
+let target = 'http://192.168.3.27:8000' // 箭河
+// let target = 'http://192.168.3.28:8000' //邹璇
 // let target = 'http://192.168.3.8:18000' //勇哥
 // let target = 'http://47.99.212.176:8000' // 测试服
 // let target = 'http://192.168.3.48:8080' // 乔