lw-cdp-ui 1.4.7 → 1.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/lwBiChart/charts/MapChart.vue +1 -2
- package/dist/lw-cdp-ui.esm.js +40 -49
- package/dist/lw-cdp-ui.umd.js +13 -13
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/lwBiChart/map/index.js +0 -52
- package/dist/map/anhui.json +0 -1
- package/dist/map/aomen.json +0 -1
- package/dist/map/beijing.json +0 -1
- package/dist/map/china-cities.json +0 -1
- package/dist/map/china-contour.json +0 -1
- package/dist/map/china.json +0 -1
- package/dist/map/chongqing.json +0 -1
- package/dist/map/fujian.json +0 -1
- package/dist/map/gansu.json +0 -1
- package/dist/map/guangdong.json +0 -1
- package/dist/map/guangxi.json +0 -1
- package/dist/map/guizhou.json +0 -1
- package/dist/map/hainan.json +0 -1
- package/dist/map/hebei.json +0 -1
- package/dist/map/heilongjiang.json +0 -1
- package/dist/map/henan.json +0 -1
- package/dist/map/hubei.json +0 -1
- package/dist/map/hunan.json +0 -1
- package/dist/map/jiangsu.json +0 -1
- package/dist/map/jiangxi.json +0 -1
- package/dist/map/jilin.json +0 -1
- package/dist/map/liaoning.json +0 -1
- package/dist/map/neimenggu.json +0 -1
- package/dist/map/ningxia.json +0 -1
- package/dist/map/qinghai.json +0 -1
- package/dist/map/shandong.json +0 -1
- package/dist/map/shanghai.json +0 -1
- package/dist/map/shanxi.json +0 -1
- package/dist/map/sichuan.json +0 -1
- package/dist/map/taiwan.json +0 -1
- package/dist/map/tianjin.json +0 -1
- package/dist/map/world.json +0 -1
- package/dist/map/xianggang.json +0 -1
- package/dist/map/xinjiang.json +0 -1
- package/dist/map/xizang.json +0 -1
- package/dist/map/yunnan.json +0 -1
- package/dist/map/zhejiang.json +0 -1
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
<script>
|
|
6
6
|
import { inject, markRaw } from 'vue'
|
|
7
|
-
import { getMapData } from '../map/index.js'
|
|
8
7
|
|
|
9
8
|
export default {
|
|
10
9
|
name: 'MapChart',
|
|
@@ -80,7 +79,7 @@ export default {
|
|
|
80
79
|
this.option = option
|
|
81
80
|
}
|
|
82
81
|
|
|
83
|
-
const mapJson = await
|
|
82
|
+
const mapJson = await this.$http.get(`/map/${this.rawData?.setting?.mapName || 'china'}.json`)
|
|
84
83
|
this.echarts.registerMap(this.rawData?.setting?.mapName || 'china', mapJson)
|
|
85
84
|
|
|
86
85
|
|
package/dist/lw-cdp-ui.esm.js
CHANGED
|
@@ -21274,16 +21274,7 @@ function pA(e, t, n, r, a, o) {
|
|
|
21274
21274
|
style: ve({ height: n.height })
|
|
21275
21275
|
}, null, 6);
|
|
21276
21276
|
}
|
|
21277
|
-
const Zc = /* @__PURE__ */ ae(fA, [["render", pA], ["__scopeId", "data-v-88abf5da"]])
|
|
21278
|
-
async function gA(e) {
|
|
21279
|
-
try {
|
|
21280
|
-
const t = new URL((/* @__PURE__ */ Object.assign({}))[`/map/${e}.json`], import.meta.url).href;
|
|
21281
|
-
return await (await fetch(t)).json();
|
|
21282
|
-
} catch (t) {
|
|
21283
|
-
throw console.error(`加载失败: ${e}`, t), new Error(`无法加载 ${e} 数据`);
|
|
21284
|
-
}
|
|
21285
|
-
}
|
|
21286
|
-
const mA = {
|
|
21277
|
+
const Zc = /* @__PURE__ */ ae(fA, [["render", pA], ["__scopeId", "data-v-88abf5da"]]), gA = {
|
|
21287
21278
|
name: "MapChart",
|
|
21288
21279
|
props: {
|
|
21289
21280
|
rawData: {
|
|
@@ -21338,7 +21329,7 @@ const mA = {
|
|
|
21338
21329
|
visualMap: this.getVisualMapOption(e, r),
|
|
21339
21330
|
series: this.getSeriesData(e, r)
|
|
21340
21331
|
} : this.option = n;
|
|
21341
|
-
const a = await
|
|
21332
|
+
const a = await this.$http.get(`/map/${((i = (o = this.rawData) == null ? void 0 : o.setting) == null ? void 0 : i.mapName) || "china"}.json`);
|
|
21342
21333
|
this.echarts.registerMap(((s = (l = this.rawData) == null ? void 0 : l.setting) == null ? void 0 : s.mapName) || "china", a), this.option && this.chart.setOption(this.option, !0), setTimeout(() => {
|
|
21343
21334
|
this.chart.resize();
|
|
21344
21335
|
}, 10);
|
|
@@ -21436,14 +21427,14 @@ const mA = {
|
|
|
21436
21427
|
}
|
|
21437
21428
|
}
|
|
21438
21429
|
};
|
|
21439
|
-
function
|
|
21430
|
+
function mA(e, t, n, r, a, o) {
|
|
21440
21431
|
return g(), B("div", {
|
|
21441
21432
|
ref: "chartRef",
|
|
21442
21433
|
class: Ce({ chart: n.isBi }),
|
|
21443
21434
|
style: ve({ height: n.height })
|
|
21444
21435
|
}, null, 6);
|
|
21445
21436
|
}
|
|
21446
|
-
const Yc = /* @__PURE__ */ ae(
|
|
21437
|
+
const Yc = /* @__PURE__ */ ae(gA, [["render", mA], ["__scopeId", "data-v-b3ce6f6f"]]), AA = {
|
|
21447
21438
|
name: "ReportTable",
|
|
21448
21439
|
props: {
|
|
21449
21440
|
rawData: {
|
|
@@ -21506,11 +21497,11 @@ const Yc = /* @__PURE__ */ ae(mA, [["render", AA], ["__scopeId", "data-v-4705f84
|
|
|
21506
21497
|
this.currentPage = e;
|
|
21507
21498
|
}
|
|
21508
21499
|
}
|
|
21509
|
-
},
|
|
21500
|
+
}, yA = {
|
|
21510
21501
|
key: 0,
|
|
21511
21502
|
class: "pagination-container"
|
|
21512
21503
|
};
|
|
21513
|
-
function
|
|
21504
|
+
function CA(e, t, n, r, a, o) {
|
|
21514
21505
|
const i = w("el-table-column"), l = w("el-table"), s = w("el-pagination");
|
|
21515
21506
|
return g(), B("div", {
|
|
21516
21507
|
class: "report-table-container",
|
|
@@ -21543,7 +21534,7 @@ function bA(e, t, n, r, a, o) {
|
|
|
21543
21534
|
]),
|
|
21544
21535
|
_: 1
|
|
21545
21536
|
}, 8, ["data", "border", "stripe", "size", "max-height", "onSortChange"]),
|
|
21546
|
-
n.showPagination ? (g(), B("div",
|
|
21537
|
+
n.showPagination ? (g(), B("div", yA, [
|
|
21547
21538
|
v(s, {
|
|
21548
21539
|
"current-page": a.currentPage,
|
|
21549
21540
|
"page-sizes": n.pageSizes,
|
|
@@ -21557,7 +21548,7 @@ function bA(e, t, n, r, a, o) {
|
|
|
21557
21548
|
])) : Z("", !0)
|
|
21558
21549
|
], 4);
|
|
21559
21550
|
}
|
|
21560
|
-
const Kc = /* @__PURE__ */ ae(
|
|
21551
|
+
const Kc = /* @__PURE__ */ ae(AA, [["render", CA], ["__scopeId", "data-v-81083195"]]), bA = {
|
|
21561
21552
|
name: "ChartTitle",
|
|
21562
21553
|
props: {
|
|
21563
21554
|
title: {
|
|
@@ -21617,7 +21608,7 @@ const Kc = /* @__PURE__ */ ae(yA, [["render", bA], ["__scopeId", "data-v-8108319
|
|
|
21617
21608
|
}
|
|
21618
21609
|
}
|
|
21619
21610
|
};
|
|
21620
|
-
function
|
|
21611
|
+
function vA(e, t, n, r, a, o) {
|
|
21621
21612
|
return g(), B("div", {
|
|
21622
21613
|
class: "chart-title-container",
|
|
21623
21614
|
style: ve(n.titleStyle)
|
|
@@ -21633,7 +21624,7 @@ function wA(e, t, n, r, a, o) {
|
|
|
21633
21624
|
}, z(n.subtitle), 5)) : Z("", !0)
|
|
21634
21625
|
], 4);
|
|
21635
21626
|
}
|
|
21636
|
-
const Wc = /* @__PURE__ */ ae(
|
|
21627
|
+
const Wc = /* @__PURE__ */ ae(bA, [["render", vA], ["__scopeId", "data-v-2679bda5"]]), wA = {
|
|
21637
21628
|
Bar: qo,
|
|
21638
21629
|
Line: Qc,
|
|
21639
21630
|
Pie: Nc,
|
|
@@ -21646,7 +21637,7 @@ const Wc = /* @__PURE__ */ ae(vA, [["render", wA], ["__scopeId", "data-v-2679bda
|
|
|
21646
21637
|
Map: Yc,
|
|
21647
21638
|
ReportTable: Kc,
|
|
21648
21639
|
ChartTitle: Wc
|
|
21649
|
-
},
|
|
21640
|
+
}, EA = {
|
|
21650
21641
|
name: "lwBiChartItem",
|
|
21651
21642
|
components: {
|
|
21652
21643
|
BarChart: qo,
|
|
@@ -21690,11 +21681,11 @@ const Wc = /* @__PURE__ */ ae(vA, [["render", wA], ["__scopeId", "data-v-2679bda
|
|
|
21690
21681
|
return ((e = this.rawData) == null ? void 0 : e.type) || "Bar";
|
|
21691
21682
|
},
|
|
21692
21683
|
chartComponent() {
|
|
21693
|
-
return
|
|
21684
|
+
return wA[this.chartType] || qo;
|
|
21694
21685
|
}
|
|
21695
21686
|
}
|
|
21696
21687
|
};
|
|
21697
|
-
function
|
|
21688
|
+
function _A(e, t, n, r, a, o) {
|
|
21698
21689
|
return o.isShow ? (g(), F(st(o.chartComponent), {
|
|
21699
21690
|
key: 0,
|
|
21700
21691
|
rawData: n.rawData,
|
|
@@ -21702,7 +21693,7 @@ function IA(e, t, n, r, a, o) {
|
|
|
21702
21693
|
isBi: n.isBi
|
|
21703
21694
|
}, null, 8, ["rawData", "height", "isBi"])) : Z("", !0);
|
|
21704
21695
|
}
|
|
21705
|
-
const
|
|
21696
|
+
const IA = /* @__PURE__ */ ae(EA, [["render", _A]]), xA = {
|
|
21706
21697
|
components: { GridLayout: hu, GridItem: du },
|
|
21707
21698
|
data() {
|
|
21708
21699
|
return {
|
|
@@ -21855,16 +21846,16 @@ const xA = /* @__PURE__ */ ae(_A, [["render", IA]]), BA = {
|
|
|
21855
21846
|
});
|
|
21856
21847
|
}
|
|
21857
21848
|
}
|
|
21858
|
-
},
|
|
21849
|
+
}, BA = { class: "global-layout" }, LA = {
|
|
21859
21850
|
key: 0,
|
|
21860
21851
|
class: "filter-top"
|
|
21861
|
-
},
|
|
21852
|
+
}, FA = ["onClick"], kA = {
|
|
21862
21853
|
key: 1,
|
|
21863
21854
|
class: "no-record-panel e-unselect"
|
|
21864
21855
|
};
|
|
21865
|
-
function
|
|
21856
|
+
function SA(e, t, n, r, a, o) {
|
|
21866
21857
|
const i = w("lw-search"), l = w("el-radio-button"), s = w("el-radio-group"), u = w("lwBiChartItem"), d = w("el-button"), f = w("GridItem"), y = w("GridLayout"), E = w("el-empty");
|
|
21867
|
-
return g(), B("div",
|
|
21858
|
+
return g(), B("div", BA, [
|
|
21868
21859
|
a.searchOptions.length > 0 ? (g(), F(i, {
|
|
21869
21860
|
key: 0,
|
|
21870
21861
|
class: "search-body",
|
|
@@ -21900,7 +21891,7 @@ function MA(e, t, n, r, a, o) {
|
|
|
21900
21891
|
G("div", {
|
|
21901
21892
|
class: Ce(["global-layout-item", { edit: n.designMode }])
|
|
21902
21893
|
}, [
|
|
21903
|
-
(O = (k = _.data) == null ? void 0 : k.setting) != null && O.activeDateUnitFilter ? (g(), B("div",
|
|
21894
|
+
(O = (k = _.data) == null ? void 0 : k.setting) != null && O.activeDateUnitFilter ? (g(), B("div", LA, [
|
|
21904
21895
|
v(s, {
|
|
21905
21896
|
modelValue: _.timeUnit,
|
|
21906
21897
|
"onUpdate:modelValue": (K) => _.timeUnit = K,
|
|
@@ -21941,7 +21932,7 @@ function MA(e, t, n, r, a, o) {
|
|
|
21941
21932
|
link: "",
|
|
21942
21933
|
icon: "el-icon-delete"
|
|
21943
21934
|
})
|
|
21944
|
-
], 8,
|
|
21935
|
+
], 8, FA)) : Z("", !0)
|
|
21945
21936
|
], 2)
|
|
21946
21937
|
];
|
|
21947
21938
|
}),
|
|
@@ -21950,14 +21941,14 @@ function MA(e, t, n, r, a, o) {
|
|
|
21950
21941
|
]),
|
|
21951
21942
|
_: 1
|
|
21952
21943
|
}, 8, ["layout", "is-draggable", "is-resizable"]),
|
|
21953
|
-
a.chartList.length === 0 ? (g(), B("div",
|
|
21944
|
+
a.chartList.length === 0 ? (g(), B("div", kA, [
|
|
21954
21945
|
v(E, {
|
|
21955
21946
|
description: n.designMode ? "点击上方工具栏中的按钮,添加图表至当前仪表板" : "仪表板中还没有添加任何图表"
|
|
21956
21947
|
}, null, 8, ["description"])
|
|
21957
21948
|
])) : Z("", !0)
|
|
21958
21949
|
]);
|
|
21959
21950
|
}
|
|
21960
|
-
const
|
|
21951
|
+
const MA = /* @__PURE__ */ ae(xA, [["render", SA], ["__scopeId", "data-v-846ab3c3"]]), TA = {
|
|
21961
21952
|
loginPage: {
|
|
21962
21953
|
accountLoginNologo: "Marketing Cloud",
|
|
21963
21954
|
accountLogin: "Lianwei Marketing Cloud",
|
|
@@ -21993,7 +21984,7 @@ const TA = /* @__PURE__ */ ae(BA, [["render", MA], ["__scopeId", "data-v-846ab3c
|
|
|
21993
21984
|
compareProducts: "Comparing other products, want to learn more",
|
|
21994
21985
|
other: "Other"
|
|
21995
21986
|
}
|
|
21996
|
-
},
|
|
21987
|
+
}, VA = {
|
|
21997
21988
|
loginPage: {
|
|
21998
21989
|
accountLoginNologo: "营销云",
|
|
21999
21990
|
accountLogin: "联蔚营销云",
|
|
@@ -22029,7 +22020,7 @@ const TA = /* @__PURE__ */ ae(BA, [["render", MA], ["__scopeId", "data-v-846ab3c
|
|
|
22029
22020
|
compareProducts: "正在对比其他产品,想了解",
|
|
22030
22021
|
other: "其他"
|
|
22031
22022
|
}
|
|
22032
|
-
},
|
|
22023
|
+
}, DA = {
|
|
22033
22024
|
lwTable: {
|
|
22034
22025
|
tools: {
|
|
22035
22026
|
lineHeightName: "row height",
|
|
@@ -22054,7 +22045,7 @@ const TA = /* @__PURE__ */ ae(BA, [["render", MA], ["__scopeId", "data-v-846ab3c
|
|
|
22054
22045
|
pages: "pages"
|
|
22055
22046
|
}
|
|
22056
22047
|
}
|
|
22057
|
-
},
|
|
22048
|
+
}, RA = {
|
|
22058
22049
|
lwTable: {
|
|
22059
22050
|
tools: {
|
|
22060
22051
|
lineHeightName: "行高",
|
|
@@ -22079,7 +22070,7 @@ const TA = /* @__PURE__ */ ae(BA, [["render", MA], ["__scopeId", "data-v-846ab3c
|
|
|
22079
22070
|
pages: "页"
|
|
22080
22071
|
}
|
|
22081
22072
|
}
|
|
22082
|
-
},
|
|
22073
|
+
}, OA = {
|
|
22083
22074
|
lwLayout: {
|
|
22084
22075
|
user: {
|
|
22085
22076
|
settings: "Settings",
|
|
@@ -22101,7 +22092,7 @@ const TA = /* @__PURE__ */ ae(BA, [["render", MA], ["__scopeId", "data-v-846ab3c
|
|
|
22101
22092
|
clearCache: "Clear Cache"
|
|
22102
22093
|
}
|
|
22103
22094
|
}
|
|
22104
|
-
},
|
|
22095
|
+
}, PA = {
|
|
22105
22096
|
lwLayout: {
|
|
22106
22097
|
user: {
|
|
22107
22098
|
settings: "设置",
|
|
@@ -22124,11 +22115,11 @@ const TA = /* @__PURE__ */ ae(BA, [["render", MA], ["__scopeId", "data-v-846ab3c
|
|
|
22124
22115
|
}
|
|
22125
22116
|
}
|
|
22126
22117
|
};
|
|
22127
|
-
let
|
|
22128
|
-
q2["en-us"] = { ...
|
|
22129
|
-
q2["zh-cn"] = { ...
|
|
22118
|
+
let qA = localStorage.getItem("langMessageUi"), QA = JSON.parse(qA) || {}, q2 = { ...QA };
|
|
22119
|
+
q2["en-us"] = { ...TA, ...DA, ...OA };
|
|
22120
|
+
q2["zh-cn"] = { ...VA, ...RA, ...PA };
|
|
22130
22121
|
localStorage.setItem("langMessageUi", JSON.stringify(q2));
|
|
22131
|
-
function
|
|
22122
|
+
function NA(e) {
|
|
22132
22123
|
const t = e({
|
|
22133
22124
|
onNeedRefresh() {
|
|
22134
22125
|
console.log("有更新 等待确定...");
|
|
@@ -22146,24 +22137,24 @@ function GA(e) {
|
|
|
22146
22137
|
}
|
|
22147
22138
|
});
|
|
22148
22139
|
}
|
|
22149
|
-
function
|
|
22140
|
+
function GA(e, t = {}) {
|
|
22150
22141
|
if (t)
|
|
22151
22142
|
for (const n in t)
|
|
22152
22143
|
t.hasOwnProperty(n) && (e.config.globalProperties[`$${n.toUpperCase()}`] = t[n]);
|
|
22153
|
-
e.directive("copy", fu), e.directive("auth", pu), e.component("lwLayout", e8), e.component("lwLayoutInit", i8), e.component("lwLogin", I8), e.component("lwSearch", y4), e.component("lwSvgIcon", F8), e.component("lwTable", A4), e.component("lwForm", Y8), e.component("lwFormMini", C6), e.component("lwUpload", Gt), e.component("lwIconSelect", x6), e.component("lwTableSelect", M6), e.component("lwTableForm", G6), e.component("lwFormView", Sd), e.component("lwFormJson", vd), e.component("lwCronSelect", Rd), e.component("lwFlow", Hm), e.component("lwBiChart", Km), e.component("lwBiChartItem",
|
|
22144
|
+
e.directive("copy", fu), e.directive("auth", pu), e.component("lwLayout", e8), e.component("lwLayoutInit", i8), e.component("lwLogin", I8), e.component("lwSearch", y4), e.component("lwSvgIcon", F8), e.component("lwTable", A4), e.component("lwForm", Y8), e.component("lwFormMini", C6), e.component("lwUpload", Gt), e.component("lwIconSelect", x6), e.component("lwTableSelect", M6), e.component("lwTableForm", G6), e.component("lwFormView", Sd), e.component("lwFormJson", vd), e.component("lwCronSelect", Rd), e.component("lwFlow", Hm), e.component("lwBiChart", Km), e.component("lwBiChartItem", IA), e.component("lwBiChartPage", MA);
|
|
22154
22145
|
}
|
|
22155
|
-
const
|
|
22156
|
-
install:
|
|
22146
|
+
const XA = {
|
|
22147
|
+
install: GA,
|
|
22157
22148
|
// 插件的 install 方法,用于 Vue.use() 安装插件
|
|
22158
22149
|
uiI18n: q2,
|
|
22159
22150
|
// 国际化配置导出,便于配置或使用
|
|
22160
|
-
registerServiceWorker:
|
|
22151
|
+
registerServiceWorker: NA
|
|
22161
22152
|
};
|
|
22162
22153
|
export {
|
|
22163
|
-
|
|
22154
|
+
XA as default,
|
|
22164
22155
|
Km as lwBiChart,
|
|
22165
|
-
|
|
22166
|
-
|
|
22156
|
+
IA as lwBiChartItem,
|
|
22157
|
+
MA as lwBiChartPage,
|
|
22167
22158
|
Rd as lwCronSelect,
|
|
22168
22159
|
Hm as lwFlow,
|
|
22169
22160
|
Y8 as lwForm,
|
|
@@ -22180,6 +22171,6 @@ export {
|
|
|
22180
22171
|
G6 as lwTableForm,
|
|
22181
22172
|
M6 as lwTableSelect,
|
|
22182
22173
|
Gt as lwUpload,
|
|
22183
|
-
|
|
22174
|
+
NA as registerServiceWorker,
|
|
22184
22175
|
q2 as uiI18n
|
|
22185
22176
|
};
|