feat(datasource): datasource manage

This commit is contained in:
dataeaseShu
2025-07-17 18:32:34 +08:00
parent 16bf2dc5d6
commit 6cd2d99e3d
9 changed files with 63 additions and 47 deletions
+11 -3
View File
@@ -87,6 +87,13 @@ const currentTable = ref<any>({})
const init = () => {
workspaceList().then((res) => {
tableList.value = res
if (currentTable.value.id) {
tableList.value.forEach((ele: any) => {
if (ele.id === currentTable.value.id) {
currentTable.value.name = ele.name
}
})
}
})
}
onMounted(() => {
@@ -119,7 +126,7 @@ const deleteBatchUser = () => {
t('workspace.selected_2_members', { msg: multipleSelectionAll.value.length }),
{
confirmButtonType: 'danger',
confirmButtonText: t('dashboard.delete'),
confirmButtonText: t('workspace.remove'),
cancelButtonText: t('common.cancel'),
customClass: 'confirm-no_icon',
autofocus: false,
@@ -141,7 +148,7 @@ const deleteBatchUser = () => {
const deleteHandler = (row: any) => {
ElMessageBox.confirm(t('workspace.member_feng_yibudao', { msg: row.name }), {
confirmButtonType: 'danger',
confirmButtonText: t('dashboard.delete'),
confirmButtonText: t('workspace.remove'),
cancelButtonText: t('common.cancel'),
customClass: 'confirm-no_icon',
autofocus: false,
@@ -231,6 +238,7 @@ const saveField = () => {
const delWorkspace = (row: any) => {
ElMessageBox.confirm(t('workspace.workspace_de_workspace', { msg: row.name }), {
confirmButtonType: 'danger',
tip: t('workspace.operate_with_caution'),
confirmButtonText: t('dashboard.delete'),
cancelButtonText: t('common.cancel'),
customClass: 'confirm-no_icon',
@@ -533,7 +541,7 @@ const handleCurrentChange = (val: number) => {
</el-form>
<div style="display: flex; justify-content: flex-end; margin-top: 20px">
<el-button @click="closeField">{{ t('common.cancel') }}</el-button>
<el-button secondary @click="closeField">{{ t('common.cancel') }}</el-button>
<el-button type="primary" @click="saveField">{{
t(workspaceForm.id ? 'common.save' : 'model.add')
}}</el-button>