提交 e3bcf81b authored 作者: taojinlong's avatar taojinlong

refactor: 去掉调试信息

上级 defdc112
...@@ -157,7 +157,6 @@ export function formatCondition(param) { ...@@ -157,7 +157,6 @@ export function formatCondition(param) {
} }
const result = { conditions: [] } const result = { conditions: [] }
for (const [key, value] of Object.entries(param)) { for (const [key, value] of Object.entries(param)) {
console.log(`${key}`)
result.conditions.push(value) result.conditions.push(value)
} }
return result return result
......
...@@ -43,7 +43,6 @@ service.interceptors.request.use( ...@@ -43,7 +43,6 @@ service.interceptors.request.use(
error => { error => {
error.config.loading && tryHideLoading(store.getters.currentPath) error.config.loading && tryHideLoading(store.getters.currentPath)
// do something with request error // do something with request error
console.log(error) // for debug
return Promise.reject(error) return Promise.reject(error)
} }
) )
...@@ -147,7 +146,6 @@ service.interceptors.response.use(response => { ...@@ -147,7 +146,6 @@ service.interceptors.response.use(response => {
checkPermission(error.response) checkPermission(error.response)
msg = error.response.data.message || error.response.data msg = error.response.data.message || error.response.data
} else { } else {
console.log('error: ' + error) // for debug
msg = error.message msg = error.message
} }
!error.config.hideMsg && $error(msg) !error.config.hideMsg && $error(msg)
......
...@@ -13,7 +13,6 @@ export function hexColorToRGBA(hex, alpha) { ...@@ -13,7 +13,6 @@ export function hexColorToRGBA(hex, alpha) {
}) })
return `rgba(${rgb.join(',')},${alpha / 100})` // 输出RGB格式颜色 return `rgba(${rgb.join(',')},${alpha / 100})` // 输出RGB格式颜色
} else { } else {
console.log(`Input ${hex} is wrong!`)
return 'rgb(0,0,0)' return 'rgb(0,0,0)'
} }
} }
...@@ -545,7 +545,6 @@ export default { ...@@ -545,7 +545,6 @@ export default {
}, },
createChart() { createChart() {
console.log(this.table)
if (!this.table.name) { if (!this.table.name) {
this.$message({ this.$message({
message: this.$t('chart.name_can_not_empty'), message: this.$t('chart.name_can_not_empty'),
......
...@@ -356,7 +356,6 @@ export default { ...@@ -356,7 +356,6 @@ export default {
}, },
watch: { watch: {
'param': function() { 'param': function() {
console.log(this.param)
this.getData(this.param.id) this.getData(this.param.id)
} }
}, },
......
...@@ -123,7 +123,6 @@ export default { ...@@ -123,7 +123,6 @@ export default {
this.loading = false this.loading = false
}) })
} else { } else {
console.log('error submit!!')
return false return false
} }
}) })
......
...@@ -116,7 +116,6 @@ export default { ...@@ -116,7 +116,6 @@ export default {
this.loading = false this.loading = false
}) })
} else { } else {
console.log('error submit!!')
return false return false
} }
}) })
......
...@@ -73,7 +73,6 @@ export default { ...@@ -73,7 +73,6 @@ export default {
value: this.keyWord value: this.keyWord
} }
this.search(condition) this.search(condition)
console.log('start execute search')
} }
this.destryTimeMachine() this.destryTimeMachine()
}, 1500) }, 1500)
...@@ -169,10 +168,8 @@ export default { ...@@ -169,10 +168,8 @@ export default {
this.$error(err.message) this.$error(err.message)
return false return false
}) })
console.log('dept save')
}, },
cancel() { cancel() {
console.log('dept cancel')
}, },
buildRequest(rows) { buildRequest(rows) {
......
...@@ -25,7 +25,6 @@ export default { ...@@ -25,7 +25,6 @@ export default {
}, },
mounted() { mounted() {
bus.$on('PanelSwitchComponent', (c) => { bus.$on('PanelSwitchComponent', (c) => {
console.log(c)
this.param = c.param this.param = c.param
switch (c.name) { switch (c.name) {
case 'PanelEdit': case 'PanelEdit':
......
...@@ -72,7 +72,6 @@ export default { ...@@ -72,7 +72,6 @@ export default {
}, },
methods: { methods: {
clickMore(param) { clickMore(param) {
console.log(param)
switch (param.type) { switch (param.type) {
case 'edit': case 'edit':
this.templateEdit(param.data) this.templateEdit(param.data)
......
...@@ -95,7 +95,6 @@ export default { ...@@ -95,7 +95,6 @@ export default {
}) })
}, },
handleExceed(file) { handleExceed(file) {
console.log(file.name)
}, },
cancel() { cancel() {
this.$emit('closeEditPanelDialog') this.$emit('closeEditPanelDialog')
...@@ -123,7 +122,6 @@ export default { ...@@ -123,7 +122,6 @@ export default {
this.editPanel.panelInfo.name = this.importTemplateInfo.name this.editPanel.panelInfo.name = this.importTemplateInfo.name
this.editPanel.panelInfo.panelStyle = this.importTemplateInfo.panelStyle this.editPanel.panelInfo.panelStyle = this.importTemplateInfo.panelStyle
this.editPanel.panelInfo.panelData = this.importTemplateInfo.panelData this.editPanel.panelInfo.panelData = this.importTemplateInfo.panelData
console.log(this.importTemplateInfo)
} }
reader.readAsText(file) reader.readAsText(file)
}, },
......
...@@ -394,7 +394,6 @@ export default { ...@@ -394,7 +394,6 @@ export default {
}, },
saveGroup(group) { saveGroup(group) {
// console.log(group);
this.$refs['groupForm'].validate((valid) => { this.$refs['groupForm'].validate((valid) => {
if (valid) { if (valid) {
addGroup(group).then(res => { addGroup(group).then(res => {
......
...@@ -101,7 +101,6 @@ export default { ...@@ -101,7 +101,6 @@ export default {
}, },
clickMore(param) { clickMore(param) {
console.log(param)
switch (param.type) { switch (param.type) {
case 'edit': case 'edit':
this.templateEdit(param.data) this.templateEdit(param.data)
......
...@@ -122,19 +122,6 @@ export default { ...@@ -122,19 +122,6 @@ export default {
this.uploading = false this.uploading = false
}, },
uploadSuccess(response, file, fileList) { uploadSuccess(response, file, fileList) {
console.log(response)
console.log(file)
console.log(fileList)
// this.path = response.data.path
// this.fields = response.data.fields
// this.data = response.data.data
// const datas = this.data
// this.$refs.plxTable.reloadData(datas)
// if (file.name.lastIndexOf('.') > 0) {
// this.name = file.name.substring(0, file.name.lastIndexOf('.'))
// }
// this.fileList = fileList
this.uploading = false this.uploading = false
}, },
...@@ -144,10 +131,6 @@ export default { ...@@ -144,10 +131,6 @@ export default {
cancelButtonText: this.$t('commons.cancel'), cancelButtonText: this.$t('commons.cancel'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
// delUser(encodeURIComponent(row.userId)).then(res => {
// this.$success(this.$t('commons.delete_success'))
// this.search()
// })
}).catch(() => { }).catch(() => {
this.$info(this.$t('commons.delete_cancel')) this.$info(this.$t('commons.delete_cancel'))
}) })
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论