Merge branch 'master' of http://192.168.5.5:10010/r/web/flow_web
| | |
| | | }, |
| | | "lint-staged": { |
| | | "*.{js,ts,jsx,tsx}": [ |
| | | "prettier --write" |
| | | |
| | | |
| | | ], |
| | | "*.vue": [ |
| | | "prettier --write" |
| | | |
| | | |
| | | ], |
| | | "*.{less,css}": [ |
| | | "prettier --write" |
| | | |
| | | ] |
| | | }, |
| | | "pnpm": { |
| | |
| | | title-align="start" |
| | | fullscreen |
| | | > |
| | | <div class="main-container"> |
| | | <div class="main-container-lf"> |
| | | <div style="padding: 10px; font-size: 16px; background: #eeeeee" |
| | | >智能体配置</div |
| | | > |
| | | <div style="display: flex; width: 100%" :style="{ height: height }"> |
| | | <div style="width: 50%; height: 100%"> |
| | | <div style="padding: 10px; font-size: 12px; color: #2a2a2b" |
| | | >智能体画像</div |
| | | > |
| | | <div> |
| | | <a-textarea |
| | | v-model="system" |
| | | placeholder="" |
| | | disabled |
| | | style="height: 400px; background: #ffffff; color: #666666" |
| | | /> |
| | | </div> |
| | | <div class="main-container"> |
| | | <div class="main-container-lf"> |
| | | <div style="padding: 10px;font-size: 16px;">智能体配置</div> |
| | | <div style="display: flex;width: 100%;" :style="{height:height}"> |
| | | <div style="width: 50%;height: 100%"> |
| | | <div style="padding: 10px;font-size: 12px;color: #2a2a2b;">智能体画像</div> |
| | | <div> |
| | | <a-textarea v-model="system" placeholder="" disabled style="height: 400px;color: #666666" /> |
| | | </div> |
| | | <div style="background: #eeeeee; width: 50%"> |
| | | <a-form |
| | | ref="formRef" |
| | | :rules="rules" |
| | | :model="form" |
| | | @submit="handleSubmit" |
| | | layout="vertical" |
| | | > |
| | | <a-collapse :default-active-key="['1']"> |
| | | <a-collapse-item |
| | | header="基础信息" |
| | | key="0" |
| | | v-if="typeAngint == 'edit'" |
| | | > |
| | | <a-input |
| | | v-model="form.name" |
| | | placeholder="请输入智能体名称" |
| | | style="width: 200px; margin-top: 10px" |
| | | /> |
| | | </a-collapse-item> |
| | | <a-collapse-item header="AI模型配置" key="1"> |
| | | <a-space direction="vertical" size="large"> |
| | | <a-select |
| | | :size="'large'" |
| | | v-model="form.llm_id" |
| | | :style="{ width: '25rem' }" |
| | | placeholder="请选择 ..." |
| | | > |
| | | <a-optgroup |
| | | :label="index" |
| | | v-for="(item, index) in modelList" |
| | | :key="index" |
| | | |
| | | </div> |
| | | <div style="width: 50%;border: 1px solid var(--color-neutral-3);"> |
| | | <a-form ref="formRef" :rules="rules" :model="form" @submit="handleSubmit" layout="vertical" > |
| | | <a-collapse :default-active-key="['1']"> |
| | | <a-collapse-item header="基础信息" key="0" v-if="typeAngint == 'edit'"> |
| | | <a-input v-model="form.name" placeholder="请输入智能体名称" style="width:200px;margin-top: 10px" /> |
| | | </a-collapse-item> |
| | | <a-collapse-item header="AI模型配置" key="1"> |
| | | <a-space direction="vertical" size="large"> |
| | | <a-select :size="'large'" v-model="form.llm_id" :style="{width:'25rem'}" placeholder="请选择 ..."> |
| | | <a-optgroup :label="index" v-for="(item,index) in modelList" :key=index> |
| | | <a-option |
| | | v-for="(obj) in item" |
| | | :key='obj.fid' |
| | | :value="obj.llm_id" |
| | | > |
| | | <a-option |
| | | v-for="obj in item" |
| | |
| | | height: 100%; |
| | | overflow: auto; |
| | | //background: #626aea; |
| | | background: #ffffff; |
| | | //background: #ffffff; |
| | | padding-top: 80px; |
| | | |
| | | &-lf { |
| | |
| | | <!-- </div>--> |
| | | <!-- <a-divider style="margin-top: 10px" />--> |
| | | <!-- </div>--> |
| | | </div> |
| | | <!-- </div> --> |
| | | </div> |
| | | <a-modal title=" " v-model:visible="visible" :footer="false" fullscreen> |
| | | <!-- <docx v-if="documenttype=='docx'" previewSrc="http://192.168.20.116:1080/v1/document/get/405c3efa4d8c11ef97560242ac120006"></docx>--> |
| | |
| | | flex-direction: column; |
| | | align-items: center; |
| | | justify-content: space-evenly; |
| | | background: #ffffff; |
| | | background: var(--color-neutral-3); |
| | | width: 200px; |
| | | .lf-container-top { |
| | | display: flex; |
| | |
| | | box-sizing: border-box; |
| | | width: 90%; |
| | | //height: 56rem; |
| | | border: 1px solid #eeeeee; |
| | | border: 1px solid var(--color-neutral-3); |
| | | //padding: 10px; |
| | | margin-bottom: 10px; |
| | | //.tabs{ |
| | |
| | | box-sizing: border-box; |
| | | margin: 10px 10px; |
| | | padding: 0 10px; |
| | | color: rgba(0, 0, 0, 0.88); |
| | | //color: var(--color-text-1); |
| | | font-size: 14px; |
| | | height: 40px; |
| | | line-height: 40px; |
| | |
| | | } |
| | | .tab:hover { |
| | | border: 1px solid #ffffff; |
| | | color: #000000; |
| | | background: #e8e8ea; |
| | | box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), |
| | | 0 3px 6px 0 rgba(0, 0, 0, 0.12), |
| | |
| | | .tab.active { |
| | | border: 1px solid #e8e8ea; |
| | | background: #e8e8ea; |
| | | color: #000000; |
| | | cursor: pointer; |
| | | box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), |
| | | 0 3px 6px 0 rgba(0, 0, 0, 0.12), |
| | | 0 5px 12px 4px rgba(0, 0, 0, 0.09); |
| | | } |
| | | } |
| | | } |
| | |
| | | left: 0; |
| | | width: 100%; |
| | | height: 100%; |
| | | background: #ffffff; |
| | | //background: #ffffff; |
| | | .details-header { |
| | | display: flex; |
| | | justify-content: space-between; |
| | |
| | | width: 30%; |
| | | height: 100%; |
| | | //border: 1px solid #cccccc; |
| | | background: #ffffff; |
| | | //background: #ffffff; |
| | | border-radius: 10px; |
| | | overflow: hidden; |
| | | &-top { |
| | |
| | | height: 100%; |
| | | //background: #626aea; |
| | | //border: 1px solid #cccccc; |
| | | background: #ffffff; |
| | | //background: #ffffff; |
| | | border-radius: 10px; |
| | | } |
| | | } |
| | |
| | | /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <a-divider style="margin-top: 10px" /> |
| | | <div class="groupMain"> |
| | | <a-checkbox-group v-model="data" @change="handleChange" > |
| | | <div class="groupList"> |
| | | <a-checkbox value="1"></a-checkbox> |
| | | <div class="groupList-content" @click="groupListContentClick('1')" @dblclick="contentClick(1)"> |
| | | 而 stable version 是最新稳定版,经过充分测试和验证,bug 较少, |
| | | 适合用于生产环境。其版本号通常为双数,如 1.26。legacy versions |
| | | 则是之前发布的稳定版,对于需要 |
| | | 特定旧版本的兼容性或安全性支持的用户有用,但一般不 |
| | | 推荐用于新项目,除非有特殊需求。在实际使用中,如果追求最新功能 |
| | | 且愿意面对可能存在的一些不稳定因素,可以尝试使用主线版本进行测试和研究;如果是用于生产环境 |
| | | </div> |
| | | <div class="groupList-right"> |
| | | <a-switch v-model="switchType" checked-value="1" unchecked-value="0" @change="handleChangeStatus()"/> |
| | | </div> |
| | | </div> |
| | | |
| | | <div |
| | | class="groupList" |
| | | :style="{ background: keyBg == '2' ? '#eff8ff' : 'white' }" |
| | | > |
| | | <a-checkbox value="1"></a-checkbox> |
| | | <div |
| | | class="groupList-content" |
| | | @click="groupListContentClick('2')" |
| | | @dblclick="contentClick(1)" |
| | | > |
| | | 而 stable version 是最新稳定版,经过充分测试和验证,bug 较少, |
| | | 适合用于生产环境。其版本号通常为双数,如 1.26。legacy versions |
| | | 则是之前发布的稳定版,对于需要 |
| | | <div class="groupList"> |
| | | <a-checkbox value="1"></a-checkbox> |
| | | <div class="groupList-content" @click="groupListContentClick('2')" @dblclick="contentClick(1)"> |
| | | 而 stable version 是最新稳定版,经过充分测试和验证,bug 较少, |
| | | 适合用于生产环境。其版本号通常为双数,如 1.26。legacy versions |
| | | 则是之前发布的稳定版,对于需要 |
| | | </div> |
| | | <div class="groupList-right"> |
| | | <a-switch v-model="switchType" checked-value="1" unchecked-value="0" @change="handleChangeStatus()"/> |
| | | </div> |
| | | </div> |
| | | <div class="groupList-right"> |
| | | <a-switch |
| | |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | .parser { |
| | | width: 100%; |
| | | ::v-deep .arco-btn-outline:hover, |
| | | .arco-btn-outline, |
| | | .arco-btn-outline[type='button'] { |
| | | color: #2a2a2b; |
| | | border: 1px solid #2a2a2b; |
| | | } |
| | | .button { |
| | | //color: #2a2a2b!important; |
| | | .parser{ |
| | | width: 100%; |
| | | ::v-deep .arco-btn-outline:hover, .arco-btn-outline, .arco-btn-outline[type='button']{ |
| | | color: #2a2a2b; |
| | | border: 1px solid #2a2a2b; |
| | | } |
| | | .button{ |
| | | //color: #2a2a2b!important; |
| | | } |
| | | } |
| | | .groupMain{ |
| | | width: 100%; |
| | | height: 500px; |
| | | overflow: auto; |
| | | display: flex; |
| | | justify-content: center; |
| | | .groupList{ |
| | | display: flex; |
| | | padding: 24px; |
| | | border-radius: 8px; |
| | | //background: #eff8ff; |
| | | border: 1px solid var(--color-neutral-3); |
| | | margin-bottom: 20px; |
| | | overflow: auto; |
| | | .groupList-content{ |
| | | width: 700px; |
| | | //height: 100px; |
| | | overflow: auto; |
| | | box-sizing: border-box; |
| | | margin: 0; |
| | | padding: 0; |
| | | color: var(--color-text-1); |
| | | font-size: 14px; |
| | | font-family: Inter; |
| | | position: relative; |
| | | |
| | | |
| | | } |
| | | } |
| | | .groupMain { |