客服 菜单修改 1226
This commit is contained in:
parent
6ee0e67125
commit
457e8aa951
|
@ -298,31 +298,10 @@ func InitViewRouter(engine *gin.Engine) {
|
|||
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{})
|
||||
})
|
||||
engine.GET("/digital_human", tmpl.PageDigitalHuman)
|
||||
engine.GET("/digital_human_base_setting", middleware.DomainLimitMiddleware, tmpl.PageDigitalHumanBaseSetting)
|
||||
engine.GET("/digital_human_image_base", middleware.DomainLimitMiddleware, tmpl.PageDigitalHumanImageBase)
|
||||
engine.GET("/digital_human_action_base", middleware.DomainLimitMiddleware, tmpl.PageDigitalHumanActionBase)
|
||||
engine.GET("/digital_human_voice_base", middleware.DomainLimitMiddleware, tmpl.PageDigitalHumanVoiceBase)
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<el-main class="mainMain">
|
||||
|
||||
<iframe id="fastGptIframe" src="" width="100%" height="100%"></iframe>
|
||||
<iframe id="fastGptIframe" src="http://120.26.102.141:8085/#/pages/dongzuo/dongzuo" width="100%" height="100%"></iframe>
|
||||
|
||||
|
||||
</el-main>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<el-main class="mainMain">
|
||||
|
||||
<iframe id="fastGptIframe" src="" width="100%" height="100%"></iframe>
|
||||
<iframe id="fastGptIframe" src="http://120.26.102.141:8085/#/pages/peizhi/peizhi" width="100%" height="100%"></iframe>
|
||||
|
||||
|
||||
</el-main>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<el-main class="mainMain">
|
||||
|
||||
<iframe id="fastGptIframe" src="" width="100%" height="100%"></iframe>
|
||||
<iframe id="fastGptIframe" src="http://120.26.102.141:8085/#/pages/xingxiang/xingxiang" width="100%" height="100%"></iframe>
|
||||
|
||||
|
||||
</el-main>
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
{{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" .}}
|
||||
|
||||
|
|
@ -1,26 +1,45 @@
|
|||
{{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
|
||||
unique-opened="true"
|
||||
:default-active="tabIndex" :default-openeds="openIndex"
|
||||
text-color="#a8c6df"
|
||||
active-text-color="#fff"
|
||||
>
|
||||
<el-submenu index="1">
|
||||
<template slot="title">
|
||||
<i class="el-icon-s-custom"></i>
|
||||
<span>数字人基础配置</span>
|
||||
</template>
|
||||
<el-menu-item-group>
|
||||
<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-item-group>
|
||||
</el-menu-item-group>
|
||||
</el-submenu>
|
||||
<el-submenu index="2">
|
||||
<template slot="title">
|
||||
<i class="el-icon-s-tools"></i>
|
||||
<span>数字人音源管理</span>
|
||||
</template>
|
||||
<el-menu-item-group>
|
||||
<el-menu-item index="2-1" v-on:click="openUrl('/digital_human_image_base')">数字人形象库</el-menu-item>
|
||||
<el-menu-item index="2-2" v-on:click="openUrl('/digital_human_action_base')">数字人动作库</el-menu-item>
|
||||
</el-menu-item-group>
|
||||
</el-submenu>
|
||||
<el-submenu index="3" >
|
||||
<template slot="title">
|
||||
<i class="el-icon-s-cooperation"></i>
|
||||
<span>数字人外形管理</span>
|
||||
</template>
|
||||
<el-menu-item-group>
|
||||
<el-menu-item index="3-1" v-on:click="openUrl('/digital_human_voice_base')">数字人语音库</el-menu-item>
|
||||
</el-menu-item-group>
|
||||
</el-submenu>
|
||||
|
||||
|
||||
|
||||
</el-menu>
|
||||
</div>
|
||||
{{end}}
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
<el-main class="mainMain">
|
||||
|
||||
<iframe id="fastGptIframe" src="" width="100%" height="100%"></iframe>
|
||||
<iframe id="fastGptIframe" src="http://120.26.102.141:8085/#/pages/yinyuan/yinyuan" width="100%" height="100%"></iframe>
|
||||
|
||||
|
||||
</el-main>
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
{{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" .}}
|
||||
|
||||
|
|
@ -484,7 +484,7 @@
|
|||
|
||||
}
|
||||
if (ACTION == "digital_human") {
|
||||
this.iframeUrl = "digital_human"
|
||||
this.iframeUrl = "digital_human_base_setting"
|
||||
|
||||
}
|
||||
if (ACTION == "setting_deploy") {
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
package tmpl
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
//数字人
|
||||
func PageDigitalHuman(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "digital_human.html", gin.H{
|
||||
"action": "digital_human",
|
||||
})
|
||||
}
|
||||
|
||||
//数字人基础配置
|
||||
func PageDigitalHumanBaseSetting(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "digital_human_base_setting.html", gin.H{
|
||||
"action": "digital_human_base_setting",
|
||||
})
|
||||
}
|
||||
|
||||
//数字人形象库
|
||||
func PageDigitalHumanImageBase(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "digital_human_image_base.html", gin.H{
|
||||
"action": "digital_human_image_base",
|
||||
})
|
||||
}
|
||||
|
||||
//数字人动作库
|
||||
func PageDigitalHumanActionBase(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "digital_human_action_base.html", gin.H{
|
||||
"action": "digital_human_action_base",
|
||||
})
|
||||
}
|
||||
|
||||
//音源库
|
||||
func PageDigitalHumanVoiceBase(c *gin.Context) {
|
||||
c.HTML(http.StatusOK, "digital_human_voice_base.html", gin.H{
|
||||
"action": "digital_human_voice_base",
|
||||
})
|
||||
}
|
Loading…
Reference in New Issue