@@ -78,7 +85,8 @@ export default {
},
data() {
return {
- activeName: 'detail'
+ activeName: 'detail',
+ canEdit: false,
}
},
computed: {
@@ -90,8 +98,9 @@ export default {
}
},
methods: {
- editDatasource() {
- this.$refs.DsFormContent.editDatasource()
+ editDatasource(type = false) {
+ this.$refs.DsFormContent.editDatasource(type)
+ this.canEdit = type
},
validaDatasource() {
this.$refs.DsFormContent.validaDatasource()
diff --git a/frontend/src/views/system/datasource/DsTree.vue b/frontend/src/views/system/datasource/DsTree.vue
index 876c047492..83a1fa6718 100644
--- a/frontend/src/views/system/datasource/DsTree.vue
+++ b/frontend/src/views/system/datasource/DsTree.vue
@@ -543,6 +543,11 @@ export default {
this.tData.push(typeData[0])
}
}
+
+ if (!this.key) return
+ this.$nextTick(() => {
+ this.$refs.myDsTree.filter(this.key)
+ })
})
},
buildTree(array = []) {
@@ -671,7 +676,7 @@ export default {
_handleEditer(row) {
if (this.showView === 'Datasource') {
const param = { ...row, ...{ showModel: 'show' }}
- this.switchMain('DsForm', param, this.tData, this.dsTypes)
+ this.switchMain('dsTable', param, this.tData, this.dsTypes)
this.currentNodeId && sessionStorage.setItem('datasource-current-node', this.currentNodeId)
return
}
@@ -720,6 +725,22 @@ export default {
this.handlerConfirm(params)
},
switchMain(component, componentParam, tData, dsTypes) {
+ if (component === 'dsTable') {
+ const { id, type, showModel } = componentParam
+ this.$emit('switch-main', {
+ component,
+ componentParam: {
+ id,
+ type,
+ showModel,
+ msgNodeId: this.msgNodeId
+ },
+ tData,
+ dsTypes
+ })
+ return
+ }
+
if (component === 'DsForm') {
const { id, type, showModel } = componentParam
this.$router.push({
From cc1de109758917243cad9ae513fde9a1104a8c0e Mon Sep 17 00:00:00 2001
From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com>
Date: Mon, 26 Dec 2022 16:15:20 +0800
Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=E5=8F=98=E9=87=8F=E9=87=8D=E5=A4=8D?=
=?UTF-8?q?=E5=A3=B0=E6=98=8E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/components/dataease/DeAsideContainer.vue | 3 ---
1 file changed, 3 deletions(-)
diff --git a/frontend/src/components/dataease/DeAsideContainer.vue b/frontend/src/components/dataease/DeAsideContainer.vue
index d175b0c29e..4a76dff7df 100644
--- a/frontend/src/components/dataease/DeAsideContainer.vue
+++ b/frontend/src/components/dataease/DeAsideContainer.vue
@@ -51,9 +51,6 @@ export default {
}
},
computed: {
- currentWidth() {
- return this.isCollapseWidth || this.type && getLayout(this.type) || this.width
- },
isSystem() {
// 系统管理不需要拖拽菜单
return this.isTemplate || (!this.$route.fullPath.includes('system') && this.showDragBar)