|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.fr.design.data.tabledata.datacenter; |
|
|
|
package com.fr.design.data.tabledata.datacenter; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fanruan.workplace.conetxt.WorkplaceContext; |
|
|
|
import com.fanruan.workplace.http.ServiceType; |
|
|
|
import com.fanruan.workplace.http.ServiceType; |
|
|
|
import com.fr.datacenters.tabledata.DCTableData; |
|
|
|
import com.fr.datacenters.tabledata.DCTableData; |
|
|
|
import com.fr.datacenters.tabledata.bean.DCNameBean; |
|
|
|
import com.fr.datacenters.tabledata.bean.DCNameBean; |
|
|
@ -34,6 +35,7 @@ public class DCTableDataPane extends AbstractTableDataPane<DCTableData> { |
|
|
|
private static final JxEngine JX_ENGINE = JxEngine.newInstance(true); |
|
|
|
private static final JxEngine JX_ENGINE = JxEngine.newInstance(true); |
|
|
|
|
|
|
|
|
|
|
|
private static final String DATA_CENTER = "dc"; |
|
|
|
private static final String DATA_CENTER = "dc"; |
|
|
|
|
|
|
|
private static final String LANGUAGE = "language"; |
|
|
|
private static final String DATA_CENTER_HELPER = "dcHelper"; |
|
|
|
private static final String DATA_CENTER_HELPER = "dcHelper"; |
|
|
|
private static final String DATA_CENTER_INJECT_URL = "fineServletURL"; |
|
|
|
private static final String DATA_CENTER_INJECT_URL = "fineServletURL"; |
|
|
|
private static final String DC_INDEX_HTML = "com/fr/design/data/tabledata/datacenter/web/data-choose.prod.html"; |
|
|
|
private static final String DC_INDEX_HTML = "com/fr/design/data/tabledata/datacenter/web/data-choose.prod.html"; |
|
|
@ -70,6 +72,7 @@ public class DCTableDataPane extends AbstractTableDataPane<DCTableData> { |
|
|
|
.engine(JX_ENGINE) |
|
|
|
.engine(JX_ENGINE) |
|
|
|
.namespace(DATA_CENTER) |
|
|
|
.namespace(DATA_CENTER) |
|
|
|
.bindWindow(DATA_CENTER_HELPER, DCTableDataJSBridge::getBridge) |
|
|
|
.bindWindow(DATA_CENTER_HELPER, DCTableDataJSBridge::getBridge) |
|
|
|
|
|
|
|
.bindNamespace(LANGUAGE, WorkplaceContext.getLocale().toString()) |
|
|
|
.withURL(DATACENTERS_URL, ImmutableMap.of(DATA_CENTER_INJECT_URL, getDatacentersUrl())) |
|
|
|
.withURL(DATACENTERS_URL, ImmutableMap.of(DATA_CENTER_INJECT_URL, getDatacentersUrl())) |
|
|
|
.build(); |
|
|
|
.build(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
@ -77,6 +80,7 @@ public class DCTableDataPane extends AbstractTableDataPane<DCTableData> { |
|
|
|
.engine(JX_ENGINE) |
|
|
|
.engine(JX_ENGINE) |
|
|
|
.namespace(DATA_CENTER) |
|
|
|
.namespace(DATA_CENTER) |
|
|
|
.bindWindow(DATA_CENTER_HELPER, DCTableDataJSBridge::getBridge) |
|
|
|
.bindWindow(DATA_CENTER_HELPER, DCTableDataJSBridge::getBridge) |
|
|
|
|
|
|
|
.bindNamespace(LANGUAGE, WorkplaceContext.getLocale().toString()) |
|
|
|
.withEMB(DC_INDEX_HTML, ImmutableMap.of(DATA_CENTER_INJECT_URL, getDatacentersUrl())) |
|
|
|
.withEMB(DC_INDEX_HTML, ImmutableMap.of(DATA_CENTER_INJECT_URL, getDatacentersUrl())) |
|
|
|
.build(); |
|
|
|
.build(); |
|
|
|
} |
|
|
|
} |
|
|
|