fix(工作台): 修复初次安装模板市场查看全部为显示模板问题

This commit is contained in:
wangjiahao
2025-06-19 14:23:35 +08:00
committed by dataeaseShu
parent 8cf79bb470
commit f0ee58654c
7 changed files with 10 additions and 10 deletions

View File

@@ -103,7 +103,8 @@ public class TemplateCenterManage {
config.setConnectTimeout(5000);
config.setSocketTimeout(10000);
config.setConnectionRequestTimeout(5000);
return HttpClientUtil.get(url, config);
return HttpClientUtil.
get(url, config);
}
private MarketTemplateV2BaseResponse templateQuery(Map<String, String> templateParams) {

View File

@@ -3304,7 +3304,7 @@ export default {
apply: 'Apply',
apply_this_template: 'Apply This Template',
market_network_tips:
'To view templates from the template market, your server must be connected to the template market (https://templates.dataease.cn). Please check your network connection...',
'To view templates from the template market, your server must be connected to the template market ({0}). Please check your network connection...',
enter_name_tips: 'Please enter the dashboard name.',
apply_template: 'App Template',
style_template: 'Style Template',

View File

@@ -3210,8 +3210,7 @@ export default {
template_preview: '預覽模板',
apply: '應用',
apply_this_template: '應用此模板',
market_network_tips:
'查看模板市場模板需要服務器與模板市場(https://templates.dataease.cn)連通,請檢查網絡...',
market_network_tips: '查看模板市場模板需要服務器與模板市場({0})連通,請檢查網絡...',
enter_name_tips: '請輸入儀表板名稱',
apply_template: '應用模板',
style_template: '樣式模板',

View File

@@ -3215,8 +3215,7 @@ export default {
template_preview: '预览模板',
apply: '应用',
apply_this_template: '应用此模板',
market_network_tips:
'查看模板市场模板需要服务器与模板市场(https://templates.dataease.cn)连通,请检查网络...',
market_network_tips: `查看模板市场模板需要服务器与模板市场({0})连通,请检查网络...`,
enter_name_tips: '请输入仪表板名称',
apply_template: '应用模板',
style_template: '样式模板',

View File

@@ -295,7 +295,7 @@ export const nameTrim = (target: {}, msg = '名称字段长度1-64个字符') =>
}
export const getActiveCategories = contents => {
const result = []
const result = ['最近使用']
if (contents) {
contents.forEach(item => {
if (item.showFlag) {

View File

@@ -175,7 +175,7 @@
</div>
</el-row>
<el-row v-show="!state.networkStatus" class="template-empty">
{{ t('visualization.market_network_tips') }}
111 {{ t('visualization.market_network_tips', [state.baseUrl]) }}
</el-row>
</el-row>
</el-row>
@@ -428,7 +428,8 @@ const initMarketTemplate = async () => {
)
state.marketActiveTab = state.marketTabs[1].label
})
.catch(() => {
.catch(err => {
console.error('searchMarket:', err)
state.networkStatus = false
})
}

View File

@@ -430,7 +430,7 @@ loadShareBase()
</div>
</el-row>
<el-row v-show="!state.networkStatus" class="template-empty">
{{ t('visualization.market_network_tips') }}
{{ t('visualization.market_network_tips', [state.baseUrl]) }}
</el-row>
</template>
</div>