瀏覽代碼

Merge branch 'Nov16thResetMusic' into online

mo 4 年之前
父節點
當前提交
bd3bf5c1f4
共有 2 個文件被更改,包括 13 次插入8 次删除
  1. 5 3
      src/views/teamBuild/signupList.vue
  2. 8 5
      src/views/teamDetail/components/studentList.vue

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

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

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

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