forked from github/dataease
chore: cleanup unnecessary console log
Signed-off-by: Ryan Wang <i@ryanc.cc>
This commit is contained in:
parent
b71aba366a
commit
66dfb577b6
@ -768,7 +768,7 @@ function findBelowItems(item) {
|
||||
break
|
||||
}
|
||||
} catch (e) {
|
||||
console.log('positionBox igonre')
|
||||
console.error('positionBox igonre', e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ export default {
|
||||
this.flvPlayer.load()
|
||||
this.flvPlayer.play()
|
||||
} catch (error) {
|
||||
console.log('flvjs err ignore')
|
||||
console.error('flvjs err ignore', error)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -34,7 +34,6 @@ export default {
|
||||
|
||||
recordSnapshot(state) {
|
||||
state.changeTimes++
|
||||
// console.log('recordSnapshot')
|
||||
// 添加新的快照
|
||||
state.snapshotData[++state.snapshotIndex] = deepCopy(state.componentData)
|
||||
state.snapshotStyleData[state.snapshotIndex] = deepCopy(state.canvasStyleData)
|
||||
@ -45,7 +44,6 @@ export default {
|
||||
}
|
||||
},
|
||||
refreshSnapshot(state) {
|
||||
// console.log('refreshSnapshot')
|
||||
// 刷新快照
|
||||
state.snapshotData = [deepCopy(state.componentData)]
|
||||
state.snapshotStyleData = [deepCopy(state.canvasStyleData)]
|
||||
|
@ -167,7 +167,6 @@ export function recursionTransObj(template, infoObj, scale, terminal) {
|
||||
if (infoObj[templateKey] && infoObj[templateKey][templateProp]) {
|
||||
// 移动端特殊属性值设置
|
||||
if (terminal === 'mobile' && mobileSpecialProps[templateProp] !== undefined) {
|
||||
// console.log('mobile:' + templateProp + mobileSpecialProps[templateProp])
|
||||
infoObj[templateKey][templateProp] = mobileSpecialProps[templateProp]
|
||||
} else {
|
||||
infoObj[templateKey][templateProp] = getScaleValue(infoObj[templateKey][templateProp], scale)
|
||||
|
@ -130,7 +130,6 @@ export function changeStyleWithScale(value) {
|
||||
export function changeStyleWithScaleHeightInAuto(value) {
|
||||
const scale = store.state.canvasStyleData.scaleHeight ? store.state.canvasStyleData.scaleHeight : 100
|
||||
const result = value * scale / 100
|
||||
// console.log('heightInAuto=>' + scale + ';' + result)
|
||||
return result
|
||||
}
|
||||
|
||||
@ -138,7 +137,6 @@ export function changeStyleWithScaleHeightInAuto(value) {
|
||||
export function changeStyleWithScaleWidthInAuto(value) {
|
||||
const scale = store.state.canvasStyleData.scaleWidth ? store.state.canvasStyleData.scaleWidth : 100
|
||||
const result = value * scale / 100
|
||||
// console.log('widthInAuto=>' + scale + ';' + result)
|
||||
return result
|
||||
}
|
||||
|
||||
|
@ -114,7 +114,6 @@ export default {
|
||||
// this.watchSize()
|
||||
},
|
||||
created() {
|
||||
// console.log('aaaaaa')
|
||||
const { horizontal, vertical } = this.element.style
|
||||
this.$set(this.element.style, 'horizontal', horizontal || 'left')
|
||||
this.$set(this.element.style, 'vertical', vertical || 'center')
|
||||
|
@ -68,7 +68,6 @@ class TimeDateRangeServiceImpl extends WidgetService {
|
||||
initLeftPanel() {
|
||||
const value = JSON.parse(JSON.stringify(leftPanel))
|
||||
return value
|
||||
// console.log('this is first initWidget')
|
||||
}
|
||||
|
||||
initFilterDialog() {
|
||||
|
@ -79,7 +79,6 @@ class TimeDateServiceImpl extends WidgetService {
|
||||
initLeftPanel() {
|
||||
const value = JSON.parse(JSON.stringify(leftPanel))
|
||||
return value
|
||||
// console.log('this is first initWidget')
|
||||
}
|
||||
|
||||
initFilterDialog() {
|
||||
|
@ -72,7 +72,6 @@ class TimeMonthServiceImpl extends WidgetService {
|
||||
initLeftPanel() {
|
||||
const value = JSON.parse(JSON.stringify(leftPanel))
|
||||
return value
|
||||
// console.log('this is first initWidget')
|
||||
}
|
||||
|
||||
initFilterDialog() {
|
||||
|
@ -44,7 +44,6 @@ class TimeQuarterServiceImpl extends WidgetService {
|
||||
initLeftPanel() {
|
||||
const value = JSON.parse(JSON.stringify(leftPanel))
|
||||
return value
|
||||
// console.log('this is first initWidget')
|
||||
}
|
||||
|
||||
initFilterDialog() {
|
||||
|
@ -71,7 +71,6 @@ class TimeYearServiceImpl extends WidgetService {
|
||||
initLeftPanel() {
|
||||
const value = JSON.parse(JSON.stringify(leftPanel))
|
||||
return value
|
||||
// console.log('this is first initWidget')
|
||||
}
|
||||
|
||||
initFilterDialog() {
|
||||
|
@ -92,14 +92,12 @@ function s2ab(s) {
|
||||
|
||||
export function 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(); var ws = sheet_from_array_of_arrays(data)
|
||||
|
||||
@ -137,48 +135,3 @@ export function export_json_to_excel(th, jsonData, defaultTitle) {
|
||||
var title = defaultTitle || '列表'
|
||||
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")
|
||||
// }
|
||||
// }
|
||||
|
@ -46,7 +46,6 @@ export function baseBarOption(chart_option, chart) {
|
||||
chart_option.series.push(y)
|
||||
}
|
||||
}
|
||||
// console.log(chart_option);
|
||||
componentStyle(chart_option, chart)
|
||||
seniorCfg(chart_option, chart)
|
||||
return chart_option
|
||||
@ -109,7 +108,6 @@ export function horizontalBarOption(chart_option, chart) {
|
||||
chart_option.series.push(y)
|
||||
}
|
||||
}
|
||||
// console.log(chart_option);
|
||||
componentStyle(chart_option, chart)
|
||||
seniorCfg(chart_option, chart)
|
||||
return chart_option
|
||||
|
@ -47,7 +47,6 @@ export function baseFunnelOption(chart_option, chart) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// console.log(chart_option);
|
||||
componentStyle(chart_option, chart)
|
||||
return chart_option
|
||||
}
|
||||
|
@ -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)
|
||||
return chart_option
|
||||
}
|
||||
|
@ -128,7 +128,6 @@ export function baseGaugeOptionAntV(plot, container, chart, action, scale = 1) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// console.log(options.indicator.pin)
|
||||
|
||||
// 开始渲染
|
||||
if (plot) {
|
||||
|
@ -53,7 +53,6 @@ export function baseLineOption(chart_option, chart) {
|
||||
chart_option.series.push(y)
|
||||
}
|
||||
}
|
||||
// console.log(chart_option);
|
||||
componentStyle(chart_option, chart)
|
||||
seniorCfg(chart_option, chart)
|
||||
return chart_option
|
||||
|
@ -80,7 +80,6 @@ export function baseMapOption(chart_option, chart) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// console.log(chart_option);
|
||||
componentStyle(chart_option, chart)
|
||||
return chart_option
|
||||
}
|
||||
|
@ -66,7 +66,6 @@ export function baseMixOption(chart_option, chart) {
|
||||
chart_option.series.push(y)
|
||||
}
|
||||
}
|
||||
// console.log(chart_option);
|
||||
componentStyle(chart_option, chart)
|
||||
seniorCfg(chart_option, chart)
|
||||
return chart_option
|
||||
|
@ -49,7 +49,6 @@ export function basePieOption(chart_option, chart) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// console.log(chart_option);
|
||||
componentStyle(chart_option, chart)
|
||||
return chart_option
|
||||
}
|
||||
@ -102,7 +101,6 @@ export function rosePieOption(chart_option, chart) {
|
||||
}
|
||||
}
|
||||
}
|
||||
// console.log(chart_option);
|
||||
componentStyle(chart_option, chart)
|
||||
return chart_option
|
||||
}
|
||||
|
@ -62,7 +62,6 @@ export function baseRadarOption(chart_option, chart) {
|
||||
chart_option.radar.indicator.push({ name: ele, max: max })
|
||||
})
|
||||
}
|
||||
// console.log(chart_option);
|
||||
componentStyle(chart_option, chart)
|
||||
return chart_option
|
||||
}
|
||||
|
@ -55,7 +55,6 @@ export function baseScatterOption(chart_option, chart, terminal = 'pc') {
|
||||
chart_option.series.push(y)
|
||||
}
|
||||
}
|
||||
// console.log(chart_option);
|
||||
componentStyle(chart_option, chart)
|
||||
seniorCfg(chart_option, chart)
|
||||
return chart_option
|
||||
|
@ -57,7 +57,6 @@ export function baseTreemapOption(chart_option, chart) {
|
||||
chart_option.series[0].name = chart.data.series[0].name
|
||||
}
|
||||
}
|
||||
// console.log(chart_option);
|
||||
componentStyle(chart_option, chart)
|
||||
return chart_option
|
||||
}
|
||||
|
@ -1345,7 +1345,8 @@ export default {
|
||||
}
|
||||
this.fieldShow = true
|
||||
}).catch(err => {
|
||||
console.log(err)
|
||||
console.error(err)
|
||||
|
||||
this.resetView()
|
||||
this.httpRequest.status = err.response.data.success
|
||||
this.httpRequest.msg = err.response.data.message
|
||||
|
@ -101,7 +101,7 @@ export default {
|
||||
message: this.$t('panel.outer_param_decode_error'),
|
||||
type: 'error'
|
||||
})
|
||||
console.log('outerParams Decode error:', e)
|
||||
console.error('outerParams Decode error:', e)
|
||||
}
|
||||
}
|
||||
|
||||
@ -125,7 +125,7 @@ export default {
|
||||
if (--loadingCount === 0) {
|
||||
this.show = true
|
||||
}
|
||||
console.log('tempParam error:', e)
|
||||
console.error('tempParam error:', e)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -326,7 +326,7 @@ export default {
|
||||
callBack(rsp.data)
|
||||
})
|
||||
} catch (e) {
|
||||
console.log('findResourceAsBase64 error')
|
||||
console.error('findResourceAsBase64 error', e)
|
||||
callBack()
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user