Ver código fonte

退团加提示

11
mo 4 anos atrás
pai
commit
f70fe175f1

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

@@ -1110,17 +1110,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

@@ -865,7 +865,8 @@ export default {
     };
   },
   components: {
-    pagination
+    pagination,
+    Tooltip
   },
   created () {
     // 判断是否带缓存参数
@@ -1295,17 +1296,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