act-plus 1.1.69 → 1.1.71

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,6 +1,6 @@
1
1
  import { ref as U, computed as oe, resolveComponent as w, resolveDirective as ne, openBlock as h, createElementBlock as N, withDirectives as ae, createBlock as C, mergeProps as ie, unref as p, withCtx as D, renderSlot as L, createElementVNode as x, toDisplayString as I, createCommentVNode as z, createVNode as $, createTextVNode as se, Fragment as ce, renderList as re, normalizeClass as ue, nextTick as pe } from "vue";
2
2
  import { ElNotification as M } from "element-plus";
3
- import { _ as de, u as me, z as fe, n as ge, o as _e, p as ye } from "./index-7e0022be.js";
3
+ import { _ as de, u as me, z as fe, o as ge, p as _e, q as ye } from "./index-5fa7a339.js";
4
4
  import "vue-router";
5
5
  let S;
6
6
  const he = new Uint8Array(16);
@@ -15,12 +15,12 @@ for (let l = 0; l < 256; ++l)
15
15
  function we(l, n = 0) {
16
16
  return a[l[n + 0]] + a[l[n + 1]] + a[l[n + 2]] + a[l[n + 3]] + "-" + a[l[n + 4]] + a[l[n + 5]] + "-" + a[l[n + 6]] + a[l[n + 7]] + "-" + a[l[n + 8]] + a[l[n + 9]] + "-" + a[l[n + 10]] + a[l[n + 11]] + a[l[n + 12]] + a[l[n + 13]] + a[l[n + 14]] + a[l[n + 15]];
17
17
  }
18
- const xe = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), B = {
18
+ const xe = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), q = {
19
19
  randomUUID: xe
20
20
  };
21
21
  function Fe(l, n, F) {
22
- if (B.randomUUID && !n && !l)
23
- return B.randomUUID();
22
+ if (q.randomUUID && !n && !l)
23
+ return q.randomUUID();
24
24
  l = l || {};
25
25
  const m = l.random || (l.rng || ve)();
26
26
  if (m[6] = m[6] & 15 | 64, m[8] = m[8] & 63 | 128, n) {
@@ -48,7 +48,7 @@ const Te = { class: "upload-container" }, ke = { class: "el-upload__text" }, $e
48
48
  },
49
49
  emits: ["update:modelValue", "delete"],
50
50
  setup(l, { expose: n, emit: F }) {
51
- const { getAssetsFileName: m, getAssetsFilePath: v, downloadFile: O } = ye(), { t: g } = me(), b = F, s = l, R = {
51
+ const { getAssetsFileName: m, getAssetsFilePath: v, downloadFile: B } = ye(), { t: g } = me(), b = F, s = l, R = {
52
52
  image: /(gif|jpg|jpeg|png|pdf|bmp|webp|GIF|JPG|PDF|PNG|JPEG)$/,
53
53
  word: /(doc|docx)$/,
54
54
  pdf: /(pdf)$/,
@@ -62,7 +62,7 @@ const Te = { class: "upload-container" }, ke = { class: "el-upload__text" }, $e
62
62
  b("update:modelValue", e);
63
63
  }
64
64
  });
65
- const q = (e) => {
65
+ const O = (e) => {
66
66
  const t = (y.value || []).map((r) => r.filePath);
67
67
  if (e == 0)
68
68
  return t;
@@ -135,7 +135,7 @@ const Te = { class: "upload-container" }, ke = { class: "el-upload__text" }, $e
135
135
  document.querySelector(`.previewImage_${o}`).children[0].click();
136
136
  });
137
137
  }, ee = ({ filePath: e, name: t }) => {
138
- O(s.request, e);
138
+ B(s.request, e);
139
139
  }, te = (e, t) => {
140
140
  y.value = y.value.filter((o, i) => i !== t), b("delete", { data: e });
141
141
  };
@@ -188,7 +188,7 @@ const Te = { class: "upload-container" }, ke = { class: "el-upload__text" }, $e
188
188
  key: 0,
189
189
  class: ue(["file-list-image", { [`previewImage_${u.uid}`]: !0 }]),
190
190
  fit: "cover",
191
- "preview-src-list": q(k),
191
+ "preview-src-list": O(k),
192
192
  "preview-teleported": "",
193
193
  src: u.filePath
194
194
  }, null, 8, ["class", "preview-src-list", "src"])) : (h(), C(d, {
@@ -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-7e0022be.js";
2
+ import { _ as k, u as w } from "./index-5fa7a339.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
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-7e0022be.js";
2
+ import { _ as Xd, u as Ld } from "./index-5fa7a339.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  let Mr = [], tf = [];
@@ -1,5 +1,5 @@
1
1
  import { defineAsyncComponent as O, inject as K, ref as N, watch as Te, resolveComponent as _, resolveDirective as le, openBlock as u, createBlock as y, withCtx as D, createElementVNode as ae, createVNode as te, createTextVNode as J, toDisplayString as A, unref as r, withDirectives as oe, createElementBlock as k, Fragment as q, renderList as Q, mergeProps as F, createCommentVNode as se, resolveDynamicComponent as De, toRaw as Ke } from "vue";
2
- import { _ as we, u as Ne, P as Pe, a as Ue, b as ke } from "./index-7e0022be.js";
2
+ import { _ as we, u as Ne, P as Pe, a as Ue, b as ke } from "./index-5fa7a339.js";
3
3
  import { ElNotification as Se } from "element-plus";
4
4
  import "vue-router";
5
5
  const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
@@ -11,7 +11,7 @@ const Le = { class: "no-config-field" }, Re = { class: "dialog-footer" }, $e = {
11
11
  },
12
12
  emits: ["update:visible", "refresh"],
13
13
  setup(P, { emit: ie }) {
14
- const re = O(() => import("./index-e2f2023d.js")), de = O(() => import("./index-ddd16ee1.js")), ne = O(() => import("./index-29b2d73c.js")), ue = O(() => import("./index-7a420913.js")), { t: b } = Ne(), M = K("request"), ce = K("loadComponents"), w = K("formatDataType"), x = K("globalProps"), fe = K("stringToBoolean"), h = K("getFieldUiProps"), pe = K("disposeRequestData"), X = ie, f = P, S = N(!1), L = N(!1), E = N(null), R = N([]), t = N({}), j = N({}), me = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, ye = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), be = async ({ node: l, resolve: p }, a) => {
14
+ const re = O(() => import("./index-e2f2023d.js")), de = O(() => import("./index-f1e46dab.js")), ne = O(() => import("./index-75524990.js")), ue = O(() => import("./index-7a420913.js")), { t: b } = Ne(), M = K("request"), ce = K("loadComponents"), w = K("formatDataType"), x = K("globalProps"), fe = K("stringToBoolean"), h = K("getFieldUiProps"), pe = K("disposeRequestData"), X = ie, f = P, S = N(!1), L = N(!1), E = N(null), R = N([]), t = N({}), j = N({}), me = (l) => l.formColumnCol == null ? 24 : l.formColumnCol ? l.formColumnCol : 24 / l.formRow, ye = (l) => ["input", "textarea"].includes(l.fieldType) ? "blur" : (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(l.fieldType), "change"), be = async ({ node: l, resolve: p }, a) => {
15
15
  const i = h(a), { label: m, value: n, children: g, isLeaf: o } = { ...ke, ...i.treeProps || {} };
16
16
  if (l[o])
17
17
  return p([]);
@@ -0,0 +1,214 @@
1
+ import { ref as J, inject as b, computed as K, watch as Q, resolveComponent as m, resolveDirective as U, openBlock as t, createElementBlock as g, Fragment as C, renderList as I, createBlock as r, resolveDynamicComponent as F, unref as c, withCtx as s, withDirectives as B, createCommentVNode as p, createTextVNode as h, toDisplayString as N, createVNode as $ } from "vue";
2
+ import { _ as W, u as X, c as Y } from "./index-5fa7a339.js";
3
+ import "vue-router";
4
+ import "element-plus";
5
+ const Z = { class: "header-operate-container" }, ee = {
6
+ __name: "index",
7
+ props: {
8
+ data: { type: Object, default: () => ({}) }
9
+ },
10
+ emits: ["onOperate"],
11
+ setup(M, { emit: P }) {
12
+ const A = P, y = M, { t: w } = X();
13
+ let f = J([]);
14
+ const O = b("globalProps"), R = b("menuPermissionBtns"), j = b("stringToBoolean"), q = b("matchCondition"), D = b("getTableData"), T = b("tableBtnRefs"), v = K(() => {
15
+ const {
16
+ tableConfig: { headerMoreBtnSplitNumber: o }
17
+ } = y.data;
18
+ return !o || o >= f.value.length;
19
+ }), E = () => {
20
+ const {
21
+ tableConfig: { headerMoreBtnSplitNumber: o }
22
+ } = y.data;
23
+ return v.value ? f.value : f.value.slice(0, o);
24
+ }, H = () => {
25
+ var n;
26
+ const {
27
+ tableConfig: { headerMoreBtnSplitNumber: o }
28
+ } = y.data;
29
+ return v.value ? [] : f.value.slice(o, (n = f.value) == null ? void 0 : n.length);
30
+ }, L = (o) => {
31
+ if (!o.matchFields.length)
32
+ return !0;
33
+ const n = o.matchFields.filter((a) => a.matchType != "default"), d = (a) => O.matchData[a.matchType][a.matchFieldName];
34
+ let k = n.reduce((a, l, u) => {
35
+ const e = d(l);
36
+ return a += q(
37
+ l.matchCondition,
38
+ e,
39
+ l.fieldValue == "" ? null : l.fieldValue == "true" || l.fieldValue == "false" ? j(l.fieldValue) : l.fieldValue
40
+ ), u !== n.length - 1 && (a += l.spliceCondition || "&&"), a;
41
+ }, "").split("||"), x = k.reduce((a, l, u) => (a += `(${l})`, u < k.length - 1 && (a += "||"), a), "");
42
+ return new Function(`return ${x}`)();
43
+ }, V = (o) => R.value.some((n) => n.unique == o.permissionCode) && L(o), z = (o) => {
44
+ f.value = (o || []).filter((n) => n.permissionCode !== 1001 && n.btnPostion.includes("header")).sort((n, d) => n.sort - d.sort).map((n) => (n.btnAlias && (n.btnName = n.btnAlias), n));
45
+ };
46
+ Q(
47
+ () => y.data,
48
+ (o, n) => {
49
+ z(o.buttons);
50
+ },
51
+ { immediate: !0 }
52
+ );
53
+ const S = (o) => {
54
+ A("onOperate", o, {});
55
+ };
56
+ return (o, n) => {
57
+ const d = m("a-svg-icon"), _ = m("el-button"), k = m("el-icon"), x = m("el-dropdown-item"), a = m("el-dropdown-menu"), l = m("el-dropdown"), u = U("debounce");
58
+ return t(), g("div", Z, [
59
+ (t(!0), g(C, null, I(E(), (e, G) => (t(), g(C, {
60
+ key: e.permissionCode
61
+ }, [
62
+ V(e) ? (t(), g(C, { key: 0 }, [
63
+ e.isCustomBtn && e.customType == "component" ? (t(), r(F(e[e.customComponentName]), {
64
+ key: 0,
65
+ class: "custom-btn",
66
+ ref_for: !0,
67
+ ref: (i) => c(T)[`${e.customComponentName}-${e.permissionCode}`] = i,
68
+ buttonData: e,
69
+ onRefresh: n[0] || (n[0] = (i) => c(D)())
70
+ }, {
71
+ default: s(() => [
72
+ B((t(), r(_, {
73
+ class: "el-btn",
74
+ type: e.btnColor,
75
+ loading: e[`loading${e.permissionCode}`],
76
+ onClick: (i) => S(e)
77
+ }, {
78
+ default: s(() => [
79
+ e.btnIcon ? (t(), r(d, {
80
+ key: 0,
81
+ class: "mr4",
82
+ name: e.btnIcon,
83
+ width: "12",
84
+ height: "12",
85
+ color: "#fff"
86
+ }, null, 8, ["name"])) : p("", !0),
87
+ h(" " + N(e[`loading${e.permissionCode}`] ? e.btnName + c(w)("act.loading") + "..." : e.btnName), 1)
88
+ ]),
89
+ _: 2
90
+ }, 1032, ["type", "loading", "onClick"])), [
91
+ [u]
92
+ ])
93
+ ]),
94
+ _: 2
95
+ }, 1064, ["buttonData"])) : B((t(), r(_, {
96
+ key: 1,
97
+ class: "el-btn",
98
+ type: e.btnColor,
99
+ loading: e[`loading${e.permissionCode}`],
100
+ onClick: (i) => S(e)
101
+ }, {
102
+ default: s(() => [
103
+ e.btnIcon ? (t(), r(d, {
104
+ key: 0,
105
+ class: "mr4",
106
+ name: e.btnIcon,
107
+ width: "12",
108
+ height: "12",
109
+ color: "#fff"
110
+ }, null, 8, ["name"])) : p("", !0),
111
+ h(" " + N(e[`loading${e.permissionCode}`] ? e.btnName + c(w)("act.loading") + "..." : e.btnName), 1)
112
+ ]),
113
+ _: 2
114
+ }, 1032, ["type", "loading", "onClick"])), [
115
+ [u]
116
+ ])
117
+ ], 64)) : p("", !0)
118
+ ], 64))), 128)),
119
+ v.value ? p("", !0) : (t(), r(l, {
120
+ key: 0,
121
+ class: "header-opreate-dropdown"
122
+ }, {
123
+ dropdown: s(() => [
124
+ $(a, null, {
125
+ default: s(() => [
126
+ (t(!0), g(C, null, I(H(), (e, G) => (t(), r(x, {
127
+ key: e.permissionCode,
128
+ onClick: (i) => S(e)
129
+ }, {
130
+ default: s(() => [
131
+ V(e) ? (t(), g(C, { key: 0 }, [
132
+ e.isCustomBtn && e.customType == "component" ? (t(), r(F(e[e.customComponentName]), {
133
+ key: 0,
134
+ class: "custom-btn",
135
+ ref_for: !0,
136
+ ref: (i) => c(T)[`${e.customComponentName}-${e.permissionCode}`] = i,
137
+ buttonData: e,
138
+ onRefresh: n[1] || (n[1] = (i) => c(D)())
139
+ }, {
140
+ default: s(() => [
141
+ B((t(), r(_, {
142
+ class: "el-btn",
143
+ type: e.btnColor,
144
+ loading: e[`loading${e.permissionCode}`]
145
+ }, {
146
+ default: s(() => [
147
+ e.btnIcon ? (t(), r(d, {
148
+ key: 0,
149
+ class: "mr4",
150
+ name: e.btnIcon,
151
+ width: "12",
152
+ height: "12",
153
+ color: "#fff"
154
+ }, null, 8, ["name"])) : p("", !0),
155
+ h(" " + N(e[`loading${e.permissionCode}`] ? e.btnName + c(w)("act.loading") + "..." : e.btnName), 1)
156
+ ]),
157
+ _: 2
158
+ }, 1032, ["type", "loading"])), [
159
+ [u]
160
+ ])
161
+ ]),
162
+ _: 2
163
+ }, 1064, ["buttonData"])) : B((t(), r(_, {
164
+ key: 1,
165
+ class: "el-btn",
166
+ type: e.btnColor,
167
+ loading: e[`loading${e.permissionCode}`]
168
+ }, {
169
+ default: s(() => [
170
+ e.btnIcon ? (t(), r(d, {
171
+ key: 0,
172
+ class: "mr4",
173
+ name: e.btnIcon,
174
+ width: "12",
175
+ height: "12",
176
+ color: "#fff"
177
+ }, null, 8, ["name"])) : p("", !0),
178
+ h(" " + N(e[`loading${e.permissionCode}`] ? e.btnName + c(w)("act.loading") + "..." : e.btnName), 1)
179
+ ]),
180
+ _: 2
181
+ }, 1032, ["type", "loading"])), [
182
+ [u]
183
+ ])
184
+ ], 64)) : p("", !0)
185
+ ]),
186
+ _: 2
187
+ }, 1032, ["onClick"]))), 128))
188
+ ]),
189
+ _: 1
190
+ })
191
+ ]),
192
+ default: s(() => [
193
+ $(_, { type: "primary" }, {
194
+ default: s(() => [
195
+ n[2] || (n[2] = h(" 更多按钮")),
196
+ $(k, { class: "el-icon--right" }, {
197
+ default: s(() => [
198
+ $(c(Y))
199
+ ]),
200
+ _: 1
201
+ })
202
+ ]),
203
+ _: 1
204
+ })
205
+ ]),
206
+ _: 1
207
+ }))
208
+ ]);
209
+ };
210
+ }
211
+ }, le = /* @__PURE__ */ W(ee, [["__scopeId", "data-v-3e4c82f8"]]);
212
+ export {
213
+ le as default
214
+ };
@@ -1,5 +1,5 @@
1
1
  import { ref as p, watch as h, resolveComponent as _, openBlock as r, createElementBlock as m, createVNode as v, unref as u, isRef as w, withCtx as f, createElementVNode as g, createBlock as C, createCommentVNode as N, createTextVNode as $, Fragment as B, renderList as E, normalizeClass as L } from "vue";
2
- import { _ as P } from "./index-7e0022be.js";
2
+ import { _ as P } from "./index-5fa7a339.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  const R = { class: "select-icon-container" }, S = { class: "icon-list" }, j = ["onClick"], z = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "act-plus",
3
- "version": "1.1.69",
3
+ "version": "1.1.71",
4
4
  "private": false,
5
5
  "description": "act config",
6
6
  "main": "act-plus.js",
package/style.css CHANGED
@@ -1 +1 @@
1
- .form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 12px}.el-card__body{height:100%;box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}.month-range .el-date-range-picker{width:320px}.month-range .el-date-range-picker .el-picker-panel__body{min-width:320px}.month-range .is-left{width:100%}.month-range .el-date-range-picker__header,.month-range .is-right{display:none}.table-link{cursor:pointer;color:#409eff;text-decoration:underline}.a-loading[data-v-048c6c03]{display:flex;align-items:center;justify-content:center;width:100%;height:50px;font-size:32px}.a-loading .dot[data-v-048c6c03]{animation:antRotate-048c6c03 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box}.a-loading .dot i[data-v-048c6c03]{width:12px;height:12px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove-048c6c03 1s infinite linear alternate}.a-loading .dot i[data-v-048c6c03]:nth-child(1){top:0;left:0}.a-loading .dot i[data-v-048c6c03]:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.a-loading .dot i[data-v-048c6c03]:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.a-loading .dot i[data-v-048c6c03]:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove-048c6c03{to{opacity:1}}@-webkit-keyframes antSpinMove-048c6c03{to{opacity:1}}[data-v-5267d6bd] .el-empty__image{width:100%}.file-image[data-v-5267d6bd]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-5267d6bd]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.act-module[data-v-5267d6bd]{padding:0;margin:0;border:none}.table-opreate-dropdown[data-v-5267d6bd]{margin:4px 0 0 8px}.table-btn-more[data-v-5267d6bd]{width:16px;height:16px}.table-btn-more[data-v-5267d6bd]:hover{cursor:pointer;opacity:.8}.add-icon-btn[data-v-e0718fb3]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-e0718fb3]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-e0718fb3]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-e0718fb3]{cursor:pointer;width:12px;height:12px}.card-header[data-v-b9c8f90c]{display:flex;align-items:center}.card-header -operate[data-v-b9c8f90c]{margin-left:auto}.form-list[data-v-b9c8f90c]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-b9c8f90c]:last-child{border:none}.config-list-operate[data-v-b9c8f90c]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-75e750d2]{display:flex;align-items:center}.card-header-operate[data-v-75e750d2]{margin-left:auto}.form-list[data-v-75e750d2]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-75e750d2]:last-child{border:none}.config-list-operate[data-v-75e750d2]{display:flex;align-items:center;justify-content:flex-end}[data-v-75e750d2] .el-badge__content.is-fixed{transform:translateY(-50%) translate(100%) scale(.7)}.submit-operate[data-v-8fa48448]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-8fa48448]{cursor:pointer;width:20px;height:20px}.page-container[data-v-8dfa8a8a]{position:relative}.page-container .header-operate[data-v-8dfa8a8a]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-8dfa8a8a]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-8dfa8a8a]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-8dfa8a8a]{width:360px;margin:0 24px}.search-module-container[data-v-c49a11b4] .el-form-item{margin-bottom:8px}.search-module-container[data-v-c49a11b4] .el-select__selection{flex-wrap:nowrap;width:200px}.search-module-container .form-content[data-v-c49a11b4]{display:grid;grid-template-columns:repeat(var(--table-query-row),1fr);gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-c49a11b4]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row);grid-column-end:var(--table-query-row)}.search-module-container .expand[data-v-c49a11b4]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-6477fb97]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-6477fb97]{margin:2px}.act-table .table-pagination[data-v-d2da0301]{padding:12px 4px;justify-content:flex-end}.no-config[data-v-c6e7e23b]{line-height:32px;font-weight:700}.no-config-field[data-v-c6e7e23b]{color:red}.card-header[data-v-be1c5be6]{display:flex;align-items:center}.card-header-operate[data-v-be1c5be6]{margin-left:auto}.add-icon-btn[data-v-c38b8a42]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-c38b8a42]{display:flex;justify-content:center}.condition-box[data-v-c38b8a42] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-c38b8a42]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-c38b8a42]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-6b2ebaa8]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-6b2ebaa8]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-6b2ebaa8]{cursor:pointer;width:20px;height:20px}.select-icon-popover .icon-list{display:grid;grid-template-columns:repeat(8,1fr)}.select-icon-popover .icon-list .icon-item{display:flex;align-items:center;justify-content:center;margin:4px 0;border:1px solid transparent}.select-icon-popover .icon-list .icon-item .icon-svg{cursor:pointer}.select-icon-popover .icon-list .icon-item-checked{border:1px solid #000}.select-icon-container .icon-value[data-v-308d02d4]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-308d02d4]{margin-left:12px}.upload-container[data-v-f839bee6]{width:100%}.upload-container[data-v-f839bee6] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-f839bee6] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-f839bee6]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-f839bee6]{display:flex;align-items:center;justify-content:space-between;margin:6px 0;padding:6px 12px;font-size:14px;border-radius:4px;border:1px solid #dcdfe6}.upload-container .file-list[data-v-f839bee6]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-f839bee6]{text-decoration:underline}.upload-container .file-list-l[data-v-f839bee6]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-f839bee6]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-f839bee6]{display:flex;justify-content:flex-end;flex-shrink:0;min-width:82px;margin-left:auto}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]:hover{opacity:.8}.tox-tinymce-aux{z-index:99999!important}.tinymce.ui.FloatPanel{z-index:99}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#a8abb2}.act-code-mirror[data-v-451d513f]{width:100%}.act-code-mirror .format-code-btn[data-v-451d513f]{margin-bottom:4px}
1
+ .form-card .el-card__header{font-size:16px;font-weight:700}.rotate180{transform:rotate(180deg)}.cp{cursor:pointer}.cp:hover{opacity:.8}.ml12{margin-left:12px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt24{margin-top:24px}.ml6{margin-left:6px!important}.ml4{margin-left:4px!important}.mr6{margin-right:6px}.mr2{margin-right:2px}.mr4{margin-right:4px}.el-table{font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 12px}.el-card__body{height:100%;box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}.month-range .el-date-range-picker{width:320px}.month-range .el-date-range-picker .el-picker-panel__body{min-width:320px}.month-range .is-left{width:100%}.month-range .el-date-range-picker__header,.month-range .is-right{display:none}.table-link{cursor:pointer;color:#409eff;text-decoration:underline}.a-loading[data-v-048c6c03]{display:flex;align-items:center;justify-content:center;width:100%;height:50px;font-size:32px}.a-loading .dot[data-v-048c6c03]{animation:antRotate-048c6c03 1.2s infinite linear;transform:rotate(45deg);position:relative;display:inline-block;width:28px;height:28px;box-sizing:border-box}.a-loading .dot i[data-v-048c6c03]{width:12px;height:12px;position:absolute;display:block;background-color:#1890ff;border-radius:100%;transform:scale(.75);transform-origin:50% 50%;opacity:.3;animation:antSpinMove-048c6c03 1s infinite linear alternate}.a-loading .dot i[data-v-048c6c03]:nth-child(1){top:0;left:0}.a-loading .dot i[data-v-048c6c03]:nth-child(2){top:0;right:0;-webkit-animation-delay:.4s;animation-delay:.4s}.a-loading .dot i[data-v-048c6c03]:nth-child(3){right:0;bottom:0;-webkit-animation-delay:.8s;animation-delay:.8s}.a-loading .dot i[data-v-048c6c03]:nth-child(4){bottom:0;left:0;-webkit-animation-delay:1.2s;animation-delay:1.2s}@keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@-webkit-keyframes antRotate-048c6c03{to{-webkit-transform:rotate(405deg);transform:rotate(405deg)}}@keyframes antSpinMove-048c6c03{to{opacity:1}}@-webkit-keyframes antSpinMove-048c6c03{to{opacity:1}}[data-v-c9648108] .el-empty__image{width:100%}.file-image[data-v-c9648108]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-c9648108]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.act-module[data-v-c9648108]{padding:0;margin:0;border:none}.table-opreate-dropdown[data-v-c9648108]{margin:4px 0 0 8px}.table-btn-more[data-v-c9648108]{width:16px;height:16px}.table-btn-more[data-v-c9648108]:hover{cursor:pointer;opacity:.8}.add-icon-btn[data-v-fa895b16]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-fa895b16]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-fa895b16]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-fa895b16]{cursor:pointer;width:12px;height:12px}.card-header[data-v-d6333936]{display:flex;align-items:center}.card-header -operate[data-v-d6333936]{margin-left:auto}.form-list[data-v-d6333936]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-d6333936]:last-child{border:none}.config-list-operate[data-v-d6333936]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-75e750d2]{display:flex;align-items:center}.card-header-operate[data-v-75e750d2]{margin-left:auto}.form-list[data-v-75e750d2]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-75e750d2]:last-child{border:none}.config-list-operate[data-v-75e750d2]{display:flex;align-items:center;justify-content:flex-end}[data-v-75e750d2] .el-badge__content.is-fixed{transform:translateY(-50%) translate(100%) scale(.7)}.submit-operate[data-v-8fa48448]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-8fa48448]{cursor:pointer;width:20px;height:20px}.page-container[data-v-8dfa8a8a]{position:relative}.page-container .header-operate[data-v-8dfa8a8a]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-8dfa8a8a]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-8dfa8a8a]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-8dfa8a8a]{width:360px;margin:0 24px}.search-module-container[data-v-c49a11b4] .el-form-item{margin-bottom:8px}.search-module-container[data-v-c49a11b4] .el-select__selection{flex-wrap:nowrap;width:200px}.search-module-container .form-content[data-v-c49a11b4]{display:grid;grid-template-columns:repeat(var(--table-query-row),1fr);gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-c49a11b4]{justify-self:end;align-self:start;grid-column-start:var(--table-query-row);grid-column-end:var(--table-query-row)}.search-module-container .expand[data-v-c49a11b4]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-3e4c82f8]{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap}.header-operate-container .el-btn[data-v-3e4c82f8]{margin:2px}.header-operate-container .header-opreate-dropdown[data-v-3e4c82f8]{margin:4px 0 0 8px}.header-operate-container .header-btn-more[data-v-3e4c82f8]{width:16px;height:16px}.header-operate-container .header-btn-more[data-v-3e4c82f8]:hover{cursor:pointer;opacity:.8}.act-table .table-pagination[data-v-d2da0301]{padding:12px 4px;justify-content:flex-end}.no-config[data-v-c6e7e23b]{line-height:32px;font-weight:700}.no-config-field[data-v-c6e7e23b]{color:red}.card-header[data-v-be1c5be6]{display:flex;align-items:center}.card-header-operate[data-v-be1c5be6]{margin-left:auto}.add-icon-btn[data-v-39e8ce6e]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-39e8ce6e]{display:flex;justify-content:center}.condition-box[data-v-39e8ce6e] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-39e8ce6e]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-39e8ce6e]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-6b2ebaa8]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-6b2ebaa8]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-6b2ebaa8]{cursor:pointer;width:20px;height:20px}.select-icon-popover .icon-list{display:grid;grid-template-columns:repeat(8,1fr)}.select-icon-popover .icon-list .icon-item{display:flex;align-items:center;justify-content:center;margin:4px 0;border:1px solid transparent}.select-icon-popover .icon-list .icon-item .icon-svg{cursor:pointer}.select-icon-popover .icon-list .icon-item-checked{border:1px solid #000}.select-icon-container .icon-value[data-v-308d02d4]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-308d02d4]{margin-left:12px}.upload-container[data-v-f839bee6]{width:100%}.upload-container[data-v-f839bee6] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-f839bee6] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-f839bee6]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-f839bee6]{display:flex;align-items:center;justify-content:space-between;margin:6px 0;padding:6px 12px;font-size:14px;border-radius:4px;border:1px solid #dcdfe6}.upload-container .file-list[data-v-f839bee6]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-f839bee6]{text-decoration:underline}.upload-container .file-list-l[data-v-f839bee6]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-f839bee6]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-f839bee6]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-f839bee6]{display:flex;justify-content:flex-end;flex-shrink:0;min-width:82px;margin-left:auto}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-f839bee6]:hover{opacity:.8}.tox-tinymce-aux{z-index:99999!important}.tinymce.ui.FloatPanel{z-index:99}.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks):before{color:#a8abb2}.act-code-mirror[data-v-451d513f]{width:100%}.act-code-mirror .format-code-btn[data-v-451d513f]{margin-bottom:4px}
@@ -1,106 +0,0 @@
1
- import { ref as R, inject as l, watch as j, resolveComponent as y, resolveDirective as q, openBlock as r, createElementBlock as u, Fragment as f, renderList as E, unref as d, createBlock as i, resolveDynamicComponent as H, withCtx as b, withDirectives as C, createCommentVNode as _, createTextVNode as k, toDisplayString as B } from "vue";
2
- import { _ as M, u as z } from "./index-7e0022be.js";
3
- import "vue-router";
4
- import "element-plus";
5
- const G = { class: "header-operate-container" }, J = {
6
- __name: "index",
7
- props: {
8
- data: { type: Object, default: () => ({}) }
9
- },
10
- emits: ["onOperate"],
11
- setup(w, { emit: x }) {
12
- const N = x, T = w, { t: D } = z();
13
- let h = R([]);
14
- const V = l("globalProps"), v = l("menuPermissionBtns"), F = l("stringToBoolean"), $ = l("matchCondition"), S = l("getTableData"), P = l("tableBtnRefs"), A = (s) => {
15
- if (!s.matchFields.length)
16
- return !0;
17
- const t = s.matchFields.filter((o) => o.matchType != "default"), a = (o) => V.matchData[o.matchType][o.matchFieldName];
18
- let c = t.reduce((o, n, m) => {
19
- const L = a(n);
20
- return o += $(
21
- n.matchCondition,
22
- L,
23
- n.fieldValue == "" ? null : n.fieldValue == "true" || n.fieldValue == "false" ? F(n.fieldValue) : n.fieldValue
24
- ), m !== t.length - 1 && (o += n.spliceCondition || "&&"), o;
25
- }, "").split("||"), e = c.reduce((o, n, m) => (o += `(${n})`, m < c.length - 1 && (o += "||"), o), "");
26
- return new Function(`return ${e}`)();
27
- }, I = (s) => v.value.some((t) => t.unique == s.permissionCode) && A(s), O = (s) => {
28
- h.value = (s || []).filter((t) => t.permissionCode !== 1001 && t.btnPostion.includes("header")).sort((t, a) => t.sort - a.sort).map((t) => (t.btnAlias && (t.btnName = t.btnAlias), t));
29
- };
30
- j(
31
- () => T.data,
32
- (s, t) => {
33
- O(s.buttons);
34
- },
35
- { immediate: !0 }
36
- );
37
- const g = (s) => {
38
- N("onOperate", s, {});
39
- };
40
- return (s, t) => {
41
- const a = y("a-svg-icon"), p = y("el-button"), c = q("debounce");
42
- return r(), u("div", G, [
43
- (r(!0), u(f, null, E(d(h), (e, o) => (r(), u(f, { key: o }, [
44
- I(e) ? (r(), u(f, { key: 0 }, [
45
- e.isCustomBtn && e.customType == "component" ? (r(), i(H(e[e.customComponentName]), {
46
- key: 0,
47
- class: "custom-btn",
48
- ref_for: !0,
49
- ref: (n) => d(P)[`${e.customComponentName}-${e.permissionCode}`] = n,
50
- buttonData: e,
51
- onRefresh: t[0] || (t[0] = (n) => d(S)())
52
- }, {
53
- default: b(() => [
54
- C((r(), i(p, {
55
- class: "el-btn",
56
- type: e.btnColor,
57
- onClick: (n) => g(e)
58
- }, {
59
- default: b(() => [
60
- e.btnIcon ? (r(), i(a, {
61
- key: 0,
62
- class: "mr4",
63
- name: e.btnIcon,
64
- width: "12",
65
- height: "12",
66
- color: "#fff"
67
- }, null, 8, ["name"])) : _("", !0),
68
- k(" " + B(e.btnName), 1)
69
- ]),
70
- _: 2
71
- }, 1032, ["type", "onClick"])), [
72
- [c]
73
- ])
74
- ]),
75
- _: 2
76
- }, 1064, ["buttonData"])) : C((r(), i(p, {
77
- key: 1,
78
- class: "el-btn",
79
- type: e.btnColor,
80
- loading: e.opeateLoading,
81
- onClick: (n) => g(e)
82
- }, {
83
- default: b(() => [
84
- e.btnIcon ? (r(), i(a, {
85
- key: 0,
86
- class: "mr4",
87
- name: e.btnIcon,
88
- width: "12",
89
- height: "12",
90
- color: "#fff"
91
- }, null, 8, ["name"])) : _("", !0),
92
- k(" " + B(e.opeateLoading ? e.btnName + d(D)("act.loading") + "..." : e.btnName), 1)
93
- ]),
94
- _: 2
95
- }, 1032, ["type", "loading", "onClick"])), [
96
- [c]
97
- ])
98
- ], 64)) : _("", !0)
99
- ], 64))), 128))
100
- ]);
101
- };
102
- }
103
- }, X = /* @__PURE__ */ M(J, [["__scopeId", "data-v-6477fb97"]]);
104
- export {
105
- X as default
106
- };