diff --git a/core/core-frontend/src/components/collapse-switch-item/src/CollapseSwitchItem.vue b/core/core-frontend/src/components/collapse-switch-item/src/CollapseSwitchItem.vue index 6525f6c522..c9ab2a9d91 100644 --- a/core/core-frontend/src/components/collapse-switch-item/src/CollapseSwitchItem.vue +++ b/core/core-frontend/src/components/collapse-switch-item/src/CollapseSwitchItem.vue @@ -19,7 +19,7 @@ const emit = defineEmits(['update:modelValue', 'modelChange']) const { changeModel, title, themes } = toRefs(props) const collapseItem = ref() -const onSwitchChange = e => { +const onSwitchChange = () => { emit('modelChange', changeModel.value) if (!props.modelValue && !collapseItem.value.isActive) { collapseItem.value.handleHeaderClick() diff --git a/core/core-frontend/src/components/custom-password/src/CustomPassword.vue b/core/core-frontend/src/components/custom-password/src/CustomPassword.vue index efd997402d..c12e47a0e1 100644 --- a/core/core-frontend/src/components/custom-password/src/CustomPassword.vue +++ b/core/core-frontend/src/components/custom-password/src/CustomPassword.vue @@ -1,5 +1,5 @@ diff --git a/core/core-frontend/src/components/dashboard/DbDragArea.vue b/core/core-frontend/src/components/dashboard/DbDragArea.vue index 128f42a1b6..3f0b1e0eb8 100644 --- a/core/core-frontend/src/components/dashboard/DbDragArea.vue +++ b/core/core-frontend/src/components/dashboard/DbDragArea.vue @@ -8,7 +8,6 @@ diff --git a/core/core-frontend/src/views/home/Dark.vue b/core/core-frontend/src/views/home/Dark.vue deleted file mode 100644 index 013fa4cf0e..0000000000 --- a/core/core-frontend/src/views/home/Dark.vue +++ /dev/null @@ -1,90 +0,0 @@ - - - - - Http:// - ---- - - ---- - - ---- - - 13 - - - ---- - - Option 1 - Option 2 - - ---- - - ---- - - - 与现实生活一致:与现实生活的流程、逻辑保持一致,遵循用户习惯的语言和概念; - - 在界面中一致:所有的元素和结构需保持一致,比如:设计样式、图标和文本、元素的位置等。 - - - - 与现实生活一致:与现实生活的流程、逻辑保持一致,遵循用户习惯的语言和概念; - - 在界面中一致:所有的元素和结构需保持一致,比如:设计样式、图标和文本、元素的位置等。 - - - - ---- - - 13 - - - Action 1 - Action 2 - Action 3 - Action 4 - Action 5 - - - - - - - diff --git a/core/core-frontend/src/views/home/index.vue b/core/core-frontend/src/views/home/index.vue index c3e0f75165..8291758705 100644 --- a/core/core-frontend/src/views/home/index.vue +++ b/core/core-frontend/src/views/home/index.vue @@ -1,39 +1 @@ - - Tag 1 - {{ size }} - click - click - - - +home diff --git a/core/core-frontend/src/views/visualized/data/dataset/index.vue b/core/core-frontend/src/views/visualized/data/dataset/index.vue index 4911e4d44e..8a844bbf93 100644 --- a/core/core-frontend/src/views/visualized/data/dataset/index.vue +++ b/core/core-frontend/src/views/visualized/data/dataset/index.vue @@ -67,15 +67,6 @@ const createPanel = path => { window.open(baseUrl, '_blank') } -const addOperation = ( - cmd: string, - data?: BusiTreeNode, - nodeType?: string, - parentSelect?: boolean -) => { - resourceGroupOpt.value.optInit(nodeType, data || {}, cmd, parentSelect) -} - const resourceOptFinish = param => { if (param && param.opt === 'newLeaf') { resourceCreate(param.pid, param.name) diff --git a/core/core-frontend/src/views/visualized/data/datasource/form/EditorDetail.vue b/core/core-frontend/src/views/visualized/data/datasource/form/EditorDetail.vue index 28f8bc5257..ffea6854cb 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/form/EditorDetail.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/form/EditorDetail.vue @@ -51,9 +51,6 @@ const state = reactive({ }) const schemas = ref([]) - -const configurationSchema = ref(false) - const dsForm = ref() const cronEdit = ref(true) diff --git a/core/core-frontend/src/views/visualized/data/datasource/form/ExcelDetail.vue b/core/core-frontend/src/views/visualized/data/datasource/form/ExcelDetail.vue index 20946aa6fe..0dedb44053 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/form/ExcelDetail.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/form/ExcelDetail.vue @@ -144,7 +144,7 @@ const handleTabClick = tab => { const uploadFail = response => { let myError = response.toString() - myError = myError.replace('Error: ', '') + myError.replace('Error: ', '') } const tabList = shallowRef([]) const activeTab = ref('') diff --git a/core/core-frontend/src/views/visualized/data/datasource/form/index.vue b/core/core-frontend/src/views/visualized/data/datasource/form/index.vue index 1cabbd26c4..43e66ff474 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/form/index.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/form/index.vue @@ -18,7 +18,6 @@ import { useEmitt } from '@/hooks/web/useEmitt' import FinishPage from '../FinishPage.vue' import { cloneDeep } from 'lodash-es' import { useCache } from '@/hooks/web/useCache' -import { delDatasetTree } from '@/api/dataset' interface Node { name: string id: string @@ -292,7 +291,7 @@ const validateDS = () => { validate(request).then(res => { if (res.data.type === 'API') { let error = 0 - const status = JSON.parse(res.data.status) + const status = JSON.parse(res.data.status) as Array<{ status: string }> for (let i = 0; i < status.length; i++) { if (status[i].status === 'Error') { error++ diff --git a/core/core-frontend/src/views/visualized/data/datasource/index.vue b/core/core-frontend/src/views/visualized/data/datasource/index.vue index 149301f512..6af486f654 100644 --- a/core/core-frontend/src/views/visualized/data/datasource/index.vue +++ b/core/core-frontend/src/views/visualized/data/datasource/index.vue @@ -405,21 +405,6 @@ const dfsDatasourceTree = (ds, id) => { }) } -const convertConfig = array => { - for (let index = 0; index < array.length; index++) { - if (array[index].leaf) { - if (array[index].configuration) { - array[index].configuration = JSON.parse(Base64.decode(array[index].configuration)) - } - if (array[index].apiConfigurationStr) { - array[index].apiConfiguration = JSON.parse(Base64.decode(array[index].apiConfigurationStr)) - } - } else if (array[index].children && array[index].children.length > 0) { - convertConfig(array[index].children) - } - } -} - listDs() const creatDsFolder = ref() @@ -519,7 +504,7 @@ const updateApiTable = api => { } const updateApiDs = () => { - syncApiDs({ datasourceId: nodeInfo.id }).then(res => { + syncApiDs({ datasourceId: nodeInfo.id }).then(() => { ElMessage.success(t('datasource.req_completed')) }) } diff --git a/core/core-frontend/src/views/visualized/view/panel/filter-config/index.vue b/core/core-frontend/src/views/visualized/view/panel/filter-config/index.vue index 23b38b6f40..0687eeec21 100644 --- a/core/core-frontend/src/views/visualized/view/panel/filter-config/index.vue +++ b/core/core-frontend/src/views/visualized/view/panel/filter-config/index.vue @@ -15,12 +15,6 @@ const activeName = ref('setting') const activeNameData = ref('dataset') const allParams = shallowRef([]) const curTableViews = shallowRef([]) - -const widget = reactive({ - showSwitch: false, - isTimeWidget: () => true, - isSortWidget: () => true -}) const customStyle = reactive({ border: '', background: '', diff --git a/core/core-frontend/src/views/workbranch/ShortcutOption.ts b/core/core-frontend/src/views/workbranch/ShortcutOption.ts index ae504b7856..791e165c34 100644 --- a/core/core-frontend/src/views/workbranch/ShortcutOption.ts +++ b/core/core-frontend/src/views/workbranch/ShortcutOption.ts @@ -59,7 +59,7 @@ class ShortcutOption { loadData(param: ShortcutRequest): Promise { const url = this.busiRecordMap[this.busiFlag].url if (this.emptyParam(param) && this.getCacheData()?.length) { - return new Promise((res, rej) => { + return new Promise(res => { const result = { code: 200, data: this.getCacheData(),