Browse Source

去掉console

lex-xin 5 years ago
parent
commit
107bd06f10
37 changed files with 9 additions and 76 deletions
  1. 1 1
      src/api/task.js
  2. 1 1
      src/api/teamServer.js
  3. 0 1
      src/layout/components/Sidebar/index.vue
  4. 1 1
      src/layout/mixin/ResizeHandler.js
  5. 3 3
      src/store/modules/permission.js
  6. 1 1
      src/store/modules/user.js
  7. 1 3
      src/utils/request.js
  8. 0 3
      src/views/businessManager/shopManager/shopList.vue
  9. 0 1
      src/views/categroyManager/insideSetting/adminManager.vue
  10. 0 2
      src/views/categroyManager/insideSetting/chargeProfitManager.vue
  11. 0 3
      src/views/categroyManager/vipActiveList.vue
  12. 0 1
      src/views/categroyManager/vipNewActive.vue
  13. 0 11
      src/views/contentManager/contentOperation.vue
  14. 0 2
      src/views/resetTeaming/components/resetSound.vue
  15. 0 2
      src/views/studentManager/components/studentInfo.vue
  16. 0 1
      src/views/teacherManager/teacherDetail/index.vue
  17. 0 2
      src/views/teamBuild/components/teamBaseInfo.vue
  18. 1 6
      src/views/teamBuild/signupList.vue
  19. 0 3
      src/views/teamBuild/teamSeting/components/improvementClass.vue
  20. 0 4
      src/views/teamBuild/teamSeting/components/setClass.vue
  21. 0 1
      src/views/teamBuild/teamSeting/components/setImprovement.vue
  22. 0 1
      src/views/teamBuild/teamSeting/components/setTeacher.vue
  23. 0 2
      src/views/teamDetail/components/baseInfo.vue
  24. 0 4
      src/views/teamDetail/components/resetClass.vue
  25. 0 1
      src/views/teamDetail/components/salaryList.vue
  26. 0 1
      src/views/teamDetail/components/studentList.vue
  27. 0 2
      src/views/teamDetail/components/studentSignin.vue
  28. 0 1
      src/views/teamDetail/components/teacherList.vue
  29. 0 1
      src/views/teamDetail/components/teamTeacherRecord.vue
  30. 0 1
      src/views/teamDetail/index.vue
  31. 0 1
      src/views/teamDetail/teamList.vue
  32. 0 1
      src/views/vipClass/vipDetail/components/teacherRecord.vue
  33. 0 1
      src/views/vipClass/vipDetail/components/vipBaseInfo.vue
  34. 0 1
      src/views/vipClass/vipDetail/components/vipStudentList.vue
  35. 0 1
      src/views/vipClass/vipDetail/index.vue
  36. 0 3
      src/views/vipClass/vipReset.vue
  37. 0 1
      tests/unit/components/Breadcrumb.spec.js

+ 1 - 1
src/api/task.js

@@ -1,5 +1,5 @@
 import request from '@/utils/request'
-import qs from 'qs'
+// import qs from 'qs'
 
 export function taskList (data) {
   return request({

+ 1 - 1
src/api/teamServer.js

@@ -1,5 +1,5 @@
 import request from '@/utils/request'
-import qs from 'qs'
+// import qs from 'qs'
 let api = '/api-web'
 // 获取分部
 export function getTeamList (data) {

+ 0 - 1
src/layout/components/Sidebar/index.vue

@@ -29,7 +29,6 @@ import variables from '@/styles/variables.scss'
 export default {
   components: { SidebarItem, Logo },
   // mounted () {
-  //   console.log(this.permission_routes)
   // },
   computed: {
     ...mapGetters([

+ 1 - 1
src/layout/mixin/ResizeHandler.js

@@ -5,7 +5,7 @@ const WIDTH = 992 // refer to Bootstrap's responsive design
 
 export default {
   watch: {
-    $route(route) {
+    $route() {
       if (this.device === 'mobile' && this.sidebar.opened) {
         store.dispatch('app/closeSideBar', { withoutAnimation: false })
       }

+ 3 - 3
src/store/modules/permission.js

@@ -1,6 +1,6 @@
 import { asyncRoutes, constantRoutes } from '@/router'
 import { getSilder } from '@/api/silder'
-import { stat } from 'fs'
+// import { stat } from 'fs'
 // import { removeToken } from '@/utils/auth'
 // import Layout from '@/layout'
 
@@ -14,7 +14,7 @@ function generateAsyncRouter (asyncRoutes, data) {
     return []
   }
 
-  data.forEach((item, index) => {
+  data.forEach((item) => {
     item.component = asyncRoutes[item.component]
     if (item.children && item.children.length > 0) {
       generateAsyncRouter(asyncRoutes, item.children)
@@ -75,7 +75,7 @@ function recursionPerission(arr) {
 }
 
 const actions = {
-  generateRoutes ({ commit }, roles) {
+  generateRoutes ({ commit }) {
     return new Promise(resolve => {
       // 获取接口返回的权限菜单
       getSilder().then(res => {

+ 1 - 1
src/store/modules/user.js

@@ -1,7 +1,7 @@
 import { login, logout, getInfo } from '@/api/user'
 import { getToken, setToken, removeToken } from '@/utils/auth'
 import { resetRouter } from '@/router'
-import qs from 'qs'
+// import qs from 'qs'
 const state = {
   token: getToken(),
   name: '',

+ 1 - 3
src/utils/request.js

@@ -102,7 +102,6 @@ service.interceptors.request.use(
   },
   error => {
     // do something with request error
-    // console.log(error) // for debug
     tryHideFullScreenLoading()
     return Promise.reject(error)
 
@@ -139,7 +138,7 @@ service.interceptors.response.use(
         //   duration: 5 * 1000
         // })
         let str = data.msg || `请求失败code码为${data.code}`
-        // console.log(Vue);
+
         vue.$message.error(str)
         tryHideFullScreenLoading()
         return Promise.reject(new Error(data.msg || 'Error'))
@@ -157,7 +156,6 @@ service.interceptors.response.use(
 
   },
   error => {
-    // console.log('err' + error) // for debug
     // Message({
     //   message: error.message,
     //   type: 'error',

+ 0 - 3
src/views/businessManager/shopManager/shopList.vue

@@ -149,12 +149,9 @@ export default {
   },
   created () {
     if (this.$route.query.searchForm) {
-      console.log('来searchForm')
       this.$route.query.searchForm instanceof Object ? this.searchForm = this.$route.query.searchForm : this.searchForm = JSON.parse(this.$route.query.searchForm);
     }
     if (this.$route.query.pageInfo) {
-      console.log('来pageInfo')
-      console.log(this.$route.query.pageInfo)
       this.$route.query.pageInfo instanceof Object ? this.pageInfo = this.$route.query.pageInfo : this.pageInfo = JSON.parse(this.$route.query.pageInfo);
     }
   },

+ 0 - 1
src/views/categroyManager/insideSetting/adminManager.vue

@@ -58,7 +58,6 @@ export default {
     this.$route.query.page ? this.pageInfo.page = parseInt(this.$route.query.page) : this.pageInfo.page = 1
   },
   mounted () {
-    // console.log(store.getters.permission)
 
     this.getList()
   },

+ 0 - 2
src/views/categroyManager/insideSetting/chargeProfitManager.vue

@@ -252,8 +252,6 @@ export default {
   },
   methods: {
     onRadioChange(formName) {
-      // console.log(value)
-  
       this.$refs[formName].clearValidate()
     },
     onChargeSubmit (formName) {

+ 0 - 3
src/views/categroyManager/vipActiveList.vue

@@ -360,10 +360,7 @@ export default {
     this.getList();
     // 首先获取课程形式
     // 获取分部id
-    // let organId = this.$store.getters.organ;
-    // console.log(organId)
     vipGroupCategory().then(res => {
-      // console.log(res);
       if (res.code == 200) {
         this.courseStatusList = res.data;
       }

+ 0 - 1
src/views/categroyManager/vipNewActive.vue

@@ -236,7 +236,6 @@ export default {
     }
     // 首先获取课程形式
     vipGroupCategory().then(res => {
-      // console.log(res);
       if (res.code == 200) {
         this.courseStatusList = res.data;
       }

+ 0 - 11
src/views/contentManager/contentOperation.vue

@@ -175,7 +175,6 @@ export default {
     }
   },
   mounted () {
-    // console.log('this is current quill instance object', this.editor)
     this.getList()
     this.addQuillTitle()
 
@@ -255,7 +254,6 @@ export default {
       // 获取富文本组件实例
       let quill = this.editor
       // 如果上传成功
-      console.log(res)
       if (res.code) {
         // 获取光标所在位置
         let length = quill.getSelection().index;
@@ -327,15 +325,6 @@ export default {
       }
       return tempTitle[type]
     },
-    // onEditorBlur(quill) {
-    //     console.log('editor blur!', quill)
-    // },
-    // onEditorFocus(quill) {
-    //     console.log('editor focus!', quill)
-    // },
-    // onEditorReady(quill) {
-    //     console.log('editor ready!', quill)
-    // },
     onEditorChange ({ quill, html, text }) {
       this.form.content = html
     }

+ 0 - 2
src/views/resetTeaming/components/resetSound.vue

@@ -212,7 +212,6 @@ export default {
                 // 
                 if (res.data.musicGroupSubjectGoodsGroups[j].type == 'INSTRUMENT') {
                   this.activeSoundList[i].zhonglei = this.activeSoundList[i].zhonglei.concat(res.data.musicGroupSubjectGoodsGroups[j].goodsIdList)
-                  // console.log(this.activeSoundList[i].zhonglei)
                   this.activeSoundList[i].zhonglei = this.activeSoundList[i].zhonglei.map(item => {
                     return parseInt(item);
                   })
@@ -236,7 +235,6 @@ export default {
                     this.activeSoundList[i].markList.push(obj);
                     // this.activeSoundList[i].markList.goodsList.goods = JSON.parse(res.data.musicGroupSubjectGoodsGroups[j].goodsIdList)
                     this.activeSoundList[i].markChioseList = this.activeSoundList[i].markChioseList.concat(res.data.musicGroupSubjectGoodsGroups[j].goodsList);
-                    console.log(this.activeSoundList[i].markList)
                   }
 
                 }

+ 0 - 2
src/views/studentManager/components/studentInfo.vue

@@ -78,13 +78,11 @@ export default {
   methods: {
     __init() {
       findStudentBaseInfo({ userId: this.userId }).then(res => {
-        // console.log(res)
         if(res.code == 200) {
           this.studentForm = res.data
         }
       })
       // findStudentMusicGroups(this.userId).then(res => {
-      //   // console.log(res)
       //   if(res.code == 200) {
       //     this.musicGroupInfo.push(...res.data)
       //   }

+ 0 - 1
src/views/teacherManager/teacherDetail/index.vue

@@ -94,7 +94,6 @@ export default {
       // this.activeStatus[val.name] = true
     },
     onCancel () {
-      console.log(this.Frules, this.Fsearch)
       this.$router.push({ path: '/business/teacherList', query: { rules: this.Frules, search: this.Fsearch } })
     }
   }

+ 0 - 2
src/views/teamBuild/components/teamBaseInfo.vue

@@ -607,7 +607,6 @@ export default {
     // })
     // 6.默认支付主体
     // getPayMaster({ 'rows': 1000 }).then(res => {
-    //   console.log(res);
     //   if (res.code == 200) {
     //     this.payList = res.data.map(item => {
     //       let obj = {};
@@ -727,7 +726,6 @@ export default {
           }
           obj.musicGroupPaymentEntities = []
           // 添加学校主体付费方式
-          // console.log(this.payfor.company.ischeck)
           if (this.payList.school.ischeck) {
 
             obj.musicGroupPaymentEntities.push({

+ 1 - 6
src/views/teamBuild/signupList.vue

@@ -549,7 +549,6 @@ export default {
             }
           })
         } else {
-          // console.log('error submit!!');
           return false;
         }
       })
@@ -632,9 +631,7 @@ export default {
         musicGroupId: this.$route.query.id,
         page: 1,
         rows: 9999
-      }).then(res => {
-        console.log(res)
-      })
+      }).then(res => {})
     },
     onGoHome () { // 确认开团
       // 判断是否有学生缴费
@@ -732,7 +729,6 @@ export default {
       })
     },
     lookdetail (row) {
-      // console.log(row);
       this.orderVisible = true;
       this.activeId = row.studentId;
       this.orderForm.name = row.studentName;
@@ -773,7 +769,6 @@ export default {
     },
     saveIsEdit () {
       // 提交数据
-      // console.log(this.leftList);
       this.isEdit = false;
       resetPlanNum(this.leftList).then(res => {
 

+ 0 - 3
src/views/teamBuild/teamSeting/components/improvementClass.vue

@@ -248,7 +248,6 @@ export default {
     // findMusicGroupClassTeacher({ musicGroupId: this.teamid }).then(res => {
     //   if (res.code == 200) {
     //     this.teacherList = res.data
-    //     // console.log(res.data);
     //   }
     // })
     getTeacher({ organId: this.organId }).then(res => {
@@ -302,7 +301,6 @@ export default {
             'startDate': this.topForm.timer
           }
           this.tableList.push(obj);
-          console.log(this.tableList)
           this.raiseVisible = false;
           this.$refs['maskForm'].resetFields();
           this.maskForm.endTime = '';
@@ -423,7 +421,6 @@ export default {
       }
     },
     fitterTeacher (val) {
-      // console.log(that.teacherList)
       if (that.teacherList) {
         for (let i in that.teacherList) {
           if (that.teacherList[i].id == val) {

+ 0 - 4
src/views/teamBuild/teamSeting/components/setClass.vue

@@ -302,7 +302,6 @@ export default {
     queryEmployByOrganId({ organId: this.organId, rows: 1000 }).then(res => {
       if (res.code == 200) {
         this.teacherList = res.data.rows;
-        // console.log(this.teacherList)
       }
     })
     getTeamBaseInfo({ musicGroupId: this.teamid }).then(res => {
@@ -331,18 +330,15 @@ export default {
       // 全选
       // 1.val:选项框里的所有选项
       // 2.哪一个
-      // console.log(this.maskList.studentsGroup[index])
       if (this.maskList.studentsGroup[index]) {
         this.maskList.checkList[index] = []
         for (let i in val) {
           // 存储的数组
           this.maskList.checkList[index].push(val[i].userId);
-          // console.log(this.activeStudents)
           this.activeStudents.push(val[i].userId)
 
           // 并且把所有的学生 添加到勾选的学生列表
 
-          // console.log(this.maskList.checkList[index])
         }
       } else {
         for (let i in this.activeStudents) {

+ 0 - 1
src/views/teamBuild/teamSeting/components/setImprovement.vue

@@ -160,7 +160,6 @@ export default {
   },
   mounted () {
     this.teamid = this.$route.query.id;
-    // console.log(this.teamid)
     if (this.$route.query.search) {
       this.Fsearch = this.$route.query.search;
     }

+ 0 - 1
src/views/teamBuild/teamSeting/components/setTeacher.vue

@@ -183,7 +183,6 @@ export default {
     },
     gotoNext () {
       // 点击下一步
-      // console.log(this.singinList)
       if (this.isSetSalary) {
         this.$message.error('课酬确认后无法编辑')
         return;

+ 0 - 2
src/views/teamDetail/components/baseInfo.vue

@@ -107,11 +107,9 @@ export default {
   mounted () {
     // 获取乐团基本信息
     // let teamid = '191014135135001';
-    // console.log(this.teamid);
     // this.creatQrCode();
     getMusicGroup({ musicGroupId: this.teamid }).then(res => {
       if (res.code == 200) {
-        // console.log(res.data.id)
         this.topForm.num = res.data.id;
         // this.topForm.teacher = res.data.teamTeacherName;
         this.topForm.teacher = res.data.educationalTeacherName;

+ 0 - 4
src/views/teamDetail/components/resetClass.vue

@@ -940,7 +940,6 @@ export default {
       this.activeClass = row.id
       this.isSearch = false;
       this.activeType = row.type;
-      // console.log(row);
       // 根据单机班id 查询单技班内的所有学生
       getClassAllStudent({ classGroupId: row.id }).then(res => {
         if (res.code == 200) {
@@ -955,7 +954,6 @@ export default {
     },
     // 班级调整
     classAdjustment (row) {
-      console.log(row);
       this.activeType = row.type;
       this.activeClass = row.id;
       // this.activeListStudent = row.subjectIdList.split(',')
@@ -1084,7 +1082,6 @@ export default {
           this.$refs['temporaryStudentList'].toggleRowSelection(item, false)
         }
       }
-      // console.log(this.$refs['temporaryStudentList'].toggleRowSelection)
       // this.$refs['temporaryStudentList'].toggleRowSelection(row, selected);
 
     },
@@ -1092,7 +1089,6 @@ export default {
     objArrayRemoval (arr, attr) {
       let obj = {};
       let result = [];
-      // console.log(this.allActiveStudent.length);
       for (let x in arr) {
         if (!obj[arr[x][attr]]) {
           result.push(arr[x]);

+ 0 - 1
src/views/teamDetail/components/salaryList.vue

@@ -248,7 +248,6 @@ export default {
       this.activeTeacher = row;
     },
     resetSalary () {
-      // console.log(this.activeTeacher);
       this.$refs['teacherMask'].validate(res => {
         if (res) {
           updateTeacherCoursesSalary({

+ 0 - 1
src/views/teamDetail/components/studentList.vue

@@ -871,7 +871,6 @@ export default {
       this.quitVisible = true;
     },
     checkPhone (val) {
-      console.log(val)
       var regu = /^1[3456789]\d{9}$/;
       var re = new RegExp(regu);
       if (re.test(val)) {

+ 0 - 2
src/views/teamDetail/components/studentSignin.vue

@@ -142,7 +142,6 @@ export default {
       })
     },
     getList () {
-      // console.log(111);
       if (!this.searchForm.times) {
         this.searchForm.times = []
       }
@@ -151,7 +150,6 @@ export default {
       let courseScheduleName = this.searchForm.courseName || null
       let userName = this.searchForm.studentName || null
       let signStatus = this.searchForm.sign || null
-      console.log(signStatus)
       let musicGroupId = this.teamid
       getStudentRecord({ musicGroupId, page: this.rules.page, rows: this.rules.limit, startTime, endTime, courseScheduleName, userName, signStatus }).then(res => {
         if (res.code == 200) {

+ 0 - 1
src/views/teamDetail/components/teacherList.vue

@@ -133,7 +133,6 @@ export default {
     pagination
   },
   mounted () {
-    // console.log(this.teamid)
     this.getList();
     getAllClass({ musicGroupId: this.teamid }).then(res => {
       if (res.code == 200) {

+ 0 - 1
src/views/teamDetail/components/teamTeacherRecord.vue

@@ -143,7 +143,6 @@ export default {
     getList () {
       //musicGroupId: this.teamId
       this.searchForm.timer = this.searchForm.timer || [];
-      // console.log(this.searchForm.timer)
       let obj = {
         page: this.rules.page,
         rows: this.rules.limit,

+ 0 - 1
src/views/teamDetail/index.vue

@@ -108,7 +108,6 @@ export default {
       this.$router.push({ path: '/business/teamDetail', query: { search: this.Fsearch, rules: this.Frules } })
     },
     getname (name) {
-      // console.log(name);
       this.name = name;
       localStorage.setItem('teamName', name);
     },

+ 0 - 1
src/views/teamDetail/teamList.vue

@@ -280,7 +280,6 @@ export default {
     })
     // 获取乐团收费类型
     getPayType().then(res => {
-      // console.log(res);
       if (res.code == 200) {
         this.typeList = res.data.rows;
       }

+ 0 - 1
src/views/vipClass/vipDetail/components/teacherRecord.vue

@@ -332,7 +332,6 @@ export default {
       this.$refs['maskForm'].validate(valid => {
         if (valid) {
           // 效验成功
-          console.log(this.maskForm.cooperation)
           resetVipClass({ id: this.activeId, classDate: this.maskForm.date, startClassTime: this.maskForm.date + ' ' + this.maskForm.startTime, endClassTime: this.maskForm.date + ' ' + this.maskForm.endTime, schoolId: this.maskForm.cooperation }).then(
             res => {
               if (res.code == 200) {

+ 0 - 1
src/views/vipClass/vipDetail/components/vipBaseInfo.vue

@@ -157,7 +157,6 @@ export default {
     });
     // 根据id 获取vip学员
     this.getStudents();
-    // console.log(this.$route)
   },
   methods: {
     getStudents () {

+ 0 - 1
src/views/vipClass/vipDetail/components/vipStudentList.vue

@@ -238,7 +238,6 @@ export default {
       })
     },
     getTemplateRow (index, row) {
-      // console.log(row);
       this.activeStudent = row.id;
     },
     addStudent () {

+ 0 - 1
src/views/vipClass/vipDetail/index.vue

@@ -64,7 +64,6 @@ export default {
   },
   methods: {
     handleClick (val, event) {
-      // console.log(val, event);
       this.activeName = val.name;
     },
     getName (val) {

+ 0 - 3
src/views/vipClass/vipReset.vue

@@ -584,7 +584,6 @@ export default {
       return H + ':' + M
     },
     handleSelectionChange (val) {
-      // console.log(val)
       this.adjustmentForm.count = val.length;
       this.activeList = val;
     },
@@ -615,8 +614,6 @@ export default {
       }
     },
     submitAdjustment () {
-      // console.log('提交')
-
       this.$refs['adjustmentForm'].validate(item => {
         if (item) {
           let week = this.weekList;

+ 0 - 1
tests/unit/components/Breadcrumb.spec.js

@@ -79,7 +79,6 @@ describe('Breadcrumb.vue', () => {
   //   router.push('/menu/menu1/menu1-2/menu1-2-2')
   //   const breadcrumbArray = wrapper.findAll('.el-breadcrumb__inner')
   //   const second = breadcrumbArray.at(1)
-  //   console.log(breadcrumbArray)
   //   const href = second.find('a').attributes().href
   //   expect(href).toBe('#/menu/menu1')
   // })