refactor: 代码结构优化

This commit is contained in:
wangjiahao 2022-06-30 10:33:30 +08:00
parent 303056bf95
commit 2de5c6ab76
7 changed files with 0 additions and 15 deletions

View File

@ -56,7 +56,6 @@ const responseFake = (url, type, respond) => {
url: new RegExp(`${process.env.VUE_APP_BASE_API}${url}`),
type: type || 'get',
response(req, res) {
console.log('request invoke:' + req.path)
res.json(Mock.mock(respond instanceof Function ? respond(req, res) : respond))
}
}

View File

@ -366,7 +366,6 @@ export function adaptCurThemeFilterStyleAll(styleKey) {
item.style[styleKey] = filterStyle[styleKey]
}
})
console.log('componentData=' + JSON.stringify(componentData))
}
export function isFilterComponent(component) {

View File

@ -174,7 +174,6 @@ export function checkViewTitle(opt, id, tile) {
return false
}
} catch (e) {
console.log('checkViewTitle error', e)
return false
}
}

View File

@ -115,7 +115,6 @@ export function export_table_to_excel(id) {
}
function formatJson(jsonData) {
console.log(jsonData)
}
export function export_json_to_excel(th, jsonData, defaultTitle) {

View File

@ -238,11 +238,7 @@ const data = {
})
},
addViewFilter(state, data) {
console.log('data ')
console.log(data)
const condition = formatCondition(data)
console.log('condition ')
console.log(condition)
const vValid = valueValid(condition)
// 1.根据componentId过滤
const filterComponentId = condition.componentId
@ -252,8 +248,6 @@ const data = {
for (let index = 0; index < state.componentData.length; index++) {
const element = state.componentData[index]
console.log('element: ')
console.log(element)
if (element.type && element.type === 'de-tabs') {
for (let idx = 0; idx < element.options.tabList.length; idx++) {
const ele = element.options.tabList[idx].content
@ -278,8 +272,6 @@ const data = {
if (!element.type || element.type !== 'view') continue
const currentFilters = element.filters || []
const vidMatch = viewIdMatch(condition.viewIds, element.propValue.viewId)
console.log(vidMatch)
let j = currentFilters.length
while (j--) {
const filter = currentFilters[j]

View File

@ -173,8 +173,6 @@ export default {
},
created() {
this.taskLogTimer = setInterval(() => {
console.log(this.sycnStatus)
console.log(this.lastRequestComplete)
if (this.sycnStatus !== 'Underway') {
return;
}

View File

@ -86,7 +86,6 @@ export default {
updatePersonPwd(param).then(res => {
this.$success(this.$t('commons.save_success'))
this.logout()
// this.$router.push('/panel/index')
})
} else {
return false