liyu-pc-base 1.0.158 → 1.0.163

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.
@@ -9889,20 +9889,24 @@ const Cre = /* @__PURE__ */ dt(vre, [["render", wre]]), Sre = Me({
9889
9889
  current: 1,
9890
9890
  pageSize: 200,
9891
9891
  is_pagination: !0,
9892
+ request_source: "strict",
9892
9893
  is_active: !0,
9893
9894
  ...e.init_model,
9894
9895
  // 普通查询条件
9895
9896
  column_fields: [],
9897
+ sort_fields: [],
9896
9898
  conditions: [],
9897
9899
  simpleSearchParams: {}
9898
9900
  };
9899
9901
  e.field.queryType === "simple" ? u.simpleSearchParams = l() : u.conditions = a();
9900
9902
  const s = () => e.valueKey || "id", c = () => e.labelKey || "name", d = () => {
9901
- var D;
9903
+ var A;
9902
9904
  const O = [];
9903
- e != null && e.labelKeyList && ((D = e == null ? void 0 : e.labelKeyList) == null ? void 0 : D.length) > 0 && e.labelKeyType !== 1 ? O.push(s(), ...e.labelKeyList) : O.push(s(), c()), u.column_fields = [].concat(O);
9905
+ e != null && e.labelKeyList && ((A = e == null ? void 0 : e.labelKeyList) == null ? void 0 : A.length) > 0 && e.labelKeyType !== 1 ? O.push(s(), ...e.labelKeyList) : O.push(s(), c());
9906
+ const D = [...new Set(O)];
9907
+ u.column_fields = [].concat(D);
9904
9908
  };
9905
- d();
9909
+ d(), u.sort_fields = [c()];
9906
9910
  const f = (O) => {
9907
9911
  if (Array.isArray(n.selectedRows)) {
9908
9912
  if (n.selectedRows.includes(O))
@@ -10022,10 +10026,11 @@ const Cre = /* @__PURE__ */ dt(vre, [["render", wre]]), Sre = Me({
10022
10026
  var O;
10023
10027
  if (e.field.postUrl) {
10024
10028
  let D = {};
10025
- if (e.field.queryType === "simple" ? D = {
10029
+ if (e.field.queryType === "simple" ? (D = {
10030
+ ...u,
10026
10031
  ...u.simpleSearchParams,
10027
10032
  required_condition: b()
10028
- } : (D = { ...u, required_condition: b() }, delete D.simpleSearchParams), w === null) {
10033
+ }, delete D.conditions) : (D = { ...u, required_condition: b() }, delete D.simpleSearchParams), w === null) {
10029
10034
  const A = await Yc(D, e.field.postUrl, !1, { skip_error: !0 });
10030
10035
  w = A.total, n.datasource = (A == null ? void 0 : A.data) || [], h();
10031
10036
  } else if (w > n.datasource.length) {
@@ -10063,7 +10068,7 @@ const Cre = /* @__PURE__ */ dt(vre, [["render", wre]]), Sre = Me({
10063
10068
  e.field.postUrl
10064
10069
  ],
10065
10070
  (O, D) => {
10066
- ak(O, D) || (w = null, d(), C());
10071
+ ak(O, D) || (w = null, d(), u.sort_fields = [c()], C());
10067
10072
  },
10068
10073
  { deep: !0 }
10069
10074
  ), Se(
@@ -10088,7 +10093,7 @@ const Cre = /* @__PURE__ */ dt(vre, [["render", wre]]), Sre = Me({
10088
10093
  u.conditions[T] = [
10089
10094
  {
10090
10095
  field_name: A,
10091
- operator: "contains",
10096
+ operator: "icontains",
10092
10097
  format: "input",
10093
10098
  value: [O],
10094
10099
  class_name: "str"
@@ -10098,7 +10103,7 @@ const Cre = /* @__PURE__ */ dt(vre, [["render", wre]]), Sre = Me({
10098
10103
  [
10099
10104
  {
10100
10105
  field_name: c(),
10101
- operator: "contains",
10106
+ operator: "icontains",
10102
10107
  format: "input",
10103
10108
  value: [O],
10104
10109
  class_name: "str"