From 2f4a2c4e1bd8f20012cd99e0cc545d08c2218fb0 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期五, 20 九月 2024 17:08:33 +0800 Subject: [PATCH] getMapDatabase --- src/views/project/yw/lowCode/sqlAmis/edit/SqlAmisEdit.vue | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/views/project/yw/lowCode/sqlAmis/edit/SqlAmisEdit.vue b/src/views/project/yw/lowCode/sqlAmis/edit/SqlAmisEdit.vue index 5ae3e9d..e4893d1 100644 --- a/src/views/project/yw/lowCode/sqlAmis/edit/SqlAmisEdit.vue +++ b/src/views/project/yw/lowCode/sqlAmis/edit/SqlAmisEdit.vue @@ -111,7 +111,13 @@ > <el-table-column prop="id" label="id" width="220" fixed="left" show-overflow-tooltip> </el-table-column> - <el-table-column label="鏁版嵁搴�" prop="database" show-overflow-tooltip> </el-table-column> + <el-table-column label="鏁版嵁搴�" prop="database" show-overflow-tooltip> + + <template #default="scope"> + {{ getMapDatabase(scope.row.database)?.title }} + </template> + + </el-table-column> <el-table-column label="鎿嶄綔" width="120" fixed="right" show-overflow-tooltip> <template #default="scope"> @@ -499,6 +505,11 @@ }; const databaseList = ref([]); + +const getMapDatabase = (id:string)=>{ + const foundItem = databaseList.value.find(item=>item.id===id); + return foundItem; +} //#endregion onMounted(async () => { xmlJson = await supervisorApi.getLowCodeJson({ -- Gitblit v1.9.3