mirror of
https://github.com/dataease/dataease.git
synced 2026-06-17 04:51:43 +08:00
fix(工作台): 修复初次安装模板市场查看全部为显示模板问题
This commit is contained in:
@@ -104,7 +104,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) {
|
||||
|
||||
@@ -3316,7 +3316,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',
|
||||
|
||||
@@ -3222,8 +3222,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: '樣式模板',
|
||||
|
||||
@@ -3226,8 +3226,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: '样式模板',
|
||||
|
||||
@@ -297,7 +297,7 @@ export const nameTrim = (target: {}, msg = '名称字段长度1-64个字符') =>
|
||||
}
|
||||
|
||||
export const getActiveCategories = contents => {
|
||||
const result = []
|
||||
const result = ['最近使用']
|
||||
if (contents) {
|
||||
contents.forEach(item => {
|
||||
if (item.showFlag) {
|
||||
|
||||
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user