sctj-components 1.0.39 → 1.0.41
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/lib/sctj-components.es.js +32 -21
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1424,7 +1424,7 @@ const _sfc_main$k = {
|
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
1426
1426
|
const SCTJTreeSelect = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-a2fe1763"]]);
|
|
1427
|
-
const
|
|
1427
|
+
const index_vue_vue_type_style_index_0_scoped_97e8864f_lang = "";
|
|
1428
1428
|
const _hoisted_1$e = { class: "table-container" };
|
|
1429
1429
|
const _sfc_main$j = {
|
|
1430
1430
|
__name: "index",
|
|
@@ -1633,17 +1633,22 @@ const _sfc_main$j = {
|
|
|
1633
1633
|
var _a;
|
|
1634
1634
|
try {
|
|
1635
1635
|
loading.value = true;
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
}) : await fetch(props.request, {
|
|
1640
|
-
method: "GET",
|
|
1641
|
-
params: {
|
|
1636
|
+
let res;
|
|
1637
|
+
if (typeof props.request == "function") {
|
|
1638
|
+
res = await props.request({
|
|
1642
1639
|
...page,
|
|
1643
1640
|
...props.requestParams
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
-
|
|
1641
|
+
});
|
|
1642
|
+
} else {
|
|
1643
|
+
let { data } = await fetch(
|
|
1644
|
+
`${props.request}${props.request.includes("?") ? "&" : "?"}${new URLSearchParams({ ...page, ...props.requestParams }).toString()}`,
|
|
1645
|
+
{
|
|
1646
|
+
method: "GET",
|
|
1647
|
+
headers: props.headers || {}
|
|
1648
|
+
}
|
|
1649
|
+
);
|
|
1650
|
+
res = data;
|
|
1651
|
+
}
|
|
1647
1652
|
baseData.value = res == null ? void 0 : res[realResponseConfig.value.list];
|
|
1648
1653
|
tableData.value = props.handleList ? props.handleList(res == null ? void 0 : res[realResponseConfig.value.list]) : res == null ? void 0 : res[realResponseConfig.value.list];
|
|
1649
1654
|
emit("requestSuccess", tableData.value, baseData.value);
|
|
@@ -1757,7 +1762,7 @@ const _sfc_main$j = {
|
|
|
1757
1762
|
};
|
|
1758
1763
|
}
|
|
1759
1764
|
};
|
|
1760
|
-
const SCTJTable = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-
|
|
1765
|
+
const SCTJTable = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-97e8864f"]]);
|
|
1761
1766
|
const index_vue_vue_type_style_index_0_scoped_45fb95db_lang = "";
|
|
1762
1767
|
const _sfc_main$i = {};
|
|
1763
1768
|
const _hoisted_1$d = { class: "table-container" };
|
|
@@ -1957,8 +1962,8 @@ const _sfc_main$g = {
|
|
|
1957
1962
|
}
|
|
1958
1963
|
};
|
|
1959
1964
|
const SCTJTableTopActionContainer = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-056cfdde"]]);
|
|
1960
|
-
const
|
|
1961
|
-
const _withScopeId$4 = (n) => (pushScopeId("data-v-
|
|
1965
|
+
const index_vue_vue_type_style_index_0_scoped_556d96b6_lang = "";
|
|
1966
|
+
const _withScopeId$4 = (n) => (pushScopeId("data-v-556d96b6"), n = n(), popScopeId(), n);
|
|
1962
1967
|
const _hoisted_1$b = {
|
|
1963
1968
|
key: 0,
|
|
1964
1969
|
class: "search-container"
|
|
@@ -2116,13 +2121,19 @@ const _sfc_main$f = {
|
|
|
2116
2121
|
var _a, _b;
|
|
2117
2122
|
try {
|
|
2118
2123
|
loading.value = true;
|
|
2119
|
-
let res
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
|
|
2124
|
+
let res;
|
|
2125
|
+
if (typeof props.request == "function") {
|
|
2126
|
+
res = await props.request(queryParams.value);
|
|
2127
|
+
} else {
|
|
2128
|
+
let { data: data2 } = await fetch(
|
|
2129
|
+
`${props.request}${props.request.includes("?") ? "&" : "?"}${new URLSearchParams(queryParams.value).toString()}`,
|
|
2130
|
+
{
|
|
2131
|
+
method: "GET",
|
|
2132
|
+
headers: props.headers || {}
|
|
2133
|
+
}
|
|
2134
|
+
);
|
|
2135
|
+
res = data2;
|
|
2136
|
+
}
|
|
2126
2137
|
if (res.code !== 200)
|
|
2127
2138
|
return;
|
|
2128
2139
|
dataList.value = (_b = (_a = res == null ? void 0 : res.rows) != null ? _a : res.data) != null ? _b : [];
|
|
@@ -2477,7 +2488,7 @@ const _sfc_main$f = {
|
|
|
2477
2488
|
};
|
|
2478
2489
|
}
|
|
2479
2490
|
};
|
|
2480
|
-
const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-
|
|
2491
|
+
const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-556d96b6"]]);
|
|
2481
2492
|
const index_vue_vue_type_style_index_0_scoped_80cb4921_lang = "";
|
|
2482
2493
|
const _hoisted_1$a = { style: { "background": "#fff" } };
|
|
2483
2494
|
const _sfc_main$e = {
|