Przeglądaj źródła

Merge branch 'Nov16thResetMusic' into online

mo 4 lat temu
rodzic
commit
bd3bf5c1f4

+ 5 - 3
src/views/teamBuild/signupList.vue

@@ -1109,17 +1109,19 @@ export default {
       this.quitVisible = true;
       this.quitVisible = true;
     },
     },
     quieTeams (row) {
     quieTeams (row) {
-      this.$confirm("确定退团?", "提示", {
+      this.$prompt("请输入退团原因", "提示", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
+        inputPattern: /\S/,
+        inputErrorMessage: '请输入退团原因',
         type: "warning"
         type: "warning"
       })
       })
-        .then(() => {
+        .then((val) => {
           // 发请求 退团
           // 发请求 退团
           StudentQuit({
           StudentQuit({
             musicGroupId: this.id,
             musicGroupId: this.id,
             userId: row.studentId,
             userId: row.studentId,
-            reason: '',
+            reason: val.value,
             isRefundCourseFee: false,
             isRefundCourseFee: false,
             isRefundInstrumentFee: false,
             isRefundInstrumentFee: false,
             isRefundTeachingAssistantsFee: false
             isRefundTeachingAssistantsFee: false

+ 8 - 5
src/views/teamDetail/components/studentList.vue

@@ -925,7 +925,8 @@ export default {
   components: {
   components: {
     pagination,
     pagination,
     paymentCycle,
     paymentCycle,
-    createUserPay
+    createUserPay,
+    Tooltip
   },
   },
   created () {
   created () {
     // 判断是否带缓存参数
     // 判断是否带缓存参数
@@ -1378,17 +1379,19 @@ export default {
       this.quitVisible = true;
       this.quitVisible = true;
     },
     },
     quieTeam (row) {
     quieTeam (row) {
-      this.$confirm("确定退团?", "提示", {
+      this.$prompt("请输入退团原因", "提示", {
         confirmButtonText: "确定",
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         cancelButtonText: "取消",
-        type: "warning"
+        type: "warning",
+        inputPattern: /\S/,
+        inputErrorMessage: '请输入退团原因',
       })
       })
-        .then(() => {
+        .then((val) => {
           // 发请求 退团
           // 发请求 退团
           StudentQuit({
           StudentQuit({
             musicGroupId: this.teamid,
             musicGroupId: this.teamid,
             userId: row.userId,
             userId: row.userId,
-            reason: '',
+            reason: val.value,
             isRefundCourseFee: false,
             isRefundCourseFee: false,
             isRefundInstrumentFee: false,
             isRefundInstrumentFee: false,
             isRefundTeachingAssistantsFee: false
             isRefundTeachingAssistantsFee: false