dfs-page-config 0.4.98 → 0.4.100
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 +39 -30
- package/dist/dfs-page-config.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/dfs-page-config.js
CHANGED
|
@@ -27145,6 +27145,7 @@ function getRelationComp(k, L, ie) {
|
|
|
27145
27145
|
}
|
|
27146
27146
|
let obj = {};
|
|
27147
27147
|
function getSelectOption(k, L, ie) {
|
|
27148
|
+
var xe;
|
|
27148
27149
|
let ae = {};
|
|
27149
27150
|
L.relation && (ae = getRelationComp(k, ie, L.relation));
|
|
27150
27151
|
const pe = typeof L.params == "function" ? L.params(ae) : L.params, _e = L.url + (L.dataKey ? "-" + L.dataKey : "") + (pe ? "-" + JSON.stringify(pe) : "");
|
|
@@ -27156,18 +27157,19 @@ function getSelectOption(k, L, ie) {
|
|
|
27156
27157
|
return;
|
|
27157
27158
|
} else
|
|
27158
27159
|
L.params || (obj[L.url] = [L]);
|
|
27159
|
-
|
|
27160
|
-
|
|
27161
|
-
|
|
27162
|
-
|
|
27163
|
-
|
|
27164
|
-
|
|
27165
|
-
|
|
27166
|
-
|
|
27167
|
-
|
|
27168
|
-
|
|
27169
|
-
|
|
27170
|
-
|
|
27160
|
+
const Oe = ((xe = L.method) == null ? void 0 : xe.toUpperCase()) || "GET";
|
|
27161
|
+
let Ie = Oe == "GET" ? "params" : "data", Ne = L.baseUrl || k.state._BASE_URL;
|
|
27162
|
+
L.service === "c2" && (Ne = Ne.replace("c1", "c2")), service({
|
|
27163
|
+
url: Ne + L.url,
|
|
27164
|
+
[Ie]: pe || {},
|
|
27165
|
+
method: Oe
|
|
27166
|
+
}).then((ze) => {
|
|
27167
|
+
const Et = ze[L.dataKey] || ze.items || ze;
|
|
27168
|
+
k.state[_e] = Et;
|
|
27169
|
+
const qe = obj[L.url];
|
|
27170
|
+
qe ? (qe.forEach((Dt) => {
|
|
27171
|
+
Dt.options = ze[Dt.dataKey] || Et;
|
|
27172
|
+
}), delete obj[L.url]) : L.options = Et;
|
|
27171
27173
|
});
|
|
27172
27174
|
}
|
|
27173
27175
|
}
|
|
@@ -27262,6 +27264,7 @@ const store = createStore$1({
|
|
|
27262
27264
|
},
|
|
27263
27265
|
// 查询列表查询
|
|
27264
27266
|
_TABLE_QUERY(k, { tableComp: L, pageKey: ie, row: ae, partialUpdate: pe }) {
|
|
27267
|
+
var Et;
|
|
27265
27268
|
let _e = {}, xe = {};
|
|
27266
27269
|
if (L.dependencies && (xe = getTargetComp(k, ie, L.dependencies), _e = getFormData(xe)), L.previousFormData = { ...L.formData }, L.formData = _e, L.searchBefore && L.searchBefore(L, ae) === !1)
|
|
27267
27270
|
return;
|
|
@@ -27270,23 +27273,24 @@ const store = createStore$1({
|
|
|
27270
27273
|
let Ie = handleParams(L);
|
|
27271
27274
|
if (pe) {
|
|
27272
27275
|
Ie = { ...Ie };
|
|
27273
|
-
const
|
|
27274
|
-
Ie[pe.searchKey] =
|
|
27276
|
+
const qe = L.selectedRows.map((Dt) => Dt[pe.searchKey]);
|
|
27277
|
+
Ie[pe.searchKey] = qe.toString();
|
|
27275
27278
|
}
|
|
27276
|
-
|
|
27279
|
+
const Ne = ((Et = L.method) == null ? void 0 : Et.toUpperCase()) || "POST";
|
|
27280
|
+
let ze = Ne == "GET" ? "params" : "data";
|
|
27277
27281
|
k.commit("setLoading", !0), service({
|
|
27278
27282
|
url: k.state._BASE_URL + L.url,
|
|
27279
|
-
[
|
|
27280
|
-
method:
|
|
27281
|
-
}).then((
|
|
27282
|
-
var
|
|
27283
|
-
const
|
|
27284
|
-
L.searchAfter && L.searchAfter(
|
|
27285
|
-
for (let
|
|
27286
|
-
const
|
|
27287
|
-
|
|
27288
|
-
}
|
|
27289
|
-
}) : k.commit("updateRowData", { tableComp: L, res:
|
|
27283
|
+
[ze]: Ie || {},
|
|
27284
|
+
method: Ne
|
|
27285
|
+
}).then((qe) => {
|
|
27286
|
+
var Ue;
|
|
27287
|
+
const Dt = filterRes(qe, L);
|
|
27288
|
+
L.searchAfter && L.searchAfter(Dt, qe, L) === !1 || (pe ? (Ue = L.selectedNodes) == null || Ue.forEach((kt) => {
|
|
27289
|
+
for (let jt = 0; jt < Dt.result.length; jt++) {
|
|
27290
|
+
const tr = Dt.result[jt];
|
|
27291
|
+
kt.data[pe.dataKey] == tr[pe.dataKey] && kt.setData(tr);
|
|
27292
|
+
}
|
|
27293
|
+
}) : k.commit("updateRowData", { tableComp: L, res: Dt }));
|
|
27290
27294
|
}).finally(() => {
|
|
27291
27295
|
k.commit("setLoading", !1);
|
|
27292
27296
|
});
|
|
@@ -27418,7 +27422,7 @@ const padding = (k, L) => (new Array(L).join("0") + k).slice(-L), formatDate = (
|
|
|
27418
27422
|
}, downLoadData = (k) => {
|
|
27419
27423
|
const { url: L, fileName: ie, params: ae, store: pe } = k;
|
|
27420
27424
|
pe.commit("setLoading", !0), axios.defaults.withCredentials = !0, axios.defaults.timeout = 6e4, axios.defaults.responseType = "blob", axios.defaults.headers = getRequestHeaders(L);
|
|
27421
|
-
let _e = k.method || "post";
|
|
27425
|
+
let _e = (k.method || "post").toLowerCase();
|
|
27422
27426
|
axios[_e](handleProxy(L), ae).then(function(xe) {
|
|
27423
27427
|
var ze;
|
|
27424
27428
|
const Oe = (ze = xe.headers["content-disposition"]) == null ? void 0 : ze.split("filename=")[1], Ie = URL.createObjectURL(xe.data);
|
|
@@ -29761,7 +29765,12 @@ const Upload = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$
|
|
|
29761
29765
|
}
|
|
29762
29766
|
function Et(Ue) {
|
|
29763
29767
|
const kt = store.getters._GET_DIALOGREF(k.pageKey);
|
|
29764
|
-
|
|
29768
|
+
if (kt)
|
|
29769
|
+
kt.closeDialog();
|
|
29770
|
+
else if (Ue) {
|
|
29771
|
+
const jt = getTargetComp(store, k.pageKey, Ue);
|
|
29772
|
+
jt.reset && jt.reset();
|
|
29773
|
+
}
|
|
29765
29774
|
}
|
|
29766
29775
|
function qe(Ue) {
|
|
29767
29776
|
getTargetComp(store, k.pageKey, Ue.target).submit((jt) => {
|
|
@@ -29780,7 +29789,7 @@ const Upload = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$
|
|
|
29780
29789
|
// exportData
|
|
29781
29790
|
};
|
|
29782
29791
|
}
|
|
29783
|
-
}),
|
|
29792
|
+
}), ButtonGroup_vue_vue_type_style_index_0_scoped_f4a5d8d2_lang = "", ButtonGroup_vue_vue_type_style_index_1_lang = "", _hoisted_1$g = ["onClick"];
|
|
29784
29793
|
function _sfc_render$g(k, L, ie, ae, pe, _e) {
|
|
29785
29794
|
const xe = Upload, Oe = ElIcon, Ie = ElButton;
|
|
29786
29795
|
return openBlock(), createElementBlock("div", {
|
|
@@ -29836,7 +29845,7 @@ function _sfc_render$g(k, L, ie, ae, pe, _e) {
|
|
|
29836
29845
|
renderSlot(k.$slots, "default", {}, void 0, !0)
|
|
29837
29846
|
], 4);
|
|
29838
29847
|
}
|
|
29839
|
-
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g], ["__scopeId", "data-v-
|
|
29848
|
+
const ButtonGroup = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g], ["__scopeId", "data-v-f4a5d8d2"]]), _sfc_main$g = defineComponent({
|
|
29840
29849
|
props: {
|
|
29841
29850
|
gridApi: {
|
|
29842
29851
|
type: Object,
|