Ver Fonte

18:56 2020/01/03

11
mo há 5 anos atrás
pai
commit
719eef8176

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/index.html


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/css/chunk-6df16071.5d2d6a34.css


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/app.3245f585.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-01623468.af37e7f0.js


Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/static/js/chunk-6df16071.ef68d8d1.js


+ 42 - 27
src/views/teamDetail/components/studentList.vue

@@ -492,7 +492,9 @@
     <el-dialog title="退团信息确认"
                width="640px"
                :visible.sync="quitVisible">
-      <el-form :model="quitForm">
+      <el-form :model="quitForm"
+               ref="quitForm"
+               :rules="quitRules">
         <el-form-item label="退还课程费用"
                       prop="isRefundCourseFee">
           <el-radio v-model="quitForm.isRefundCourseFee"
@@ -685,6 +687,11 @@ export default {
       },
       remark: '', // 退团原因
       classList: [],
+      quitRules: {
+        isRefundCourseFee: [{ required: true, message: '请选择是否退还课程费用' },],
+        isRefundInstrumentFee: [{ required: true, message: '选择是否退还乐器费用' },],
+        isRefundTeachingAssistantsFee: [{ required: true, message: '选择是否退还教辅费用' },],
+      },
       maskRules: {
         studentName: [{ required: true, message: '请输入学生姓名' },],
         sex: [{ required: true, message: '请选择学生姓名' },],
@@ -885,34 +892,42 @@ export default {
       })
     },
     chioseType () {
-      let row = this.activeRow;
-      /**
-       * quitForm: { // 退团信息确认
-        isRefundCourseFee: null,
-        isRefundInstrumentFee: null,
-        isRefundTeachingAssistantsFee: null,
-        reason: ''
-      },
-       * 
-       */
-      // 发请求 退团
-      StudentQuit({        musicGroupId: this.teamid, userId: row.userId,
-        reason: this.quitForm.reason,
-        isRefundCourseFee: this.quitForm.isRefundCourseFee,
-        isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
-        isRefundTeachingAssistantsFee: this.quitForm.isRefundTeachingAssistantsFee      }).then(res => {
-        this.quitForm = { // 退团信息确认
-          isRefundCourseFee: null,
-          isRefundInstrumentFee: null,
-          isRefundTeachingAssistantsFee: null,
-          reason: ''
-        }
-        if (res.code == 200) {
-          this.$message.success('退团成功')
-          this.getList();
-          this.quitVisible = false;
+      this.$refs['quitForm'].validate(res => {
+        if (res) {
+          this.$confirm('确定退团?', '提示', {
+            confirmButtonText: '确定',
+            cancelButtonText: '取消',
+            type: 'warning'
+          }).then(() => {
+            let row = this.activeRow;
+            // 发请求 退团
+            StudentQuit({              musicGroupId: this.teamid, userId: row.userId,
+              reason: this.quitForm.reason,
+              isRefundCourseFee: this.quitForm.isRefundCourseFee,
+              isRefundInstrumentFee: this.quitForm.isRefundInstrumentFee,
+              isRefundTeachingAssistantsFee: this.quitForm.isRefundTeachingAssistantsFee            }).then(res => {
+              this.quitForm = { // 退团信息确认
+                isRefundCourseFee: null,
+                isRefundInstrumentFee: null,
+                isRefundTeachingAssistantsFee: null,
+                reason: ''
+              }
+              if (res.code == 200) {
+                this.$message.success('退团成功')
+                this.getList();
+                this.quitVisible = false;
+              }
+            })
+
+          }).catch(() => {
+
+          });
+        } else {
         }
       })
+
+
+
       // row.typeVisible = false;
     },
     //

+ 2 - 2
vue.config.js

@@ -19,9 +19,9 @@ const name = defaultSettings.title || '管乐迷后台管理系统' // page titl
 // let target = 'https://online.dayaedu.com' //线上
 // let target = 'http://testadm.dayaedu.com/' //test环境
 // let target = 'http://192.168.3.27:8000' // 箭河
-let target = 'http://192.168.3.28:8000' //邹璇
+// let target = 'http://192.168.3.28:8000' //邹璇
 // let target = 'http://192.168.3.8:18000' //勇哥
-// let target = 'http://admin.dayaedu.com/' // 测试服
+let target = 'http://admin.dayaedu.com/' // 测试服
 // let target = 'http://192.168.3.48:8080' // 乔
 // All configuration item explanations can be find in https://cli.vuejs.org/config/
 module.exports = {

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff