| | |
| | | </div> |
| | | </div> |
| | | <div class="main-container-rt"> |
| | | <div :style="{ height: heightrg }"> |
| | | <div style="padding: 10px"> |
| | | <a-avatar :style="{ backgroundColor: '#3370ff' }"> |
| | | <img |
| | | :style="{ width: '100%' }" |
| | | alt="dessert" |
| | | src="https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/a20012a2d4d5b9db43dfc6a01fe508c0.png~tplv-uwbnlip3yd-webp.webp" |
| | | /> |
| | | </a-avatar> |
| | | 调试预览 |
| | | </div> |
| | | <a-divider style="margin: 0; margin-left: 10px" /> |
| | | |
| | | <div class="bottom"> |
| | | <div class="input"> |
| | | <a-input placeholder="输入您想了解的内容,按Enter发送"> |
| | | <template #suffix> |
| | | <icon-send style="cursor: pointer" /> |
| | | </template> </a-input |
| | | ></div> |
| | | <div class="text">内容由AI生成,仅供参考</div> |
| | | </div> |
| | | </div> |
| | | <sessionAction></sessionAction> |
| | | </div> |
| | | </div> |
| | | </a-modal> |
| | |
| | | import { dialogSet } from '@/api/Agent'; |
| | | import { Message } from '@arco-design/web-vue'; |
| | | import EventBus from "@/utils/EventBus"; |
| | | import sessionAction from "@/views/dmx/IntelligentAgent/components/sessionAction.vue"; |
| | | const { setLoading } = useLoading(true); |
| | | const props = defineProps(['typeAngint', 'formData']); |
| | | const visible = ref(false); |
| | |
| | | const formRef = ref(null); |
| | | let tabs = ref([]); |
| | | const height = ref('calc(100vh - 150px)'); |
| | | const heightrg = ref('calc(100vh - 100px)'); |
| | | const emit = defineEmits(['cancelModal']); |
| | | const rules = { |
| | | name: [ |
| | |
| | | |
| | | const editClick = (data) => { |
| | | visible.value = true; |
| | | |
| | | console.log(props.formData); |
| | | Object.assign(form, props.formData); |
| | | console.log(form); |
| | |
| | | visible.value = true; |
| | | nextTick(() => { |
| | | Object.assign(form, data); |
| | | console.log(form); |
| | | console.log(form,'传值'); |
| | | system.value = form.prompt_config.system; |
| | | if(tabs.value && tabs.value.length>0){ |
| | | form.kb_ids = [tabs.value[0].id]; |
| | | } |
| | | }); |
| | | }; |
| | | defineExpose({ |
| | |
| | | const queryModel = async (params) => { |
| | | try { |
| | | const data = await queryModelList(params); |
| | | console.log(data.data, '大模型列表'); |
| | | // console.log(data.data, '大模型列表'); |
| | | modelList.value = data.data; |
| | | } catch (err) { |
| | | // you can report use errorHandler or other |
| | |
| | | try { |
| | | const { data } = await queryKbList(params); |
| | | console.log(data, 'data'); |
| | | tabs.value = data; |
| | | if(tabs.value && tabs.value.length>0){ |
| | | form.kb_ids = [tabs.value[0].id]; |
| | | } |
| | | console.log(tabs.value, 'tabs'); |
| | | nextTick(() => { |
| | | tabs.value = data; |
| | | console.log(tabs.value, 'tabs'); |
| | | }); |
| | | } catch (err) { |
| | | // you can report use errorHandler or other |
| | | } finally { |
| | |
| | | line-height: 40px; |
| | | } |
| | | } |
| | | :deep(.arco-textarea-wrapper.arco-textarea-disabled){ |
| | | background: var(--color-bg-2); |
| | | color: var(--color-text-1); |
| | | } |
| | | </style> |