| | |
| | | <template #default="scope" v-if="item.type === 'expand'"> |
| | | <div class="ml-16 mt-2"> |
| | | <el-table border :data="scope.row.connectList" style="width: 100%"> |
| | | |
| | | |
| | | <el-table-column prop="title" width="200" label="标题" fixed="left" show-overflow-tooltip /> |
| | | <el-table-column prop="model" width="200" label="模型编号" fixed="left" show-overflow-tooltip /> |
| | | <el-table-column prop="title" label="模型名称" fixed="left" show-overflow-tooltip /> |
| | | <el-table-column prop="class" label="类" show-overflow-tooltip /> |
| | | <el-table-column label="操作" width="55" fixed="right"> |
| | | <!-- <el-table-column label="操作" width="55" fixed="right"> |
| | | <template #default="scope"> |
| | | <div class="space-x-3 items-center flex"> |
| | | <el-tooltip effect="dark" content="查看配置" placement="top"> |
| | |
| | | </el-tooltip> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> --> |
| | | </el-table> |
| | | </div> |
| | | </template> |
| | |
| | | const columnList = ref<TableCol[]>([ |
| | | { type: 'expand', label: '', width: 55, fixed: 'left' }, |
| | | { type: 'index', label: '序号', width: 55, fixed: 'left', align: 'center' }, |
| | | { prop: 'title', label: '标题', fixed: 'left' }, |
| | | { prop: 'title', label: '服务商名称', fixed: 'left' }, |
| | | |
| | | { prop: 'operate', label: '操作', width: 55, fixed: 'right' }, |
| | | ]); |
| | |
| | | ...res.values[key1], |
| | | connectList: Object.keys(res.values[key1].connects || {}).map((key2) => { |
| | | return { |
| | | model: res.values[key1].connects[key2]?.config?.model ?? '', |
| | | id: key2, |
| | | ...res.values[key1].connects[key2], |
| | | }; |