wujingjing
2024-09-20 2f4a2c4e1bd8f20012cd99e0cc545d08c2218fb0
getMapDatabase
已修改1个文件
13 ■■■■■ 文件已修改
src/views/project/yw/lowCode/sqlAmis/edit/SqlAmisEdit.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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({