mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 23:30:26 +08:00
优化界面
This commit is contained in:
@@ -11,10 +11,6 @@ import (
|
||||
|
||||
var sharedAdminUIConfig *systemconfigs.AdminUIConfig = nil
|
||||
|
||||
const (
|
||||
AdminUISettingName = "adminUIConfig"
|
||||
)
|
||||
|
||||
func LoadAdminUIConfig() (*systemconfigs.AdminUIConfig, error) {
|
||||
locker.Lock()
|
||||
defer locker.Unlock()
|
||||
@@ -41,7 +37,7 @@ func UpdateAdminUIConfig(uiConfig *systemconfigs.AdminUIConfig) error {
|
||||
return err
|
||||
}
|
||||
_, err = rpcClient.SysSettingRPC().UpdateSysSetting(rpcClient.Context(0), &pb.UpdateSysSettingRequest{
|
||||
Code: AdminUISettingName,
|
||||
Code: systemconfigs.SettingCodeAdminUIConfig,
|
||||
ValueJSON: valueJSON,
|
||||
})
|
||||
if err != nil {
|
||||
@@ -52,7 +48,7 @@ func UpdateAdminUIConfig(uiConfig *systemconfigs.AdminUIConfig) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// 是否显示财务信息
|
||||
// ShowFinance 是否显示财务信息
|
||||
func ShowFinance() bool {
|
||||
config, _ := LoadAdminUIConfig()
|
||||
if config != nil && !config.ShowFinance {
|
||||
@@ -70,7 +66,7 @@ func loadAdminUIConfig() (*systemconfigs.AdminUIConfig, error) {
|
||||
return nil, err
|
||||
}
|
||||
resp, err := rpcClient.SysSettingRPC().ReadSysSetting(rpcClient.Context(0), &pb.ReadSysSettingRequest{
|
||||
Code: AdminUISettingName,
|
||||
Code: systemconfigs.SettingCodeAdminUIConfig,
|
||||
})
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
@@ -81,7 +81,7 @@ Vue.component("http-pages-and-shutdown-box", {
|
||||
<h1>网站升级中</h1>
|
||||
<p>为了给您提供更好的服务,我们正在升级网站,请稍后重新访问。</p>
|
||||
|
||||
<address>Request ID: \${requestId}, Powered by GoEdge.</address>
|
||||
<address>Request ID: \${requestId}.</address>
|
||||
|
||||
</body>
|
||||
</html>`
|
||||
|
||||
@@ -13,7 +13,7 @@ Tea.context(function () {
|
||||
<h1>\${status} \${statusMessage}</h1>
|
||||
<p><!-- 内容 --></p>
|
||||
|
||||
<address>Request ID: \${requestId}, Powered by GoEdge.</address>
|
||||
<address>Request ID: \${requestId}.</address>
|
||||
|
||||
</body>
|
||||
</html>`
|
||||
|
||||
@@ -20,7 +20,7 @@ Tea.context(function () {
|
||||
<h1>\${status} \${statusMessage}</h1>
|
||||
<p><!-- 内容 --></p>
|
||||
|
||||
<address>Request ID: \${requestId}, Powered by GoEdge.</address>
|
||||
<address>Request ID: \${requestId}.</address>
|
||||
|
||||
</body>
|
||||
</html>`
|
||||
|
||||
@@ -5,15 +5,17 @@
|
||||
|
||||
<table class="ui table definition selectable">
|
||||
<tr>
|
||||
<td class="title">产品名称 *</td>
|
||||
<td class="title">产品代号 *</td>
|
||||
<td>
|
||||
<input type="text" name="productName" v-model="config.productName" maxlength="100"/>
|
||||
<p class="comment">可以使用变量<code-label>${product.name}</code-label>在网页里展示此代号。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>管理员系统名称 *</td>
|
||||
<td>
|
||||
<input type="text" name="adminSystemName" v-model="config.adminSystemName" maxlength="100"/>
|
||||
<p class="comment">当前管理系统界面上显示的名称。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -26,9 +28,10 @@
|
||||
<td>是否显示版本号</td>
|
||||
<td>
|
||||
<checkbox name="showVersion" v-model="config.showVersion"></checkbox>
|
||||
<p class="comment">选中后,在界面中显示系统版本号。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr v-show="config.showVersion">
|
||||
<tr>
|
||||
<td>定制版本号</td>
|
||||
<td>
|
||||
<input type="text" name="version" v-model="config.version" maxlength="100"/>
|
||||
|
||||
Reference in New Issue
Block a user