Browse Source

提交测试

1
mo 3 years ago
parent
commit
006779e93a

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-0afbf09e.b50ec774.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-3caea999.69bb9c6b.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-67b6fcdd.57634e13.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.b0f84936.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-0afbf09e.215b7c86.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-3caea999.67508d2c.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-562eb0b0.a41319fd.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-67b6fcdd.152afd2f.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-76c878a0.55a2fe43.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-a7452e0a.c3581569.js


+ 1 - 1
src/utils/request.js

@@ -117,7 +117,7 @@ service.interceptors.response.use(
       if (data.code == 404) {
         router.push('/404')
       }
-      if (data.code < 200||data.code >= 300) {
+      if (data.code < 200&&data.code != 100||data.code >= 300&&data.code != 100) {
         // Message({
         //   message: data.msg || `请求失败code码为${ data.code }`,
         //   type: 'error',

+ 1 - 1
src/utils/request2.js

@@ -123,7 +123,7 @@ service.interceptors.response.use(
       if (data.code == 404) {
         router.push('/404')
       }
-      if (data.code < 200||data.code >= 300) {
+      if (data.code < 200&&data.code != 100||data.code >= 300&&data.code != 100) {
         // Message({
         //   message: data.msg || `请求失败code码为${ data.code }`,
         //   type: 'error',

+ 34 - 13
src/views/teamBuild/signupList.vue

@@ -607,7 +607,10 @@
               </auth>
               <!--  -->
               <auth
-                v-show="scope.row.payingStatus == 2 && scope.row.noneNeedCloudTeacher == 0"
+                v-show="
+                  scope.row.payingStatus == 2 &&
+                  scope.row.noneNeedCloudTeacher == 0
+                "
                 :auths="'studentRegistration/setNoneCloudTeacher'"
               >
                 <el-button type="text" @click="relieve(scope.row)"
@@ -794,7 +797,7 @@
       width="640px"
       :visible.sync="quitVisible"
     >
-       <quiteTeam :quitForm="quitForm" :activeRow="activeRow"  ref="quitForm"/>
+      <quiteTeam :quitForm="quitForm" :activeRow="activeRow" ref="quitForm" />
       <span slot="footer" class="dialog-footer question">
         <div>
           <el-popover placement="right" width="500" trigger="click">
@@ -890,7 +893,7 @@ import { permission } from "@/utils/directivePage";
 import cleanDeep from "clean-deep";
 import changeVoice from "./modals/change-voice";
 import visit from "@/views/withdrawal-application/modals/visit";
-import quiteTeam from "@/views/teamDetail/components/modals/quite-team"
+import quiteTeam from "@/views/teamDetail/components/modals/quite-team";
 export default {
   name: "signupList",
   components: {
@@ -901,7 +904,7 @@ export default {
     forecastList,
     visit,
     newForecastList,
-    quiteTeam
+    quiteTeam,
   },
   data() {
     return {
@@ -936,7 +939,7 @@ export default {
         isMaintenanceFee: null,
         cloudTeacherAmount: null,
         isCloudTeacherAmount: null,
-        isRefundMemberFee:null,
+        isRefundMemberFee: null,
         maintenanceFee: 0,
         reason: "",
       },
@@ -1565,7 +1568,7 @@ export default {
             isRefundCourseFee: false,
             isRefundInstrumentFee: false,
             isRefundTeachingAssistantsFee: false,
-            isRefundMemberFee:false,
+            isRefundMemberFee: false,
           }).then((res) => {
             this.quitForm = {
               // 退团信息确认
@@ -1606,7 +1609,7 @@ export default {
                 isRefundTeachingAssistantsFee:
                   this.quitForm.isRefundTeachingAssistantsFee,
                 maintenanceFee: this.quitForm.maintenanceFee,
-                isRefundMemberFee:this.quitForm.isRefundMemberFee,
+                isRefundMemberFee: this.quitForm.isRefundMemberFee,
               };
               // 退还乐器练习云教练费用
               if (this.quitForm.isRefundMemberFee) {
@@ -1733,10 +1736,28 @@ export default {
       }).then(async () => {
         try {
           const res = await setNoneCloudTeacher({ id: row.id });
-          this.$message.success("解除预约成功");
-          this.getList();
+          console.log('code',res.code)
+          if (res.code == 200) {
+            this.$message.success("解除预约成功");
+            this.getList();
+          } else if (res.code == 100) {
+            this.$confirm(res.msg, "提示", {
+              confirmButtonText: "确定",
+              cancelButtonText: "取消",
+              type: "warning",
+            }).then(async (some) => {
+              const res = await setNoneCloudTeacher({
+                id: row.id,
+                isContinue: true,
+              });
+              if (res.code == 200) {
+                this.$message.success("解除预约成功");
+                this.getList();
+              }
+            });
+          }
         } catch (e) {
-          console.log(e);
+          console.log('错误',e);
         }
       });
     },
@@ -1761,7 +1782,7 @@ export default {
       this.search();
     },
     getpayingNum(row) {
-            this.rules.page = 1;
+      this.rules.page = 1;
       this.rules.limit = 10;
       this.searchFrom = {
         name: null,
@@ -1779,7 +1800,7 @@ export default {
       this.search();
     },
     getpayNum(row) {
-            this.rules.page = 1;
+      this.rules.page = 1;
       this.rules.limit = 10;
       this.searchFrom = {
         name: null,
@@ -1849,7 +1870,7 @@ export default {
           isCloudTeacherAmount: null,
           maintenanceFee: 0,
           reason: "",
-          isRefundMemberFee:null
+          isRefundMemberFee: null,
         };
         this.$refs["quitForm"].$refs["quitForm"].resetFields();
       }

Some files were not shown because too many files changed in this diff