| | |
| | | <Icon custom="custom custom-bianji" size="18" style="color: #999;" |
| | | @click.stop="goedit(item)" /> |
| | | </Tooltip> |
| | | <Tooltip v-if="item.Permission==2" content="私人" class="tableActionMargin" theme="light"> |
| | | <Tooltip v-if="item.Permission == 2" content="私人" class="tableActionMargin" theme="light"> |
| | | <Icon custom="iconfont icon-lock" size="18" style="color: #999;" /> |
| | | </Tooltip> |
| | | </div> |
| | |
| | | <Input v-model="formItem.ModelApi" placeholder="请输入模型API(非必填)" /> |
| | | <div style="margin-top: 10px;font-weight: 600;">模型KEY(非必填)</div> |
| | | <Input v-model="formItem.ModelKey" placeholder="请输入模型KEY(非必填)" /> |
| | | <div style="margin-top: 10px;font-weight: 600;">系统路由(非必填)</div> |
| | | <Input v-model="formItem.SystemRouting" placeholder="系统路由(非必填)" /> |
| | | <div style="margin-top: 10px;font-weight: 600;">权限设置</div> |
| | | <Select v-model="formItem.Permission" filterable default-label="公开 · 所有人可对话"> |
| | | <Option v-for="(option, index) in options" :value="option.value" :key="index">{{ option.label }} |
| | |
| | | <Input v-model="formItem.ModelApi" placeholder="请输入模型API(非必填)" /> |
| | | <div style="margin-top: 10px;font-weight: 600;">模型KEY(非必填)</div> |
| | | <Input v-model="formItem.ModelKey" placeholder="请输入模型KEY(非必填)" /> |
| | | <div style="margin-top: 10px;font-weight: 600;">系统路由(非必填)</div> |
| | | <Input v-model="formItem.SystemRouting" placeholder="系统路由(非必填)" /> |
| | | <div style="margin-top: 10px;font-weight: 600;">权限设置</div> |
| | | <Select v-model="formItem.Permission" filterable default-label="公开 · 所有人可对话"> |
| | | <Option v-for="(option, index) in options" :value="option.value" :key="index">{{ option.label }} |
| | |
| | | CreatorId: this.userId, |
| | | Prompt: '', |
| | | ModelApi: '', |
| | | ModelKey: '' |
| | | ModelKey: '', |
| | | SystemRouting: '' |
| | | }, |
| | | |
| | | isDisabled: false, // 展示详情时为TRUE |
| | |
| | | reader.readAsDataURL(e.target.files[0]); |
| | | }, |
| | | chat(item) { |
| | | this.$router.push({ |
| | | path: '/AgentChat', |
| | | query: { |
| | | chatInfo: JSON.stringify(item) |
| | | } |
| | | }) |
| | | |
| | | if (item.SystemRouting) { |
| | | console.log('系统路由不可对话') |
| | | this.$router.push({ |
| | | path: item.SystemRouting, |
| | | }) |
| | | } else { |
| | | this.$router.push({ |
| | | path: '/AgentChat', |
| | | query: { |
| | | chatInfo: JSON.stringify(item) |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | changePage(e) { |
| | | this.PageNum = e |
| | |
| | | }, |
| | | // 获取数据列表 |
| | | getAgentDataList() { |
| | | console.log('origin======', window.location.origin); |
| | | |
| | | this.loading = true; |
| | | let data = { |
| | | Keyword: this.searchQuery, |
| | |
| | | |
| | | <style scoped> |
| | | @import url("http://at.alicdn.com/t/c/font_4776342_gl8cdk3qwyb.css"); |
| | | |
| | | .container { |
| | | padding-top: 20px; |
| | | width: 1000px; |