forked from github/dataease
Merge pull request #6922 from dataease/pr@dev-v2@perf_console_log
perf: 删除控制台打印
This commit is contained in:
commit
567851fce9
@ -129,10 +129,8 @@ htmlStream.pipe(parserStream).on('finish', () => {
|
|||||||
document.documentElement.insertBefore(head, document.querySelector('head'))`
|
document.documentElement.insertBefore(head, document.querySelector('head'))`
|
||||||
|
|
||||||
fs.writeFile('../dist/demo.html', template, err => {
|
fs.writeFile('../dist/demo.html', template, err => {
|
||||||
console.log('写入成功')
|
|
||||||
})
|
})
|
||||||
|
|
||||||
fs.writeFile(`../dist/js/div_import_${suffix}.js`, templateJs, err => {
|
fs.writeFile(`../dist/js/div_import_${suffix}.js`, templateJs, err => {
|
||||||
console.log('写入成功templateJs')
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -58,7 +58,6 @@ import ChartError from '@/views/chart/components/views/components/ChartError.vue
|
|||||||
import { useEmitt } from '@/hooks/web/useEmitt'
|
import { useEmitt } from '@/hooks/web/useEmitt'
|
||||||
const snapshotStore = snapshotStoreWithOut()
|
const snapshotStore = snapshotStoreWithOut()
|
||||||
const errMsg = ref('')
|
const errMsg = ref('')
|
||||||
const curFields = ref([])
|
|
||||||
const dvMainStore = dvMainStoreWithOut()
|
const dvMainStore = dvMainStoreWithOut()
|
||||||
const { canvasViewInfo } = storeToRefs(dvMainStore)
|
const { canvasViewInfo } = storeToRefs(dvMainStore)
|
||||||
const isError = ref(false)
|
const isError = ref(false)
|
||||||
@ -371,7 +370,6 @@ const initCurFields = chartDetails => {
|
|||||||
yDataeaseNames.push(yItem.dataeaseName)
|
yDataeaseNames.push(yItem.dataeaseName)
|
||||||
yDataeaseNamesCfg[yItem.dataeaseName] = yItem.formatterCfg
|
yDataeaseNamesCfg[yItem.dataeaseName] = yItem.formatterCfg
|
||||||
})
|
})
|
||||||
rowDataFormat(rowData, yDataeaseNames, yDataeaseNamesCfg)
|
|
||||||
}
|
}
|
||||||
for (const key in rowData) {
|
for (const key in rowData) {
|
||||||
dataRowSelect.value[nameIdMap[key]] = rowData[key]
|
dataRowSelect.value[nameIdMap[key]] = rowData[key]
|
||||||
@ -388,15 +386,6 @@ const initCurFields = chartDetails => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const rowDataFormat = (rowData, yDataeaseNames, yDataeaseNamesCfg) => {
|
|
||||||
console.log(
|
|
||||||
'rowData, yDataeaseNames, yDataeaseNamesCfg',
|
|
||||||
rowData,
|
|
||||||
yDataeaseNames,
|
|
||||||
yDataeaseNamesCfg
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
const renderChart = () => {
|
const renderChart = () => {
|
||||||
//do nothing
|
//do nothing
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,6 @@ let isShiftDown = false
|
|||||||
// 全局监听按键操作并执行相应命令
|
// 全局监听按键操作并执行相应命令
|
||||||
export function listenGlobalKeyDown() {
|
export function listenGlobalKeyDown() {
|
||||||
window.onkeydown = e => {
|
window.onkeydown = e => {
|
||||||
console.log('e.keyCode-down=' + e.keyCode)
|
|
||||||
if (!isInEditor || checkDialog()) return
|
if (!isInEditor || checkDialog()) return
|
||||||
const { keyCode } = e
|
const { keyCode } = e
|
||||||
if (positionMoveKey[keyCode] && curComponent.value) {
|
if (positionMoveKey[keyCode] && curComponent.value) {
|
||||||
@ -129,7 +128,6 @@ export function listenGlobalKeyDown() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.onkeyup = e => {
|
window.onkeyup = e => {
|
||||||
console.log('e.keyCode=' + e.keyCode)
|
|
||||||
if (e.keyCode === ctrlKey || e.keyCode === commandKey) {
|
if (e.keyCode === ctrlKey || e.keyCode === commandKey) {
|
||||||
isCtrlOrCommandDown = false
|
isCtrlOrCommandDown = false
|
||||||
composeStore.setIsCtrlOrCmdDownStatus(false)
|
composeStore.setIsCtrlOrCmdDownStatus(false)
|
||||||
|
@ -42,7 +42,7 @@ const buildSettingList = () => {
|
|||||||
const emits = defineEmits(['saved'])
|
const emits = defineEmits(['saved'])
|
||||||
const submitForm = async (formEl: FormInstance | undefined) => {
|
const submitForm = async (formEl: FormInstance | undefined) => {
|
||||||
if (!formEl) return
|
if (!formEl) return
|
||||||
await formEl.validate((valid, fields) => {
|
await formEl.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
const param = buildSettingList()
|
const param = buildSettingList()
|
||||||
if (param.length < 2) {
|
if (param.length < 2) {
|
||||||
@ -62,8 +62,6 @@ const submitForm = async (formEl: FormInstance | undefined) => {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
closeLoading()
|
closeLoading()
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
console.log('error submit!', fields)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -95,7 +93,6 @@ const edit = list => {
|
|||||||
state.form[item['pkey']] = pval || state.form[item['pkey']]
|
state.form[item['pkey']] = pval || state.form[item['pkey']]
|
||||||
return item
|
return item
|
||||||
})
|
})
|
||||||
console.log(state.settingList)
|
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
}
|
}
|
||||||
defineExpose({
|
defineExpose({
|
||||||
|
@ -38,7 +38,7 @@ const edit = () => {
|
|||||||
const emits = defineEmits(['saved'])
|
const emits = defineEmits(['saved'])
|
||||||
const submitForm = async (formEl: FormInstance | undefined) => {
|
const submitForm = async (formEl: FormInstance | undefined) => {
|
||||||
if (!formEl) return
|
if (!formEl) return
|
||||||
await formEl.validate((valid, fields) => {
|
await formEl.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
const param = { ...state.form }
|
const param = { ...state.form }
|
||||||
const method = null
|
const method = null
|
||||||
@ -56,8 +56,6 @@ const submitForm = async (formEl: FormInstance | undefined) => {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
closeLoading()
|
closeLoading()
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
console.log('error submit!', fields)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<p class="router-title">{{ t('commons.system_parameter_setting') }}</p>
|
<p class="router-title">{{ t('commons.system_parameter_setting') }}</p>
|
||||||
<el-tabs v-model="activeName" @tab-click="handleClick">
|
<el-tabs v-model="activeName">
|
||||||
<el-tab-pane v-for="item in tabArray" :key="item.name" :label="item.label" :name="item.name" />
|
<el-tab-pane v-for="item in tabArray" :key="item.name" :label="item.label" :name="item.name" />
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
<div class="sys-setting-p" :class="{ 'setting-auto-h': activeName !== 'map' }">
|
<div class="sys-setting-p" :class="{ 'setting-auto-h': activeName !== 'map' }">
|
||||||
@ -27,9 +27,6 @@ const tabArray = [
|
|||||||
/* {label: '引擎设置', name: 'engine'}, */
|
/* {label: '引擎设置', name: 'engine'}, */
|
||||||
]
|
]
|
||||||
const activeName = ref('basic')
|
const activeName = ref('basic')
|
||||||
const handleClick = (tab, event: Event) => {
|
|
||||||
console.log(tab, event)
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
.router-title {
|
.router-title {
|
||||||
|
@ -89,8 +89,6 @@ const submitForm = async (formEl: FormInstance | undefined) => {
|
|||||||
.catch(() => {
|
.catch(() => {
|
||||||
closeLoading()
|
closeLoading()
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
console.log('error submit!', fields)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -3,14 +3,5 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref } from 'vue'
|
|
||||||
import { useI18n } from '@/hooks/web/useI18n'
|
|
||||||
import TemplateManage from '@/views/template/index.vue'
|
import TemplateManage from '@/views/template/index.vue'
|
||||||
|
|
||||||
const { t } = useI18n()
|
|
||||||
|
|
||||||
const activeName = ref('basic')
|
|
||||||
const handleClick = (tab, event: Event) => {
|
|
||||||
console.log(tab, event)
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
2
de-xpack
2
de-xpack
@ -1 +1 @@
|
|||||||
Subproject commit e31c9212056eae3656aa534e3cc778d00001fe98
|
Subproject commit 13ca5bc32e594b003f137f763abad11700e382b8
|
Loading…
Reference in New Issue
Block a user