Merge pull request #2422 from ruibaby/style/remove-unnecessary-console-log

chore: cleanup unnecessary console log
This commit is contained in:
maninhill 2022-06-14 14:52:35 +08:00 committed by GitHub
commit 83b7323156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
26 changed files with 7 additions and 78 deletions

View File

@ -768,7 +768,7 @@ function findBelowItems(item) {
break break
} }
} catch (e) { } catch (e) {
console.log('positionBox igonre') console.error('positionBox igonre', e)
} }
} }
} }

View File

@ -115,7 +115,7 @@ export default {
this.flvPlayer.load() this.flvPlayer.load()
this.flvPlayer.play() this.flvPlayer.play()
} catch (error) { } catch (error) {
console.log('flvjs err ignore') console.error('flvjs err ignore', error)
} }
} }
} }

View File

@ -34,7 +34,6 @@ export default {
recordSnapshot(state) { recordSnapshot(state) {
state.changeTimes++ state.changeTimes++
// console.log('recordSnapshot')
// 添加新的快照 // 添加新的快照
state.snapshotData[++state.snapshotIndex] = deepCopy(state.componentData) state.snapshotData[++state.snapshotIndex] = deepCopy(state.componentData)
state.snapshotStyleData[state.snapshotIndex] = deepCopy(state.canvasStyleData) state.snapshotStyleData[state.snapshotIndex] = deepCopy(state.canvasStyleData)
@ -45,7 +44,6 @@ export default {
} }
}, },
refreshSnapshot(state) { refreshSnapshot(state) {
// console.log('refreshSnapshot')
// 刷新快照 // 刷新快照
state.snapshotData = [deepCopy(state.componentData)] state.snapshotData = [deepCopy(state.componentData)]
state.snapshotStyleData = [deepCopy(state.canvasStyleData)] state.snapshotStyleData = [deepCopy(state.canvasStyleData)]

View File

@ -167,7 +167,6 @@ export function recursionTransObj(template, infoObj, scale, terminal) {
if (infoObj[templateKey] && infoObj[templateKey][templateProp]) { if (infoObj[templateKey] && infoObj[templateKey][templateProp]) {
// 移动端特殊属性值设置 // 移动端特殊属性值设置
if (terminal === 'mobile' && mobileSpecialProps[templateProp] !== undefined) { if (terminal === 'mobile' && mobileSpecialProps[templateProp] !== undefined) {
// console.log('mobile:' + templateProp + mobileSpecialProps[templateProp])
infoObj[templateKey][templateProp] = mobileSpecialProps[templateProp] infoObj[templateKey][templateProp] = mobileSpecialProps[templateProp]
} else { } else {
infoObj[templateKey][templateProp] = getScaleValue(infoObj[templateKey][templateProp], scale) infoObj[templateKey][templateProp] = getScaleValue(infoObj[templateKey][templateProp], scale)

View File

@ -130,7 +130,6 @@ export function changeStyleWithScale(value) {
export function changeStyleWithScaleHeightInAuto(value) { export function changeStyleWithScaleHeightInAuto(value) {
const scale = store.state.canvasStyleData.scaleHeight ? store.state.canvasStyleData.scaleHeight : 100 const scale = store.state.canvasStyleData.scaleHeight ? store.state.canvasStyleData.scaleHeight : 100
const result = value * scale / 100 const result = value * scale / 100
// console.log('heightInAuto=>' + scale + ';' + result)
return result return result
} }
@ -138,7 +137,6 @@ export function changeStyleWithScaleHeightInAuto(value) {
export function changeStyleWithScaleWidthInAuto(value) { export function changeStyleWithScaleWidthInAuto(value) {
const scale = store.state.canvasStyleData.scaleWidth ? store.state.canvasStyleData.scaleWidth : 100 const scale = store.state.canvasStyleData.scaleWidth ? store.state.canvasStyleData.scaleWidth : 100
const result = value * scale / 100 const result = value * scale / 100
// console.log('widthInAuto=>' + scale + ';' + result)
return result return result
} }

View File

@ -114,7 +114,6 @@ export default {
// this.watchSize() // this.watchSize()
}, },
created() { created() {
// console.log('aaaaaa')
const { horizontal, vertical } = this.element.style const { horizontal, vertical } = this.element.style
this.$set(this.element.style, 'horizontal', horizontal || 'left') this.$set(this.element.style, 'horizontal', horizontal || 'left')
this.$set(this.element.style, 'vertical', vertical || 'center') this.$set(this.element.style, 'vertical', vertical || 'center')

View File

@ -68,7 +68,6 @@ class TimeDateRangeServiceImpl extends WidgetService {
initLeftPanel() { initLeftPanel() {
const value = JSON.parse(JSON.stringify(leftPanel)) const value = JSON.parse(JSON.stringify(leftPanel))
return value return value
// console.log('this is first initWidget')
} }
initFilterDialog() { initFilterDialog() {

View File

@ -79,7 +79,6 @@ class TimeDateServiceImpl extends WidgetService {
initLeftPanel() { initLeftPanel() {
const value = JSON.parse(JSON.stringify(leftPanel)) const value = JSON.parse(JSON.stringify(leftPanel))
return value return value
// console.log('this is first initWidget')
} }
initFilterDialog() { initFilterDialog() {

View File

@ -72,7 +72,6 @@ class TimeMonthServiceImpl extends WidgetService {
initLeftPanel() { initLeftPanel() {
const value = JSON.parse(JSON.stringify(leftPanel)) const value = JSON.parse(JSON.stringify(leftPanel))
return value return value
// console.log('this is first initWidget')
} }
initFilterDialog() { initFilterDialog() {

View File

@ -44,7 +44,6 @@ class TimeQuarterServiceImpl extends WidgetService {
initLeftPanel() { initLeftPanel() {
const value = JSON.parse(JSON.stringify(leftPanel)) const value = JSON.parse(JSON.stringify(leftPanel))
return value return value
// console.log('this is first initWidget')
} }
initFilterDialog() { initFilterDialog() {

View File

@ -71,7 +71,6 @@ class TimeYearServiceImpl extends WidgetService {
initLeftPanel() { initLeftPanel() {
const value = JSON.parse(JSON.stringify(leftPanel)) const value = JSON.parse(JSON.stringify(leftPanel))
return value return value
// console.log('this is first initWidget')
} }
initFilterDialog() { initFilterDialog() {

View File

@ -92,14 +92,12 @@ function s2ab(s) {
export function export_table_to_excel(id) { export function export_table_to_excel(id) {
var theTable = document.getElementById(id) var theTable = document.getElementById(id)
console.log('a')
var oo = generateArray(theTable) var oo = generateArray(theTable)
var ranges = oo[1] var ranges = oo[1]
/* original data */ /* original data */
var data = oo[0] var data = oo[0]
var ws_name = 'SheetJS' var ws_name = 'SheetJS'
console.log(data)
var wb = new Workbook(); var ws = sheet_from_array_of_arrays(data) var wb = new Workbook(); var ws = sheet_from_array_of_arrays(data)
@ -137,48 +135,3 @@ export function export_json_to_excel(th, jsonData, defaultTitle) {
var title = defaultTitle || '列表' var title = defaultTitle || '列表'
saveAs(new Blob([s2ab(wbout)], { type: 'application/octet-stream' }), title + '.xlsx') saveAs(new Blob([s2ab(wbout)], { type: 'application/octet-stream' }), title + '.xlsx')
} }
// export default{
// export_json_to_excel(th, jsonData, defaultTitle) {
// /* original data */
// var data = jsonData;
// data.unshift(th);
// var ws_name = "SheetJS";
// var wb = new Workbook(), ws = sheet_from_array_of_arrays(data);
// /* add worksheet to workbook */
// wb.SheetNames.push(ws_name);
// wb.Sheets[ws_name] = ws;
// var wbout = XLSX.write(wb, {bookType: 'xlsx', bookSST: false, type: 'binary'});
// var title = defaultTitle || '列表'
// saveAs(new Blob([s2ab(wbout)], {type: "application/octet-stream"}), title + ".xlsx")
// },
// export_table_to_excel(id) {
// var theTable = document.getElementById(id);
// console.log('a')
// var oo = generateArray(theTable);
// var ranges = oo[1];
// /* original data */
// var data = oo[0];
// var ws_name = "SheetJS";
// console.log(data);
// var wb = new Workbook(), ws = sheet_from_array_of_arrays(data);
// /* add ranges to worksheet */
// // ws['!cols'] = ['apple', 'banan'];
// ws['!merges'] = ranges;
// /* add worksheet to workbook */
// wb.SheetNames.push(ws_name);
// wb.Sheets[ws_name] = ws;
// var wbout = XLSX.write(wb, {bookType: 'xlsx', bookSST: false, type: 'binary'});
// saveAs(new Blob([s2ab(wbout)], {type: "application/octet-stream"}), "test.xlsx")
// }
// }

View File

@ -46,7 +46,6 @@ export function baseBarOption(chart_option, chart) {
chart_option.series.push(y) chart_option.series.push(y)
} }
} }
// console.log(chart_option);
componentStyle(chart_option, chart) componentStyle(chart_option, chart)
seniorCfg(chart_option, chart) seniorCfg(chart_option, chart)
return chart_option return chart_option
@ -109,7 +108,6 @@ export function horizontalBarOption(chart_option, chart) {
chart_option.series.push(y) chart_option.series.push(y)
} }
} }
// console.log(chart_option);
componentStyle(chart_option, chart) componentStyle(chart_option, chart)
seniorCfg(chart_option, chart) seniorCfg(chart_option, chart)
return chart_option return chart_option

View File

@ -47,7 +47,6 @@ export function baseFunnelOption(chart_option, chart) {
} }
} }
} }
// console.log(chart_option);
componentStyle(chart_option, chart) componentStyle(chart_option, chart)
return chart_option return chart_option
} }

View File

@ -130,8 +130,6 @@ export function baseGaugeOption(chart_option, chart, scale = 1) {
} }
} }
} }
// console.log(chart_option.series[0])
// console.log(chart_option);
componentStyle(chart_option, chart) componentStyle(chart_option, chart)
return chart_option return chart_option
} }

View File

@ -128,7 +128,6 @@ export function baseGaugeOptionAntV(plot, container, chart, action, scale = 1) {
} }
} }
} }
// console.log(options.indicator.pin)
// 开始渲染 // 开始渲染
if (plot) { if (plot) {

View File

@ -53,7 +53,6 @@ export function baseLineOption(chart_option, chart) {
chart_option.series.push(y) chart_option.series.push(y)
} }
} }
// console.log(chart_option);
componentStyle(chart_option, chart) componentStyle(chart_option, chart)
seniorCfg(chart_option, chart) seniorCfg(chart_option, chart)
return chart_option return chart_option

View File

@ -80,7 +80,6 @@ export function baseMapOption(chart_option, chart) {
} }
} }
} }
// console.log(chart_option);
componentStyle(chart_option, chart) componentStyle(chart_option, chart)
return chart_option return chart_option
} }

View File

@ -66,7 +66,6 @@ export function baseMixOption(chart_option, chart) {
chart_option.series.push(y) chart_option.series.push(y)
} }
} }
// console.log(chart_option);
componentStyle(chart_option, chart) componentStyle(chart_option, chart)
seniorCfg(chart_option, chart) seniorCfg(chart_option, chart)
return chart_option return chart_option

View File

@ -49,7 +49,6 @@ export function basePieOption(chart_option, chart) {
} }
} }
} }
// console.log(chart_option);
componentStyle(chart_option, chart) componentStyle(chart_option, chart)
return chart_option return chart_option
} }
@ -102,7 +101,6 @@ export function rosePieOption(chart_option, chart) {
} }
} }
} }
// console.log(chart_option);
componentStyle(chart_option, chart) componentStyle(chart_option, chart)
return chart_option return chart_option
} }

View File

@ -62,7 +62,6 @@ export function baseRadarOption(chart_option, chart) {
chart_option.radar.indicator.push({ name: ele, max: max }) chart_option.radar.indicator.push({ name: ele, max: max })
}) })
} }
// console.log(chart_option);
componentStyle(chart_option, chart) componentStyle(chart_option, chart)
return chart_option return chart_option
} }

View File

@ -55,7 +55,6 @@ export function baseScatterOption(chart_option, chart, terminal = 'pc') {
chart_option.series.push(y) chart_option.series.push(y)
} }
} }
// console.log(chart_option);
componentStyle(chart_option, chart) componentStyle(chart_option, chart)
seniorCfg(chart_option, chart) seniorCfg(chart_option, chart)
return chart_option return chart_option

View File

@ -57,7 +57,6 @@ export function baseTreemapOption(chart_option, chart) {
chart_option.series[0].name = chart.data.series[0].name chart_option.series[0].name = chart.data.series[0].name
} }
} }
// console.log(chart_option);
componentStyle(chart_option, chart) componentStyle(chart_option, chart)
return chart_option return chart_option
} }

View File

@ -1345,7 +1345,8 @@ export default {
} }
this.fieldShow = true this.fieldShow = true
}).catch(err => { }).catch(err => {
console.log(err) console.error(err)
this.resetView() this.resetView()
this.httpRequest.status = err.response.data.success this.httpRequest.status = err.response.data.success
this.httpRequest.msg = err.response.data.message this.httpRequest.msg = err.response.data.message

View File

@ -101,7 +101,7 @@ export default {
message: this.$t('panel.outer_param_decode_error'), message: this.$t('panel.outer_param_decode_error'),
type: 'error' type: 'error'
}) })
console.log('outerParams Decode error', e) console.error('outerParams Decode error', e)
} }
} }
@ -125,7 +125,7 @@ export default {
if (--loadingCount === 0) { if (--loadingCount === 0) {
this.show = true this.show = true
} }
console.log('tempParam error', e) console.error('tempParam error', e)
} }
} }

View File

@ -326,7 +326,7 @@ export default {
callBack(rsp.data) callBack(rsp.data)
}) })
} catch (e) { } catch (e) {
console.log('findResourceAsBase64 error') console.error('findResourceAsBase64 error', e)
callBack() callBack()
} }
} else { } else {