去除console.log

This commit is contained in:
shenyanpei
2021-11-25 17:20:16 +08:00
parent e8a6555488
commit 8c39dbaea1
4 changed files with 1 additions and 15 deletions
+1 -1
View File
@@ -254,7 +254,7 @@ export default {
{ {
title: '标准化活动日历', title: '标准化活动日历',
path: '/standCalendar', path: '/standCalendar',
menuId: '0ea66e3dd36873082b6851f69e92c8be' menuId: ''
}, },
// { // {
// title: '标准比对库', // title: '标准比对库',
-7
View File
@@ -54,15 +54,10 @@ import { mapMutations, mapActions } from 'vuex'
// 路由拦截 // 路由拦截
router.beforeEach(function (to, from, next) { router.beforeEach(function (to, from, next) {
console.log("auth : to =>", to);
console.log(webLoginType)
let toName = to.name let toName = to.name
let token = store.state.token let token = store.state.token
let path = to.path; let path = to.path;
let requireAuth = to.meta.requireAuth; let requireAuth = to.meta.requireAuth;
console.log("auth : path =>" + path);
console.log("token : token =>" + token);
console.log("requireAuth : requireAuth =>" + requireAuth);
let taskId = to.query.taskIds; let taskId = to.query.taskIds;
let prcId = to.query.prcId; let prcId = to.query.prcId;
let prcNum = to.query.prcNum; let prcNum = to.query.prcNum;
@@ -71,7 +66,6 @@ router.beforeEach(function (to, from, next) {
let routerType = to.query.routerType; let routerType = to.query.routerType;
let param = "taskIds=" + taskId + "&prcId=" + prcId let param = "taskIds=" + taskId + "&prcId=" + prcId
+ "&prcNum=" + prcNum + "&prcName=" + prcName + "&prcType=" + prcType; + "&prcNum=" + prcNum + "&prcName=" + prcName + "&prcType=" + prcType;
console.log(store)
let url = window.location.search let url = window.location.search
let code = ""; let code = "";
if(url){ if(url){
@@ -232,7 +226,6 @@ router.beforeEach(function (to, from, next) {
next({path: routerPath + '?' + param2}) next({path: routerPath + '?' + param2})
} }
} }
console.log("res : res =>", res);
}) })
} }
if(path === '/loginVerify'){ if(path === '/loginVerify'){
@@ -1194,7 +1194,6 @@ export default {
methods: { methods: {
child1Func(child1){ child1Func(child1){
const list = [] const list = []
console.log(child1)
if(child1 && child1.length > 1){ if(child1 && child1.length > 1){
list.push(child1[0]) list.push(child1[0])
return list return list
@@ -2157,7 +2156,6 @@ export default {
const [displayLocation, {attrInfoMap: dynamicFormField}, formFieldList] = values const [displayLocation, {attrInfoMap: dynamicFormField}, formFieldList] = values
// const relatedPlansRes = await this.queryRelatedPlans() // const relatedPlansRes = await this.queryRelatedPlans()
// const relatedPlans = relatedPlansRes.list // const relatedPlans = relatedPlansRes.list
console.log(formFieldList)
formFieldList.forEach((field) => { formFieldList.forEach((field) => {
displayLocation.forEach((location) => { displayLocation.forEach((location) => {
location.isShowImp = '0' location.isShowImp = '0'
@@ -2194,16 +2192,12 @@ export default {
displayLocation.forEach(location => { displayLocation.forEach(location => {
// 动态属性字段-FBGBJBD 单独添加至基础信息 // 动态属性字段-FBGBJBD 单独添加至基础信息
const list = displayLocation.filter ( item => item.label === '过程稿件'); const list = displayLocation.filter ( item => item.label === '过程稿件');
console.log(list)
if(location.label === '基础信息' && list && list.length > 0){ if(location.label === '基础信息' && list && list.length > 0){
if (!list[0].child) { if (!list[0].child) {
location['child1'] = [] location['child1'] = []
}else { }else {
const childList = list[0].child.filter ( item => item.attrField === 'FBGBUSS'); const childList = list[0].child.filter ( item => item.attrField === 'FBGBUSS');
console.log(childList)
console.log(childList.length)
location['child1'] = childList location['child1'] = childList
console.log(location['child1'])
} }
} }
@@ -148,7 +148,6 @@
} }
let list let list
list = res.data.slice(0, c) list = res.data.slice(0, c)
console.log(list)
this.linkList = list this.linkList = list
}) })
} }