act-plus 1.1.16 → 1.1.18

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,8 +1,8 @@
1
- import { defineAsyncComponent as U, reactive as A, ref as g, provide as D, watch as M, resolveComponent as m, openBlock as T, createBlock as W, withCtx as s, createVNode as f, unref as l, isRef as F, createTextVNode as I, toDisplayString as O, pushScopeId as j, popScopeId as z, createElementVNode as x } from "vue";
2
- import { _ as E, g as P, c as H } from "./index-a1b4f8cb.js";
1
+ import { defineAsyncComponent as U, reactive as A, ref as g, provide as D, watch as M, resolveComponent as m, openBlock as T, createBlock as W, withCtx as r, createVNode as f, unref as l, isRef as F, createTextVNode as I, toDisplayString as O, pushScopeId as j, popScopeId as z, createElementVNode as x } from "vue";
2
+ import { _ as E, g as P, c as H } from "./index-1f8ed34b.js";
3
3
  import { useRoute as K } from "vue-router";
4
4
  import "element-plus";
5
- const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(() => /* @__PURE__ */ x("div", { class: "card-header" }, [
5
+ const $ = (d) => (j("data-v-709fc688"), d = d(), z(), d), G = /* @__PURE__ */ $(() => /* @__PURE__ */ x("div", { class: "card-header" }, [
6
6
  /* @__PURE__ */ x("div", { class: "card-header-title" }, "按钮配置")
7
7
  ], -1)), J = {
8
8
  __name: "configBtns",
@@ -10,8 +10,8 @@ const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(
10
10
  modelValue: { type: Object, default: () => [] }
11
11
  },
12
12
  emits: ["update:modelValue"],
13
- setup(r, { expose: V, emit: Q }) {
14
- const h = K(), L = U(() => import("./dialogConfigBtn-5585756e.js")), d = r, w = () => ({
13
+ setup(d, { expose: V, emit: Q }) {
14
+ const h = K(), L = U(() => import("./dialogConfigBtn-f5f8703d.js")), c = d, w = () => ({
15
15
  sort: 0,
16
16
  permissionCode: null,
17
17
  requestUrl: "",
@@ -32,11 +32,11 @@ const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(
32
32
  submitFields: [],
33
33
  matchFields: []
34
34
  });
35
- let o = A((() => ({
35
+ let a = A((() => ({
36
36
  tableLoading: !1,
37
37
  showConfigBtnDialog: !1,
38
38
  dialogData: {}
39
- }))()), C = g(null), y = 0, v = [], c = g([]), N = [
39
+ }))()), C = g(null), y = 0, v = [], u = g([]), N = [
40
40
  { prop: "checkbox", width: 60 },
41
41
  { prop: "serialNumber", width: 80 },
42
42
  { label: "按钮名称", prop: "btnName", minWidth: 200 },
@@ -47,84 +47,84 @@ const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(
47
47
  { label: "排序", prop: "sort", width: 180, render: !0 },
48
48
  { label: "操作", prop: "operate", width: 120, render: !0, fixed: "right" }
49
49
  ], b = g([]);
50
- const S = (a, t) => {
51
- Object.assign(b.value[y], a), t(!0);
52
- }, k = async (a) => {
50
+ const S = (n, t) => {
51
+ Object.assign(b.value[y], n), t(!0);
52
+ }, k = async (n) => {
53
53
  try {
54
- o.tableLoading = !0;
55
- const t = d.id ? d.id : h.params.id, { data: i } = await H({ id: t });
56
- c.value = (i || []).filter((n) => (a || []).some((u) => u.permissionCode == n.unique)).map((n) => n.unique), b.value = (i || []).map((n, u) => {
57
- let _ = w(), p = (a || []).find((e) => e.permissionCode == n.unique) || {};
58
- return { ..._, ...p, btnName: n.name, permissionCode: n.unique, sort: p.sort ? p.sort : (u + 1) * 10 };
59
- }), o.tableLoading = !1;
54
+ a.tableLoading = !0;
55
+ const t = c.id ? c.id : h.params.id, { data: i } = await H({ id: t });
56
+ u.value = (i || []).filter((o) => (n || []).some((s) => s.permissionCode == o.unique)).map((o) => o.unique), b.value = (i || []).map((o, s) => {
57
+ let _ = w(), p = (n || []).find((e) => e.permissionCode == o.unique) || {};
58
+ return { ..._, ...p, btnName: o.name, permissionCode: o.unique, sort: p.sort ? p.sort : (s + 1) * 10 };
59
+ }).sort((o, s) => o.sort - s.sort), a.tableLoading = !1;
60
60
  } catch (t) {
61
- o.tableLoading = !1, console.error(t);
61
+ a.tableLoading = !1, console.error(t);
62
62
  }
63
63
  }, R = () => C.value.getSelectionRows() || [];
64
64
  D("associationMenuList", v), D("createDefaultButtonItem", w), M(
65
- () => d.modelValue,
66
- async (a, t) => {
65
+ () => c.modelValue,
66
+ async (n, t) => {
67
67
  try {
68
- const i = d.id ? d.id : h.params.id;
69
- v = (await P({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: i }] })).data || [], await k(a);
68
+ const i = c.id ? c.id : h.params.id;
69
+ v = (await P({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: i }] })).data || [], await k(n);
70
70
  } catch (i) {
71
- o.tableLoading = !1, console.error(i);
71
+ a.tableLoading = !1, console.error(i);
72
72
  }
73
73
  },
74
74
  { deep: !0, immediate: !0 }
75
75
  );
76
- const q = (a) => {
77
- o.dialogData = a.row, y = a.$index, o.showConfigBtnDialog = !0;
76
+ const q = (n) => {
77
+ a.dialogData = n.row, y = n.$index, a.showConfigBtnDialog = !0;
78
78
  };
79
- return V({ getTableSelectionRows: R }), (a, t) => {
80
- const i = m("el-tag"), n = m("el-input-number"), u = m("el-button"), _ = m("a-table"), p = m("el-card");
79
+ return V({ getTableSelectionRows: R }), (n, t) => {
80
+ const i = m("el-tag"), o = m("el-input-number"), s = m("el-button"), _ = m("a-table"), p = m("el-card");
81
81
  return T(), W(p, {
82
82
  class: "form-card",
83
83
  shadow: "hover"
84
84
  }, {
85
- header: s(() => [
85
+ header: r(() => [
86
86
  G
87
87
  ]),
88
- default: s(() => [
88
+ default: r(() => [
89
89
  f(_, {
90
90
  ref_key: "tableRef",
91
91
  ref: C,
92
- loading: l(o).tableLoading,
92
+ loading: l(a).tableLoading,
93
93
  rowKey: "permissionCode",
94
- selection: l(c),
95
- "onUpdate:selection": t[0] || (t[0] = (e) => F(c) ? c.value = e : c = e),
94
+ selection: l(u),
95
+ "onUpdate:selection": t[0] || (t[0] = (e) => F(u) ? u.value = e : u = e),
96
96
  headers: l(N),
97
97
  data: l(b),
98
98
  showPagination: !1
99
99
  }, {
100
- isCustomBtn: s(({ scope: e }) => [
100
+ isCustomBtn: r(({ scope: e }) => [
101
101
  f(i, {
102
102
  type: "primary",
103
103
  effect: "dark",
104
104
  size: "small"
105
105
  }, {
106
- default: s(() => [
106
+ default: r(() => [
107
107
  I(O(e.row.isCustomBtn ? "是" : "否"), 1)
108
108
  ]),
109
109
  _: 2
110
110
  }, 1024)
111
111
  ]),
112
- sort: s(({ scope: e }) => [
113
- f(n, {
112
+ sort: r(({ scope: e }) => [
113
+ f(o, {
114
114
  modelValue: e.row.sort,
115
115
  "onUpdate:modelValue": (B) => e.row.sort = B,
116
116
  min: 0
117
117
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
118
118
  ]),
119
- operate: s(({ scope: e }) => [
120
- f(u, {
119
+ operate: r(({ scope: e }) => [
120
+ f(s, {
121
121
  type: "primary",
122
122
  text: "",
123
123
  size: "small",
124
124
  icon: "Aim",
125
125
  onClick: (B) => q(e)
126
126
  }, {
127
- default: s(() => [
127
+ default: r(() => [
128
128
  I(" 配置 ")
129
129
  ]),
130
130
  _: 2
@@ -133,10 +133,10 @@ const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(
133
133
  _: 1
134
134
  }, 8, ["loading", "selection", "headers", "data"]),
135
135
  f(l(L), {
136
- visible: l(o).showConfigBtnDialog,
137
- "onUpdate:visible": t[1] || (t[1] = (e) => l(o).showConfigBtnDialog = e),
136
+ visible: l(a).showConfigBtnDialog,
137
+ "onUpdate:visible": t[1] || (t[1] = (e) => l(a).showConfigBtnDialog = e),
138
138
  title: "配置按钮",
139
- data: l(o).dialogData,
139
+ data: l(a).dialogData,
140
140
  onRefresh: S
141
141
  }, null, 8, ["visible", "data"])
142
142
  ]),
@@ -144,7 +144,7 @@ const $ = (r) => (j("data-v-7aea1297"), r = r(), z(), r), G = /* @__PURE__ */ $(
144
144
  });
145
145
  };
146
146
  }
147
- }, oe = /* @__PURE__ */ E(J, [["__scopeId", "data-v-7aea1297"]]);
147
+ }, oe = /* @__PURE__ */ E(J, [["__scopeId", "data-v-709fc688"]]);
148
148
  export {
149
149
  oe as default
150
150
  };
@@ -1,16 +1,16 @@
1
- import { defineAsyncComponent as I, inject as H, reactive as U, ref as j, watch as B, resolveComponent as m, openBlock as f, createBlock as w, withCtx as o, createElementVNode as C, createVNode as r, createTextVNode as i, unref as d, toDisplayString as _, createElementBlock as q, Fragment as K, renderList as O, createCommentVNode as W, pushScopeId as Y, popScopeId as G } from "vue";
1
+ import { defineAsyncComponent as I, inject as H, reactive as U, ref as j, watch as B, resolveComponent as m, openBlock as f, createBlock as w, withCtx as a, createElementVNode as C, createVNode as d, createTextVNode as i, unref as r, toDisplayString as _, createElementBlock as q, Fragment as K, renderList as O, createCommentVNode as W, pushScopeId as Y, popScopeId as G } from "vue";
2
2
  import { a as J } from "./enum-99519ce0.js";
3
- import { _ as M } from "./index-a1b4f8cb.js";
3
+ import { _ as M } from "./index-1f8ed34b.js";
4
4
  import "vue-router";
5
5
  import "element-plus";
6
- const Q = (u) => (Y("data-v-d50513ad"), u = u(), G(), u), X = { class: "card-header" }, Z = /* @__PURE__ */ Q(() => /* @__PURE__ */ C("div", { class: "card-header-title" }, "字段配置", -1)), ee = {
6
+ const Q = (u) => (Y("data-v-9d3ab8fb"), u = u(), G(), u), X = { class: "card-header" }, Z = /* @__PURE__ */ Q(() => /* @__PURE__ */ C("div", { class: "card-header-title" }, "字段配置", -1)), ee = {
7
7
  __name: "configFileds",
8
8
  props: {
9
9
  modelValue: { type: Object, default: () => [] }
10
10
  },
11
11
  emits: ["update:modelValue"],
12
12
  setup(u, { emit: v }) {
13
- const F = I(() => import("./dialogAddField-a0ed90e9.js")), g = v, h = u, V = H("configData")();
13
+ const F = I(() => import("./dialogAddField-b60d14ab.js")), b = v, g = u, V = H("configData")();
14
14
  let l = U((() => ({
15
15
  tableLoading: !1,
16
16
  showAddFieldDialog: !1,
@@ -30,13 +30,13 @@ const Q = (u) => (Y("data-v-d50513ad"), u = u(), G(), u), X = { class: "card-hea
30
30
  const S = (e) => {
31
31
  if (!Reflect.has(e, "fieldType"))
32
32
  return "";
33
- const a = J.find((n) => n.value == e.fieldType);
34
- return (a == null ? void 0 : a.key) || "";
33
+ const t = J.find((n) => n.value == e.fieldType);
34
+ return (t == null ? void 0 : t.key) || "";
35
35
  }, T = (e) => Reflect.has(e, "useScenes") ? [
36
36
  { btnName: "表格查询", permissionCode: "tableSearch" },
37
37
  { btnName: "表格展示", permissionCode: "tableShow" },
38
38
  ...V.value.buttons || []
39
- ].filter((n) => e.useScenes.includes(n.permissionCode)).map((n) => n.btnName) : [], y = (e) => (e.formCustomComponentes || []).filter((a) => a.isFiledCustom).map((a) => `${a.btnName}:是`).join(), k = (e, a) => {
39
+ ].filter((n) => e.useScenes.includes(n.permissionCode)).map((n) => n.btnName) : [], y = (e) => (e.formCustomComponentes || []).filter((t) => t.isFiledCustom).map((t) => `${t.btnName}:是`).join(), k = (e, t) => {
40
40
  if (p == null) {
41
41
  const n = s.value.length;
42
42
  s.value.push({ ...e, sort: (n + 1) * 10 });
@@ -47,17 +47,17 @@ const Q = (u) => (Y("data-v-d50513ad"), u = u(), G(), u), X = { class: "card-hea
47
47
  useScenes: [...e.useScenes],
48
48
  formCustomComponentes: [...e.formCustomComponentes]
49
49
  };
50
- g("update:modelValue", s.value), a(!0);
50
+ b("update:modelValue", s.value), t(!0);
51
51
  }, x = async () => {
52
52
  try {
53
- l.tableLoading = !0, s.value = (h.modelValue || []).map((e) => ({ ...e, sort: e.sort ? e.sort : 0 })), l.tableLoading = !1;
53
+ l.tableLoading = !0, s.value = (g.modelValue || []).map((e) => ({ ...e, sort: e.sort ? e.sort : 0 })).sort((e, t) => e.sort - t.sort), l.tableLoading = !1;
54
54
  } catch (e) {
55
55
  l.tableLoading = !1, console.error(e);
56
56
  }
57
57
  };
58
58
  B(
59
- () => h.modelValue,
60
- async (e, a) => {
59
+ () => g.modelValue,
60
+ async (e, t) => {
61
61
  await x();
62
62
  },
63
63
  { deep: !0, immediate: !0 }
@@ -67,110 +67,110 @@ const Q = (u) => (Y("data-v-d50513ad"), u = u(), G(), u), X = { class: "card-hea
67
67
  }, A = (e) => {
68
68
  p = e.$index, l.dialogData = e.row, l.showAddFieldDialog = !0;
69
69
  }, L = () => {
70
- g("update:modelValue", s.value);
70
+ b("update:modelValue", s.value);
71
71
  }, E = (e) => {
72
- s.value.splice(e.$index, 1), g("update:modelValue", s.value);
72
+ s.value.splice(e.$index, 1), b("update:modelValue", s.value);
73
73
  };
74
- return (e, a) => {
75
- const n = m("el-button"), b = m("el-tag"), P = m("el-input-number"), R = m("a-table"), $ = m("el-card");
74
+ return (e, t) => {
75
+ const n = m("el-button"), h = m("el-tag"), P = m("el-input-number"), R = m("a-table"), $ = m("el-card");
76
76
  return f(), w($, {
77
77
  class: "form-card",
78
78
  shadow: "hover"
79
79
  }, {
80
- header: o(() => [
80
+ header: a(() => [
81
81
  C("div", X, [
82
82
  Z,
83
- r(n, {
83
+ d(n, {
84
84
  class: "card-header-operate",
85
85
  type: "primary",
86
86
  icon: "Plus",
87
- onClick: a[0] || (a[0] = (t) => N())
87
+ onClick: t[0] || (t[0] = (o) => N())
88
88
  }, {
89
- default: o(() => [
89
+ default: a(() => [
90
90
  i("添加字段")
91
91
  ]),
92
92
  _: 1
93
93
  })
94
94
  ])
95
95
  ]),
96
- default: o(() => [
97
- r(R, {
98
- loading: d(l).tableLoading,
99
- headers: d(D),
100
- data: d(s),
96
+ default: a(() => [
97
+ d(R, {
98
+ loading: r(l).tableLoading,
99
+ headers: r(D),
100
+ data: r(s),
101
101
  showPagination: !1
102
102
  }, {
103
- fieldType: o(({ scope: t }) => [
104
- i(_(S(t.row)), 1)
103
+ fieldType: a(({ scope: o }) => [
104
+ i(_(S(o.row)), 1)
105
105
  ]),
106
- useScenes: o(({ scope: t }) => [
107
- (f(!0), q(K, null, O(T(t.row), (c, z) => (f(), w(b, {
106
+ useScenes: a(({ scope: o }) => [
107
+ (f(!0), q(K, null, O(T(o.row), (c, z) => (f(), w(h, {
108
108
  style: { margin: "0 4px" },
109
109
  key: z,
110
110
  type: "success",
111
111
  effect: "dark",
112
112
  size: "small"
113
113
  }, {
114
- default: o(() => [
114
+ default: a(() => [
115
115
  i(_(c), 1)
116
116
  ]),
117
117
  _: 2
118
118
  }, 1024))), 128))
119
119
  ]),
120
- customTableHeaderName: o(({ scope: t }) => [
121
- r(b, {
120
+ customTableHeaderName: a(({ scope: o }) => [
121
+ d(h, {
122
122
  type: "primary",
123
123
  effect: "dark",
124
124
  size: "small"
125
125
  }, {
126
- default: o(() => [
127
- i(_(t.row.customTableHeaderName ? "是" : "否"), 1)
126
+ default: a(() => [
127
+ i(_(o.row.customTableHeaderName ? "是" : "否"), 1)
128
128
  ]),
129
129
  _: 2
130
130
  }, 1024)
131
131
  ]),
132
- formCustomComponentes: o(({ scope: t }) => [
133
- y(t.row) ? (f(), w(b, {
132
+ formCustomComponentes: a(({ scope: o }) => [
133
+ y(o.row) ? (f(), w(h, {
134
134
  key: 0,
135
135
  type: "primary",
136
136
  effect: "dark",
137
137
  size: "small"
138
138
  }, {
139
- default: o(() => [
140
- i(_(y(t.row)), 1)
139
+ default: a(() => [
140
+ i(_(y(o.row)), 1)
141
141
  ]),
142
142
  _: 2
143
143
  }, 1024)) : W("", !0)
144
144
  ]),
145
- sort: o(({ scope: t }) => [
146
- r(P, {
147
- modelValue: t.row.sort,
148
- "onUpdate:modelValue": (c) => t.row.sort = c,
145
+ sort: a(({ scope: o }) => [
146
+ d(P, {
147
+ modelValue: o.row.sort,
148
+ "onUpdate:modelValue": (c) => o.row.sort = c,
149
149
  min: 0,
150
150
  onChange: L
151
151
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
152
152
  ]),
153
- operate: o(({ scope: t }) => [
154
- r(n, {
153
+ operate: a(({ scope: o }) => [
154
+ d(n, {
155
155
  type: "primary",
156
156
  text: "",
157
157
  size: "small",
158
158
  icon: "EditPen",
159
- onClick: (c) => A(t)
159
+ onClick: (c) => A(o)
160
160
  }, {
161
- default: o(() => [
161
+ default: a(() => [
162
162
  i(" 编辑 ")
163
163
  ]),
164
164
  _: 2
165
165
  }, 1032, ["onClick"]),
166
- r(n, {
166
+ d(n, {
167
167
  type: "danger",
168
168
  text: "",
169
169
  size: "small",
170
170
  icon: "Delete",
171
- onClick: (c) => E(t)
171
+ onClick: (c) => E(o)
172
172
  }, {
173
- default: o(() => [
173
+ default: a(() => [
174
174
  i(" 删除 ")
175
175
  ]),
176
176
  _: 2
@@ -178,12 +178,12 @@ const Q = (u) => (Y("data-v-d50513ad"), u = u(), G(), u), X = { class: "card-hea
178
178
  ]),
179
179
  _: 1
180
180
  }, 8, ["loading", "headers", "data"]),
181
- r(d(F), {
182
- visible: d(l).showAddFieldDialog,
183
- "onUpdate:visible": a[1] || (a[1] = (t) => d(l).showAddFieldDialog = t),
184
- title: d(l).dialogTitle,
185
- configData: h.data,
186
- data: d(l).dialogData,
181
+ d(r(F), {
182
+ visible: r(l).showAddFieldDialog,
183
+ "onUpdate:visible": t[1] || (t[1] = (o) => r(l).showAddFieldDialog = o),
184
+ title: r(l).dialogTitle,
185
+ configData: g.data,
186
+ data: r(l).dialogData,
187
187
  onRefresh: k
188
188
  }, null, 8, ["visible", "title", "configData", "data"])
189
189
  ]),
@@ -191,7 +191,7 @@ const Q = (u) => (Y("data-v-d50513ad"), u = u(), G(), u), X = { class: "card-hea
191
191
  });
192
192
  };
193
193
  }
194
- }, de = /* @__PURE__ */ M(ee, [["__scopeId", "data-v-d50513ad"]]);
194
+ }, re = /* @__PURE__ */ M(ee, [["__scopeId", "data-v-9d3ab8fb"]]);
195
195
  export {
196
- de as default
196
+ re as default
197
197
  };
@@ -1,6 +1,6 @@
1
1
  import { inject as B, ref as T, watch as j, resolveComponent as m, openBlock as i, createBlock as _, withCtx as l, createVNode as e, unref as o, createTextVNode as E, createElementBlock as y, Fragment as U, renderList as h, createCommentVNode as v } from "vue";
2
2
  import { S as I } from "./enum-99519ce0.js";
3
- import { _ as M } from "./index-a1b4f8cb.js";
3
+ import { _ as M } from "./index-1f8ed34b.js";
4
4
  import "vue-router";
5
5
  import "element-plus";
6
6
  const A = {
@@ -1,6 +1,6 @@
1
1
  import { inject as E, reactive as ne, ref as D, watch as re, resolveComponent as V, openBlock as n, createBlock as i, withCtx as a, createElementVNode as H, createVNode as l, unref as o, createTextVNode as U, createElementBlock as c, Fragment as _, renderList as g, createCommentVNode as T, toDisplayString as se } from "vue";
2
2
  import { a as ie, j as me, P as pe, k as A, T as fe, A as be, C as ce, U as _e } from "./enum-99519ce0.js";
3
- import { _ as Ve } from "./index-a1b4f8cb.js";
3
+ import { _ as Ve } from "./index-1f8ed34b.js";
4
4
  import "vue-router";
5
5
  import "element-plus";
6
6
  const ge = { slot: "prepend" }, Ce = { class: "dialog-footer" }, ye = {
@@ -141,7 +141,7 @@ const ge = { slot: "prepend" }, Ce = { class: "dialog-footer" }, ye = {
141
141
  default: a(() => [
142
142
  l(ue, {
143
143
  ref: "configFieldsScroll",
144
- "max-height": "600px"
144
+ "max-height": "800px"
145
145
  }, {
146
146
  default: a(() => [
147
147
  l(oe, {
@@ -909,7 +909,7 @@ const ge = { slot: "prepend" }, Ce = { class: "dialog-footer" }, ye = {
909
909
  }, 8, ["model-value", "title"]);
910
910
  };
911
911
  }
912
- }, qe = /* @__PURE__ */ Ve(ye, [["__scopeId", "data-v-4134748b"]]);
912
+ }, qe = /* @__PURE__ */ Ve(ye, [["__scopeId", "data-v-7c269645"]]);
913
913
  export {
914
914
  qe as default
915
915
  };