mixapply 1.1.39 → 1.1.40

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/mixapply.js CHANGED
@@ -55032,7 +55032,7 @@ class g1 {
55032
55032
  };
55033
55033
  let d = ((f = l.points) == null ? void 0 : f.value) || 1, h = "";
55034
55034
  if (s.multiObject || (h = st(s, s.useAlias, i)), s.source === "summary" ? (c.block_mapping = "schema", c.action = "get_statistical_quantity", delete c.condition) : o.forEach((p) => {
55035
- s.multiObject && (h = st(p, s.useAlias, i)), p.object_id = h, c.condition.push(
55035
+ s.multiObject ? h = st(p, s.useAlias, i) : p.object_id = h || p.object_id, c.condition.push(
55036
55036
  s && s.rate && s.rate.checked ? this.get_mosaic_by_timespan(p, d, s.rate) : this[`get_${u}_item`](p, n, d, r)
55037
55037
  );
55038
55038
  }), r === "scd" && l.multipleImg.value) {
@@ -55294,56 +55294,57 @@ class g1 {
55294
55294
  }
55295
55295
  }
55296
55296
  const V1 = (t, e, r) => {
55297
- const { common: n, data: a, options: i } = t, o = n.source || "mosaic";
55297
+ console.log(JSON.parse(JSON.stringify(t)), "formatRequest");
55298
+ const { common: n, data: a, options: i, type: o } = JSON.parse(JSON.stringify(t)), s = n.source || "mosaic";
55298
55299
  try {
55299
- const s = {
55300
+ const l = {
55300
55301
  component_name: t.type,
55301
55302
  items: Number(t.points) || 1,
55302
55303
  body: {},
55303
55304
  actionid: t.id
55304
- }, l = /* @__PURE__ */ new Map();
55305
- let u = "";
55306
- if ((!n.multiObject || n.hideMultiObject) && (u = st(n, n.useAlias, e)), a.forEach((c) => {
55307
- n.multiObject ? c.object_id = st(c, n.useAlias, e) : c.object_id = u;
55308
- const d = `${c.object_id}_${o}`;
55309
- if (l.has(d))
55310
- if (["progressBar", "progressCircle"].includes(r) && c.maxType === "fv")
55311
- l.get(d).id.push(c.fv, c.max);
55305
+ }, u = /* @__PURE__ */ new Map();
55306
+ let c = "";
55307
+ if ((!n.multiObject || n.hideMultiObject) && (c = st(n, n.useAlias, e)), a.forEach((d) => {
55308
+ n.multiObject ? d.object_id = st(d, n.useAlias, e) : d.object_id = c || d.object_id;
55309
+ const h = `${d.object_id}_${s}`;
55310
+ if (u.has(h))
55311
+ if (["progressBar", "progressCircle"].includes(r) && d.maxType === "fv")
55312
+ u.get(h).id.push(d.fv, d.max);
55312
55313
  else {
55313
- let h = c.fv;
55314
- r === "cmc" && (h = c.item_fv), ["ctrSwitch"].includes(r) && (h = c.status_fv), l.get(d).id.push(h);
55314
+ let f = d.fv;
55315
+ r === "cmc" && (f = d.item_fv), ["ctrSwitch"].includes(r) && (f = d.status_fv), u.get(h).id.push(f);
55315
55316
  }
55316
55317
  else {
55317
- let h = [c.fv];
55318
- r === "evn" && (h = [c.fv, c.status_fv]), ["progressBar", "progressCircle"].includes(r) && c.maxType === "fv" && (h = [c.fv, c.max]), r === "cmc" && (h = [c.item_fv]), ["ctrSwitch"].includes(r) && (h = [c.status_fv]), l.set(d, {
55319
- ...c,
55320
- id: h
55318
+ let f = [d.fv];
55319
+ r === "evn" && (f = [d.fv, d.status_fv]), ["progressBar", "progressCircle"].includes(r) && d.maxType === "fv" && (f = [d.fv, d.max]), r === "cmc" && (f = [d.item_fv]), ["ctrSwitch"].includes(r) && (f = [d.status_fv]), u.set(h, {
55320
+ ...d,
55321
+ id: f
55321
55322
  });
55322
55323
  }
55323
55324
  }), r === "sankey") {
55324
- u = st(n, n.useAlias, e);
55325
- const c = `${u}_${o}`;
55326
- l.has(c) ? l.get(c).id.push(n.originFv) : l.set(c, {
55327
- object_id: u,
55325
+ c = st(n, n.useAlias, e);
55326
+ const d = `${c}_${s}`;
55327
+ u.has(d) ? u.get(d).id.push(n.originFv) : u.set(d, {
55328
+ object_id: c,
55328
55329
  id: [n.originFv]
55329
55330
  });
55330
55331
  }
55331
55332
  if (r === "scd") {
55332
- u = u = st({ object_id: i.object.value, object_alias: i.object.value }, n.useAlias, e);
55333
- const c = `${u}_${o}`;
55334
- l.has(c) ? l.get(c).id.push(i.statusFv.value) : l.set(c, {
55335
- object_id: u,
55333
+ c = c = st({ object_id: i.object.value, object_alias: i.object.value }, n.useAlias, e);
55334
+ const d = `${c}_${s}`;
55335
+ u.has(d) ? u.get(d).id.push(i.statusFv.value) : u.set(d, {
55336
+ object_id: c,
55336
55337
  id: [i.statusFv.value]
55337
55338
  });
55338
55339
  }
55339
- for (const [c, d] of l)
55340
- s.body[o] || (s.body[o] = []), s.body[o].push({
55341
- object_id: d.object_id,
55342
- key: d.id
55340
+ for (const [d, h] of u)
55341
+ l.body[s] || (l.body[s] = []), l.body[s].push({
55342
+ object_id: h.object_id,
55343
+ key: h.id
55343
55344
  });
55344
- return s;
55345
- } catch (s) {
55346
- throw console.error("格式化请求时出错:", s), new Error("请求格式化失败");
55345
+ return l;
55346
+ } catch (l) {
55347
+ throw console.error("格式化请求时出错:", l), new Error("请求格式化失败");
55347
55348
  }
55348
55349
  }, b6e = (t, e) => {
55349
55350
  const { common: r } = t, n = {
@@ -57956,13 +57957,13 @@ const V1 = (t, e, r) => {
57956
57957
  let y = a.getOption(), S = "";
57957
57958
  m.multiObject || (S = st(m, m.useAlias, o.uid)), v.forEach((C, _) => {
57958
57959
  var x, T, E, L, A, D, M;
57959
- m.multiObject && (S = st(C, m.useAlias, o.uid));
57960
+ m.multiObject ? S = st(C, m.useAlias, o.uid) : S = C.object_id;
57960
57961
  let w = null;
57961
57962
  ["statistics", "calculate"].includes(b) ? w = (L = (E = (T = (x = g[S]) == null ? void 0 : x[b]) == null ? void 0 : T.data) == null ? void 0 : E[C.fv]) == null ? void 0 : L.data : w = (M = (D = (A = g[S]) == null ? void 0 : A[b]) == null ? void 0 : D.data) == null ? void 0 : M[C.fv], y.series[0].data[0].value = w;
57962
57963
  }), a.setOption(y);
57963
57964
  }, f = async () => {
57964
57965
  try {
57965
- const v = await new g1().getHistoryData(o, "lin");
57966
+ const v = await new g1().getHistoryData(o, "gag");
57966
57967
  d(v);
57967
57968
  } catch (g) {
57968
57969
  console.error("获取历史数据时出错:", g);
@@ -58001,7 +58002,7 @@ const V1 = (t, e, r) => {
58001
58002
  xe(g.$slots, "default", {}, void 0, !0)
58002
58003
  ], 4));
58003
58004
  }
58004
- }), kce = /* @__PURE__ */ Ct(Mce, [["__scopeId", "data-v-86bad6c6"]]), Yg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58005
+ }), kce = /* @__PURE__ */ Ct(Mce, [["__scopeId", "data-v-d36fa490"]]), Yg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58005
58006
  __proto__: null,
58006
58007
  default: kce
58007
58008
  }, Symbol.toStringTag, { value: "Module" })), Oce = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23333333'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Ice = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='18px'%20height='18px'%20viewBox='0%200%2018%2018'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3e条形图%3c/title%3e%3cg%20id='基础规范'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='数据大屏备份-2'%20transform='translate(-651.000000,%20-340.000000)'%20fill='%23FFFFFF'%20fill-rule='nonzero'%3e%3cpath%20d='M657.034892,353.547253%20C657.390386,353.547253%20657.678571,353.835438%20657.678571,354.190932%20C657.678571,354.516801%20657.436415,354.786112%20657.122236,354.828734%20L657.034892,354.83461%20L655.392935,354.83461%20C655.037442,354.83461%20654.749257,354.546425%20654.749257,354.190932%20C654.749257,353.865062%20654.991412,353.595752%20655.305592,353.55313%20L655.392935,353.547253%20L657.034892,353.547253%20Z%20M652.789724,353.547253%20C653.145217,353.547253%20653.433402,353.835438%20653.433402,354.190932%20C653.433402,354.516801%20653.191247,354.786112%20652.877067,354.828734%20L652.789724,354.83461%20L652.17399,354.83461%20C651.818496,354.83461%20651.530312,354.546425%20651.530312,354.190932%20C651.530312,353.865062%20651.772467,353.595752%20652.086646,353.55313%20L652.17399,353.547253%20L652.789724,353.547253%20Z%20M660.318806,350.26334%20C660.6743,350.26334%20660.962484,350.551524%20660.962484,350.907018%20C660.962484,351.232887%20660.720329,351.502198%20660.406149,351.54482%20L660.318806,351.550696%20L655.392935,351.550696%20C655.037442,351.550696%20654.749257,351.262512%20654.749257,350.907018%20C654.749257,350.581149%20654.991412,350.311838%20655.305592,350.269216%20L655.392935,350.26334%20L660.318806,350.26334%20Z%20M652.789724,350.26334%20C653.145217,350.26334%20653.433402,350.551524%20653.433402,350.907018%20C653.433402,351.232887%20653.191247,351.502198%20652.877067,351.54482%20L652.789724,351.550696%20L652.17399,351.550696%20C651.818496,351.550696%20651.530312,351.262512%20651.530312,350.907018%20C651.530312,350.581149%20651.772467,350.311838%20652.086646,350.269216%20L652.17399,350.26334%20L652.789724,350.26334%20Z%20M663.60272,346.979426%20C663.958213,346.979426%20664.246398,347.267611%20664.246398,347.623104%20C664.246398,347.948973%20664.004243,348.218284%20663.690063,348.260906%20L663.60272,348.266782%20L655.392935,348.266782%20C655.037442,348.266782%20654.749257,347.978598%20654.749257,347.623104%20C654.749257,347.297235%20654.991412,347.027924%20655.305592,346.985302%20L655.392935,346.979426%20L663.60272,346.979426%20Z%20M652.789724,346.979426%20C653.145217,346.979426%20653.433402,347.267611%20653.433402,347.623104%20C653.433402,347.948973%20653.191247,348.218284%20652.877067,348.260906%20L652.789724,348.266782%20L652.17399,348.266782%20C651.818496,348.266782%20651.530312,347.978598%20651.530312,347.623104%20C651.530312,347.297235%20651.772467,347.027924%20652.086646,346.985302%20L652.17399,346.979426%20L652.789724,346.979426%20Z%20M666.886633,343.695512%20C667.242127,343.695512%20667.530312,343.983697%20667.530312,344.339191%20C667.530312,344.66506%20667.288157,344.934371%20666.973977,344.976993%20L666.886633,344.982869%20L655.392935,344.982869%20C655.037442,344.982869%20654.749257,344.694684%20654.749257,344.339191%20C654.749257,344.013321%20654.991412,343.744011%20655.305592,343.701388%20L655.392935,343.695512%20L666.886633,343.695512%20Z%20M652.789724,343.695512%20C653.145217,343.695512%20653.433402,343.983697%20653.433402,344.339191%20C653.433402,344.66506%20653.191247,344.934371%20652.877067,344.976993%20L652.789724,344.982869%20L652.17399,344.982869%20C651.818496,344.982869%20651.530312,344.694684%20651.530312,344.339191%20C651.530312,344.013321%20651.772467,343.744011%20652.086646,343.701388%20L652.17399,343.695512%20L652.789724,343.695512%20Z'%20id='形状结合'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Rce = { class: "echart-body flex flex-col" }, Nce = ["onClick"], Pce = { class: "flex-1" }, Fce = {
@@ -81034,11 +81035,10 @@ const iwe = {
81034
81035
  const _ = ((w = s[C.type]) == null ? void 0 : w.OPTIONS) || {};
81035
81036
  Object.keys(C.options).forEach((x) => {
81036
81037
  C.options[x] = {
81037
- // 保留默认配置的其他字段(如 type、label)
81038
81038
  ..._[x] || {},
81039
81039
  value: C.options[x]
81040
81040
  };
81041
- });
81041
+ }), C.data && C.data.length > 0;
81042
81042
  });
81043
81043
  }), y), m = async () => {
81044
81044
  const { result: y } = await Gt.post("get_object_list", { select: ["name", "uid", "alias"] });
@@ -81054,7 +81054,7 @@ const iwe = {
81054
81054
  return $e(async () => {
81055
81055
  f();
81056
81056
  const y = await m();
81057
- sessionStorage.setItem("object_alias_uid_mapping", JSON.stringify(y)), o.value = await Ks.loadComponents(), s = await Ks.getAllExposedProps(), n.value = v(e.script), Ke(() => {
81057
+ sessionStorage.setItem("object_alias_uid_mapping", JSON.stringify(y)), o.value = await Ks.loadComponents(), s = await Ks.getAllExposedProps(), console.log(JSON.parse(JSON.stringify(e.script)), "script"), n.value = v(e.script), Ke(() => {
81058
81058
  g();
81059
81059
  });
81060
81060
  }), M1("ws", c), (y, S) => {
@@ -81103,7 +81103,7 @@ const iwe = {
81103
81103
  ])) : ve("", !0);
81104
81104
  };
81105
81105
  }
81106
- }), ql = /* @__PURE__ */ Ct(xwe, [["__scopeId", "data-v-624cf7c9"]]);
81106
+ }), ql = /* @__PURE__ */ Ct(xwe, [["__scopeId", "data-v-9c5357a5"]]);
81107
81107
  Zl.install = function(t) {
81108
81108
  t.component(Zl.name, Zl);
81109
81109
  };