This commit is contained in:
@@ -153,6 +153,8 @@ $(function () {
|
|||||||
baseData.public_security_network_preparation_link;
|
baseData.public_security_network_preparation_link;
|
||||||
baseData.telecom_appreciation =
|
baseData.telecom_appreciation =
|
||||||
cfg.telecom_appreciation || baseData.telecom_appreciation;
|
cfg.telecom_appreciation || baseData.telecom_appreciation;
|
||||||
|
baseData.copyright_info =
|
||||||
|
cfg.copyright_info || baseData.copyright_info;
|
||||||
baseData.cloud_product_link =
|
baseData.cloud_product_link =
|
||||||
cfg.cloud_product_link || baseData.cloud_product_link;
|
cfg.cloud_product_link || baseData.cloud_product_link;
|
||||||
baseData.dcim_product_link =
|
baseData.dcim_product_link =
|
||||||
|
|||||||
@@ -275,7 +275,7 @@
|
|||||||
<t-button theme="primary" variant="outline" @click="addSide">新增浮窗</t-button>
|
<t-button theme="primary" variant="outline" @click="addSide">新增浮窗</t-button>
|
||||||
</t-card>
|
</t-card>
|
||||||
|
|
||||||
<t-card class="theme-card" title="高级配置 (JSON)" bordered>
|
<t-card v-if="showAdvanced" class="theme-card" title="高级配置 (JSON)" bordered>
|
||||||
<p class="theme-tip">
|
<p class="theme-tip">
|
||||||
用于暂未在 UI 中开放的配置项(如复杂导航结构 header_nav/footer_nav 等)。如非必要,建议优先使用上方表单编辑。
|
用于暂未在 UI 中开放的配置项(如复杂导航结构 header_nav/footer_nav 等)。如非必要,建议优先使用上方表单编辑。
|
||||||
</p>
|
</p>
|
||||||
@@ -287,8 +287,11 @@
|
|||||||
</t-card>
|
</t-card>
|
||||||
|
|
||||||
<div class="action-bar">
|
<div class="action-bar">
|
||||||
<t-button variant="outline" @click="loadConfig" :loading="loading">重新加载</t-button>
|
<t-button variant="outline" @click="loadConfig" :loading="loading">重新加载</t-button>
|
||||||
<t-button theme="primary" class="ml-10" @click="saveConfig" :loading="saving">保存全部配置</t-button>
|
<t-button theme="primary" class="ml-10" @click="saveConfig" :loading="saving">保存全部配置</t-button>
|
||||||
|
<t-button class="ml-10" variant="outline" @click="showAdvanced = !showAdvanced">
|
||||||
|
{{ showAdvanced ? '隐藏高级 JSON' : '显示高级 JSON' }}
|
||||||
|
</t-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -351,6 +354,7 @@
|
|||||||
saving: false,
|
saving: false,
|
||||||
fullConfig: createDefaultConfig(),
|
fullConfig: createDefaultConfig(),
|
||||||
advancedText: "",
|
advancedText: "",
|
||||||
|
showAdvanced: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -420,7 +424,7 @@
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
syncJson() {
|
syncJson() {
|
||||||
this.advancedText = JSON.stringify(this.fullConfig, null, 2);
|
this.advancedText = JSON.stringify(this.fullConfig, null, 2);
|
||||||
},
|
},
|
||||||
applyAdvanced() {
|
applyAdvanced() {
|
||||||
if (!this.advancedText.trim()) {
|
if (!this.advancedText.trim()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user