From b2f2bd0a4346e3050446536e09dc1b97961e71e5 Mon Sep 17 00:00:00 2001 From: From-wh Date: Sat, 4 Mar 2023 12:02:25 +0800 Subject: [PATCH] improve: initLog --- .../main/components/header-bar/header-bar.vue | 2 -- .../main/components/side-menu/collapsed-menu.vue | 6 ------ template/admin/src/components/main/main.vue | 6 ++---- template/admin/src/components/newsCategory/index.vue | 1 - template/admin/src/components/verifition/Verify.vue | 1 - .../components/verifition/Verify/VerifyPoints.vue | 1 - .../src/components/verifition/Verify/VerifySlide.vue | 1 - template/admin/src/main.js | 1 - template/admin/src/pages/kefu/pc/index.vue | 1 - .../pages/marketing/channelCode/codeStatistic.vue | 6 ++---- .../src/pages/marketing/storeBargain/statistics.vue | 1 - .../pages/marketing/storeCombination/statistics.vue | 1 - .../src/pages/marketing/storeSeckill/statistics.vue | 1 - .../admin/src/pages/product/productAdd/index.vue | 1 - .../admin/src/pages/product/productList/index.vue | 2 -- template/admin/src/pages/setting/agreement/index.vue | 1 - template/admin/src/pages/setting/setSystem/index.vue | 2 -- .../src/pages/setting/systemOutAccount/index.vue | 5 +---- .../src/pages/setting/systemOutInterface/index.vue | 12 ------------ template/admin/src/pages/statistic/order/index.vue | 4 +--- .../admin/src/pages/system/crontab/createModal.vue | 3 --- template/admin/src/pages/system/crontab/index.vue | 2 -- template/admin/src/pages/system/file/index.vue | 2 -- .../src/pages/system/maintain/systemFile/opendir.vue | 1 - .../admin/src/pages/system/onlineUpgrade/index.vue | 9 --------- 25 files changed, 6 insertions(+), 67 deletions(-) diff --git a/template/admin/src/components/main/components/header-bar/header-bar.vue b/template/admin/src/components/main/components/header-bar/header-bar.vue index 6eef6f3ca..e94d85e8b 100644 --- a/template/admin/src/components/main/components/header-bar/header-bar.vue +++ b/template/admin/src/components/main/components/header-bar/header-bar.vue @@ -59,9 +59,7 @@ export default { }); }); } - console.log('selectMenu', openMenus); return selectMenu; - // return this.$store.state.app.breadCrumbList }, crumbPast() { let that = this; diff --git a/template/admin/src/components/main/components/side-menu/collapsed-menu.vue b/template/admin/src/components/main/components/side-menu/collapsed-menu.vue index ffd691afa..d2ab4f0b4 100644 --- a/template/admin/src/components/main/components/side-menu/collapsed-menu.vue +++ b/template/admin/src/components/main/components/side-menu/collapsed-menu.vue @@ -69,16 +69,10 @@ export default { }, methods: { handleClick(name) { - console.log(name, '1'); this.$emit('on-click', name, this.activeMenuPath); }, handClick(name) { - console.log(name, this.activeMenuPath); this.$emit('on-click', name, this.activeMenuPath); - - // if (name == settings.routePre + '/home/') { - // this.$emit('on-click', name, this.activeMenuPath); - // } }, handleMousemove(event, children) { const { pageY } = event; diff --git a/template/admin/src/components/main/main.vue b/template/admin/src/components/main/main.vue index f03fe5d92..418659912 100644 --- a/template/admin/src/components/main/main.vue +++ b/template/admin/src/components/main/main.vue @@ -24,7 +24,7 @@
- + @@ -121,9 +121,7 @@ export default { }; }, watch: { - sider(val) { - console.log(val); - }, + sider(val) {}, }, computed: { ...mapGetters(['errorCount']), diff --git a/template/admin/src/components/newsCategory/index.vue b/template/admin/src/components/newsCategory/index.vue index e5cbaf1d1..0b1f6845b 100644 --- a/template/admin/src/components/newsCategory/index.vue +++ b/template/admin/src/components/newsCategory/index.vue @@ -170,7 +170,6 @@ export default { } else { this.maxCol = this.maxCols; } - console.log(this.maxCol); this.getData(); }, mounted() {}, diff --git a/template/admin/src/components/verifition/Verify.vue b/template/admin/src/components/verifition/Verify.vue index 9f086c3c7..381c0e75f 100644 --- a/template/admin/src/components/verifition/Verify.vue +++ b/template/admin/src/components/verifition/Verify.vue @@ -153,7 +153,6 @@ export default { var slider = 'slider' + '-' + s.join(''); var point = 'point' + '-' + s.join(''); // 判断下是否存在 slider - console.log(localStorage.getItem('slider')); if (!localStorage.getItem('slider')) { localStorage.setItem('slider', slider); } diff --git a/template/admin/src/components/verifition/Verify/VerifyPoints.vue b/template/admin/src/components/verifition/Verify/VerifyPoints.vue index 29cc4a842..276d62ecd 100644 --- a/template/admin/src/components/verifition/Verify/VerifyPoints.vue +++ b/template/admin/src/components/verifition/Verify/VerifyPoints.vue @@ -266,7 +266,6 @@ export default { const y = Math.round((155 * p.y) / parseInt(imgSize.imgHeight)); return { x, y }; }); - // console.log(newPointArr,"newPointArr"); return newPointArr; }, }, diff --git a/template/admin/src/components/verifition/Verify/VerifySlide.vue b/template/admin/src/components/verifition/Verify/VerifySlide.vue index 42c6b497b..272117aa8 100644 --- a/template/admin/src/components/verifition/Verify/VerifySlide.vue +++ b/template/admin/src/components/verifition/Verify/VerifySlide.vue @@ -185,7 +185,6 @@ export default { this.$el.onselectstart = function () { return false; }; - console.log(this.defaultImg); }, methods: { init() { diff --git a/template/admin/src/main.js b/template/admin/src/main.js index caf2508f4..a4011a51f 100644 --- a/template/admin/src/main.js +++ b/template/admin/src/main.js @@ -204,7 +204,6 @@ new Vue({ this.$store.commit('menu/setActivePath', path); let openNameList = getMenuopen(to, menuSider); this.$store.commit('menus/setopenMenus', openNameList); - console.log(openNameList, 'openNameList'); const openNames = getSiderSubmenu(to, menuSider); this.$store.commit('menu/setOpenNames', openNames); // 设置顶栏菜单 后台添加一个接口,设置顶部菜单 diff --git a/template/admin/src/pages/kefu/pc/index.vue b/template/admin/src/pages/kefu/pc/index.vue index e07b632cf..cc7a4babf 100644 --- a/template/admin/src/pages/kefu/pc/index.vue +++ b/template/admin/src/pages/kefu/pc/index.vue @@ -440,7 +440,6 @@ export default { // 阻止浏览器默认换行操作 listen(e) { if (e.shiftKey && e.keyCode == 13) { - console.log('换行'); } else if (e.keyCode == 13) { if (e.target.value == '') { return this.$Message.error('请输入消息'); diff --git a/template/admin/src/pages/marketing/channelCode/codeStatistic.vue b/template/admin/src/pages/marketing/channelCode/codeStatistic.vue index 24859e52b..6797cec07 100644 --- a/template/admin/src/pages/marketing/channelCode/codeStatistic.vue +++ b/template/admin/src/pages/marketing/channelCode/codeStatistic.vue @@ -5,7 +5,7 @@ - + {{ $route.meta.title }} @@ -165,9 +165,7 @@ export default { return datetime; }, - selectChange(e) { - console.log(this.timeG(e.split(',')[0]), this.timeG(e.split(',')[1])); - }, + selectChange(e) {}, // 具体日期 onchangeTime(e) { this.timeVal = e; diff --git a/template/admin/src/pages/marketing/storeBargain/statistics.vue b/template/admin/src/pages/marketing/storeBargain/statistics.vue index 36dd4e6d9..ff55f1843 100644 --- a/template/admin/src/pages/marketing/storeBargain/statistics.vue +++ b/template/admin/src/pages/marketing/storeBargain/statistics.vue @@ -306,7 +306,6 @@ export default { methods: { // 统计 getStatistics(id) { - console.log(id); getbargainStatistics(id).then((res) => { let arr = [ 'people_count', diff --git a/template/admin/src/pages/marketing/storeCombination/statistics.vue b/template/admin/src/pages/marketing/storeCombination/statistics.vue index 21b2afea5..41b6fb337 100644 --- a/template/admin/src/pages/marketing/storeCombination/statistics.vue +++ b/template/admin/src/pages/marketing/storeCombination/statistics.vue @@ -309,7 +309,6 @@ export default { methods: { // 统计 getStatistics(id) { - console.log(id); getcombinationStatistics(id).then((res) => { let arr = ['people_count', 'spread_count', 'start_count', 'success_count', 'pay_price', 'pay_count']; this.cardLists.map((i, index) => { diff --git a/template/admin/src/pages/marketing/storeSeckill/statistics.vue b/template/admin/src/pages/marketing/storeSeckill/statistics.vue index b85df5009..0a5169d31 100644 --- a/template/admin/src/pages/marketing/storeSeckill/statistics.vue +++ b/template/admin/src/pages/marketing/storeSeckill/statistics.vue @@ -201,7 +201,6 @@ export default { methods: { // 统计 getStatistics(id) { - console.log(id); getseckillStatistics(id).then((res) => { let arr = ['order_count', 'all_price', 'pay_count', 'pay_rate']; this.cardLists.map((i, index) => { diff --git a/template/admin/src/pages/product/productAdd/index.vue b/template/admin/src/pages/product/productAdd/index.vue index c0878ffe6..77da4d7bd 100644 --- a/template/admin/src/pages/product/productAdd/index.vue +++ b/template/admin/src/pages/product/productAdd/index.vue @@ -2313,7 +2313,6 @@ export default { } productGetTempKeysApi() .then((res) => { - console.log(res, '??'); that.$videoCloud .videoUpload({ type: res.data.type, diff --git a/template/admin/src/pages/product/productList/index.vue b/template/admin/src/pages/product/productList/index.vue index 1e7a7779c..35a3d495d 100644 --- a/template/admin/src/pages/product/productList/index.vue +++ b/template/admin/src/pages/product/productList/index.vue @@ -445,7 +445,6 @@ export default { }, methods: { batchSub() { - console.log(this.selectedIds, this.ids); let data = this.batchFormData; data.ids = this.ids; data.type = this.batchType; @@ -484,7 +483,6 @@ export default { }, // 批量设置商品 batchSelect(type) { - console.log(type); if (!this.ids.length) { this.$Message.warning('请选择要修改的商品'); } else { diff --git a/template/admin/src/pages/setting/agreement/index.vue b/template/admin/src/pages/setting/agreement/index.vue index 8fc77fa5a..81c9ab501 100644 --- a/template/admin/src/pages/setting/agreement/index.vue +++ b/template/admin/src/pages/setting/agreement/index.vue @@ -76,7 +76,6 @@ export default { ...mapState('admin/layout', ['isMobile']), }, created() { - console.log(menuCollapse) this.changeTab(this.currentTab); }, methods: { diff --git a/template/admin/src/pages/setting/setSystem/index.vue b/template/admin/src/pages/setting/setSystem/index.vue index 5cd855b5c..e33952165 100644 --- a/template/admin/src/pages/setting/setSystem/index.vue +++ b/template/admin/src/pages/setting/setSystem/index.vue @@ -169,7 +169,6 @@ export default { return this.$authLapse(res.data); } this.FromData = res.data; - console.log(this.FromData); this.rules = res.data.rules; this.title = res.data.title; }) @@ -200,7 +199,6 @@ export default { }, // 提交表单 group onSubmit(formData) { - console.log(formData); request({ url: this.FromData.action, method: this.FromData.method, diff --git a/template/admin/src/pages/setting/systemOutAccount/index.vue b/template/admin/src/pages/setting/systemOutAccount/index.vue index d069cee54..8987fbf26 100644 --- a/template/admin/src/pages/setting/systemOutAccount/index.vue +++ b/template/admin/src/pages/setting/systemOutAccount/index.vue @@ -396,9 +396,7 @@ export default { }; this.getIntList(); }, - selectTree(e, i) { - console.log(e, i); - }, + selectTree(e, i) {}, getIntList(type, list) { interfaceList().then((res) => { this.intList = res.data; @@ -505,7 +503,6 @@ export default { }); }, ok(name) { - console.log(this.$refs.tree.getCheckedAndIndeterminateNodes()); let fuc = this.modalsid ? outSavesApi : outSaveApi; this.$refs[name].validate((valid) => { if (valid) { diff --git a/template/admin/src/pages/setting/systemOutInterface/index.vue b/template/admin/src/pages/setting/systemOutInterface/index.vue index 82addde1c..838b75747 100644 --- a/template/admin/src/pages/setting/systemOutInterface/index.vue +++ b/template/admin/src/pages/setting/systemOutInterface/index.vue @@ -505,7 +505,6 @@ export default { }, methods: { onClicksss(e) { - console.log(e); }, methodsColor(newVal) { let method = newVal.toUpperCase(); @@ -520,13 +519,10 @@ export default { } }, insertBefore(params) { - console.log(params); }, insertAfter(params) { - console.log(params); }, moveInto(params) { - console.log(params); }, async addTableData() { const { row: data } = await $table.insertAt(newRow, -1); @@ -535,7 +531,6 @@ export default { getInterfaceList(disk_type) { interfaceList() .then((res) => { - console.log(res); res.data[0].expand = false; this.treeData = new Tree(res.data); @@ -550,14 +545,11 @@ export default { }); }, onClick(params) { - console.log(params); if (params.method) { this.isEdit = false; interfaceDet(params.id) .then((res) => { - console.log(res); this.formValidate = res.data; - console.log(this.formValidate); }) .catch((err) => { this.$Message.error(err); @@ -577,7 +569,6 @@ export default { this.formValidate.error_code = await this.$refs.codeTable.getTableData().tableData; await interfaceSave(this.formValidate) .then((res) => { - console.log(res); this.isEdit = false; this.$Message.success(res.msg); this.getInterfaceList(); @@ -679,7 +670,6 @@ export default { }, addFac(params) { - console.log('1111'); this.formValidate = { id: params ? params.id : 0, }; @@ -702,7 +692,6 @@ export default { }, //侧边栏右键点击事件 handleContextMenu(data, event, position) { - console.log('右键'); position.left = Number(position.left.slice(0, -2)) + 75 + 'px'; this.contextData = data; }, @@ -792,7 +781,6 @@ export default { }, // onDel(node) { - console.log(node.id); this.$Modal.confirm({ title: '警告', content: '

删除后无法恢复,请确认后删除!

', diff --git a/template/admin/src/pages/statistic/order/index.vue b/template/admin/src/pages/statistic/order/index.vue index d48994cd6..5400a7f33 100644 --- a/template/admin/src/pages/statistic/order/index.vue +++ b/template/admin/src/pages/statistic/order/index.vue @@ -240,9 +240,7 @@ export default { this.loading2 = false; }); }, - selectChange(e) { - console.log(this.timeG(e.split(',')[0]), this.timeG(e.split(',')[1])); - }, + selectChange(e) {}, // 具体日期 onchangeTime(e) { this.timeVal = e; diff --git a/template/admin/src/pages/system/crontab/createModal.vue b/template/admin/src/pages/system/crontab/createModal.vue index 4c98abfac..236bb9486 100644 --- a/template/admin/src/pages/system/crontab/createModal.vue +++ b/template/admin/src/pages/system/crontab/createModal.vue @@ -214,8 +214,6 @@ export default { } }, timerInfo(id) { - console.log(id); - timerInfo(id).then((res) => { this.modal = true; this.formValidate = res.data; @@ -228,7 +226,6 @@ export default { }, // 提交 handleSubmit() { - console.log(this.formValidate); if (!this.formValidate.mark) { return this.$Message.error({ content: '请选择任务名称', diff --git a/template/admin/src/pages/system/crontab/index.vue b/template/admin/src/pages/system/crontab/index.vue index df30aad44..0d32555f0 100644 --- a/template/admin/src/pages/system/crontab/index.vue +++ b/template/admin/src/pages/system/crontab/index.vue @@ -125,11 +125,9 @@ export default { }); }, addTask() { - console.log(this.$refs.addTask); this.$refs.addTask.modal = true; }, edit(id) { - console.log(id); this.$refs.addTask.timerInfo(id); }, // 删除 diff --git a/template/admin/src/pages/system/file/index.vue b/template/admin/src/pages/system/file/index.vue index 1101ef1e6..e92535dcd 100644 --- a/template/admin/src/pages/system/file/index.vue +++ b/template/admin/src/pages/system/file/index.vue @@ -19,8 +19,6 @@ export default { }; }, mounted() { - console.log(this.$refs.picBox.clientWidth); - this.$nextTick(() => { let winWidth = this.$refs.picBox.clientWidth; let winHeight = document.body.clientHeight - 170; diff --git a/template/admin/src/pages/system/maintain/systemFile/opendir.vue b/template/admin/src/pages/system/maintain/systemFile/opendir.vue index c33fd2913..01fb18c1c 100644 --- a/template/admin/src/pages/system/maintain/systemFile/opendir.vue +++ b/template/admin/src/pages/system/maintain/systemFile/opendir.vue @@ -577,7 +577,6 @@ export default { initEditor() { let that = this; that.$nextTick(() => { - console.log(monaco); // 初始化编辑器,确保dom已经渲染 that.editor = monaco.editor.create(document.getElementById('container_' + that.indexEditor), { value: that.code, //编辑器初始显示文字 diff --git a/template/admin/src/pages/system/onlineUpgrade/index.vue b/template/admin/src/pages/system/onlineUpgrade/index.vue index 4dd735420..6d46915a4 100644 --- a/template/admin/src/pages/system/onlineUpgrade/index.vue +++ b/template/admin/src/pages/system/onlineUpgrade/index.vue @@ -231,7 +231,6 @@ export default { } }, handleClick(tab, event) { - console.log(tab, event) this.page = 1 if(tab == 1){ this.getupgradeableList(); @@ -249,7 +248,6 @@ export default { let res = await upgradeListApi(data); this.upgradeList = res.data.list; this.upgradeList = res.data.list; - console.log('升级列表', this.upgradeList); }, // 升级记录 getUpgradeLogList() { @@ -273,14 +271,11 @@ export default { // 可升级列表 async getupgradeableList() { let res = await upgradeableListApi(); - console.log('111111') this.upgradeableList = res.data; let firstVer = res.data[0] if(this.$store.state.upgrade.toggleStatus || this.upgradeStatus.force_reminder){ const data = res.data.find(item => item.force_reminder === 1) this.newKey = data.package_key; - console.log('data',data) - this.forceVersion = data.first_version + '.' + data.second_version + '.' + data.third_version + '.' + data.fourth_version }else{ this.params_key = this.upgradeableList[0].package_key @@ -322,15 +317,11 @@ export default { }, // 下载升级包 getdownload() { - console.log(this.newKey); - console.log(this.$store.state.upgrade.toggleStatus); if (this.$store.state.upgrade.toggleStatus || this.upgradeStatus.force_reminder) { this.params_key = this.newKey; } - console.log('下载key', this.params_key); downloadApi(this.params_key) .then((res) => { - console.log('下载升级包调用成功', res.status); // this.downloadStatus = res.status; if (res.status == 200) { if (this.upgradeProgress.speed !== '100.0') {