improve: initLog

This commit is contained in:
From-wh 2023-03-04 12:02:25 +08:00
parent fee8006ab7
commit b2f2bd0a43
25 changed files with 6 additions and 67 deletions

View File

@ -59,9 +59,7 @@ export default {
});
});
}
console.log('selectMenu', openMenus);
return selectMenu;
// return this.$store.state.app.breadCrumbList
},
crumbPast() {
let that = this;

View File

@ -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;

View File

@ -24,7 +24,7 @@
</Sider>
<Layout>
<Header class="header-con" v-if="!headMenuNoShow">
<header-bar @on-coll-change="handleCollapsedChange">
<header-bar @on-coll-change="handleCollapsedChange">
<user :message-unread-count="unreadCount" :user-avatar="userAvatar" />
<language v-if="$config.useI18n" @on-lang-change="setLocal" style="margin-right: 10px" :lang="local" />
<header-notice></header-notice>
@ -121,9 +121,7 @@ export default {
};
},
watch: {
sider(val) {
console.log(val);
},
sider(val) {},
},
computed: {
...mapGetters(['errorCount']),

View File

@ -170,7 +170,6 @@ export default {
} else {
this.maxCol = this.maxCols;
}
console.log(this.maxCol);
this.getData();
},
mounted() {},

View File

@ -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);
}

View File

@ -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;
},
},

View File

@ -185,7 +185,6 @@ export default {
this.$el.onselectstart = function () {
return false;
};
console.log(this.defaultImg);
},
methods: {
init() {

View File

@ -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);
// 设置顶栏菜单 后台添加一个接口,设置顶部菜单

View File

@ -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('请输入消息');

View File

@ -5,7 +5,7 @@
<span>
<Button icon="ios-arrow-back" size="small" type="text" @click="$router.go(-1)">返回</Button>
</span>
<Divider type="vertical"/>
<Divider type="vertical" />
<span class="ivu-page-header-title">{{ $route.meta.title }}</span>
</div>
</div>
@ -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;

View File

@ -306,7 +306,6 @@ export default {
methods: {
// 统计
getStatistics(id) {
console.log(id);
getbargainStatistics(id).then((res) => {
let arr = [
'people_count',

View File

@ -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) => {

View File

@ -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) => {

View File

@ -2313,7 +2313,6 @@ export default {
}
productGetTempKeysApi()
.then((res) => {
console.log(res, '??');
that.$videoCloud
.videoUpload({
type: res.data.type,

View File

@ -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 {

View File

@ -76,7 +76,6 @@ export default {
...mapState('admin/layout', ['isMobile']),
},
created() {
console.log(menuCollapse)
this.changeTab(this.currentTab);
},
methods: {

View File

@ -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,

View File

@ -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) {

View File

@ -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: '<p>删除后无法恢复,请确认后删除!</p>',

View File

@ -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;

View File

@ -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: '请选择任务名称',

View File

@ -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);
},
// 删除

View File

@ -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;

View File

@ -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, //编辑器初始显示文字

View File

@ -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') {