From e5b63d941ab98ec9a39183f6280f955ab1fc20cb Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Fri, 8 Aug 2025 14:52:19 +0800 Subject: [PATCH] (permission): Settings - Permission Configuration Error Style Fix When no data source is selected, the data table style is disabled --- frontend/src/views/system/permission/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/system/permission/index.vue b/frontend/src/views/system/permission/index.vue index ea2255c1..43aad388 100644 --- a/frontend/src/views/system/permission/index.vue +++ b/frontend/src/views/system/permission/index.vue @@ -216,10 +216,14 @@ const handleColumnPermission = (row: any) => { const icon = (item: any) => { return (dsTypeWithImg.find((ele) => item.type === ele.type) || {}).img } - +let time: any const handleInitDsIdChange = (val: any) => { columnForm.ds_id = val.id columnForm.ds_name = val.name + time = setTimeout(() => { + clearTimeout(time) + columnFormRef.value.clearValidate('table_id') + }, 0) datasourceApi.tableList(val.id).then((res: any) => { tableListOptions.value = res || [] activeTable.value = null