提交 932f2ada 编写于 作者: lxm1993's avatar lxm1993

feat: 插件升级

上级 544c3049
......@@ -404,6 +404,7 @@ class W extends ve {
v(this, "hasLoad", !1);
v(this, "isloading", !1);
v(this, "entityService");
v(this, "pointClicked", !1);
}
async onInit() {
await super.onInit(), await this.model.embedView.init();
......@@ -457,7 +458,7 @@ class W extends ve {
);
}
onPointClick(s) {
this.dashboard.setContextOrParams(
console.log("pointClick"), this.pointClicked = !0, this.dashboard.setContextOrParams(
void 0,
{
...this.params,
......@@ -466,6 +467,16 @@ class W extends ve {
!0
);
}
goBackFrominstitution() {
this.pointClicked = !1, this.dashboard.setContextOrParams(
void 0,
{
...this.params,
tjfw: void 0
},
!0
);
}
}
const L = q({
name: "RingChart",
......@@ -572,13 +583,13 @@ const L = q({
ref: "chartRef"
});
}
}), Ae = ["#FF0700", "#FFF400", "#73A0FA"], Oe = {
}), Oe = ["#FF0700", "#FFF400", "#73A0FA"], Ae = {
strMapCode: !0,
visualMap: {
text: ["\u9AD8", "\u4F4E"],
min: 0,
max: 100,
rangeColor: Ae
rangeColor: Oe
},
pointSymbol: "pin"
}, Ke = "/assets/json/map/jiangsu/{id}.json";
......@@ -672,7 +683,7 @@ const Fe = q({
setup(t, {
emit: n
}) {
const s = D("map-chart"), e = j(() => be(Oe, t.options)), {
const s = D("map-chart"), e = j(() => be(Ae, t.options)), {
chartRef: i,
historyNames: r,
changeMap: d,
......@@ -714,7 +725,7 @@ const Fe = q({
nameProperty: e.value.strMapCode ? "adcodeStr" : "adcode",
tooltip: {
formatter: (p) => {
const k = y(p.name), P = t.mapData.find((A) => A.name == p.name);
const k = y(p.name), P = t.mapData.find((O) => O.name == p.name);
if (!!P)
return `
<div style='display:flex;justify-content: space-between;'>
......@@ -884,7 +895,14 @@ const Fe = q({
this.c.onPointClick(n);
}
}
})]), a("div", {
}), this.c.pointClicked && a("div", {
class: this.ns.e("goback"),
on: {
click: () => {
this.c.goBackFrominstitution();
}
}
}, ["\u8FD4\u56DE"])]), a("div", {
class: this.ns.e("right")
}, [a(L, {
attrs: {
......@@ -1389,8 +1407,8 @@ const rt = q({
var b;
if (g !== w && g) {
await e.model.pickupViewPanel.embedView.init();
const O = (b = e.model.pickupViewPanel.embedView.source.getPSControls()) == null ? void 0 : b.find((z) => z.controlType === "TREEVIEW");
O || console.warn("\u672A\u627E\u5230[\u6811(tree)]\u90E8\u4EF6"), i.value = new fe(O), await i.value.init(), r = ue(s, i.value, t.context, t.params), await r.init();
const A = (b = e.model.pickupViewPanel.embedView.source.getPSControls()) == null ? void 0 : b.find((z) => z.controlType === "TREEVIEW");
A || console.warn("\u672A\u627E\u5230[\u6811(tree)]\u90E8\u4EF6"), i.value = new fe(A), await i.value.init(), r = ue(s, i.value, t.context, t.params), await r.init();
const E = await r.load();
if (E.length > 0 && (d.value = E, y.value.children = E, c.value.push({
text: "\u5F53\u524D\u9662",
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册