diff --git a/frontend/src/components/dataease/DeAsideContainer.vue b/frontend/src/components/dataease/DeAsideContainer.vue index c2eb6074ea..d175b0c29e 100644 --- a/frontend/src/components/dataease/DeAsideContainer.vue +++ b/frontend/src/components/dataease/DeAsideContainer.vue @@ -46,7 +46,8 @@ export default { }, data() { return { - asideHidden: false + asideHidden: false, + currentWidth: '', } }, computed: { @@ -57,6 +58,17 @@ export default { // 系统管理不需要拖拽菜单 return this.isTemplate || (!this.$route.fullPath.includes('system') && this.showDragBar) } + }, + mounted() { + this.setCurrentWidth() + }, + beforeUpdate() { + this.setCurrentWidth() + }, + methods: { + setCurrentWidth() { + this.currentWidth = this.isCollapseWidth || this.type && getLayout(this.type) || this.width + } } } diff --git a/frontend/src/components/deCustomCm/DeTextarea.vue b/frontend/src/components/deCustomCm/DeTextarea.vue index b624d7eea6..ca2b255469 100644 --- a/frontend/src/components/deCustomCm/DeTextarea.vue +++ b/frontend/src/components/deCustomCm/DeTextarea.vue @@ -17,7 +17,10 @@ export default { count: { update: function(el, binding) { const { value, maxlength, buttonDisabled } = binding.value - if (buttonDisabled) return + if (buttonDisabled) { + el.removeChild(el.querySelector('.el-input__count')) + return + } const lg = value?.length || 0 const count = el.querySelector('.el-input__count') if (!count) return diff --git a/frontend/src/views/dataset/add/AddSQL.vue b/frontend/src/views/dataset/add/AddSQL.vue index 61dbe828fc..6f747ac1c7 100644 --- a/frontend/src/views/dataset/add/AddSQL.vue +++ b/frontend/src/views/dataset/add/AddSQL.vue @@ -37,6 +37,7 @@ @@ -49,7 +50,6 @@ size="small" > @@ -66,10 +67,11 @@ :ref="`apiTable${api.name}`" placement="top" width="200" + :disabled="disabled" popper-class="api-table-delete" trigger="click" > - +
{{ $t('datasource.delete_this_item') }}
@@ -1140,6 +1142,9 @@ export default { } }, copyItem(item) { + if (this.disabled) { + return + } var newItem = JSON.parse(JSON.stringify(item)) newItem.serialNumber = this.form.apiConfiguration[this.form.apiConfiguration.length - 1] diff --git a/frontend/src/views/system/datasource/DsFormContent.vue b/frontend/src/views/system/datasource/DsFormContent.vue index 8bfc71907f..ed5ade745e 100644 --- a/frontend/src/views/system/datasource/DsFormContent.vue +++ b/frontend/src/views/system/datasource/DsFormContent.vue @@ -660,8 +660,9 @@ export default { }) }, methods: { - editDatasource() { - this.disabled = false + editDatasource(type) { + this.canEdit = type + this.disabled = !type }, baseInfoDisabledCheck(privileges) { return !(this.formType === 'add' ? true : hasDataPermission('manage', privileges)) @@ -1190,7 +1191,7 @@ export default { } }, backToList() { - this.$router.push('/datasource/index') + this.$emit('editeTodisable', false) }, closeDraw() { diff --git a/frontend/src/views/system/datasource/DsTable.vue b/frontend/src/views/system/datasource/DsTable.vue index e9d19132e7..713c8db260 100644 --- a/frontend/src/views/system/datasource/DsTable.vue +++ b/frontend/src/views/system/datasource/DsTable.vue @@ -21,9 +21,15 @@