dfs-page-config 0.0.56 → 0.0.57
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/dfs-page-config.js +23 -23
- package/dist/dfs-page-config.umd.cjs +111 -111
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dfs-page-config.js
CHANGED
|
@@ -17974,24 +17974,24 @@ Ti.interceptors.response.use(
|
|
|
17974
17974
|
}
|
|
17975
17975
|
);
|
|
17976
17976
|
const a8 = (s, a) => {
|
|
17977
|
-
a.dispatch("
|
|
17977
|
+
a.dispatch("_INIT_PAGE", {
|
|
17978
17978
|
pageKey: s.pageKey,
|
|
17979
17979
|
components: s.components
|
|
17980
17980
|
});
|
|
17981
17981
|
}, l8 = (s, a) => {
|
|
17982
|
-
const u = a.getters.
|
|
17982
|
+
const u = a.getters._GET_CONFIG_DATA(s).components;
|
|
17983
17983
|
let p = null;
|
|
17984
17984
|
for (let d = 0; d < u.length; d++)
|
|
17985
17985
|
u[d].widget === "searchForm" && (p = u[d]);
|
|
17986
|
-
a.dispatch("
|
|
17986
|
+
a.dispatch("_QUERY_LIST", { formComp: p, pageKey: s });
|
|
17987
17987
|
}, u8 = (s, a, u) => {
|
|
17988
17988
|
const p = Or(s, a, u);
|
|
17989
|
-
s.dispatch("
|
|
17989
|
+
s.dispatch("_TABLE_QUERY", { tableComp: p });
|
|
17990
17990
|
};
|
|
17991
17991
|
let vf = {};
|
|
17992
17992
|
function Or({ getters: s }, a, u) {
|
|
17993
17993
|
vf = {};
|
|
17994
|
-
const p = s.
|
|
17994
|
+
const p = s._GET_CONFIG_DATA;
|
|
17995
17995
|
if (!p(a))
|
|
17996
17996
|
return {};
|
|
17997
17997
|
const d = p(a);
|
|
@@ -18064,7 +18064,7 @@ const p8 = (s) => {
|
|
|
18064
18064
|
const O = Or(a, u, E);
|
|
18065
18065
|
S.event === "updateColumns" ? a.dispatch("dbsPageConfig/updateColumns", { pageKey: u, tableComp: O, status: w }) : S.event === "clearTableData" && (O.data.result = []);
|
|
18066
18066
|
});
|
|
18067
|
-
}), a.dispatch("dbsPageConfig/
|
|
18067
|
+
}), a.dispatch("dbsPageConfig/_QUERY_LIST", {
|
|
18068
18068
|
formComp: d,
|
|
18069
18069
|
pageKey: u
|
|
18070
18070
|
}));
|
|
@@ -18131,7 +18131,7 @@ function m8(s, a, u, p, d, f) {
|
|
|
18131
18131
|
]))), 128))
|
|
18132
18132
|
]);
|
|
18133
18133
|
}
|
|
18134
|
-
const yb = /* @__PURE__ */ bo(d8, [["render", m8], ["__scopeId", "data-v-
|
|
18134
|
+
const yb = /* @__PURE__ */ bo(d8, [["render", m8], ["__scopeId", "data-v-4ec83a06"]]);
|
|
18135
18135
|
var Cb = {};
|
|
18136
18136
|
(function(s) {
|
|
18137
18137
|
Object.defineProperty(s, "__esModule", { value: !0 });
|
|
@@ -18666,7 +18666,7 @@ const wb = /* @__PURE__ */ bo(b8, [["render", S8]]), R8 = be({
|
|
|
18666
18666
|
w.relation && (S = fw(a, s.pageKey, w.relation)), w.handleClick(S);
|
|
18667
18667
|
}
|
|
18668
18668
|
function f(w) {
|
|
18669
|
-
a.dispatch("
|
|
18669
|
+
a.dispatch("_QUERY_LIST", {
|
|
18670
18670
|
pageKey: s.pageKey,
|
|
18671
18671
|
target: w
|
|
18672
18672
|
});
|
|
@@ -18751,7 +18751,7 @@ function O8(s, a, u, p, d, f) {
|
|
|
18751
18751
|
], 64))), 128))
|
|
18752
18752
|
], 4);
|
|
18753
18753
|
}
|
|
18754
|
-
const P8 = /* @__PURE__ */ bo(R8, [["render", O8], ["__scopeId", "data-v-
|
|
18754
|
+
const P8 = /* @__PURE__ */ bo(R8, [["render", O8], ["__scopeId", "data-v-25adc271"]]), T8 = be({
|
|
18755
18755
|
props: {
|
|
18756
18756
|
gridApi: {
|
|
18757
18757
|
type: Object,
|
|
@@ -51112,10 +51112,10 @@ const l5 = be({
|
|
|
51112
51112
|
);
|
|
51113
51113
|
}
|
|
51114
51114
|
function I(G) {
|
|
51115
|
-
d.pageInfo.pageSize = G, u.dispatch("
|
|
51115
|
+
d.pageInfo.pageSize = G, u.dispatch("_TABLE_QUERY", { tableComp: d });
|
|
51116
51116
|
}
|
|
51117
51117
|
function H(G) {
|
|
51118
|
-
d.pageInfo.currentPage = G, d.pageInfo.pageNum = G, u.dispatch("
|
|
51118
|
+
d.pageInfo.currentPage = G, d.pageInfo.pageNum = G, u.dispatch("_TABLE_QUERY", { tableComp: d });
|
|
51119
51119
|
}
|
|
51120
51120
|
return {
|
|
51121
51121
|
...wn(m),
|
|
@@ -51363,24 +51363,24 @@ const Pb = /* @__PURE__ */ bo(m5, [["render", C5]]), w5 = (s) => {
|
|
|
51363
51363
|
// plugins: [createPersistedState()],
|
|
51364
51364
|
state: {
|
|
51365
51365
|
// 页面配置数据
|
|
51366
|
-
|
|
51366
|
+
_CONFIG_DATA: {},
|
|
51367
51367
|
_BASE_URL: ""
|
|
51368
51368
|
},
|
|
51369
51369
|
getters: {
|
|
51370
51370
|
// 获取页面配置数据
|
|
51371
|
-
|
|
51371
|
+
_GET_CONFIG_DATA(s) {
|
|
51372
51372
|
return function(a) {
|
|
51373
|
-
return s.
|
|
51373
|
+
return s._CONFIG_DATA[a];
|
|
51374
51374
|
};
|
|
51375
51375
|
}
|
|
51376
51376
|
},
|
|
51377
51377
|
mutations: {
|
|
51378
51378
|
saveUrl(s, a) {
|
|
51379
|
-
|
|
51379
|
+
s._BASE_URL = a;
|
|
51380
51380
|
},
|
|
51381
51381
|
// 储存页面配置数据
|
|
51382
51382
|
savaPageConfigData(s, a) {
|
|
51383
|
-
s.
|
|
51383
|
+
s._CONFIG_DATA[a.pageKey] = a.components;
|
|
51384
51384
|
},
|
|
51385
51385
|
// 储存table数据
|
|
51386
51386
|
updateRowData(s, a) {
|
|
@@ -51389,16 +51389,16 @@ const Pb = /* @__PURE__ */ bo(m5, [["render", C5]]), w5 = (s) => {
|
|
|
51389
51389
|
},
|
|
51390
51390
|
actions: {
|
|
51391
51391
|
// 初始化入口
|
|
51392
|
-
|
|
51392
|
+
_INIT_PAGE(s, a) {
|
|
51393
51393
|
s.commit("savaPageConfigData", a), Tb(s, a.components, a.pageKey);
|
|
51394
51394
|
},
|
|
51395
51395
|
// 查询
|
|
51396
|
-
|
|
51396
|
+
_QUERY_LIST(s, { pageKey: a, target: u }) {
|
|
51397
51397
|
const p = Or(s, a, u);
|
|
51398
|
-
s.dispatch("
|
|
51398
|
+
s.dispatch("_TABLE_QUERY", { tableComp: p, pageKey: a });
|
|
51399
51399
|
},
|
|
51400
51400
|
// 查询列表查询
|
|
51401
|
-
|
|
51401
|
+
_TABLE_QUERY(s, { tableComp: a, pageKey: u, row: p }) {
|
|
51402
51402
|
if (console.log(s), console.log(s.state), a.searchBefore && a.searchBefore(a, p) === !1)
|
|
51403
51403
|
return;
|
|
51404
51404
|
let d = {}, f = {};
|
|
@@ -51422,14 +51422,14 @@ function Tb(s, a, u) {
|
|
|
51422
51422
|
a.forEach((p) => {
|
|
51423
51423
|
p.children && Tb(s, p.children, u), p.type == "Form" && (p.formData = {}, p.elementGroup && p.elementGroup.length ? p.elementGroup.forEach((d) => {
|
|
51424
51424
|
d.value = d.value ? d.value : null, p.formData[d.prop] = d.value;
|
|
51425
|
-
}) : p.elementGroup = []), p.type == "AgTable" && (p.pageInfo || (p.pageInfo = { pageNum: 1, currentPage: 1, pageSize: 50 }), p.initQuery && s.dispatch("
|
|
51425
|
+
}) : p.elementGroup = []), p.type == "AgTable" && (p.pageInfo || (p.pageInfo = { pageNum: 1, currentPage: 1, pageSize: 50 }), p.initQuery && s.dispatch("_TABLE_QUERY", { pageKey: u, tableComp: p }), _5(s, p, u));
|
|
51426
51426
|
});
|
|
51427
51427
|
}
|
|
51428
51428
|
function _5(s, a, u) {
|
|
51429
51429
|
if (a.configFlag && a.configFlag.isRowClick) {
|
|
51430
51430
|
const p = Or(s, u, a.target);
|
|
51431
51431
|
a.onRowClickedFn = (d) => {
|
|
51432
|
-
s.dispatch("
|
|
51432
|
+
s.dispatch("_TABLE_QUERY", {
|
|
51433
51433
|
pageKey: u,
|
|
51434
51434
|
tableComp: p,
|
|
51435
51435
|
row: d
|
|
@@ -51640,7 +51640,7 @@ function P5(s, a, u, p, d, f) {
|
|
|
51640
51640
|
}
|
|
51641
51641
|
const T5 = /* @__PURE__ */ bo(R5, [["render", P5]]);
|
|
51642
51642
|
function F5(s, a) {
|
|
51643
|
-
w5(s), ["state", "getters", "
|
|
51643
|
+
w5(s), ["state", "getters", "_actions"].forEach((p) => {
|
|
51644
51644
|
Object.keys(bd[p]).forEach((d) => {
|
|
51645
51645
|
a.store[p][d] = bd[p][d];
|
|
51646
51646
|
});
|