fix: 定时器相关代码还原

main
wu.jian2 2 years ago
parent 63a4150b23
commit db1e34cb78

@ -154,7 +154,9 @@ export default {
this.windowSize() this.windowSize()
}, },
mounted () { mounted () {
this.startTimer() if (this.pageInfo.pageConfig.refreshConfig && this.pageInfo.pageConfig.refreshConfig.length > 0) {
this.startTimer()
}
}, },
beforeDestroy () { beforeDestroy () {
this.stopTimer() this.stopTimer()

@ -226,7 +226,6 @@ export default {
} }
}, },
code () { code () {
// return this.catalogInfo?.page?.code
return '' return ''
}, },
gridComputed () { gridComputed () {

@ -138,7 +138,6 @@ export default {
methods: { methods: {
// //
openAddForm (type, componentName) { openAddForm (type, componentName) {
console.log()
this.dialogVisible = false this.dialogVisible = false
this.$emit('openAddForm', type, componentName) this.$emit('openAddForm', type, componentName)
} }

@ -945,7 +945,6 @@ export default {
this.currentCount = data.data.currentCount this.currentCount = data.data.currentCount
this.tableLoading = false this.tableLoading = false
}).catch((e) => { }).catch((e) => {
console.log(e)
this.dataPreviewList = [] this.dataPreviewList = []
this.structurePreviewList = [] this.structurePreviewList = []
this.structurePreviewListCopy = [] this.structurePreviewListCopy = []

@ -772,7 +772,6 @@ export default {
} }
}) })
} }
console.log(this.structurePreviewList)
if (this.structurePreviewList.length && this.dataForm.fieldDesc) { if (this.structurePreviewList.length && this.dataForm.fieldDesc) {
this.buildFieldDesc() this.buildFieldDesc()
} }
@ -780,7 +779,6 @@ export default {
this.saveLoading = false this.saveLoading = false
this.passTest = true this.passTest = true
}).catch((e) => { }).catch((e) => {
console.log(e)
this.passTest = false this.passTest = false
this.saveLoading = false this.saveLoading = false
}) })

@ -3,7 +3,6 @@ const svgFiles = require.context('./svg', true, /\.svg$/)
const iconList = svgFiles.keys()?.map(item => svgFiles(item)) const iconList = svgFiles.keys()?.map(item => svgFiles(item))
export default { export default {
getNameList () { getNameList () {
console.log(iconList)
return iconList?.map(item => { return iconList?.map(item => {
return item?.default?.id?.split('-')[1] return item?.default?.id?.split('-')[1]
}) || [] }) || []

@ -45,7 +45,6 @@ export default {
this.dataLoading = true this.dataLoading = true
return getUpdateChartInfo(params) return getUpdateChartInfo(params)
.then(res => { .then(res => {
console.log(2, res)
config = this.buildOption(config, res) config = this.buildOption(config, res)
this.changeChartConfig(config) this.changeChartConfig(config)
this.changeChartKey(config.code) this.changeChartKey(config.code)

@ -125,7 +125,6 @@ export default {
} }
if ((event.ctrlKey || event.metaKey) && event.keyCode === 86) { if ((event.ctrlKey || event.metaKey) && event.keyCode === 86) {
console.log('粘贴')
// 粘贴 // 粘贴
this.pasteCharts() this.pasteCharts()
} }

@ -64,6 +64,7 @@ export function handleResData (data) {
} }
// 如果pageConfig中的cacheDataSets为null赋值[] // 如果pageConfig中的cacheDataSets为null赋值[]
pageInfo.pageConfig.cacheDataSets = pageInfo.pageConfig.cacheDataSets || [] pageInfo.pageConfig.cacheDataSets = pageInfo.pageConfig.cacheDataSets || []
pageInfo.pageConfig.refreshConfig = pageInfo.pageConfig.refreshConfig || []
pageInfo.chartList.forEach((chart) => { pageInfo.chartList.forEach((chart) => {
if (!['customComponent', 'remoteComponent'].includes(chart.type)) { if (!['customComponent', 'remoteComponent'].includes(chart.type)) {
chart.option = _.cloneDeep(setModules[chart.type]) chart.option = _.cloneDeep(setModules[chart.type])

@ -26,6 +26,7 @@ export const defaultData = {
themeJson: {}, // 自定义主题配置 themeJson: {}, // 自定义主题配置
// 缓存的数据集 { name: '', dataSetId: '' } // 缓存的数据集 { name: '', dataSetId: '' }
cacheDataSets: [], cacheDataSets: [],
refreshConfig: [],
// 自适应模式 无(none) 、自动(auto)、宽度铺满(fitWidth)、高度铺满(fitHeight)和 双向铺满cover 5 种自适应模式 // 自适应模式 无(none) 、自动(auto)、宽度铺满(fitWidth)、高度铺满(fitHeight)和 双向铺满cover 5 种自适应模式
fitMode: 'none' fitMode: 'none'
}, },

Loading…
Cancel
Save