dfs-page-config 0.2.41 → 0.2.43

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.
@@ -21658,26 +21658,25 @@ function Fc(c, s, g) {
21658
21658
  }
21659
21659
  let By = {};
21660
21660
  function Ine(c, s, g) {
21661
- const y = s.url + (s.dataKey ? "-" + s.dataKey : "") + (s.params ? "-" + JSON.stringify(s.params) : "");
21662
- if (c.state[y] && !s.noCache)
21663
- s.options = c.state[y];
21661
+ let y = {};
21662
+ s.relation && (y = Fc(c, g, s.relation));
21663
+ const w = typeof s.params == "function" ? s.params(y) : s.params, _ = s.url + (s.dataKey ? "-" + s.dataKey : "") + (w ? "-" + JSON.stringify(w) : "");
21664
+ if (c.state[_] && !s.noCache)
21665
+ s.options = c.state[_];
21664
21666
  else {
21665
21667
  if (By[s.url] && !s.params) {
21666
21668
  By[s.url].push(s);
21667
21669
  return;
21668
21670
  } else
21669
21671
  s.params || (By[s.url] = [s]);
21670
- let w = s.method == "POST" ? "data" : "params", _ = {};
21671
- s.relation && (_ = Fc(c, g, s.relation));
21672
- const O = typeof s.params == "function" ? s.params(_) : s.params;
21673
- let E = s.baseUrl || c.state._BASE_URL;
21672
+ let O = s.method == "POST" ? "data" : "params", E = s.baseUrl || c.state._BASE_URL;
21674
21673
  s.service === "c2" && (E = E.replace("c1", "c2")), Jh({
21675
21674
  url: E + s.url,
21676
- [w]: O || {},
21675
+ [O]: w || {},
21677
21676
  method: s.method || "GET"
21678
21677
  }).then((R) => {
21679
21678
  const A = R[s.dataKey] || R.items || R;
21680
- c.state[y] = A;
21679
+ c.state[_] = A;
21681
21680
  const I = By[s.url];
21682
21681
  I ? (I.forEach((N) => {
21683
21682
  N.options = R[N.dataKey] || A;
@@ -21797,6 +21796,10 @@ const Jr = Kte({
21797
21796
  }).finally(() => {
21798
21797
  c.commit("setLoading", !1);
21799
21798
  });
21799
+ },
21800
+ _UPDATE_COMPONENT(c, { pageKey: s, compKey: g }) {
21801
+ const y = Ya(c, s, g);
21802
+ y.updateKey = new Date().getTime();
21800
21803
  }
21801
21804
  }
21802
21805
  });
@@ -21966,12 +21969,7 @@ const Jh = KD, Bne = Qe({
21966
21969
  });
21967
21970
  }
21968
21971
  function E(R) {
21969
- _.currentValue !== R && (_.currentValue = R, w.formData[y.prop] = R, y.effects && y.effects.forEach((A) => {
21970
- A.targets.forEach((I) => {
21971
- const N = Ya(s, g, I);
21972
- A.event === "updateColumns" ? s.dispatch("dbsPageConfig/updateColumns", { pageKey: g, tableComp: N, status: R }) : A.event === "clearTableData" && (N.data.result = []);
21973
- });
21974
- }), s.dispatch("_QUERY_LIST", {
21972
+ _.currentValue !== R && (_.currentValue = R, w.formData[y.prop] = R, y.change && y.change(w), s.dispatch("_QUERY_LIST", {
21975
21973
  pageKey: g,
21976
21974
  target: w.target
21977
21975
  }));
@@ -22039,7 +22037,7 @@ function $ne(c, s, g, y, w, _) {
22039
22037
  }, 1032, ["type", "onClick", "size"]))), 128))
22040
22038
  ], 2));
22041
22039
  }
22042
- const aG = /* @__PURE__ */ So(Bne, [["render", $ne], ["__scopeId", "data-v-8bafc848"]]), Une = Qe({
22040
+ const aG = /* @__PURE__ */ So(Bne, [["render", $ne], ["__scopeId", "data-v-e17ce02f"]]), Une = Qe({
22043
22041
  name: "UploadComp",
22044
22042
  components: { Plus: yS, ZoomIn: fD, Delete: dD },
22045
22043
  props: {
@@ -22627,7 +22625,7 @@ function roe(c, s, g, y, w, _) {
22627
22625
  _: 3
22628
22626
  }, 8, ["class", "model", "size", "inline", "label-width", "style"]);
22629
22627
  }
22630
- const N_ = /* @__PURE__ */ So(eoe, [["render", roe], ["__scopeId", "data-v-a9288872"]]), noe = Qe({
22628
+ const N_ = /* @__PURE__ */ So(eoe, [["render", roe], ["__scopeId", "data-v-76f79b42"]]), noe = Qe({
22631
22629
  name: "Upload",
22632
22630
  props: {
22633
22631
  url: String,
@@ -94686,7 +94684,7 @@ const hG = /* @__PURE__ */ So(eie, [["render", iie]]), aie = Qe({
94686
94684
  function sie(c, s, g, y, w, _) {
94687
94685
  const O = Dr("ChildrenComponent", !0);
94688
94686
  return q(!0), ye(At, null, $t(c.configOption, (E) => (q(), We(Qr(E.type), {
94689
- key: E.key,
94687
+ key: (E.updateKey || "") + E.key,
94690
94688
  componentOption: E,
94691
94689
  pageKey: c.pageKey
94692
94690
  }, ji({
@@ -94757,7 +94755,8 @@ function uie(c, s, g, y, w, _) {
94757
94755
  "before-close": () => c.closeDialog(),
94758
94756
  center: "",
94759
94757
  onOpen: c.showDialog,
94760
- "close-on-click-modal": !1
94758
+ "close-on-click-modal": !1,
94759
+ key: c.component.updateKey
94761
94760
  }, {
94762
94761
  header: Ge(() => [
94763
94762
  Ne("p", null, [