Browse Source

1,错误码前面加空格
2.课程详情里加了code非0后,清掉table

duanchangpeng 5 năm trước cách đây
mục cha
commit
dab72d0e27
45 tập tin đã thay đổi với 527 bổ sung520 xóa
  1. 3 3
      app/src/page/appoint.vue
  2. 2 2
      app/src/page/record.vue
  3. 1 1
      app/src/page/test.vue
  4. 3 3
      pc/src/components/Headside.vue
  5. 3 3
      pc/src/components/Navside.vue
  6. 7 7
      pc/src/views/AcrossVip.vue
  7. 7 7
      pc/src/views/AdminManage.vue
  8. 1 1
      pc/src/views/AdminSetting.vue
  9. 1 1
      pc/src/views/Basic.vue
  10. 6 6
      pc/src/views/EditLessonManage.vue
  11. 6 6
      pc/src/views/EditLessonTable.vue
  12. 1 1
      pc/src/views/EditLessonTable2.vue
  13. 10 10
      pc/src/views/Equip.vue
  14. 8 8
      pc/src/views/Lesson.vue
  15. 7 7
      pc/src/views/LessonTable.vue
  16. 3 3
      pc/src/views/Log.vue
  17. 2 2
      pc/src/views/Login.vue
  18. 7 7
      pc/src/views/Main.vue
  19. 13 13
      pc/src/views/Member.vue
  20. 2 2
      pc/src/views/Pwd.vue
  21. 4 4
      pc/src/views/ShopManage.vue
  22. 19 19
      pc/src/views/appoint.vue
  23. 1 1
      pc/src/views/bindRecord.vue
  24. 277 270
      pc/src/views/classInfoDetail.vue
  25. 7 7
      pc/src/views/coach.vue
  26. 11 11
      pc/src/views/cost.vue
  27. 16 16
      pc/src/views/courseEdit.vue
  28. 8 8
      pc/src/views/courses.vue
  29. 6 6
      pc/src/views/coursesHistory.vue
  30. 2 2
      pc/src/views/finish.vue
  31. 9 9
      pc/src/views/finishDetail.vue
  32. 11 11
      pc/src/views/heartEquip.vue
  33. 12 12
      pc/src/views/heartEquipPerson.vue
  34. 7 7
      pc/src/views/heartLog.vue
  35. 8 8
      pc/src/views/lessonManage.vue
  36. 2 2
      pc/src/views/record.vue
  37. 11 11
      pc/src/views/region.vue
  38. 1 1
      pc/src/views/region2.vue
  39. 3 3
      pc/src/views/regionEquip.vue
  40. 7 7
      pc/src/views/relevancePhone.vue
  41. 2 2
      pc/src/views/setting.vue
  42. 4 4
      pc/src/views/tempUser.vue
  43. 2 2
      tv/src/views/Main.vue
  44. 2 2
      tv/src/views/pk.vue
  45. 2 2
      tv/src/views/threepk.vue

+ 3 - 3
app/src/page/appoint.vue

@@ -216,7 +216,7 @@
                         that.alertInfo('已成功预约', 'success');
                         that.getList();
                     } else {
-                        that.alertInfo(json.Memo + ',错误码:' + json.Code);
+                        that.alertInfo(json.Memo + ', 错误码:' + json.Code);
                     }
                 })
             },
@@ -252,7 +252,7 @@
                                 that.alertInfo('当前课程已取消预约', 'success');
                                 that.getList();
                             } else {
-                                that.alertInfo(json.Memo + ',错误码:' + json.Code);
+                                that.alertInfo(json.Memo + ', 错误码:' + json.Code);
                             }
                         })
                     } else {
@@ -286,7 +286,7 @@
                             })
                         }
                     } else {
-                        that.alertInfo(json.Memo + ',错误码:' + json.Code);
+                        that.alertInfo(json.Memo + ', 错误码:' + json.Code);
                     }
                 })
             },

+ 2 - 2
app/src/page/record.vue

@@ -151,7 +151,7 @@ export default {
               that.alertInfo('当前课程已取消预约', 'success');
               that.getList();
             } else {
-              that.alertInfo(json.Memo + ',错误码:' + json.Code);
+              that.alertInfo(json.Memo + ', 错误码:' + json.Code);
             }
           })
         } else {
@@ -179,7 +179,7 @@ export default {
               that.num = 0
             }
           } else {
-            that.alertInfo(json.Memo + ',错误码:' + json.Code);
+            that.alertInfo(json.Memo + ', 错误码:' + json.Code);
           }
         });
       }

+ 1 - 1
app/src/page/test.vue

@@ -61,7 +61,7 @@
                     if (json.Code == 0) {
                         that.list =  that.list.concat(json.Rs);
                     } else {
-                        that.Toast(json.Memo + ',错误码:' + json.Code);
+                        that.Toast(json.Memo + ', 错误码:' + json.Code);
                     }
                 })
             },

+ 3 - 3
pc/src/components/Headside.vue

@@ -92,11 +92,11 @@
                         localStorage.ServiceKey = json.Rs.Shop.ServiceKey;
                     } else {
                         if(json.Code == 1010){
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                             that.$router.push({path: '/login', query: {status: 1}});
                             return false
                         }else{
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     }
                 })
@@ -151,7 +151,7 @@
                                 type: 'success'
                             });
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {

+ 3 - 3
pc/src/components/Navside.vue

@@ -99,11 +99,11 @@
                         this.panelSelect(json.Rs.ShopId);
                     } else {
                         if (json.Code == 1010) {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                             that.$router.push({path: '/login', query: {status: 1}});
                             return false
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     }
                 })
@@ -124,7 +124,7 @@
                             }
                         })
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 7 - 7
pc/src/views/AcrossVip.vue

@@ -304,7 +304,7 @@
                         that.form.vipList = '';
                         that.form.vipList = turnResToOptionBySimViper(json.Rs);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -319,7 +319,7 @@
                     if (json.Code == 0) {
                         that.form.groupList = turnResToOptionByGroup(json.Rs);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -373,9 +373,9 @@
                             that.dialogMemberVisible = false;
                             // 重载列表
                             that.getTableQuery();
-                            that.$message.warning(json.Memo + '错误码:' + json.Code);
+                            that.$message.warning(json.Memo + ' 错误码:' + json.Code);
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     }
                 })
@@ -409,7 +409,7 @@
                         that.form.shopOptions = turnShopResToOption(json.Rs);
                         that.form.shopOptions.unshift({value: '', label: "全部"});
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -445,7 +445,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -502,7 +502,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 7 - 7
pc/src/views/AdminManage.vue

@@ -299,7 +299,7 @@ export default {
           that.panel.options = turnShopResToOption(json.Rs);
           that.panel.options.unshift({value: '', label: "全部"});
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -378,7 +378,7 @@ export default {
           // 重载列表
           that.getTableQuery();
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -454,7 +454,7 @@ export default {
           // 重载列表
           that.getTableQuery();
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -477,7 +477,7 @@ export default {
           that.form.shopId = json.Rs[0].ShopID;
           that.panel.options.unshift({value: '', label: "全部"});
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -513,7 +513,7 @@ export default {
             // 重载列表
             that.getTableQuery();
           } else {
-            that.$message.error(json.Memo + '错误码:' + json.Code);
+            that.$message.error(json.Memo + ' 错误码:' + json.Code);
           }
         });
       }).catch(() => {
@@ -542,7 +542,7 @@ export default {
           // 重载列表
           that.getTableQuery();
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -635,7 +635,7 @@ export default {
           // 设置分页数据
           that.setPaginations();
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },

+ 1 - 1
pc/src/views/AdminSetting.vue

@@ -115,7 +115,7 @@
                         // 重载列表
                         that.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 1 - 1
pc/src/views/Basic.vue

@@ -74,7 +74,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 6 - 6
pc/src/views/EditLessonManage.vue

@@ -324,7 +324,7 @@
                         that.panel.options = turnClassResToOption(json.Rs)
                         console.log(that.panel.options);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -345,7 +345,7 @@
                         // row.WxOrder = json.Rs.WxOrder; //不支持联动
                         row.WxVisible = json.Rs.WxVisible;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -379,7 +379,7 @@
                         let curIndex = parseInt(this.activeName) - 1;
                         this.tabs[curIndex].tableData.splice(delIndex, 1)
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -427,7 +427,7 @@
                         // 提交课程内容
                         that.EditLessonTable(json.Id);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -489,7 +489,7 @@
                         });
                         // 提交后清掉内存里的课表
                         this.clearTableRAM();
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -631,7 +631,7 @@
                             that.recordsTotal = 0;
                         }
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 6 - 6
pc/src/views/EditLessonTable.vue

@@ -276,7 +276,7 @@
                         if (json.Rs == null) return false
                         that.panel.options = turnClassResToOption(json.Rs)
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -295,7 +295,7 @@
                         row.TopLimit = json.Rs.TopLimit;
                         row.ConsumeHour = json.Rs.ConsumeHour;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -341,7 +341,7 @@
                         // 提交课程内容
                         that.EditLessonTable(id);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -381,7 +381,7 @@
                         // 提交课程内容
                         that.EditLessonTable(json.Id);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -463,7 +463,7 @@
                         // });
                         // 提交后清掉内存里的课表
                         // this.clearTableRAM();
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -599,7 +599,7 @@
                             that.recordsTotal = 0;
                         }
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 1 - 1
pc/src/views/EditLessonTable2.vue

@@ -220,7 +220,7 @@
                         that.setPaginations();
 
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 10 - 10
pc/src/views/Equip.vue

@@ -372,7 +372,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -393,7 +393,7 @@
                         that.panel.regionidOptions = json.Rs;
                         that.panel.regionidOptions.unshift({Id: 0, Name: "全部", DisplayName: "全部"});
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -410,7 +410,7 @@
                         that.dialog.regionlevelOneIdOptions = json.Rs;
                         that.dialog.regionId = json.Rs[0].Id;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -439,7 +439,7 @@
                             }
                         }
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -572,7 +572,7 @@
                             that.getTableQuery();
                             that.dialog_state = false;
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -640,7 +640,7 @@
                             that.dialog.CoordsId = 0;
                         }
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -745,7 +745,7 @@
                         that.dialog_state = false;
 
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 });
             },
@@ -809,7 +809,7 @@
                         that.dialog_state = false;
 
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 });
             },
@@ -833,7 +833,7 @@
                         // table 重载
                         that.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -868,7 +868,7 @@
                     if (json.Code == 0) {
                         that.dialog.plateImgSrc = json.EncodeString;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 8 - 8
pc/src/views/Lesson.vue

@@ -380,7 +380,7 @@
                         that.dialogVisible = false;
                         that.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -433,7 +433,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -485,7 +485,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -524,7 +524,7 @@
                         // 重载列表
                         that.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -559,7 +559,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -587,7 +587,7 @@
                         // that.dialogdata = json.Rs;
                         that.form.dialogdata = turnResToOption(json.Rs)
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -612,7 +612,7 @@
                         // 重载列表
                         that.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -716,7 +716,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 7 - 7
pc/src/views/LessonTable.vue

@@ -235,7 +235,7 @@
                         that.previewDate.SttPlanPreviewClassList.sort((a, b) => a.ClassIndex - b.ClassIndex);//升序
                         that.previewShow = true;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -268,7 +268,7 @@
                         // 重载列表
                         // that.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -311,7 +311,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -369,7 +369,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 // }).catch(() => {
@@ -417,7 +417,7 @@
                         that.getTableQuery();
                         this.dialogVisible = false;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 });
             },
@@ -441,7 +441,7 @@
                         // 重载列表
                         that.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 });
             },
@@ -483,7 +483,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 3 - 3
pc/src/views/Log.vue

@@ -223,7 +223,7 @@ export default {
           that.panel.shopOptions = turnShopResToOption(json.Rs);
           that.panel.shopOptions.unshift({value: '', label: "全部"});
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -243,7 +243,7 @@ export default {
           that.panel.options.unshift({value: '', label: "全部"});
           console.log(that.panel.options);
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -316,7 +316,7 @@ export default {
           // 设置分页数据
           that.setPaginations();
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },

+ 2 - 2
pc/src/views/Login.vue

@@ -151,11 +151,11 @@ export default {
           }
         } else {
           if (json.Code == 1010) {
-            that.$message.error(json.Memo + '错误码:' + json.Code);
+            that.$message.error(json.Memo + ' 错误码:' + json.Code);
             that.$router.push({path: '/login', query: {status: 1}});
             return false
           }
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },

+ 7 - 7
pc/src/views/Main.vue

@@ -301,11 +301,11 @@
                         that.CountAdd = json.Rs.CountAdd;
                     } else {
                         if (json.Code == 1010) {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                             that.$router.push({path: '/login', query: {status: 1}});
                             return false
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     }
                 })
@@ -323,7 +323,7 @@
                         that.ClassNum = json.Rs.ClassNum;
                         that.TodayOrderSttNum = json.Rs.TodayOrderSttNum;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -344,7 +344,7 @@
                             that.YestodayOrderNum = json.Rs.YestodayOrderNum;
                         }
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -384,7 +384,7 @@
                         that.loading = false;
                         that.classList = json.Rs;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -404,7 +404,7 @@
                             that.PreFinishList = json.Rs;
                         }
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -444,7 +444,7 @@
                             that.appointList = json.Rs;
                         }
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             }

+ 13 - 13
pc/src/views/Member.vue

@@ -665,7 +665,7 @@
                             console.log('null');
                         }
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -691,7 +691,7 @@
                         // 读取列表
                         this.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -745,7 +745,7 @@
                             // table 重载
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -780,7 +780,7 @@
                             // table 重载
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -956,7 +956,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -1031,7 +1031,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -1059,7 +1059,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -1086,7 +1086,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -1113,7 +1113,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -1142,7 +1142,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -1164,7 +1164,7 @@
                         if (json.Rs == null) return false
                         that.form.dialogdata = turnClassResToOption(json.Rs);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -1209,7 +1209,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -1283,7 +1283,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 2 - 2
pc/src/views/Pwd.vue

@@ -111,7 +111,7 @@
                         that.again = '';
                         that.logoutPage();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 });
             },
@@ -129,7 +129,7 @@
                             }
                         })
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             }

+ 4 - 4
pc/src/views/ShopManage.vue

@@ -248,7 +248,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -311,7 +311,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -347,7 +347,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -440,7 +440,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 19 - 19
pc/src/views/appoint.vue

@@ -465,7 +465,7 @@
                         } else {
                             // 状态返回
                             appoint.WxOrder = e == 0 ? 1 : 0;
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -490,7 +490,7 @@
                         that.panel.classOptions = turnClassResToOption(json.Rs);
                         that.panel.classOptions.unshift({value: '0', label: '全部'})
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -512,7 +512,7 @@
                                 that.form.userId = '';
                                 that.form.userList = turnResToOptionBySimViper(json.Rs);
                             } else {
-                                that.$message.error(json.Memo + '错误码:' + json.Code);
+                                that.$message.error(json.Memo + ' 错误码:' + json.Code);
                             }
                         })
                     }
@@ -540,7 +540,7 @@
                     if (json.Code == 0) {
                         that.form.stdList = turnStdToOption(json.Rs);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
 
@@ -566,7 +566,7 @@
                         this.getTableQuery2();
                         that.dialogMemberVisible = false;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -598,7 +598,7 @@
                         this.gridData = json.Rs;
                         console.log(123);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -629,7 +629,7 @@
                             // table 重载
                             that.getTableQuery2();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -664,7 +664,7 @@
                             // table 重载
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -699,7 +699,7 @@
                             // table 重载
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -881,7 +881,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -935,7 +935,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -963,7 +963,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -991,7 +991,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -1019,7 +1019,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -1047,7 +1047,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -1076,7 +1076,7 @@
                     if (json.Code == 0) {
                         that.form.stdList = turnStdToOption(json.Rs);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -1126,7 +1126,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -1189,7 +1189,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -1220,7 +1220,7 @@
                         // 设置分页数据
                         that.setPaginations2();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 1 - 1
pc/src/views/bindRecord.vue

@@ -276,7 +276,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 277 - 270
pc/src/views/classInfoDetail.vue

@@ -1,288 +1,295 @@
 <template>
-    <div class="context">
-        <div class="panel">
-            <div class="panel-body">
-                <br>
-                <el-page-header @back="goBack" content="课程成绩">
-                    <br>
-                </el-page-header>
-                <span class="classNames">
-                    {{title}}
+  <div class="context">
+    <div class="panel">
+      <div class="panel-body">
+        <br>
+        <el-page-header @back="goBack" content="课程成绩">
+          <br>
+        </el-page-header>
+        <span class="classNames">
+                    {{ title }}
                 </span>
-            </div>
-        </div>
-        <div class="table">
-            <el-table
-                    :data="tableData"
-                    border
-                    is-horizontal-resize
-                    :default-sort="{prop: 'date', order: 'descending'}"
-                    element-loading-background="rgba(0, 0, 0, 0.8)"
-                    class=""
-            >
-                >
-                <el-table-column
-                        type="index"
-                        label="排名"
-                        align="center"
-                        width="50">
-                </el-table-column>
-                <el-table-column
-                        prop="head"
-                        label="头像"
-                        align="center"
-                        sortable
-                >
-                    <template slot-scope="scope">
-                        <!--<img class="head" :src="scope.row.Head" alt="" height="51" width="51" v-if="scope.row.Head">-->
-                            <div class="demo-image__preview" v-if="scope.row.Head">
-                                <el-image
-                                        style="width: 25px; height: 25px"
-                                        :src="scope.row.Head"
-                                        :preview-src-list="[scope.row.Head]"
+      </div>
+    </div>
+    <div class="table">
+      <el-table
+          :data="tableData"
+          border
+          is-horizontal-resize
+          :default-sort="{prop: 'date', order: 'descending'}"
+          element-loading-background="rgba(0, 0, 0, 0.8)"
+          class=""
+      >
+        >
+        <el-table-column
+            type="index"
+            label="排名"
+            align="center"
+            width="50">
+        </el-table-column>
+        <el-table-column
+            prop="head"
+            label="头像"
+            align="center"
+            sortable
+        >
+          <template slot-scope="scope">
+            <!--<img class="head" :src="scope.row.Head" alt="" height="51" width="51" v-if="scope.row.Head">-->
+            <div class="demo-image__preview" v-if="scope.row.Head">
+              <el-image
+                  style="width: 25px; height: 25px"
+                  :src="scope.row.Head"
+                  :preview-src-list="[scope.row.Head]"
 
-                                >
-                                </el-image>
-                            </div>
-                            <img src="../assets/img/nav/head.png" alt="" v-else width="25px" height="25px">
-                        <!--<img class="head" src="../assets/img/nav/head.png" height="51" width="51" v-else/>-->
-                    </template>
-                </el-table-column>
-                <el-table-column
-                        prop="Name"
-                        label="会员名"
-                        sortable
-                >
-                </el-table-column>
+              >
+              </el-image>
+            </div>
+            <img src="../assets/img/nav/head.png" alt="" v-else width="25px" height="25px">
+            <!--<img class="head" src="../assets/img/nav/head.png" height="51" width="51" v-else/>-->
+          </template>
+        </el-table-column>
+        <el-table-column
+            prop="Name"
+            label="会员名"
+            sortable
+        >
+        </el-table-column>
 
-                <el-table-column
-                        prop="Cle"
-                        label="卡路里"
-                        :formatter="filterCle"
-                        sortable
-                >
-                </el-table-column>
-                <el-table-column
-                        prop="Ck"
-                        label="ck值"
-                        :formatter="filterCK"
-                        sortable
-                >
-                </el-table-column>
-                <el-table-column
-                        prop="MaxHr"
-                        label="最大心率"
-                        sortable
-                >
-                </el-table-column>
-                <el-table-column
-                        prop="AvgHr"
-                        label="平均心率"
-                        sortable
-                >
-                </el-table-column>
-                <el-table-column
-                        prop="Weight"
-                        label="体重(kg)"
-                        :formatter="filterWeight"
-                        sortable
-                >
-                </el-table-column>
-                <el-table-column
-                        prop="Height"
-                        label="身高(cm)"
-                        sortable
-                >
-                </el-table-column>
-                <el-table-column
-                        prop="Sex"
-                        label="性别"
-                        sortable
-                >
-                    <template slot-scope="scope">
-                        <span v-if="scope.row.Sex == 1">男</span>
-                        <span v-if="scope.row.Sex == 2">女</span>
-                    </template>
-                </el-table-column>
-                <el-table-column
-                        prop="GroupNo"
-                        label="队伍"
-                        sortable
-                >
-                    <template slot-scope="scope">
-                        <span v-if="scope.row.GroupNo == 0">不分组</span>
-                        <span v-if="scope.row.GroupNo == 1" style="color: red">红队</span>
-                        <span v-if="scope.row.GroupNo == 2" style="color: blue">蓝队</span>
-                        <span v-if="scope.row.GroupNo == 3" style="color: goldenrod">黄队</span>
-                    </template>
-                </el-table-column>
-            </el-table>
-            <br>
-            <el-pagination
-                    background
-                    :total="pageination.total"
-                    :page-size="pageination.pageItem"
-                    @current-change="pageChange"
-            ></el-pagination>
-        </div>
+        <el-table-column
+            prop="Cle"
+            label="卡路里"
+            :formatter="filterCle"
+            sortable
+        >
+        </el-table-column>
+        <el-table-column
+            prop="Ck"
+            label="ck值"
+            :formatter="filterCK"
+            sortable
+        >
+        </el-table-column>
+        <el-table-column
+            prop="MaxHr"
+            label="最大心率"
+            sortable
+        >
+        </el-table-column>
+        <el-table-column
+            prop="AvgHr"
+            label="平均心率"
+            sortable
+        >
+        </el-table-column>
+        <el-table-column
+            prop="Weight"
+            label="体重(kg)"
+            :formatter="filterWeight"
+            sortable
+        >
+        </el-table-column>
+        <el-table-column
+            prop="Height"
+            label="身高(cm)"
+            sortable
+        >
+        </el-table-column>
+        <el-table-column
+            prop="Sex"
+            label="性别"
+            sortable
+        >
+          <template slot-scope="scope">
+            <span v-if="scope.row.Sex == 1">男</span>
+            <span v-if="scope.row.Sex == 2">女</span>
+          </template>
+        </el-table-column>
+        <el-table-column
+            prop="GroupNo"
+            label="队伍"
+            sortable
+        >
+          <template slot-scope="scope">
+            <span v-if="scope.row.GroupNo == 0">不分组</span>
+            <span v-if="scope.row.GroupNo == 1" style="color: red">红队</span>
+            <span v-if="scope.row.GroupNo == 2" style="color: blue">蓝队</span>
+            <span v-if="scope.row.GroupNo == 3" style="color: goldenrod">黄队</span>
+          </template>
+        </el-table-column>
+      </el-table>
+      <br>
+      <el-pagination
+          background
+          :total="pageination.total"
+          :page-size="pageination.pageItem"
+          @current-change="pageChange"
+      ></el-pagination>
     </div>
+  </div>
 </template>
 
 <script>
 
-    import Global from '../Global.js'
-    import {
-        ClassOverDetailListQuery,
-        FinshedDispPlanQuery,
-    } from "../api/getApiRes";
+import Global from '../Global.js'
+import {
+  ClassOverDetailListQuery,
+  FinshedDispPlanQuery,
+} from "../api/getApiRes";
 
-    let qs = require('qs');
-    export default {
-        data() {
-            return {
-                tableData: [],
-                title: '',
-                pageination: {
-                    pageItem: 100,
-                    pageoptions: pageOptions(),
-                    total: 100,
-                    pageIndex: 1,
-                },
-            }
-        },
-        mounted() {
-            this.getTableQuery();
-            this.title = this.$route.query.ClassName + ' ' + this.$route.query.BeginStr + '-' + this.$route.query.EndStr;
-        },
-        methods: {
-            goBack() {
-                this.$router.push({
-                    path: '/coursesHistory', query: {}
-                });
-            },
-            // 页面数据查询
-            getTableQuery() {
-                let that = this;
-                that.loading = true;
-                let param = {
-                    token: localStorage.token,
-                    stdId: this.$route.query.StdId,
-                    start: 1,//
-                    tableMax: 9999,//
-                };
-                let postdata = qs.stringify(param);
-                FinshedDispPlanQuery(postdata).then(res => {
-                    let json = res;
-                    if (json.Code == 0) {
-                        that.loading = false;
-                        if (json.Rs) {
-                            that.allTableData = json.Rs;
-                            that.recordsTotal = json.Rs.length;
-                        } else {
-                            that.allTableData = [];
-                            that.recordsTotal = 0;
-                        }
-                        // 设置分页数据
-                        that.setPaginations();
-                    } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
-                    }
-                })
-            },
-            // 设置分页数据
-            setPaginations() {
-                // 分页属性
-                let that = this;
-                that.pageination.total = that.recordsTotal;
-
-                // 默认分页
-                that.tableData = that.allTableData.filter((item, index) => {
-                    return index < that.pageination.pageItem;
-                });
-            },
-            // 每页显示数量
-            handleSizeChange() {
-                let that = this;
-                that.tableData = that.allTableData.filter((item, index) => {
-                    return index < that.pageination.pageItem;
-                });
-                that.draw = that.pageination.pageItem;
-                // that.getTableQuery();
-            },
-            // 翻页
-            pageChange(pageIndex) {
-                let that = this;
-                // 获取当前页
-                let index = that.pageination.pageItem * (pageIndex - 1);
-                // 数据总数
-                let nums = that.pageination.pageItem * pageIndex;
-                // 容器
-                let tables = [];
-                for (var i = index; i < nums; i++) {
-                    if (that.allTableData[i]) {
-                        tables.push(that.allTableData[i])
-                    }
-                    this.tableData = tables;
-                }
-                that.start = index * that.draw;
-                // that.getTableQuery();
-            },
-            // 单位转换去6个零
-            filterCle(value, row, column) {
-                return parseInt(column / 1000000);
-            },
-            // 单位转换去6个零
-            filterCK(value, row, column) {
-                return parseFloat(column / 1000000).toFixed(1);
-            },
-            // 单位转换去1个零
-            filterWeight(value, row, column) {
-                return parseInt(column / 10);
-            },
+let qs = require('qs');
+export default {
+  data() {
+    return {
+      tableData: [],
+      title: '',
+      dialogdata: [],
+      gridData: [],
+      dialogValue: [],
+      allTableData: [],
+      pageination: {
+        pageItem: 100,
+        pageoptions: pageOptions(),
+        total: 100,
+        pageIndex: 1,
+      },
+    }
+  },
+  mounted() {
+    this.getTableQuery();
+    this.title = this.$route.query.ClassName + ' ' + this.$route.query.BeginStr + '-' + this.$route.query.EndStr;
+  },
+  watch: {
+    $route(to) {
+      if (to.name == 'classInfoDetail') {
+        this.allTableData = [];
+        this.getTableQuery();
+        this.title = this.$route.query.ClassName + ' ' + this.$route.query.BeginStr + '-' + this.$route.query.EndStr;
+      }
+    },
+  },
+  methods: {
+    goBack() {
+      this.$router.push({
+        path: '/coursesHistory', query: {}
+      });
+    },
+    // 页面数据查询
+    getTableQuery() {
+      let that = this;
+      that.loading = true;
+      let param = {
+        token: localStorage.token,
+        stdId: this.$route.query.StdId,
+        start: 1,//
+        tableMax: 9999,//
+      };
+      let postdata = qs.stringify(param);
+      FinshedDispPlanQuery(postdata).then(res => {
+        let json = res;
+        if (json.Code == 0) {
+          that.loading = false;
+          if (json.Rs) {
+            that.allTableData = json.Rs;
+            that.recordsTotal = json.Rs.length;
+          } else {
+            that.allTableData = [];
+            that.recordsTotal = 0;
+          }
+          // 设置分页数据
+          that.setPaginations();
+        } else {
+          that.allTableData = [];
+          that.recordsTotal = 0;
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
+        }
+      })
+    },
+    // 设置分页数据
+    setPaginations() {
+      // 分页属性
+      let that = this;
+      that.pageination.total = that.recordsTotal;
 
-        },
-        watch: {
-            $route(to) {
-                if (to.name == 'classInfoDetail') {
-                    this.getTableQuery();
-                    this.title = this.$route.query.ClassName + ' ' + this.$route.query.BeginStr + '-' + this.$route.query.EndStr;
+      // 默认分页
+      that.tableData = that.allTableData.filter((item, index) => {
+        return index < that.pageination.pageItem;
+      });
+    },
+    // 每页显示数量
+    handleSizeChange() {
+      let that = this;
+      that.tableData = that.allTableData.filter((item, index) => {
+        return index < that.pageination.pageItem;
+      });
+      that.draw = that.pageination.pageItem;
+      // that.getTableQuery();
+    },
+    // 翻页
+    pageChange(pageIndex) {
+      let that = this;
+      // 获取当前页
+      let index = that.pageination.pageItem * (pageIndex - 1);
+      // 数据总数
+      let nums = that.pageination.pageItem * pageIndex;
+      // 容器
+      let tables = [];
+      for (var i = index; i < nums; i++) {
+        if (that.allTableData[i]) {
+          tables.push(that.allTableData[i])
+        }
+        this.tableData = tables;
+      }
+      that.start = index * that.draw;
+      // that.getTableQuery();
+    },
+    // 单位转换去6个零
+    filterCle(value, row, column) {
+      return parseInt(column / 1000000);
+    },
+    // 单位转换去6个零
+    filterCK(value, row, column) {
+      return parseFloat(column / 1000000).toFixed(1);
+    },
+    // 单位转换去1个零
+    filterWeight(value, row, column) {
+      return parseInt(column / 10);
+    },
 
-                }
-            },
-        },
-    }
+  },
+}
 </script>
 
 <style scoped>
-    @import "../assets/css/panel.css";
+@import "../assets/css/panel.css";
 
-    .context {
-        height: 770px;
-        overflow-y: scroll;
-        display: block;
-        margin: 0 auto;
-        background-color: #fff !important;
-        padding: 30px;
-    }
+.context {
+  height: 770px;
+  overflow-y: scroll;
+  display: block;
+  margin: 0 auto;
+  background-color: #fff !important;
+  padding: 30px;
+}
 
-    .classNames {
-        width: 211px;
-        height: 25px;
-        background: #f0f2f5;
-        font-family: "Source Han Sans CN";
-        font-weight: normal;
-        font-size: 16px;
-        color: #3799ff;
-        border-radius: 250px;
-        text-align: center;
-        margin-top: 15px;
-        margin-bottom: 3px;
-        float: left;
-    }
-    .head {
-        overflow: hidden;
-        display: block;
-        margin: 0 auto;
-        border-radius: 250px;
-    }
+.classNames {
+  width: 211px;
+  height: 25px;
+  background: #f0f2f5;
+  font-family: "Source Han Sans CN";
+  font-weight: normal;
+  font-size: 16px;
+  color: #3799ff;
+  border-radius: 250px;
+  text-align: center;
+  margin-top: 15px;
+  margin-bottom: 3px;
+  float: left;
+}
+
+.head {
+  overflow: hidden;
+  display: block;
+  margin: 0 auto;
+  border-radius: 250px;
+}
 </style>

+ 7 - 7
pc/src/views/coach.vue

@@ -225,7 +225,7 @@
                             // table 重载
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -260,7 +260,7 @@
                             // table 重载
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -319,7 +319,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -363,7 +363,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -391,7 +391,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -448,7 +448,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -499,7 +499,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 11 - 11
pc/src/views/cost.vue

@@ -364,7 +364,7 @@ export default {
             // table 重载
             that.getTableQuery();
           } else {
-            that.$message.error(json.Memo + '错误码:' + json.Code);
+            that.$message.error(json.Memo + ' 错误码:' + json.Code);
           }
         })
       }).catch(() => {
@@ -399,7 +399,7 @@ export default {
             // table 重载
             that.getTableQuery();
           } else {
-            that.$message.error(json.Memo + '错误码:' + json.Code);
+            that.$message.error(json.Memo + ' 错误码:' + json.Code);
           }
         })
       }).catch(() => {
@@ -610,7 +610,7 @@ export default {
             type: 'success'
           });
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -665,7 +665,7 @@ export default {
             type: 'success'
           });
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -693,7 +693,7 @@ export default {
             type: 'success'
           });
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -721,7 +721,7 @@ export default {
             type: 'success'
           });
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -749,7 +749,7 @@ export default {
             type: 'success'
           });
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -777,7 +777,7 @@ export default {
             type: 'success'
           });
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -796,7 +796,7 @@ export default {
           that.panel.options = turnClassResToOption(json.Rs);
           that.panel.options.unshift({label: "全部", value: ''})
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -853,7 +853,7 @@ export default {
             // 重载列表
             that.getTableQuery();
           } else {
-            that.$message.error(json.Memo + '错误码:' + json.Code);
+            that.$message.error(json.Memo + ' 错误码:' + json.Code);
           }
         });
       }).catch(() => {
@@ -921,7 +921,7 @@ export default {
           // 设置分页数据
           that.setPaginations();
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },

+ 16 - 16
pc/src/views/courseEdit.vue

@@ -511,7 +511,7 @@
                         // 重置心率带可选列表
                         // that.getSelectHrSensors();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -545,7 +545,7 @@
                         // 重置心率带可选列表
                         // that.getSelectHrSensors();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -584,7 +584,7 @@
                             // 重置心率带可选列表
                             // that.getSelectHrSensors();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -635,7 +635,7 @@
                 //             // 重置心率带可选列表
                 //             // that.getSelectHrSensors();
                 //         } else {
-                //             that.$message.error(json.Memo + '错误码:' + json.Code);
+                //             that.$message.error(json.Memo + ' 错误码:' + json.Code);
                 //         }
                 //     })
                 // }).catch(() => {
@@ -672,7 +672,7 @@
                     if (json.Code == 0) {
                         that.form.dialogCoachdata = turnResToOptionByUsers(json.Rs);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -706,7 +706,7 @@
                         // that.$router.push({path: '/finish'});
                         this.$router.go(-1);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -795,7 +795,7 @@
                         // that.FinishClass = 2;
                         // that.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -876,7 +876,7 @@
                         // that.form.dialogdata = turnResToOptionByViper(json.Rs);
                         that.form.dialogdata = turnResToOptionBySimViper(json.Rs);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -908,7 +908,7 @@
                         });
                         that.BtnConfirmMember = false;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         that.BtnConfirmMember = false;
                     }
 
@@ -941,7 +941,7 @@
                         });
                         that.BtnTempConfirmMember = false;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         that.BtnTempConfirmMember = false;
                     }
 
@@ -967,7 +967,7 @@
                         // table 重载
                         that.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -996,7 +996,7 @@
                             });
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -1030,7 +1030,7 @@
                             });
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -1121,7 +1121,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -1174,7 +1174,7 @@
                             that.panel.bindList = [];
                         }
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -1269,7 +1269,7 @@
                         });
                         this.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 8 - 8
pc/src/views/courses.vue

@@ -402,7 +402,7 @@
                         this.getTableQuery();
 
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -432,7 +432,7 @@
                         that.dialogMemberVisible = false;
                         this.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -486,7 +486,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -522,7 +522,7 @@
                     if (json.Code == 0) {
                         that.form.svList = json.Rs;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -543,7 +543,7 @@
                                 that.form.userId = '';
                                 that.form.userList = turnResToOptionBySimViper(json.Rs);
                             } else {
-                                that.$message.error(json.Memo + '错误码:' + json.Code);
+                                that.$message.error(json.Memo + ' 错误码:' + json.Code);
                             }
                         })
                     }
@@ -588,7 +588,7 @@
                     if (json.Code == 0) {
                         that.form.dialogCoachdata = turnResToOptionByUsers(json.Rs);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -606,7 +606,7 @@
                     if (json.Code == 0) {
                         that.goFinish(row);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -666,7 +666,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 6 - 6
pc/src/views/coursesHistory.vue

@@ -368,7 +368,7 @@
                             }
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -398,7 +398,7 @@
                         that.dialogMemberVisible = false;
                         this.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -449,7 +449,7 @@
                     if (json.Code == 0) {
                         that.form.svList = json.Rs;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -470,7 +470,7 @@
                                 that.form.userId = '';
                                 that.form.userList = turnResToOptionBySimViper(json.Rs);
                             } else {
-                                that.$message.error(json.Memo + '错误码:' + json.Code);
+                                that.$message.error(json.Memo + ' 错误码:' + json.Code);
                             }
                         })
                     }
@@ -508,7 +508,7 @@
                     if (json.Code == 0) {
                         that.goFinish(row);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -568,7 +568,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 2 - 2
pc/src/views/finish.vue

@@ -172,7 +172,7 @@
                     if (json.Code == 0) {
                         that.goFinish(row);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -214,7 +214,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 9 - 9
pc/src/views/finishDetail.vue

@@ -275,7 +275,7 @@
                     if (json.Code == 0) {
                         that.form.dialogCoachdata = turnResToOptionByUsers(json.Rs);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -295,7 +295,7 @@
                         that.form.dialogdata = turnResToOptionBySimViper(json.Rs);
                         console.log(that.form.dialogdata);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -323,7 +323,7 @@
                             });
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -372,7 +372,7 @@
                         // table 重载
                         that.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -410,7 +410,7 @@
                         });
                         that.getTableQuery()
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -442,7 +442,7 @@
                         // that.$router.push({path: '/finish'});
                         this.$router.go(-1);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -469,7 +469,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -544,7 +544,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -610,7 +610,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 11 - 11
pc/src/views/heartEquip.vue

@@ -326,7 +326,7 @@
                             // table 重载
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -384,7 +384,7 @@
                         row.TopLimit = json.Rs.TopLimit;
                         row.ConsumeHour = json.Rs.ConsumeHour;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -419,7 +419,7 @@
                         // table 重载
                         that.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -447,7 +447,7 @@
             //                 // table 重载
             //                 that.getTableQuery();
             //             } else {
-            //                 that.$message.error(json.Memo + '错误码:' + json.Code);
+            //                 that.$message.error(json.Memo + ' 错误码:' + json.Code);
             //             }
             //         })
             //     }).catch(() => {
@@ -482,7 +482,7 @@
                             // table 重载
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -564,7 +564,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -623,7 +623,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -668,7 +668,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -696,7 +696,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -739,7 +739,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -793,7 +793,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 12 - 12
pc/src/views/heartEquipPerson.vue

@@ -302,7 +302,7 @@
                         that.form.userId = '';
                         that.form.userList = turnResToOptionBySimViper(json.Rs);
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -342,7 +342,7 @@
                             // table 重载
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -400,7 +400,7 @@
                         row.TopLimit = json.Rs.TopLimit;
                         row.ConsumeHour = json.Rs.ConsumeHour;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -483,7 +483,7 @@
                         that.getTableQuery();
                         that.vipSelect();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -511,7 +511,7 @@
             //                 // table 重载
             //                 that.getTableQuery();
             //             } else {
-            //                 that.$message.error(json.Memo + '错误码:' + json.Code);
+            //                 that.$message.error(json.Memo + ' 错误码:' + json.Code);
             //             }
             //         })
             //     }).catch(() => {
@@ -546,7 +546,7 @@
                             // table 重载
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -582,7 +582,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -632,7 +632,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -669,7 +669,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -697,7 +697,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -740,7 +740,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -795,7 +795,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 7 - 7
pc/src/views/heartLog.vue

@@ -203,7 +203,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -269,7 +269,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -340,7 +340,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -379,7 +379,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -424,7 +424,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -504,7 +504,7 @@
                             // table 重载
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -543,7 +543,7 @@
                             // table 重载
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {

+ 8 - 8
pc/src/views/lessonManage.vue

@@ -282,7 +282,7 @@ export default {
           that.previewDate.SttPreviewClassList.sort((a, b) => a.ClassIndex - b.ClassIndex);//升序
           that.previewShow = true;
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -334,7 +334,7 @@ export default {
             // 重载列表
             that.getTableQuery();
           } else {
-            that.$message.error(json.Memo + '错误码:' + json.Code);
+            that.$message.error(json.Memo + ' 错误码:' + json.Code);
           }
         });
       }).catch(() => {
@@ -376,7 +376,7 @@ export default {
           this.getTableQuery();
           this.dialogNameVisible = false;
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -405,7 +405,7 @@ export default {
           this.dialogCopyVisible = false;
           this.getTableQuery();
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -457,7 +457,7 @@ export default {
           that.getTableQuery();
           this.dialogVisible = false;
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       });
     },
@@ -481,7 +481,7 @@ export default {
           // 重载列表
           that.getTableQuery();
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       });
     },
@@ -538,7 +538,7 @@ export default {
           // 设置分页数据
           that.setPaginations();
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -614,7 +614,7 @@ export default {
           // 重载列表
           that.getTableQuery();
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
           row.Online = 0;
         }
       })

+ 2 - 2
pc/src/views/record.vue

@@ -261,7 +261,7 @@
                         that.panel.classOptions = turnClassResToOption(json.Rs);
                         that.panel.classOptions.unshift({value: '', label: '全部'})
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -326,7 +326,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 11 - 11
pc/src/views/region.vue

@@ -219,7 +219,7 @@
             //                 // table 重载
             //                 that.getTableQuery();
             //             } else {
-            //                 that.$message.error(json.Memo + '错误码:' + json.Code);
+            //                 that.$message.error(json.Memo + ' 错误码:' + json.Code);
             //             }
             //         })
             //     }).catch(() => {
@@ -255,7 +255,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -286,7 +286,7 @@
                         // table 重载
                         that.getTableQuery();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -340,7 +340,7 @@
                         row.TopLimit = json.Rs.TopLimit;
                         row.ConsumeHour = json.Rs.ConsumeHour;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -380,7 +380,7 @@
             //                 // table 重载
             //                 that.getTableQuery();
             //             } else {
-            //                 that.$message.error(json.Memo + '错误码:' + json.Code);
+            //                 that.$message.error(json.Memo + ' 错误码:' + json.Code);
             //             }
             //         })
             //     }).catch(() => {
@@ -415,7 +415,7 @@
             //                 // table 重载
             //                 that.getTableQuery();
             //             } else {
-            //                 that.$message.error(json.Memo + '错误码:' + json.Code);
+            //                 that.$message.error(json.Memo + ' 错误码:' + json.Code);
             //             }
             //         })
             //     }).catch(() => {
@@ -465,7 +465,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -500,7 +500,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -528,7 +528,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -570,7 +570,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -624,7 +624,7 @@
                         if (!localStorage.ServiceKey) {
                             that.$message.error('还未与心率系统对接,请联系管理员');
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     }
                 })

+ 1 - 1
pc/src/views/region2.vue

@@ -109,7 +109,7 @@ export default {
             that.tableData = [];
           }
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },

+ 3 - 3
pc/src/views/regionEquip.vue

@@ -131,7 +131,7 @@ export default {
           that.panel.shopOptions = turnShopResToOption(json.Rs);
           that.panel.shopOptions.unshift({value: '', label: "全部"});
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -151,7 +151,7 @@ export default {
           that.panel.options.unshift({value: '', label: "全部"});
           console.log(that.panel.options);
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },
@@ -224,7 +224,7 @@ export default {
           // 设置分页数据
           that.setPaginations();
         } else {
-          that.$message.error(json.Memo + '错误码:' + json.Code);
+          that.$message.error(json.Memo + ' 错误码:' + json.Code);
         }
       })
     },

+ 7 - 7
pc/src/views/relevancePhone.vue

@@ -186,7 +186,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -255,7 +255,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -329,7 +329,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -373,7 +373,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -417,7 +417,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -497,7 +497,7 @@
                             // table 重载
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {
@@ -536,7 +536,7 @@
                             // table 重载
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {

+ 2 - 2
pc/src/views/setting.vue

@@ -128,7 +128,7 @@
                     if (json.Code == 0) {
                         this.appoint = json.Rs.WxStatus;
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -158,7 +158,7 @@
                             // table 重载
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     })
                 }).catch(() => {

+ 4 - 4
pc/src/views/tempUser.vue

@@ -383,7 +383,7 @@
                             // 重载列表
                             that.getTableQuery();
                         } else {
-                            that.$message.error(json.Memo + '错误码:' + json.Code);
+                            that.$message.error(json.Memo + ' 错误码:' + json.Code);
                         }
                     });
                 }).catch(() => {
@@ -467,7 +467,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -563,7 +563,7 @@
                             type: 'success'
                         });
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },
@@ -657,7 +657,7 @@
                         // 设置分页数据
                         that.setPaginations();
                     } else {
-                        that.$message.error(json.Memo + '错误码:' + json.Code);
+                        that.$message.error(json.Memo + ' 错误码:' + json.Code);
                     }
                 })
             },

+ 2 - 2
tv/src/views/Main.vue

@@ -242,7 +242,7 @@
                     } else {
                         // 并没有人破记录
                         if (json.Code == 999) return false;
-                        if (json.Code != 999) that.$message.error(json.Memo + '[错误码]' + json.Code);
+                        if (json.Code != 999) that.$message.error(json.Memo + '[ 错误码]' + json.Code);
                     }
                 })
             },
@@ -269,7 +269,7 @@
                     } else {
                         // 并没有人破记录
                         if (json.Code == 999) return false;
-                        if (json.Code != 999) that.$message.error(json.Memo + '[错误码]' + json.Code);
+                        if (json.Code != 999) that.$message.error(json.Memo + '[ 错误码]' + json.Code);
                     }
                 })
             },

+ 2 - 2
tv/src/views/pk.vue

@@ -361,7 +361,7 @@
                     } else {
                         // 并没有人破记录
                         if (json.Code == 999) return false;
-                        if (json.Code != 999) that.$message.error(json.Memo + '[错误码]' + json.Code);
+                        if (json.Code != 999) that.$message.error(json.Memo + '[ 错误码]' + json.Code);
                     }
                 })
             },
@@ -387,7 +387,7 @@
                     } else {
                         // 并没有人破记录
                         if (json.Code == 999) return false;
-                        if (json.Code != 999) that.$message.error(json.Memo + '[错误码]' + json.Code);
+                        if (json.Code != 999) that.$message.error(json.Memo + '[ 错误码]' + json.Code);
                     }
                 })
             },

+ 2 - 2
tv/src/views/threepk.vue

@@ -656,7 +656,7 @@
                     } else {
                         // 并没有人破记录
                         if (json.Code == 999) return false;
-                        if (json.Code != 999) that.$message.error(json.Memo + '[错误码]' + json.Code);
+                        if (json.Code != 999) that.$message.error(json.Memo + '[ 错误码]' + json.Code);
                     }
                 })
             },
@@ -682,7 +682,7 @@
                     } else {
                         // 并没有人破记录
                         if (json.Code == 999) return false;
-                        if (json.Code != 999) that.$message.error(json.Memo + '[错误码]' + json.Code);
+                        if (json.Code != 999) that.$message.error(json.Memo + '[ 错误码]' + json.Code);
                     }
                 })
             },