act-plus 1.1.74 → 1.1.76

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.
@@ -1,5 +1,5 @@
1
1
  import { defineAsyncComponent as ne, inject as D, reactive as re, ref as A, watch as de, resolveComponent as V, resolveDirective as se, openBlock as r, createBlock as i, withCtx as a, createElementVNode as L, createVNode as l, unref as p, createTextVNode as v, withDirectives as ie, createElementBlock as c, Fragment as _, renderList as g, createCommentVNode as T, toDisplayString as pe } from "vue";
2
- import { _ as me, F as fe, l as be, m as ce, S as _e, T as Ve, A as ge, C as ye, n as Ce, U as ve } from "./index-12a36fbd.js";
2
+ import { _ as me, F as fe, l as be, m as ce, S as _e, T as Ve, A as ge, C as ye, n as Ce, U as ve } from "./index-9744cb23.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
@@ -11,7 +11,7 @@ const Te = { slot: "prepend" }, Se = { class: "dialog-footer" }, Ue = {
11
11
  },
12
12
  emits: ["update:visible", "refresh"],
13
13
  setup(M, { emit: Q }) {
14
- const W = ne(() => import("./dialogSiteComponentsParams-52f9fd71.js")), E = Q, P = M, h = D("pageKey")(), O = D("conditionList")(), Y = D("configData")();
14
+ const W = ne(() => import("./dialogSiteComponentsParams-f85afc5d.js")), E = Q, P = M, h = D("pageKey")(), O = D("conditionList")(), Y = D("configData")();
15
15
  let S = re((() => ({
16
16
  btnLoading: !1,
17
17
  showSiteComponentsParamsDialog: !1
@@ -1,5 +1,5 @@
1
1
  import { defineAsyncComponent as L, inject as k, computed as de, reactive as re, ref as q, watch as ie, resolveComponent as y, resolveDirective as se, openBlock as n, createBlock as m, withCtx as e, createElementVNode as me, createVNode as l, unref as o, createTextVNode as U, withDirectives as pe, toDisplayString as O, createElementBlock as b, Fragment as f, renderList as _, createCommentVNode as C } from "vue";
2
- import { _ as ce, B as be, d as fe, e as _e, f as ge, Y as Ve, g as ye, h as he, i as Ce, j as Fe, k as ve } from "./index-12a36fbd.js";
2
+ import { _ as ce, B as be, d as fe, e as _e, f as ge, Y as Ve, g as ye, h as he, i as Ce, j as Fe, k as ve } from "./index-9744cb23.js";
3
3
  import { useRoute as Ue } from "vue-router";
4
4
  import "element-plus";
5
5
  const Te = { class: "dialog-footer" }, ke = {
@@ -11,7 +11,7 @@ const Te = { class: "dialog-footer" }, ke = {
11
11
  },
12
12
  emits: ["update:visible", "refresh"],
13
13
  setup(x, { emit: A }) {
14
- const D = L(() => import("./index-b620f300.js")), E = L(() => import("./index-675a8c72.js")), W = Ue(), Y = k("apiPrefix"), R = k("request"), I = A, N = x, j = de(() => W.params.key);
14
+ const D = L(() => import("./index-a7bca3db.js")), E = L(() => import("./index-2426df0a.js")), W = Ue(), Y = k("apiPrefix"), R = k("request"), I = A, N = x, j = de(() => W.params.key);
15
15
  let T = re((() => ({
16
16
  btnLoading: !1
17
17
  }))());
@@ -8,7 +8,7 @@ const B = { class: "dialog-footer" }, A = {
8
8
  },
9
9
  emits: ["update:visible", "refresh", "update:modelValue"],
10
10
  setup(f, { emit: c }) {
11
- const v = _(() => import("./index-675a8c72.js")), n = c, o = f;
11
+ const v = _(() => import("./index-2426df0a.js")), n = c, o = f;
12
12
  let t = C();
13
13
  y(
14
14
  () => o.visible,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as yd, shallowRef as qn, inject as xd, computed as Jh, toRaw as wd, onMounted as Sd, watch as le, onBeforeUnmount as vd, h as kd, ref as kl, resolveComponent as Qd, resolveDirective as Pd, openBlock as Ql, createElementBlock as $d, withDirectives as Td, createBlock as Zd, withCtx as Cd, createTextVNode as Rd, toDisplayString as Ad, unref as Pl, createVNode as Md, normalizeStyle as Ed } from "vue";
2
- import { _ as Xd, u as Ld } from "./index-12a36fbd.js";
2
+ import { _ as Xd, u as Ld } from "./index-9744cb23.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  let Mr = [], tf = [];
@@ -1,5 +1,5 @@
1
1
  import { reactive as m, watch as b, resolveComponent as s, openBlock as v, createBlock as g, withCtx as o, createElementVNode as i, createVNode as x, createTextVNode as y, toDisplayString as h, unref as C } from "vue";
2
- import { _ as k, u as w } from "./index-12a36fbd.js";
2
+ import { _ as k, u as w } from "./index-9744cb23.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  const V = ["innerHTML"], B = { class: "dialog-footer" }, D = {
@@ -1,5 +1,5 @@
1
- import { defineAsyncComponent as se, inject as h, ref as q, watch as de, resolveComponent as f, resolveDirective as pe, unref as t, openBlock as n, createElementBlock as V, createVNode as ce, normalizeStyle as ie, withCtx as T, Fragment as k, renderList as L, createBlock as d, mergeProps as C, withKeys as H, withModifiers as K, createCommentVNode as g, resolveDynamicComponent as fe, createElementVNode as me, toDisplayString as S, createTextVNode as M, withDirectives as ye } from "vue";
2
- import { _ as be, u as Ve, P as Ce, a as _e, b as he } from "./index-12a36fbd.js";
1
+ import { defineAsyncComponent as de, inject as h, ref as q, watch as pe, resolveComponent as y, resolveDirective as ce, unref as t, openBlock as r, createElementBlock as _, createVNode as ie, normalizeStyle as fe, withCtx as T, Fragment as k, renderList as M, createBlock as d, mergeProps as m, withKeys as H, withModifiers as K, createCommentVNode as g, resolveDynamicComponent as ye, createElementVNode as me, toDisplayString as R, createTextVNode as O, withDirectives as Ve } from "vue";
2
+ import { _ as be, u as Ce, P as _e, a as he, b as W } from "./index-9744cb23.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  const ge = {
@@ -11,131 +11,131 @@ const ge = {
11
11
  data: { type: Object, default: () => ({}) }
12
12
  },
13
13
  emits: ["reset", "search"],
14
- setup(W, { emit: G }) {
15
- const J = se(() => import("./index-e2f2023d.js")), { t: p } = Ve(), X = h("request"), O = h("globalProps"), Z = h("loadComponents"), m = h("getFieldUiProps"), v = h("formatDataType"), z = h("disposeDate"), ee = h("getDefaultQueryValues"), A = G, y = W, Y = q({});
14
+ setup(G, { emit: J }) {
15
+ const X = de(() => import("./index-e2f2023d.js")), { t: p } = Ce(), Z = h("request"), z = h("globalProps"), ee = h("loadComponents"), i = h("getFieldUiProps"), v = h("formatDataType"), A = h("disposeDate"), le = h("getDefaultQueryValues"), Y = J, V = G, x = q({});
16
16
  let b = q([]), I = q([]), P = q(!0);
17
- const B = q(0), j = q(0), le = (u) => y.data.tableConfig.isExpandQuery && P.value ? y.data.tableConfig.tableQueryRowWidth > u + 1 : !0, ae = async (u) => {
17
+ const B = q(0), j = q(0), ae = (n) => V.data.tableConfig.isExpandQuery && P.value ? V.data.tableConfig.tableQueryRowWidth > n + 1 : !0, te = async (n) => {
18
18
  b.value = await Promise.all(
19
- u.filter((l) => l.useScenes.includes("tableSearch")).map(async (l) => {
20
- l.tableQueryDefaultValue && (["date", "dateRange"].includes(l.fieldType) ? l.queryValue = z(l) : l.queryValue = l.tableQueryDefaultValue ? l.tableQueryDefaultValue : void 0), O.defaultParams.some((o) => {
19
+ n.filter((l) => l.useScenes.includes("tableSearch")).map(async (l) => {
20
+ l.tableQueryDefaultValue && (["date", "dateRange"].includes(l.fieldType) ? l.queryValue = A(l) : l.queryValue = l.tableQueryDefaultValue ? l.tableQueryDefaultValue : void 0), z.defaultParams.some((o) => {
21
21
  o.field == l.fieldKey && o.operate === l.tableQueryCondition && (l.queryValue = o.value);
22
22
  });
23
23
  const s = (l.formCustomComponentes ?? []).find((o) => o.permissionCode === "tableSearch");
24
24
  if (l.isQueryFieldCustom = !1, s && s.isFieldCustom) {
25
- const { isFieldCustom: o, customComponentName: Q, customComponentUrl: D } = s;
25
+ const { isFieldCustom: o, customComponentName: $, customComponentUrl: Q } = s;
26
26
  if (l.isQueryFieldCustom = !0, j.value++, o && !l.customQueryComponent) {
27
- const U = await Z(D, Q);
28
- l.customQueryComponent = U;
27
+ const w = await ee(Q, $);
28
+ l.customQueryComponent = w;
29
29
  }
30
30
  }
31
31
  return l;
32
32
  })
33
33
  );
34
- }, te = (u) => {
35
- const l = (u || []).filter((s) => s.permissionCode === 1001).map((s) => ({ ...s, loading: !1 }));
34
+ }, oe = (n) => {
35
+ const l = (n || []).filter((s) => s.permissionCode === 1001).map((s) => ({ ...s, loading: !1 }));
36
36
  I.value = [...l, { btnName: p("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset", loading: !1 }];
37
- }, oe = async ({ node: u, resolve: l }, s) => {
38
- const o = m(s), { label: Q, value: D, children: U, isLeaf: w } = { ...he, ...o.treeProps || {} };
39
- if (u[w])
37
+ }, re = async ({ node: n, resolve: l }, s) => {
38
+ const o = i(s), { label: $, value: Q, children: w, isLeaf: U } = { ...W, ...o.treeProps || {} };
39
+ if (n[U])
40
40
  return l([]);
41
- const $ = s.postRequestParams.filter((r) => r.submitType === "default").reduce((r, e) => (r[e.submitName] = v(e.paramsType, e.submitValue), r), {}), N = s.postRequestParams.filter((r) => r.submitType === "match").reduce((r, e) => (r[e.submitName] = v(e.paramsType, O.matchData[e.submitValue][e.submitName]), r), {}), R = s.postRequestParams.filter((r) => r.submitType === "dynamic").map((r) => ({
42
- field: r.submitName,
43
- operate: r.submitMatchType,
44
- value: o.loadCode ? u == null ? void 0 : u.data.value : v(r.paramsType, r.submitValue)
41
+ const D = s.postRequestParams.filter((u) => u.submitType === "default").reduce((u, e) => (u[e.submitName] = v(e.paramsType, e.submitValue), u), {}), N = s.postRequestParams.filter((u) => u.submitType === "match").reduce((u, e) => (u[e.submitName] = v(e.paramsType, z.matchData[e.submitValue][e.submitName]), u), {}), S = s.postRequestParams.filter((u) => u.submitType === "dynamic").map((u) => ({
42
+ field: u.submitName,
43
+ operate: u.submitMatchType,
44
+ value: o.loadCode ? n == null ? void 0 : n.data.value : v(u.paramsType, u.submitValue)
45
45
  }));
46
- let i = {};
47
- Object.keys($).length && (i = { ...i, ...$ }), Object.keys(N).length && (i = { ...i, ...N }), R.length && (i.dynamicFilters = R), o.loadCode && Reflect.has(i, o.loadCode) && (i[o.loadCode] = u == null ? void 0 : u.data.value);
48
- const { data: E } = await X({
46
+ let f = {};
47
+ Object.keys(D).length && (f = { ...f, ...D }), Object.keys(N).length && (f = { ...f, ...N }), S.length && (f.dynamicFilters = S), o.loadCode && Reflect.has(f, o.loadCode) && (f[o.loadCode] = n == null ? void 0 : n.data.value);
48
+ const { data: E } = await Z({
49
49
  url: s.fieldRequestUrl,
50
50
  method: s.fieldRequestType || "GET",
51
- data: i
52
- }), x = (E || []).map((r) => ({ label: r[Q], value: r[D], children: [], isLeaf: r[w] }));
53
- l(x);
51
+ data: f
52
+ }), L = (E || []).map((u) => ({ label: u[$], value: u[Q], children: [], isLeaf: u[U] }));
53
+ l(L);
54
54
  };
55
- de(
56
- () => y.data,
57
- (u, l) => {
58
- ae(u.fields), te(u.buttons);
55
+ pe(
56
+ () => V.data,
57
+ (n, l) => {
58
+ te(n.fields), oe(n.buttons);
59
59
  },
60
60
  { immediate: !0, deep: !0 }
61
61
  );
62
- const re = () => {
62
+ const ue = () => {
63
63
  B.value++, B.value === j.value && c({ permissionCode: 1001 });
64
- }, c = (u) => {
65
- switch (u.loading = !0, u.permissionCode) {
64
+ }, c = (n) => {
65
+ switch (n.loading = !0, n.permissionCode) {
66
66
  case "9999":
67
67
  b.value.forEach((o) => {
68
- o.tableQueryDefaultValue ? o.queryValue = ["date", "dateRange"].includes(o.fieldType) ? z(o) : (o == null ? void 0 : o.tableQueryDefaultValue) || void 0 : o.queryValue = o.fieldType.includes("&") ? [] : void 0;
68
+ o.tableQueryDefaultValue ? o.queryValue = ["date", "dateRange"].includes(o.fieldType) ? A(o) : (o == null ? void 0 : o.tableQueryDefaultValue) || void 0 : o.queryValue = o.fieldType.includes("&") ? [] : void 0;
69
69
  });
70
- const l = ee();
71
- A("reset", l, () => {
72
- u.loading = !1;
70
+ const l = le();
71
+ Y("reset", l, () => {
72
+ n.loading = !1;
73
73
  });
74
74
  break;
75
75
  default:
76
76
  const s = b.value.filter((o) => Array.isArray(o.queryValue) ? o.queryValue.length : !!o.queryValue);
77
- A("search", s, () => {
78
- u.loading = !1;
77
+ Y("search", s, () => {
78
+ n.loading = !1;
79
79
  });
80
80
  break;
81
81
  }
82
82
  }, ne = () => {
83
83
  P.value = !P.value;
84
- }, ue = () => {
84
+ }, se = () => {
85
85
  c({ permissionCode: 1001 });
86
86
  };
87
- return (u, l) => {
88
- var r;
89
- const s = f("el-input"), o = f("el-option"), Q = f("el-select"), D = f("el-select-v2"), U = f("el-cascader"), w = f("el-tree-select"), $ = f("el-date-picker"), N = f("el-form-item"), R = f("a-svg-icon"), i = f("el-button"), E = f("el-form"), x = pe("debounce");
90
- return t(b) && t(b).length ? (n(), V("div", ge, [
91
- ce(E, {
92
- style: ie({ "--table-query-row": y.data.tableConfig.tableQueryRowWidth }),
87
+ return (n, l) => {
88
+ var u;
89
+ const s = y("el-input"), o = y("el-option"), $ = y("el-select"), Q = y("el-select-v2"), w = y("el-cascader"), U = y("el-tree-select"), D = y("el-date-picker"), N = y("el-form-item"), S = y("a-svg-icon"), f = y("el-button"), E = y("el-form"), L = ce("debounce");
90
+ return t(b) && t(b).length ? (r(), _("div", ge, [
91
+ ie(E, {
92
+ style: fe({ "--table-query-row": V.data.tableConfig.tableQueryRowWidth }),
93
93
  class: "form-content",
94
94
  ref: "elForm",
95
95
  "label-suffix": ":",
96
96
  "label-position": "right"
97
97
  }, {
98
98
  default: T(() => [
99
- (n(!0), V(k, null, L(t(b), (e, _) => (n(), V(k, { key: _ }, [
100
- le(_) ? (n(), V(k, { key: 0 }, [
101
- e.isQueryFieldCustom ? (n(), V(k, { key: 1 }, [
102
- e.customQueryComponent ? (n(), d(fe(e.customQueryComponent), {
99
+ (r(!0), _(k, null, M(t(b), (e, C) => (r(), _(k, { key: C }, [
100
+ ae(C) ? (r(), _(k, { key: 0 }, [
101
+ e.isQueryFieldCustom ? (r(), _(k, { key: 1 }, [
102
+ e.customQueryComponent ? (r(), d(ye(e.customQueryComponent), {
103
103
  key: 0,
104
104
  class: "custom-btn",
105
105
  ref_for: !0,
106
- ref: (a) => Y.value[`customQueryComponent_${_}`] = a,
106
+ ref: (a) => x.value[`customQueryComponent_${C}`] = a,
107
107
  modelValue: e.queryValue,
108
108
  "onUpdate:modelValue": (a) => e.queryValue = a,
109
109
  queryItem: e,
110
- data: y.data,
111
- onRefresh: l[8] || (l[8] = (a) => c({ permissionCode: 1001 })),
112
- onLoaded: re
113
- }, null, 40, ["modelValue", "onUpdate:modelValue", "queryItem", "data"])) : (n(), V("div", {
110
+ data: V.data,
111
+ onRefresh: l[9] || (l[9] = (a) => c({ permissionCode: 1001 })),
112
+ onLoaded: ue
113
+ }, null, 40, ["modelValue", "onUpdate:modelValue", "queryItem", "data"])) : (r(), _("div", {
114
114
  class: "no-config",
115
- key: _
115
+ key: C
116
116
  }, [
117
- me("span", qe, "【" + S(e.fieldName) + "】", 1),
118
- M(S(t(p)("act.fieldCustom")), 1)
117
+ me("span", qe, "【" + R(e.fieldName) + "】", 1),
118
+ O(R(t(p)("act.fieldCustom")), 1)
119
119
  ]))
120
- ], 64)) : (n(), d(N, {
120
+ ], 64)) : (r(), d(N, {
121
121
  key: 0,
122
122
  class: "search-form-item",
123
- "label-width": y.data.tableConfig.tableQueryLabelWidth,
123
+ "label-width": V.data.tableConfig.tableQueryLabelWidth,
124
124
  label: e.fieldName
125
125
  }, {
126
126
  default: T(() => [
127
- e.fieldType === "input" || e.fieldType === "editor" ? (n(), d(s, C({
127
+ e.fieldType === "input" || e.fieldType === "editor" ? (r(), d(s, m({
128
128
  key: 0,
129
129
  modelValue: e.queryValue,
130
130
  "onUpdate:modelValue": (a) => e.queryValue = a,
131
131
  placeholder: `${t(p)("act.inputPlaceholder")}${e.fieldName}`,
132
132
  clearable: "",
133
133
  ref_for: !0
134
- }, t(m)(e), {
134
+ }, t(i)(e), {
135
135
  onKeyup: l[0] || (l[0] = H(K((a) => c({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
136
- onClear: ue
136
+ onClear: se
137
137
  }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : g("", !0),
138
- e.fieldType === "inputNumber" ? (n(), d(t(J), C({
138
+ e.fieldType === "inputNumber" ? (r(), d(t(X), m({
139
139
  key: 1,
140
140
  modelValue: e.queryValue,
141
141
  "onUpdate:modelValue": (a) => e.queryValue = a,
@@ -143,7 +143,7 @@ const ge = {
143
143
  clearable: "",
144
144
  onKeyup: l[1] || (l[1] = H(K((a) => c({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
145
145
  ref_for: !0
146
- }, t(m)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (n(), d(Q, C({
146
+ }, t(i)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (r(), d($, m({
147
147
  key: 2,
148
148
  modelValue: e.queryValue,
149
149
  "onUpdate:modelValue": (a) => e.queryValue = a,
@@ -151,51 +151,69 @@ const ge = {
151
151
  clearable: "",
152
152
  filterable: "",
153
153
  ref_for: !0
154
- }, t(m)(e), {
154
+ }, t(i)(e), {
155
155
  multiple: e.fieldType === "multipleSelect",
156
156
  "collapse-tags": e.fieldType === "multipleSelect",
157
157
  "collapse-tags-tooltip": e.fieldType === "multipleSelect",
158
158
  onChange: l[2] || (l[2] = (a) => c({ permissionCode: 1001 }))
159
159
  }), {
160
160
  default: T(() => [
161
- (n(!0), V(k, null, L(e.dataList, (a, F) => (n(), d(o, {
161
+ (r(!0), _(k, null, M(e.dataList, (a, F) => (r(), d(o, {
162
162
  key: F,
163
163
  label: a.key,
164
164
  value: a.value
165
165
  }, null, 8, ["label", "value"]))), 128))
166
166
  ]),
167
167
  _: 2
168
- }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (n(), d(D, C({
168
+ }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (r(), d(Q, m({
169
169
  key: 3,
170
170
  modelValue: e.queryValue,
171
171
  "onUpdate:modelValue": (a) => e.queryValue = a,
172
172
  options: e.dataList,
173
- props: { ...t(Ce) },
173
+ props: { ...t(_e) },
174
174
  placeholder: `${t(p)("act.selectPlaceholder")}${e.fieldName}`,
175
175
  clearable: "",
176
176
  filterable: "",
177
177
  ref_for: !0
178
- }, t(m)(e), {
178
+ }, t(i)(e), {
179
179
  "collapse-tags": e.fieldType === "virtualizedMultipleSelect",
180
180
  "collapse-tags-tooltip": e.fieldType === "virtualizedMultipleSelect",
181
181
  multiple: e.fieldType === "virtualizedMultipleSelect",
182
182
  onChange: l[3] || (l[3] = (a) => c({ permissionCode: 1001 }))
183
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (n(), d(U, C({
183
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (r(), d(w, m({
184
184
  key: 4,
185
185
  modelValue: e.queryValue,
186
186
  "onUpdate:modelValue": (a) => e.queryValue = a,
187
187
  options: e.dataList,
188
- props: { ...t(_e) },
188
+ props: { ...t(he) },
189
189
  clearable: "",
190
190
  filterable: "",
191
191
  placeholder: `${t(p)("act.selectPlaceholder")}${e.fieldName}`,
192
192
  ref_for: !0
193
- }, t(m)(e), {
193
+ }, t(i)(e), {
194
194
  onChange: l[4] || (l[4] = (a) => c({ permissionCode: 1001 }))
195
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "treeSelect" ? (n(), d(w, C({
195
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "fullLoadTreeSelect" ? (r(), d(U, m({
196
196
  key: 5,
197
197
  ref_for: !0,
198
- ref: (a) => Y.value[`elTreeSelect_${_}`] = a,
198
+ ref: (a) => x.value[`elTreeSelect_fullLoad_${C}`] = a,
199
+ modelValue: e.queryValue,
200
+ "onUpdate:modelValue": (a) => e.queryValue = a,
201
+ data: e.dataList,
202
+ placeholder: `请选择${e.fieldName}`,
203
+ props: { ...t(W), ...t(i)(e).treeProps || {} },
204
+ "render-after-expand": !1,
205
+ "collapse-tags": "",
206
+ "collapse-tags-tooltip": "",
207
+ multiple: "",
208
+ "show-checkbox": "",
209
+ clearable: "",
210
+ filterable: ""
211
+ }, t(i)(e), {
212
+ onChange: l[5] || (l[5] = (a) => c({ permissionCode: 1001 }))
213
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "data", "placeholder", "props"])) : e.fieldType === "treeSelect" ? (r(), d(U, m({
214
+ key: 6,
215
+ ref_for: !0,
216
+ ref: (a) => x.value[`elTreeSelect_${C}`] = a,
199
217
  modelValue: e.queryValue,
200
218
  "onUpdate:modelValue": (a) => e.queryValue = a,
201
219
  placeholder: `请选择${e.fieldName}`,
@@ -208,11 +226,11 @@ const ge = {
208
226
  clearable: "",
209
227
  filterable: "",
210
228
  lazy: "",
211
- load: (a, F) => oe({ node: a, resolve: F }, e)
212
- }, t(m)(e), {
213
- onChange: l[5] || (l[5] = (a) => c({ permissionCode: 1001 }))
214
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (n(), d($, C({
215
- key: 6,
229
+ load: (a, F) => re({ node: a, resolve: F }, e)
230
+ }, t(i)(e), {
231
+ onChange: l[6] || (l[6] = (a) => c({ permissionCode: 1001 }))
232
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "load"])) : e.fieldType === "date" ? (r(), d(D, m({
233
+ key: 7,
216
234
  modelValue: e.queryValue,
217
235
  "onUpdate:modelValue": (a) => e.queryValue = a,
218
236
  type: "date",
@@ -220,10 +238,10 @@ const ge = {
220
238
  "value-format": "YYYY-MM-DD HH:mm:ss",
221
239
  clearable: "",
222
240
  ref_for: !0
223
- }, t(m)(e), {
224
- onChange: l[6] || (l[6] = (a) => c({ permissionCode: 1001 }))
225
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (n(), d($, C({
226
- key: 7,
241
+ }, t(i)(e), {
242
+ onChange: l[7] || (l[7] = (a) => c({ permissionCode: 1001 }))
243
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (r(), d(D, m({
244
+ key: 8,
227
245
  modelValue: e.queryValue,
228
246
  "onUpdate:modelValue": (a) => e.queryValue = a,
229
247
  type: "daterange",
@@ -232,28 +250,28 @@ const ge = {
232
250
  "value-format": "YYYY-MM-DD HH:mm:ss",
233
251
  clearable: "",
234
252
  ref_for: !0
235
- }, t(m)(e), {
236
- onChange: l[7] || (l[7] = (a) => c({ permissionCode: 1001 }))
253
+ }, t(i)(e), {
254
+ onChange: l[8] || (l[8] = (a) => c({ permissionCode: 1001 }))
237
255
  }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])) : g("", !0)
238
256
  ]),
239
257
  _: 2
240
258
  }, 1032, ["label-width", "label"]))
241
259
  ], 64)) : g("", !0)
242
260
  ], 64))), 128)),
243
- t(b).length ? (n(), d(N, {
261
+ t(b).length ? (r(), d(N, {
244
262
  key: 0,
245
263
  class: "search-form-btn",
246
264
  "label-width": "0"
247
265
  }, {
248
266
  default: T(() => [
249
- (n(!0), V(k, null, L(t(I), (e, _) => ye((n(), d(i, {
250
- key: _,
267
+ (r(!0), _(k, null, M(t(I), (e, C) => Ve((r(), d(f, {
268
+ key: C,
251
269
  type: e.btnColor,
252
270
  loading: e.loading,
253
271
  onClick: (a) => c(e)
254
272
  }, {
255
273
  default: T(() => [
256
- e.btnIcon ? (n(), d(R, {
274
+ e.btnIcon ? (r(), d(S, {
257
275
  key: 0,
258
276
  class: "mr6",
259
277
  name: e.btnIcon,
@@ -261,11 +279,11 @@ const ge = {
261
279
  height: "12",
262
280
  color: "#fff"
263
281
  }, null, 8, ["name"])) : g("", !0),
264
- M(" " + S(e.btnName), 1)
282
+ O(" " + R(e.btnName), 1)
265
283
  ]),
266
284
  _: 2
267
285
  }, 1032, ["type", "loading", "onClick"])), [
268
- [x]
286
+ [L]
269
287
  ])), 128))
270
288
  ]),
271
289
  _: 1
@@ -273,7 +291,7 @@ const ge = {
273
291
  ]),
274
292
  _: 1
275
293
  }, 8, ["style"]),
276
- y.data.tableConfig.isExpandQuery && ((r = t(b)) == null ? void 0 : r.length) > y.data.tableConfig.tableQueryRowWidth ? (n(), d(i, {
294
+ V.data.tableConfig.isExpandQuery && ((u = t(b)) == null ? void 0 : u.length) > V.data.tableConfig.tableQueryRowWidth ? (r(), d(f, {
277
295
  key: 0,
278
296
  class: "expand",
279
297
  text: "",
@@ -282,14 +300,14 @@ const ge = {
282
300
  onClick: ne
283
301
  }, {
284
302
  default: T(() => [
285
- M(S(t(P) ? t(p)("act.expand") : t(p)("act.retract")), 1)
303
+ O(R(t(P) ? t(p)("act.expand") : t(p)("act.retract")), 1)
286
304
  ]),
287
305
  _: 1
288
306
  }, 8, ["icon"])) : g("", !0)
289
307
  ])) : g("", !0);
290
308
  };
291
309
  }
292
- }, $e = /* @__PURE__ */ be(Te, [["__scopeId", "data-v-c49a11b4"]]);
310
+ }, Ue = /* @__PURE__ */ be(Te, [["__scopeId", "data-v-92d7682c"]]);
293
311
  export {
294
- $e as default
312
+ Ue as default
295
313
  };
@@ -1,5 +1,5 @@
1
1
  import { ref as N, watch as O, resolveComponent as u, resolveDirective as T, openBlock as l, createElementBlock as d, withDirectives as j, createBlock as i, mergeProps as D, withCtx as c, createTextVNode as K, toDisplayString as W, unref as f, Fragment as s, renderList as A, renderSlot as w, createCommentVNode as H, nextTick as y } from "vue";
2
- import { _ as U, u as V } from "./index-12a36fbd.js";
2
+ import { _ as U, u as V } from "./index-9744cb23.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  const $ = { class: "act-table" }, F = {
@@ -15,78 +15,69 @@ const $ = { class: "act-table" }, F = {
15
15
  showSerialNumber: { type: Boolean, default: !0 },
16
16
  showPagination: { type: Boolean, default: !0 },
17
17
  rowKey: { type: String, default: "id" },
18
- treeProps: {
19
- type: Object,
20
- default: () => ({ children: "children", hasChildren: "hasChildren" })
21
- },
18
+ treeProps: { type: Object, default: () => ({ children: "children", hasChildren: "hasChildren" }) },
22
19
  tableConfig: { type: Object, default: () => ({}) }
23
20
  },
24
- emits: [
25
- "update:tableQuery",
26
- "update:selection",
27
- "refresh",
28
- "onRowClick",
29
- "changeExpand"
30
- ],
21
+ emits: ["update:tableQuery", "update:selection", "refresh", "onRowClick", "changeExpand"],
31
22
  setup(g, { expose: b, emit: x }) {
32
- const { t: h } = V(), r = x, a = g;
23
+ const { t: h } = V(), r = x, o = g;
33
24
  let p = N(null);
34
- const _ = (t) => a.showPagination ? t + 1 + (a.tableQuery.pageIndex - 1) * a.tableQuery.pageSize : t + 1, k = (t) => {
25
+ const _ = (t) => o.showPagination ? t + 1 + (o.tableQuery.pageIndex - 1) * o.tableQuery.pageSize : t + 1, k = (t) => {
35
26
  y(() => {
36
- a.data.forEach((o) => {
37
- t.includes(o[a.rowKey]) && p.value.toggleRowSelection(o, !0);
27
+ o.data.forEach((a) => {
28
+ t.includes(a[o.rowKey]) && p.value.toggleRowSelection(a, !0);
38
29
  });
39
30
  });
40
31
  }, C = (t) => p.value.getSelectionRows();
41
32
  O(
42
- () => a.selection,
43
- (t, o) => {
33
+ () => o.selection,
34
+ (t, a) => {
44
35
  t && t.length && k(t);
45
36
  },
46
37
  { deep: !0, immediate: !0 }
47
38
  );
48
39
  const S = (t) => {
49
40
  r("update:selection", t);
50
- }, m = (t, o) => {
41
+ }, m = (t, a) => {
51
42
  t && y(() => {
52
- a.data.forEach((n) => {
53
- t.includes(n[o || a.rowKey]) && p.value.toggleRowSelection(n, !0);
43
+ o.data.forEach((n) => {
44
+ t.includes(n[a || o.rowKey]) && p.value.toggleRowSelection(n, !0);
54
45
  });
55
46
  });
56
47
  }, v = (t) => {
57
- r("update:tableQuery", { ...a.tableQuery, pageSize: t }), r("refresh", []);
48
+ r("update:tableQuery", { ...o.tableQuery, pageSize: t }), r("refresh", []);
58
49
  }, z = (t) => {
59
- r("update:tableQuery", { ...a.tableQuery, pageIndex: t }), r("refresh", []);
60
- }, Q = (t, o, n) => {
61
- r("onRowClick", t, o, n);
62
- }, R = (t, o) => {
63
- r("changeExpand", t, o);
50
+ r("update:tableQuery", { ...o.tableQuery, pageIndex: t }), r("refresh", []);
51
+ }, Q = (t, a, n) => {
52
+ r("onRowClick", t, a, n);
53
+ }, R = (t, a) => {
54
+ r("changeExpand", t, a);
64
55
  };
65
- return b({ getSelectionRows: C, updateSelection: m }), (t, o) => {
56
+ return b({ getSelectionRows: C, updateSelection: m }), (t, a) => {
66
57
  const n = u("el-table-column"), E = u("el-table"), I = u("el-pagination"), P = T("loading");
67
58
  return l(), d("div", $, [
68
59
  j((l(), i(E, D({
69
60
  style: { width: "100%" },
70
61
  ref_key: "tableRef",
71
62
  ref: p,
72
- data: a.data,
63
+ data: o.data,
73
64
  stripe: "",
74
65
  border: "",
75
66
  "highlight-current-row": "",
76
- "max-height": a.maxHeight,
77
- "row-key": a.rowKey,
67
+ "max-height": o.maxHeight,
68
+ "row-key": o.rowKey,
78
69
  "default-expand-all": "",
79
70
  "tree-props": g.treeProps
80
- }, a.tableConfig, {
71
+ }, o.tableConfig, {
81
72
  onSelectionChange: S,
82
73
  onRowClick: Q,
83
74
  onExpandChange: R
84
75
  }), {
85
76
  empty: c(() => [
86
- K(W(a.data.length || a.data.length == 0 ? f(h)("act.noData") : ""), 1)
77
+ K(W(o.data.length || o.data.length == 0 ? f(h)("act.noData") : ""), 1)
87
78
  ]),
88
79
  default: c(() => [
89
- (l(!0), d(s, null, A(a.headers, (e) => (l(), d(s, {
80
+ (l(!0), d(s, null, A(o.headers, (e) => (l(), d(s, {
90
81
  key: e.prop
91
82
  }, [
92
83
  e.isCustomTableHeader ? w(t.$slots, e.prop, { key: 0 }, void 0, !0) : (l(), d(s, { key: 1 }, [
@@ -136,26 +127,26 @@ const $ = { class: "act-table" }, F = {
136
127
  ]),
137
128
  _: 3
138
129
  }, 16, ["data", "max-height", "row-key", "tree-props"])), [
139
- [P, a.loading]
130
+ [P, o.loading]
140
131
  ]),
141
- a.showPagination ? (l(), i(I, {
132
+ o.showPagination ? (l(), i(I, {
142
133
  key: 0,
143
134
  class: "table-pagination",
144
- "current-page": a.tableQuery.pageIndex,
145
- "onUpdate:currentPage": o[0] || (o[0] = (e) => a.tableQuery.pageIndex = e),
146
- "page-size": a.tableQuery.pageSize,
147
- "onUpdate:pageSize": o[1] || (o[1] = (e) => a.tableQuery.pageSize = e),
135
+ "current-page": o.tableQuery.pageIndex,
136
+ "onUpdate:currentPage": a[0] || (a[0] = (e) => o.tableQuery.pageIndex = e),
137
+ "page-size": o.tableQuery.pageSize,
138
+ "onUpdate:pageSize": a[1] || (a[1] = (e) => o.tableQuery.pageSize = e),
148
139
  "page-sizes": [10, 20, 50, 75, 100, 200, 500],
149
140
  background: "",
150
141
  layout: "total, sizes, prev, pager, next, jumper",
151
- total: a.total,
142
+ total: o.total,
152
143
  onSizeChange: v,
153
144
  onCurrentChange: z
154
145
  }, null, 8, ["current-page", "page-size", "total"])) : H("", !0)
155
146
  ]);
156
147
  };
157
148
  }
158
- }, J = /* @__PURE__ */ U(F, [["__scopeId", "data-v-f41a54ba"]]);
149
+ }, J = /* @__PURE__ */ U(F, [["__scopeId", "data-v-d2da0301"]]);
159
150
  export {
160
151
  J as default
161
152
  };
@@ -291,8 +291,8 @@ const le = { style: { height: "100%", overflow: "hidden" } }, Le = {
291
291
  editable_root: o.editableRoot,
292
292
  width: o.width,
293
293
  // height: props.height,
294
- // min_height: props.height,
295
294
  max_height: o.height,
295
+ // min_height: props.height,
296
296
  branding: !1,
297
297
  // 是否禁用“Powered by TinyMCE”
298
298
  promotion: !1,
@@ -342,7 +342,9 @@ const le = { style: { height: "100%", overflow: "hidden" } }, Le = {
342
342
  //图片上传 -实列 具体请根据官网补充-
343
343
  images_upload_handler: function(m, f) {
344
344
  }
345
- }), l = q({
345
+ });
346
+ console.log(c);
347
+ const l = q({
346
348
  get() {
347
349
  return o.modelValue;
348
350
  },