diff --git a/frontend/src/style.less b/frontend/src/style.less index c0d125ef..685e6f51 100644 --- a/frontend/src/style.less +++ b/frontend/src/style.less @@ -164,6 +164,10 @@ body { .tip { margin-top: 24px; } + + .ed-message-box__message { + width: 95%; + } } .form-content_error { diff --git a/frontend/src/views/system/permission/auth-tree/FilterFiled.vue b/frontend/src/views/system/permission/auth-tree/FilterFiled.vue index 3d686b01..ef032818 100644 --- a/frontend/src/views/system/permission/auth-tree/FilterFiled.vue +++ b/frontend/src/views/system/permission/auth-tree/FilterFiled.vue @@ -152,7 +152,22 @@ const emits = defineEmits(['update:item', 'del']) > + + + + ([]) const defaultPermission = { @@ -146,8 +146,8 @@ const saveAuthTree = (val: any) => { dialogFormVisible.value = false } const getDsList = (row: any) => { - activeDs.value = {} - activeTable.value = {} + activeDs.value = null + activeTable.value = null datasourceApi .list() .then((res: any) => { @@ -211,6 +211,17 @@ const handleColumnPermission = (row: any) => { : t('permission.add_column_permission') } +const handleInitDsIdChange = (val: any) => { + columnForm.ds_id = val.id + columnForm.ds_name = val.name + datasourceApi.tableList(val.id).then((res: any) => { + tableListOptions.value = res || [] + activeTable.value = null + fieldListOptions.value = [] + columnForm.permissions = [] + }) +} + const handleDsIdChange = (val: any) => { columnForm.ds_id = val.id columnForm.ds_name = val.name @@ -598,6 +609,8 @@ const columnRules = { >