This commit is contained in:
parent
1abdd93b5f
commit
6ee0e67125
|
@ -296,4 +296,33 @@ func InitViewRouter(engine *gin.Engine) {
|
|||
engine.GET("/extend", tmpl.PageExtend)
|
||||
engine.GET("/extend_fastgpt", middleware.DomainLimitMiddleware, tmpl.PageExtendFastGpt)
|
||||
engine.GET("/extend_ragflow", middleware.DomainLimitMiddleware, tmpl.PageExtendRAGFlow)
|
||||
|
||||
//数字人
|
||||
engine.GET("/digital_human", func(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "digital_human.html", gin.H{})
|
||||
})
|
||||
//数字人基础配置
|
||||
engine.GET("/digital_human_base_setting", middleware.DomainLimitMiddleware, func(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "digital_human_base_setting.html", gin.H{})
|
||||
})
|
||||
//数字人形象管理
|
||||
engine.GET("/digital_human_image_manage", middleware.DomainLimitMiddleware, func(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "digital_human_image_manage.html", gin.H{})
|
||||
})
|
||||
//数字人形象库
|
||||
engine.GET("/digital_human_image_base", middleware.DomainLimitMiddleware, func(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "digital_human_image_base.html", gin.H{})
|
||||
})
|
||||
//数字人动作库
|
||||
engine.GET("/digital_human_action_base", middleware.DomainLimitMiddleware, func(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "digital_human_action_base.html", gin.H{})
|
||||
})
|
||||
//数字人语音管理
|
||||
engine.GET("/digital_human_voice_manage", middleware.DomainLimitMiddleware,func(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "digital_human_voice_manage.html", gin.H{})
|
||||
})
|
||||
//数字人语音库
|
||||
engine.GET("/digital_human_voice_base", middleware.DomainLimitMiddleware, func(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "digital_human_voice_base.html", gin.H{})
|
||||
})
|
||||
}
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
{{template "header" }}
|
||||
<div id="app" style="width:100%;display: flex;">
|
||||
<template>
|
||||
{{template "digital_human_left" .}}
|
||||
<div style="flex: 1;display: flex;flex-direction: column;">
|
||||
<div class="guideHeader" style="margin-bottom: 10px;">Hello,<{nickname}></div>
|
||||
<iframe style="flex: 1;margin-left:10px;" v-bind:src="iframeUrl" frameborder="0"></iframe>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
{{template "setting_bottom" .}}
|
|
@ -0,0 +1,22 @@
|
|||
{{template "header" }}
|
||||
<div id="app" style="width:100%">
|
||||
<template>
|
||||
<el-container>
|
||||
|
||||
<el-main class="mainMain">
|
||||
|
||||
<iframe id="fastGptIframe" src="" width="100%" height="100%"></iframe>
|
||||
|
||||
|
||||
</el-main>
|
||||
|
||||
</el-container>
|
||||
</template>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
</script>
|
||||
{{template "setting_bottom" .}}
|
||||
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
{{template "header" }}
|
||||
<div id="app" style="width:100%">
|
||||
<template>
|
||||
<el-container>
|
||||
|
||||
<el-main class="mainMain">
|
||||
|
||||
<iframe id="fastGptIframe" src="" width="100%" height="100%"></iframe>
|
||||
|
||||
|
||||
</el-main>
|
||||
|
||||
</el-container>
|
||||
</template>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
</script>
|
||||
{{template "setting_bottom" .}}
|
||||
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
{{template "header" }}
|
||||
<div id="app" style="width:100%">
|
||||
<template>
|
||||
<el-container>
|
||||
|
||||
<el-main class="mainMain">
|
||||
|
||||
<iframe id="fastGptIframe" src="" width="100%" height="100%"></iframe>
|
||||
|
||||
|
||||
</el-main>
|
||||
|
||||
</el-container>
|
||||
</template>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
</script>
|
||||
{{template "setting_bottom" .}}
|
||||
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
{{template "header" }}
|
||||
<div id="app" style="width:100%">
|
||||
<template>
|
||||
<el-container>
|
||||
|
||||
<el-main class="mainMain">
|
||||
|
||||
<iframe id="fastGptIframe" src="" width="100%" height="100%"></iframe>
|
||||
|
||||
|
||||
</el-main>
|
||||
|
||||
</el-container>
|
||||
</template>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
</script>
|
||||
{{template "setting_bottom" .}}
|
||||
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
{{define "digital_human_left"}}
|
||||
<div style="width: 220px;background: rgb(29 35 54)" class="settingLeftMenu">
|
||||
<el-menu
|
||||
unique-opened="true"
|
||||
:default-active="tabIndex" default-openeds="1-5"
|
||||
text-color="#a8c6df"
|
||||
active-text-color="#fff"
|
||||
>
|
||||
<el-submenu index="1">
|
||||
<template slot="title">
|
||||
<i class="el-icon-s-position"></i>
|
||||
<span>数字人基础配置</span>
|
||||
</template>
|
||||
<el-menu-item-group>
|
||||
<el-menu-item index="1-5" v-on:click="openUrl('/digital_human_base_setting')">数字人基础配置</el-menu-item>
|
||||
<el-menu-item index="1-3" v-on:click="openUrl('/digital_human_image_manage')">字人形象管理</el-menu-item>
|
||||
<el-menu-item index="1-2" v-on:click="openUrl('/digital_human_image_base')">数字人形象库</el-menu-item>
|
||||
<el-menu-item index="1-1" v-on:click="openUrl('/digital_human_action_basee')">数字人动作库</el-menu-item>
|
||||
<el-menu-item index="1-4" v-on:click="openUrl('/digital_human_voice_manage')">数字人语音管理</el-menu-item>
|
||||
<el-menu-item index="1-6" v-on:click="openUrl('/digital_human_voice_base')">数字人语音库</el-menu-item>
|
||||
</el-menu-item-group>
|
||||
|
||||
</el-submenu>
|
||||
</el-menu>
|
||||
</div>
|
||||
{{end}}
|
|
@ -0,0 +1,22 @@
|
|||
{{template "header" }}
|
||||
<div id="app" style="width:100%">
|
||||
<template>
|
||||
<el-container>
|
||||
|
||||
<el-main class="mainMain">
|
||||
|
||||
<iframe id="fastGptIframe" src="" width="100%" height="100%"></iframe>
|
||||
|
||||
|
||||
</el-main>
|
||||
|
||||
</el-container>
|
||||
</template>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
</script>
|
||||
{{template "setting_bottom" .}}
|
||||
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
{{template "header" }}
|
||||
<div id="app" style="width:100%">
|
||||
<template>
|
||||
<el-container>
|
||||
|
||||
<el-main class="mainMain">
|
||||
|
||||
<iframe id="fastGptIframe" src="" width="100%" height="100%"></iframe>
|
||||
|
||||
|
||||
</el-main>
|
||||
|
||||
</el-container>
|
||||
</template>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
</script>
|
||||
{{template "setting_bottom" .}}
|
||||
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<el-main class="mainMain">
|
||||
|
||||
<iframe id="fastGptIframe" src="http://101.132.103.143:3000/autologin" width="100%" height="100%"></iframe>
|
||||
<iframe id="fastGptIframe" src="https://fastgpt.hnenergygroup.com/autologin" width="100%" height="100%"></iframe>
|
||||
|
||||
|
||||
</el-main>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<el-main class="mainMain">
|
||||
|
||||
<iframe id="fastGptIframe" src="https://demo.ragflow.io/knowledge" width="100%" height="100%"></iframe>
|
||||
<iframe id="fastGptIframe" src="http://47.103.215.201/knowledge?token=e7313e90b2dd11efbebd0242ac120006" width="100%" height="100%"></iframe>
|
||||
|
||||
|
||||
</el-main>
|
||||
|
@ -16,13 +16,6 @@
|
|||
</div>
|
||||
</body>
|
||||
<script>
|
||||
console.log("执行p1")
|
||||
localStorage.setItem('Authorization', 'IjM4ZTYyMjA0YTcxMzExZWY4NTY3NDIwMTBhOGEwMDA1Ig.Zz2TRw.XmArGQgMw8jAyu-7pbOx0FIHSPw');
|
||||
document.cookie = "WEKcDlLcPrrh0epVtYcUj-Lu-8fXTwCgKiI-8Z2rKsY; path=https://demo.ragflow.io"
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
{{template "setting_bottom" .}}
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{{define "nav"}}
|
||||
<div class="mainLeftMenu">
|
||||
<!-- 头像 -->
|
||||
<div class="menuLeftLogo">
|
||||
<el-dropdown @command="changeOnlineStatus">
|
||||
<el-badge :type="onlineType" is-dot class="item">
|
||||
|
@ -12,35 +13,44 @@
|
|||
</el-dropdown>
|
||||
</div>
|
||||
|
||||
<div class="menuLeftItem active" v-on:click="openIframeUrl('/mainGuide')">
|
||||
|
||||
<!-- 面板 -->
|
||||
<!-- <div class="menuLeftItem active" v-on:click="openIframeUrl('/mainGuide')">
|
||||
<i class="el-icon-platform-eleme"></i>
|
||||
<span slot="title"><{flyLang.panel}></span>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<!-- 聊天 -->
|
||||
<div class="menuLeftItem" v-on:click="openIframeUrl('/chat_main');countNewMessage=false;">
|
||||
<i class="el-icon-chat-dot-round"></i>
|
||||
<span slot="title">
|
||||
<el-badge :value="haveNewMessage" class="item"><{flyLang.talk}></el-badge>
|
||||
</span>
|
||||
</div>
|
||||
<div class="menuLeftItem" v-on:click="openIframeUrl('/aigc');">
|
||||
<!-- AI -->
|
||||
<!-- <div class="menuLeftItem" v-on:click="openIframeUrl('/aigc');">
|
||||
<i class="el-icon-magic-stick"></i>
|
||||
<span slot="title">AI</span>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<!-- 部署 -->
|
||||
<div class="menuLeftItem" v-on:click="openIframeUrl('/setting?url=setting_deploy')">
|
||||
<i class="el-icon-document-copy"></i>
|
||||
<span slot="title"><{flyLang.deploy}></span>
|
||||
</div>
|
||||
<!-- 用户 -->
|
||||
<div class="menuLeftItem" v-show="superShow" v-on:click="openIframeUrl('/setting_kefu_list')">
|
||||
<i class="el-icon-edit-outline"></i>
|
||||
<span slot="title"><{flyLang.agents}></span>
|
||||
</div>
|
||||
|
||||
<!-- 设置 -->
|
||||
<div class="menuLeftItem" v-show="false" v-on:click="openIframeUrl('/setting_configs')">
|
||||
<i class="el-icon-setting"></i>
|
||||
<span slot="title"><{flyLang.setting}></span>
|
||||
</div>
|
||||
|
||||
<!-- 付费 -->
|
||||
<div class="menuLeftItem" v-show="menuAdminShow" @click="openIframeUrl('/setting_group')">
|
||||
<i class="el-icon-present"></i>
|
||||
<span slot="title">付费</span>
|
||||
|
@ -54,7 +64,10 @@
|
|||
<i class="el-icon-menu"></i>
|
||||
<span slot="title">AI扩展</span>
|
||||
</div>
|
||||
|
||||
<div class="menuLeftItem" v-on:click="openIframeUrl('/digital_human')">
|
||||
<i class="el-icon-menu"></i>
|
||||
<span slot="title">数字人</span>
|
||||
</div>
|
||||
<div class="menuLeftItem menuLeftItemLogout" v-on:click="logout()">
|
||||
<i class="el-icon-switch-button"></i>
|
||||
<span slot="title"><{flyLang.logout}></span>
|
||||
|
|
|
@ -482,6 +482,10 @@
|
|||
if (ACTION == "extend") {
|
||||
this.iframeUrl = "extend_fastgpt"
|
||||
|
||||
}
|
||||
if (ACTION == "digital_human") {
|
||||
this.iframeUrl = "digital_human"
|
||||
|
||||
}
|
||||
if (ACTION == "setting_deploy") {
|
||||
|
||||
|
|
Loading…
Reference in New Issue