| | |
| | | label: 'group_name', |
| | | children: 'children', |
| | | }" |
| | | defaultExpandAll |
| | | :treedata="listTreeData" |
| | | title-name="分组列表" |
| | | :show-more-operate="false" |
| | |
| | | </el-form> |
| | | </div> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="推荐问题" name="terminology" class="h-full"> |
| | | <div class="h-full"> |
| | | <el-table |
| | | v-loading="tableLoading" |
| | | ref="draggableTableRef" |
| | | class="h100" |
| | | border |
| | | :row-class-name="isDragStatus ? 'cursor-move' : 'cursor-pointer'" |
| | | :data="terminologyData" |
| | | highlight-current-row |
| | | > |
| | | <el-table-column label="名称" prop="title" width="200" fixed="left" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column label="近义词" prop="creator" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column label="创建人" prop="create_time" width="125" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column label="更新时间" prop="published" width="100" show-overflow-tooltip> </el-table-column> |
| | | <el-table-column label="描述" prop="note" show-overflow-tooltip width="150"> </el-table-column> |
| | | <el-table-column label="操作" width="80" fixed="right" show-overflow-tooltip> </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | <div class="w100 h100 relative" v-show="!tableHasChildren"> |
| | | <div class="w100 h100 relative" v-show="!tableHasChildren && activeTabName === 'dataset'"> |
| | | <div class="absolute top-0 right-0 w-[112px] h-[24[x]] bg-white z-50 leading-3 pt-2"> |
| | | <el-radio-group v-model="canvasRadio" size="small"> |
| | | <el-radio-button label="列表" value="canvas_list" /> |
| | |
| | | class="h100" |
| | | border |
| | | :row-class-name="isDragStatus ? 'cursor-move' : 'cursor-pointer'" |
| | | :data="displayTableData" |
| | | :data="modelTableData" |
| | | highlight-current-row |
| | | > |
| | | <el-table-column prop="title" label="模型名称" width="300" fixed="left" show-overflow-tooltip> </el-table-column> |
| | |
| | | import MetricPrompt from './optDlg/MetricPrompt.vue'; |
| | | import * as agentGroupApi from '/@/api/ai/agentGroup'; |
| | | import * as metricApi from '/@/api/metrics'; |
| | | import { get_scene_group_sample } from '/@/api/scene/index'; |
| | | import { updatePublishStatus } from '/@/api/supervisorAdmin'; |
| | | import Chat from '/@/components/chat/Chat.vue'; |
| | | import AMContainer from '/@/components/layout/AMContainer.vue'; |
| | |
| | | getTableData(); |
| | | metricStatus.value = true; |
| | | break; |
| | | case 'terminology': |
| | | if (terminologyStatus.value) return; |
| | | getTerminologyData(); |
| | | terminologyStatus.value = true; |
| | | break; |
| | | case 'modelName': |
| | | case 'permission': |
| | | break; |
| | | } |
| | | }; |
| | |
| | | const byOrganizationData = ref([]); |
| | | const byIndividualData = ref([]); |
| | | //#endregion |
| | | //#region ====================== 推荐问题 ====================== |
| | | const terminologyData = ref([]); |
| | | const terminologyStatus = ref(false); |
| | | //获取场景list |
| | | const getTerminologyData = async () => { |
| | | const res = await get_scene_group_sample(); |
| | | terminologyData.value = res.samples.filter((item) => item.group_id === currentListID.value); |
| | | }; |
| | | //#endregion |
| | | //#region ====================== 模型管理(没有父节点) ====================== |
| | | const activeModelName = ref('modelName'); |
| | | const canvasRadio = ref('canvas_list'); |
| | | const modelTableData = ref([]); |
| | | const deleteModelData = (row) => {}; |
| | | const getNodeTableData = () => {}; |
| | | //#endregion |
| | |
| | | chatTestMapRow.value = null; |
| | | chatTestIsShow.value = false; |
| | | }; |
| | | |
| | | const draggableChatRef = ref<HTMLElement | null>(null); |
| | | const chatDragHandlerRef = ref<HTMLDivElement>(null); |
| | | const chatDragContainerRef = ref<HTMLDivElement>(null); |
| | | |
| | | // `style` will be a helper computed for `left: ?px; top: ?px;` |
| | | const { x, y, style } = useDraggable(draggableChatRef, { |
| | | handle: chatDragHandlerRef, |
| | | initialValue: { |