dfs-page-config 0.1.1 → 0.1.3

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.
@@ -21149,16 +21149,17 @@ function fY(r, a) {
21149
21149
  else {
21150
21150
  let c = a.method == "POST" ? "data" : "params";
21151
21151
  const d = typeof a.params == "function" ? a.params() : a.params;
21152
- ws({
21153
- url: r._BASE_URL + a.url,
21152
+ let f = r._BASE_URL;
21153
+ a.service === "c2" && (f = f.replace("c1", "c2")), ws({
21154
+ url: f + a.url,
21154
21155
  [c]: d || {},
21155
21156
  method: a.method || "GET"
21156
- }).then((f) => {
21157
- const h = f[a.dataKey] || f.items || f;
21158
- r[l] = h;
21159
- const v = hl[a.url];
21160
- v && (v.forEach((g) => {
21161
- g.options = f[g.dataKey] || h;
21157
+ }).then((h) => {
21158
+ const v = h[a.dataKey] || h.items || h;
21159
+ r[l] = v;
21160
+ const g = hl[a.url];
21161
+ g && (g.forEach((y) => {
21162
+ y.options = h[y.dataKey] || v;
21162
21163
  }), delete hl[a.url]);
21163
21164
  });
21164
21165
  }
@@ -21224,7 +21225,7 @@ const hY = (r) => {
21224
21225
  // 查询
21225
21226
  _QUERY_LIST(r, { pageKey: a, target: l }) {
21226
21227
  const c = ir(r, a, l);
21227
- r.dispatch("_TABLE_QUERY", { tableComp: c, pageKey: a });
21228
+ c.pageInfo.pageNum = 1, c.pageInfo.currentPage = 1, c.resetPagination = Math.random(), r.dispatch("_TABLE_QUERY", { tableComp: c, pageKey: a });
21228
21229
  },
21229
21230
  // 查询列表查询
21230
21231
  _TABLE_QUERY(r, { tableComp: a, pageKey: l, row: c }) {
@@ -23286,7 +23287,7 @@ function pq(r, a, l, c, d, f) {
23286
23287
  key: 0,
23287
23288
  style: { padding: "5px 10px", background: "#fff" },
23288
23289
  total: r.totalNum,
23289
- pageNum: r.pageInfo.currentPage,
23290
+ pageNum: r.pageInfo.pageNum,
23290
23291
  pageSize: r.pageInfo.pageSize,
23291
23292
  layout: "total,sizes, prev, pager, next",
23292
23293
  onSizeChange: r.sizeChange,
@@ -23296,7 +23297,7 @@ function pq(r, a, l, c, d, f) {
23296
23297
  }, null, 8, ["total", "pageNum", "pageSize", "onSizeChange", "onCurrentChange"])) : ve("", !0)
23297
23298
  ]);
23298
23299
  }
23299
- const Rh = /* @__PURE__ */ co(aq, [["render", pq], ["__scopeId", "data-v-5282ff38"]]);
23300
+ const Rh = /* @__PURE__ */ co(aq, [["render", pq], ["__scopeId", "data-v-58118792"]]);
23300
23301
  Rh.install = (r) => r.component(Rh.name, Rh);
23301
23302
  const dq = _e({
23302
23303
  name: "SplitScreen",
@@ -24385,7 +24386,7 @@ function Kq(r, a, l, c, d, f) {
24385
24386
  Be(r.$slots, "default", {}, void 0, !0)
24386
24387
  ], 4);
24387
24388
  }
24388
- const Yq = /* @__PURE__ */ co(jq, [["render", Kq], ["__scopeId", "data-v-48ffa9f2"]]), qq = _e({
24389
+ const Yq = /* @__PURE__ */ co(jq, [["render", Kq], ["__scopeId", "data-v-9a9f2591"]]), qq = _e({
24389
24390
  props: {
24390
24391
  gridApi: {
24391
24392
  type: Object,
@@ -56753,7 +56754,7 @@ const DX = _e({
56753
56754
  d.pageInfo.pageSize = x, l.dispatch("_TABLE_QUERY", { tableComp: d, pageKey: r.pageKey });
56754
56755
  }
56755
56756
  function L(x) {
56756
- d.pageInfo.currentPage = x, d.pageInfo.pageNum = x, l.dispatch("_TABLE_QUERY", { tableComp: d, pageKey: r.pageKey });
56757
+ d.pageInfo.pageNum = x, d.pageInfo.currentPage = x, l.dispatch("_TABLE_QUERY", { tableComp: d, pageKey: r.pageKey });
56757
56758
  }
56758
56759
  return {
56759
56760
  ...In(v),
@@ -56803,16 +56804,16 @@ function NX(r, a, l, c, d, f) {
56803
56804
  Be(r.$slots, r.configFlag.slotName),
56804
56805
  ue("div", AX, [
56805
56806
  r.pageInfo ? (I(), fe(v, {
56806
- key: 0,
56807
56807
  style: { "margin-top": "5px" },
56808
56808
  total: r.totalNum,
56809
- pageNum: r.pageInfo.currentPage,
56809
+ pageNum: r.pageInfo.pageNum,
56810
56810
  pageSize: r.pageInfo.pageSize,
56811
56811
  layout: "total,sizes, prev, pager, next",
56812
56812
  onSizeChange: r.sizeChange,
56813
56813
  onCurrentChange: r.currentChange,
56814
56814
  "page-sizes": [20, 50, 100, 300, 500],
56815
- small: ""
56815
+ small: "",
56816
+ key: r.componentOption.resetPagination
56816
56817
  }, null, 8, ["total", "pageNum", "pageSize", "onSizeChange", "onCurrentChange"])) : ve("", !0)
56817
56818
  ]),
56818
56819
  we(g, {