Przeglądaj źródła

删除掉不必要的----debugger console.log

plg 6 miesięcy temu
rodzic
commit
bce6f4ff6b

+ 0 - 6
src/components/CpmdQuestionnaire.vue

@@ -44,8 +44,6 @@ const questionList = ref<any>()
 //调用接口  查询问卷调查项的接口
 const queryQuestion = async (planId: string) => {
     //
-    console.log("userInfo")
-    console.log(userInfo.userInfo)
     questionList.value = [];
     let list: any = await queryQuestionApi('0')
     for (let i = 0; i < list.data.length; i++) {
@@ -65,17 +63,13 @@ const queryQuestion = async (planId: string) => {
         }
         questionList.value.push(obj)
     }
-    console.log("questionList.value")
-    console.log(questionList.value)
 
     //从此得到返回列表
 }
 
 //提交答案时校验
 const submitQuestion = () => {
-    console.log(questionList.value)
     for (let i = 0; i < questionList.value.length; i++) {
-        console.log(questionList.value[i].optionValue)
         if (questionList.value[i].topicType == '3' && questionList.value[i].optionValue != '') {
             //格式化时间格式
             questionList.value[i].optionValue = format(questionList.value[i].optionValue, "yyyy-MM-dd");

+ 0 - 4
src/utils/http.ts

@@ -73,10 +73,6 @@ axios.interceptors.response.use(
                     message: response.data.msg,
                     type: 'warning'
                 })
-
-
-                // const router = useRouter()
-                console.log(router)
                 router.push({ name: 'login' })
                 menuStatus.saveActiveIndex('6')
             }

+ 0 - 6
src/views/1.vue

@@ -74,8 +74,6 @@ const forStatus = () => {
     clearInterval(flag_time.value)
     // flag_text.value == 2
     flag_time.value = setInterval(() => {
-        console.log('定时器')
-        console.log(flag_text.value)
         flag_text.value = flag_text.value + 1
         if (flag_text.value > 4) {
             flag_text.value = 1
@@ -87,10 +85,8 @@ const forStatus = () => {
 }
 
 const setHeight = () => {
-    console.log('----------------------------------------------')
     //-------设置背景图的高度---------//
     const width = homeHeaderOut.value
-    console.log(width.offsetWidth)
     height.value = width.offsetWidth * 1000 / 1920
     xlts.value = height.value - 100
     plan_jihua.value = height.value + 100
@@ -103,7 +99,6 @@ onUnmounted(() => {
 
 //鼠标移入事件--状态进行切换
 const brightStatus = (val: number) => {
-    console.log(val)
     clearInterval(flag_time.value)
     flag_text.value = val
 }
@@ -129,7 +124,6 @@ const planNumGet = async () => {
 
         //调用根据用户查询计划的API
         let res: any = await userPlanApi(userNo)
-        console.log(res)
         if (res.data.length > 0) {
             taskCircleFlag.value = true
         } else {

+ 0 - 3
src/views/CognizeFaceDot.vue

@@ -75,8 +75,6 @@ const requireWav = (name: string) => {
 onMounted(() => {
     countDownStr.value = '马上开始'
     currentType.value = parseInt(route.params.currentType as string)
-    console.log(currentType.value)
-    console.log('currentType')
 
     flag1.value = route.params.flag as string;
     planId.value = route.params.planId as string
@@ -118,7 +116,6 @@ onMounted(() => {
 const getStartTime = () => {
     let date = new Date()
     startTime1.value = format(date, "yyyy-MM-dd HH:mm:ss");
-    console.log(startTime1.value)
 }
 onUnmounted(() => {
     clearInterval(myInterval.value);

+ 0 - 2
src/views/CognizeGoNoGo.vue

@@ -80,7 +80,6 @@ onMounted(() => {
 const getStartTime = () => {
     let date = new Date()
     startTime.value = format(date, "yyyy-MM-dd HH:mm:ss");
-    console.log(startTime.value)
 }
 const init = () => {
     taskId.value = ''
@@ -299,7 +298,6 @@ const getScore = async (i: number) => {
             userNo: userInfo.userInfo.userNo,
         }
         let res: any = await saveGoNoGoApi(params)
-        console.log(res)
 
         if (res.code = 200) {
             ElMessage({

+ 0 - 5
src/views/Community.vue

@@ -65,7 +65,6 @@ const queryMsg = async () => {
         pageSize: pageSize.value
     }
     let res: any = await queryMsgApi(params)
-    console.log(res)
     if (res.code == 200) {
         // 将值赋值给列表
         if (res.data.content.length > 0) {
@@ -84,9 +83,7 @@ const queryMsg = async () => {
 }
 //获取数据报
 const getData = async () => {
-    console.log('架子了')
     //判断总条数是否大于当前页面的数据
-    // console.log(totol.value == list.value.length)
     //先判断
     if (totol.value < list.value.length) {
         noMore.value = true;
@@ -159,7 +156,6 @@ const queryMsg1 = async () => {
 //获取数据报
 const getData1 = async () => {
     //判断总条数是否大于当前页面的数据
-    console.log(totol1.value == list1.value.length)
     if (totol1.value < list1.value.length) {
         noMore1.value = true;
         return
@@ -324,7 +320,6 @@ const subPubMsg = async () => {
         // sub_visible.value = false
         //调用个查询
         //加一条在上边
-        console.log(list1.value)
         list1.value.push(res.data)
         subMM.value = ''
         //禁用滚动

+ 0 - 4
src/views/HomeView.vue

@@ -83,7 +83,6 @@ const queryIsQuestion = async () => {
   //判断用户是否登录
   if (userInfo.token) {
     let res: any = await queryIsQuestionApi()
-    console.log("res")
     planId.value = res.data;
     if (planId.value == null) {
       //设置标识不显示
@@ -116,7 +115,6 @@ const setHeight = () => {
   console.log('----------------------------------------------')
   //-------设置背景图的高度---------//
   const width = homeHeaderOut.value
-  console.log(width.offsetWidth)
   height.value = width.offsetWidth * 1000 / 1920
   xlts.value = height.value - 80
   plan_jihua.value = height.value + 100
@@ -129,7 +127,6 @@ onUnmounted(() => {
 
 //鼠标移入事件--状态进行切换
 const brightStatus = (val: number) => {
-  console.log(val)
   clearInterval(flag_time.value)
   flag_text.value = val
 }
@@ -156,7 +153,6 @@ const planNumGet = async () => {
 
     //调用根据用户查询计划的API
     let res: any = await userPlanApi(userNo)
-    console.log(res)
     if (res.data.length > 0) {
       taskCircleFlag.value = true
     } else {

+ 0 - 14
src/views/Plan.vue

@@ -120,16 +120,6 @@ const startPlan = async (val: any) => {
     //先判断量表接口中是否都完成了
     //如果量表接口都完成了
     //则开始循环认知任务接口
-
-    //判断是否登录了
-    // console.log(userInfo.token == '')
-    // if (userInfo.token == '') {
-    //     ElMessage({
-    //         message: '请先登录',
-    //         type: 'error'
-    //     })
-    //     return
-    // }
 }
 
 const planNumGet = async () => {
@@ -191,11 +181,9 @@ const planNumGet = async () => {
                     }
 
                     if (planList.value[i].list[j].contentType == '0' && planList.value[i].list[j].isAvailable == '1' && planList.value[i].list[j].isDisplayed == '1') {
-                        console.log(planList.value[i].list[j])
                         planList.value[i].scaleList.push(planList.value[i].list[j])
                     }
                     if (planList.value[i].list[j].contentType == '1' && planList.value[i].list[j].isAvailable == '1' && planList.value[i].list[j].isDisplayed == '1') {
-                        console.log(planList.value[i].list[j])
                         planList.value[i].taskList.push(planList.value[i].list[j])
                     }
                     //判断是否是SCL90的flag
@@ -206,8 +194,6 @@ const planNumGet = async () => {
                 }
             }
         }
-        console.log("planList.value")
-        console.log(planList.value)
         //数据格式改变抽出需要展示的量表、、放入数组
         //抽出需要展示的认知任务--放入数组
 

+ 0 - 11
src/views/Register.vue

@@ -60,7 +60,6 @@ const registerFun = async () => {
         return
     }
     isLock.value = true
-    console.log(group.value)
     //点击注册的方法
     //判断各个字段是否都在---或是否都为空
     if (group.value == '') {
@@ -80,8 +79,6 @@ const registerFun = async () => {
         isLock.value = false
         return
     }
-    // console.log(account.value)
-    // console.log()
     if (!/^[A-Za-z0-9]+$/.test(account.value)) {
         ElMessage({
             message: '账号只允许输入数字和英文',
@@ -158,12 +155,9 @@ const registerFun = async () => {
         password: md5(password.value)
 
     }
-    console.log(prams)
     //如果都通过开始调用方法注册的方法
     const res: any = await userRegisterApi(prams)
     isLock.value = false
-    console.log('注册返回细信息')
-    console.log(res)
     if (res.code == 200) {
         ElMessage({
             message: res.msg,
@@ -195,7 +189,6 @@ const queryOrgName = () => {
 //获取组织架构list
 const userGroupFun = async () => {
     let res: any = await userGroupApi()
-    console.log(res)
     //数据的得到后新增数据格式的value字段 和id一样    新增数据格式的label  与name一致
 
     //增加字段的方法
@@ -204,11 +197,7 @@ const userGroupFun = async () => {
         let resAdd = addPro(res.data)
         ppData.value = JSON.parse(JSON.stringify(resAdd))
         let forRes = arrToTree(resAdd)
-        // console.log('格式化的结构')
-        // console.log(forRes)
         let resultRes = deleteChildren(forRes)
-        console.log('格式化的结构且去掉children')
-        console.log(resultRes)
         groupData.value = resultRes
     } else {
         groupData.value = []

+ 0 - 3
src/views/Report.vue

@@ -138,7 +138,6 @@ const option = reactive({
 //持久化设置 菜单状态
 //刚进入页面就将高度设置为页面需要的
 onMounted(() => {
-    console.log(route.params)
     const params = route.params
     //当等于0时则跳转到测试计划页面
     //当等于1时则跳转到上一页
@@ -163,8 +162,6 @@ onMounted(() => {
 })
 const queryReport = async (pa: any) => {
     let res: any = await queryReportApi(pa)
-    console.log('返回的报告记录')
-    console.log(res)
     //得到返回的数据
     if (res.code == 200) {
         reportData.value = res.data

+ 0 - 15
src/views/Scale.vue

@@ -286,8 +286,6 @@ const queryNeedScale = async () => {
         //调用详细的API
         let temp: any = await userPlanDetailApi(params)
         planObj.value.list = temp.data
-        console.log('planObj')
-        console.log(planObj.value)
         //判断是否需要
         //判断量表中有几个是必须测试的且不显示的
         let list = []
@@ -331,12 +329,6 @@ const queryNeedScale = async () => {
         planIsComplateNum.value = listIsComplate.length;
         //测试未完成
         planNoComplateNum.value = listNoComplate.length;
-        console.log('总长度')
-        console.log(listNeedAll.length)
-        console.log('已经测过的长度')
-        console.log(listIsComplate.length)
-        console.log('未测过的长度')
-        console.log(listNoComplate.length)
         //判断 如果总长度是0的话--需要跳转到测试计划页
         if (planAllNum.value == 0) {
             //跳转计划页面
@@ -352,8 +344,6 @@ const queryNeedScale = async () => {
         for (let i = 0; i < scaleList.value.length; i++) {
             scaleList.value[i].isCheck = ''
         }
-        console.log(scaleList.value)
-
     }
 
 
@@ -361,14 +351,11 @@ const queryNeedScale = async () => {
 //根据flag查询量表详情
 
 
-// console.log(res)
 // scaleName.value = res.data.name;
 // detail.value = res.data.description;
 // theory.value = res.data.theory;
 // //参考文献
-// console.log(res.data.reference)
 // reference.value = res.data.reference.split('//');
-// console.log(reference.value)
 
 
 const productData = (data: any) => {
@@ -441,14 +428,12 @@ onMounted(() => {
 const getStartTime = () => {
     let date = new Date()
     startTime.value = format(date, "yyyy-MM-dd HH:mm:ss");
-    console.log(startTime.value)
 }
 
 //根据flag 获取当前的题目
 const getScaleFun = async (val: string) => {
     scaleList.value = []
     let res: any = await getScaleApi(val)
-    console.log(res.data)
     scaleList.value = res.data
     for (let i = 0; i < scaleList.value.length; i++) {
         scaleList.value[i].isCheck = ''

+ 0 - 3
src/views/ScaleDetail.vue

@@ -109,14 +109,11 @@ const sclStatus = async () => {
 const queryScaleDetail = async () => {
     //根据flag查询量表详情
     let res: any = await queryScaleDetailApi(flag.value)
-    console.log(res)
     scaleName.value = res.data.name;
     detail.value = res.data.description;
     theory.value = res.data.theory;
     //参考文献
-    console.log(res.data.reference)
     reference.value = res.data.reference.split('//');
-    console.log(reference.value)
 }
 const startText = () => {
     //当;类型是0时、、跳转到量表测试界面

+ 0 - 1
src/views/ScaleMid.vue

@@ -166,7 +166,6 @@ const planNumGet = async () => {
                 }
             }
         }
-        console.log(obj.value)
         //跳转到这里后 需要修改当前任务的总条数
         userInfo.savePlanCurrentNum(res.data.length)
 

+ 0 - 5
src/views/TestRecord.vue

@@ -31,7 +31,6 @@ const list = ref<any>([])
 //获取数据报
 const getData = async () => {
     //判断总条数是否大于当前页面的数据
-    console.log(totol.value == list.value.length)
     //先判断
     if (totol.value == list.value.length) {
         //显示noMore
@@ -79,12 +78,10 @@ const initData = async () => {
 
 
             //在这里进行循环--将需要显示的报告查询出来放入数组
-            console.log(listInit.length)
             for (let i = 0; i < listInit.length; i++) {
 
                 // list.value[i].listLin = []
 
-                console.log(JSON.stringify(listInit))
                 let params = {
                     planId: listInit[i].id,
                     userNo: userInfo.userInfo.userNo
@@ -109,8 +106,6 @@ const initData = async () => {
                 // list.value[i].list = temp.data
                 // list.value[i].listLin = []
             }
-            console.log("listInit")
-            console.log(listInit)
             list.value.push(...listInit)
 
             totol.value = res.data.totalElements

+ 0 - 4
src/views/shapeIntuition_random.vue

@@ -100,7 +100,6 @@ export default {
     this.flagName = this.$route.params.flagName;
     //
     this.formalTest = this.$route.params.formalTest;
-    console.log(this.$route.params.formalTest)
 
     this.beginTime = myFormat(new Date().getTime(), "yyyy-MM-dd HH:mm:ss")
 
@@ -258,7 +257,6 @@ export default {
             userNo: userInfo.userInfo.userNo
           }
           const res = await saveEggRecordApi(result);
-          console.log(res);
           this.$message({
             message: "测试结束!",
             type: "success",
@@ -331,14 +329,12 @@ export default {
             imgObj.userClickDirection = "";
             imgObj.diff = this.difficultList[j];
             tempList.push(imgObj);
-            //console.log(tempList)
           }
           //this.shuffle(tempList);
           this.userTestPicList = this.userTestPicList.concat(tempList);
           this.testPicCount = this.userTestPicList.length;
         }
         this.shuffle(this.userTestPicList);
-        console.log(this.userTestPicList);
       }
     },
     getRandomNumber(size, maxNumber) {

+ 0 - 2
src/views/shapeIntuition_random2.vue

@@ -226,7 +226,6 @@ const computeScore = async () => {
         userNo: userInfo.userInfo.userNo
       };
       const res = await saveEggRecordApi(result);
-      console.log(res);
       alert("测试结束!");
       state.saveFalg = false;
     }
@@ -279,7 +278,6 @@ const userTestPicListCreate = () => {
       state.testPicCount = state.userTestPicList.length;
     }
     shuffle(state.userTestPicList);
-    console.log(state.userTestPicList);
   }
 };