act-plus 1.1.91 → 1.1.93

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.
@@ -0,0 +1,215 @@
1
+ import { ref as W, inject as i, computed as X, watch as Y, resolveComponent as b, resolveDirective as Z, openBlock as t, createElementBlock as C, Fragment as m, renderList as P, createBlock as r, resolveDynamicComponent as M, unref as p, withCtx as a, withDirectives as v, createCommentVNode as f, createTextVNode as y, toDisplayString as w, createVNode as T } from "vue";
2
+ import { _ as ee, u as oe, d as ne, g as te } from "./index-a1705d25.js";
3
+ import "vue-router";
4
+ import "element-plus";
5
+ const se = { class: "header-operate-container" }, le = {
6
+ __name: "index",
7
+ props: {
8
+ data: { type: Object, default: () => ({}) }
9
+ },
10
+ emits: ["onOperate"],
11
+ setup(R, { emit: O }) {
12
+ const L = O, $ = R, { t: N, locale: j } = oe(), h = (o) => te(o, j.value), B = (o) => N("act.loadingText", { name: h(o) });
13
+ let _ = W([]);
14
+ const q = i("globalProps"), A = i("menuPermissionBtns"), E = i("stringToBoolean"), H = i("matchCondition"), V = i("getTableData"), I = i("tableBtnRefs"), z = i("refreshTable"), x = X(() => {
15
+ const {
16
+ tableConfig: { headerMoreBtnSplitNumber: o }
17
+ } = $.data;
18
+ return !o || o >= _.value.length;
19
+ }), G = () => {
20
+ const {
21
+ tableConfig: { headerMoreBtnSplitNumber: o }
22
+ } = $.data;
23
+ return x.value ? _.value : _.value.slice(0, o);
24
+ }, J = () => {
25
+ var n;
26
+ const {
27
+ tableConfig: { headerMoreBtnSplitNumber: o }
28
+ } = $.data;
29
+ return x.value ? [] : _.value.slice(o, (n = _.value) == null ? void 0 : n.length);
30
+ }, K = (o) => {
31
+ if (!o.matchFields.length)
32
+ return !0;
33
+ const n = o.matchFields.filter((s) => s.matchType != "default"), d = (s) => q.matchData[s.matchType][s.matchFieldName];
34
+ let k = n.reduce((s, l, u) => {
35
+ const e = d(l);
36
+ return s += H(
37
+ l.matchCondition,
38
+ e,
39
+ l.fieldValue == "" ? null : l.fieldValue == "true" || l.fieldValue == "false" ? E(l.fieldValue) : l.fieldValue
40
+ ), u !== n.length - 1 && (s += l.spliceCondition || "&&"), s;
41
+ }, "").split("||"), D = k.reduce((s, l, u) => (s += `(${l})`, u < k.length - 1 && (s += "||"), s), "");
42
+ return new Function(`return ${D}`)();
43
+ }, F = (o) => A.value.some((n) => n.unique == o.permissionCode) && K(o), Q = (o) => {
44
+ _.value = (o || []).filter((n) => n.permissionCode !== 1001 && n.btnPostion.includes("header")).sort((n, d) => n.sort - d.sort).map((n) => ({ ...n, isPromptVerificationSelectTable: n.isPromptVerificationSelectTable ?? "1" }));
45
+ };
46
+ Y(
47
+ () => $.data,
48
+ (o, n) => {
49
+ Q(o.buttons);
50
+ },
51
+ { immediate: !0 }
52
+ );
53
+ const S = (o) => {
54
+ L("onOperate", o, {});
55
+ };
56
+ return (o, n) => {
57
+ const d = b("a-svg-icon"), g = b("el-button"), k = b("el-icon"), D = b("el-dropdown-item"), s = b("el-dropdown-menu"), l = b("el-dropdown"), u = Z("debounce");
58
+ return t(), C("div", se, [
59
+ (t(!0), C(m, null, P(G(), (e, U) => (t(), C(m, {
60
+ key: e.permissionCode
61
+ }, [
62
+ F(e) ? (t(), C(m, { key: 0 }, [
63
+ e.isCustomBtn && e.customType == "component" ? (t(), r(M(e[e.customComponentName]), {
64
+ key: 0,
65
+ class: "custom-btn",
66
+ ref_for: !0,
67
+ ref: (c) => p(I)[`${e.customComponentName}-${e.permissionCode}`] = c,
68
+ buttonData: e,
69
+ onRefresh: n[0] || (n[0] = (c) => p(V)()),
70
+ onRefreshTable: n[1] || (n[1] = (c) => p(z)())
71
+ }, {
72
+ default: a(() => [
73
+ v((t(), r(g, {
74
+ class: "el-btn",
75
+ type: e.btnColor,
76
+ loading: e[`loading${e.permissionCode}`],
77
+ onClick: (c) => S(e)
78
+ }, {
79
+ default: a(() => [
80
+ e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), r(d, {
81
+ key: 0,
82
+ class: "mr4",
83
+ name: e.btnIcon,
84
+ width: "12",
85
+ height: "12",
86
+ color: "#fff"
87
+ }, null, 8, ["name"])) : f("", !0),
88
+ y(" " + w(e[`loading${e.permissionCode}`] ? B(e) : h(e)), 1)
89
+ ]),
90
+ _: 2
91
+ }, 1032, ["type", "loading", "onClick"])), [
92
+ [u]
93
+ ])
94
+ ]),
95
+ _: 2
96
+ }, 1064, ["buttonData"])) : v((t(), r(g, {
97
+ key: 1,
98
+ class: "el-btn",
99
+ type: e.btnColor,
100
+ loading: e[`loading${e.permissionCode}`],
101
+ onClick: (c) => S(e)
102
+ }, {
103
+ default: a(() => [
104
+ e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), r(d, {
105
+ key: 0,
106
+ class: "mr4",
107
+ name: e.btnIcon,
108
+ width: "12",
109
+ height: "12",
110
+ color: "#fff"
111
+ }, null, 8, ["name"])) : f("", !0),
112
+ y(" " + w(e[`loading${e.permissionCode}`] ? B(e) : h(e)), 1)
113
+ ]),
114
+ _: 2
115
+ }, 1032, ["type", "loading", "onClick"])), [
116
+ [u]
117
+ ])
118
+ ], 64)) : f("", !0)
119
+ ], 64))), 128)),
120
+ x.value ? f("", !0) : (t(), r(l, {
121
+ key: 0,
122
+ class: "header-opreate-dropdown"
123
+ }, {
124
+ dropdown: a(() => [
125
+ T(s, null, {
126
+ default: a(() => [
127
+ (t(!0), C(m, null, P(J(), (e, U) => (t(), r(D, {
128
+ key: e.permissionCode,
129
+ onClick: (c) => S(e)
130
+ }, {
131
+ default: a(() => [
132
+ F(e) ? (t(), C(m, { key: 0 }, [
133
+ e.isCustomBtn && e.customType == "component" ? (t(), r(M(e[e.customComponentName]), {
134
+ key: 0,
135
+ class: "custom-btn",
136
+ ref_for: !0,
137
+ ref: (c) => p(I)[`${e.customComponentName}-${e.permissionCode}`] = c,
138
+ buttonData: e,
139
+ onRefresh: n[2] || (n[2] = (c) => p(V)())
140
+ }, {
141
+ default: a(() => [
142
+ v((t(), r(g, {
143
+ class: "el-btn",
144
+ type: e.btnColor,
145
+ loading: e[`loading${e.permissionCode}`]
146
+ }, {
147
+ default: a(() => [
148
+ e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), r(d, {
149
+ key: 0,
150
+ class: "mr4",
151
+ name: e.btnIcon,
152
+ width: "12",
153
+ height: "12",
154
+ color: "#fff"
155
+ }, null, 8, ["name"])) : f("", !0),
156
+ y(" " + w(e[`loading${e.permissionCode}`] ? B(e) : h(e)), 1)
157
+ ]),
158
+ _: 2
159
+ }, 1032, ["type", "loading"])), [
160
+ [u]
161
+ ])
162
+ ]),
163
+ _: 2
164
+ }, 1064, ["buttonData"])) : v((t(), r(g, {
165
+ key: 1,
166
+ class: "el-btn",
167
+ type: e.btnColor,
168
+ loading: e[`loading${e.permissionCode}`]
169
+ }, {
170
+ default: a(() => [
171
+ e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), r(d, {
172
+ key: 0,
173
+ class: "mr4",
174
+ name: e.btnIcon,
175
+ width: "12",
176
+ height: "12",
177
+ color: "#fff"
178
+ }, null, 8, ["name"])) : f("", !0),
179
+ y(" " + w(e[`loading${e.permissionCode}`] ? B(e) : h(e)), 1)
180
+ ]),
181
+ _: 2
182
+ }, 1032, ["type", "loading"])), [
183
+ [u]
184
+ ])
185
+ ], 64)) : f("", !0)
186
+ ]),
187
+ _: 2
188
+ }, 1032, ["onClick"]))), 128))
189
+ ]),
190
+ _: 1
191
+ })
192
+ ]),
193
+ default: a(() => [
194
+ T(g, { type: "primary" }, {
195
+ default: a(() => [
196
+ y(w(p(N)("act.more")), 1),
197
+ T(k, { class: "el-icon--right" }, {
198
+ default: a(() => [
199
+ T(p(ne))
200
+ ]),
201
+ _: 1
202
+ })
203
+ ]),
204
+ _: 1
205
+ })
206
+ ]),
207
+ _: 1
208
+ }))
209
+ ]);
210
+ };
211
+ }
212
+ }, ue = /* @__PURE__ */ ee(le, [["__scopeId", "data-v-9b22985d"]]);
213
+ export {
214
+ ue as default
215
+ };
@@ -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-dd0e4184.js";
2
+ import { _ as P } from "./index-a1705d25.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 = {
@@ -1,5 +1,5 @@
1
1
  import { reactive as m, watch as v, resolveComponent as s, openBlock as b, 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-dd0e4184.js";
2
+ import { _ as k, u as w } from "./index-a1705d25.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 { ref as N, watch as O, resolveComponent as u, resolveDirective as T, openBlock as l, createElementBlock as p, withDirectives as j, createBlock as i, mergeProps as D, withCtx as g, createTextVNode as W, toDisplayString as A, unref as y, Fragment as c, renderList as H, renderSlot as w, createCommentVNode as U, nextTick as b } from "vue";
2
- import { _ as V, u as $ } from "./index-dd0e4184.js";
2
+ import { _ as V, u as $ } from "./index-a1705d25.js";
3
3
  import "vue-router";
4
4
  import "element-plus";
5
5
  const F = { class: "act-table" }, L = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "act-plus",
3
- "version": "1.1.91",
3
+ "version": "1.1.93",
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-53c75030] .el-empty__image{width:100%}.file-image[data-v-53c75030]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-53c75030]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.act-module[data-v-53c75030]{padding:0;margin:0;border:none}.table-opreate-dropdown[data-v-53c75030]{margin:4px 0 0 8px}.table-btn-more[data-v-53c75030]{width:16px;height:16px}.table-btn-more[data-v-53c75030]:hover{cursor:pointer;opacity:.8}.add-icon-btn[data-v-3a00699d]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-3a00699d]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-3a00699d]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-3a00699d]{cursor:pointer;width:12px;height:12px}.card-header[data-v-05dd44e9]{display:flex;align-items:center}.card-header -operate[data-v-05dd44e9]{margin-left:auto}.form-list[data-v-05dd44e9]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-05dd44e9]:last-child{border:none}.config-list-operate[data-v-05dd44e9]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-5ac6753d]{display:flex;align-items:center}.card-header-operate[data-v-5ac6753d]{margin-left:auto}.form-list[data-v-5ac6753d]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-5ac6753d]:last-child{border:none}.config-list-operate[data-v-5ac6753d]{display:flex;align-items:center;justify-content:flex-end}[data-v-5ac6753d] .el-badge__content.is-fixed{transform:translateY(-50%) translate(100%) scale(.7)}.submit-operate[data-v-5c2c8b66]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-5c2c8b66]{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-5f841262] .el-form-item{margin-bottom:8px}.search-module-container[data-v-5f841262] .el-select__selection{flex-wrap:nowrap;width:100%}.search-module-container .form-content[data-v-5f841262]{display:grid;grid-template-columns:repeat(var(--table-query-row),minmax(120px,1fr));gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-5f841262]{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-5f841262]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-d86fe71c]{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap}.header-operate-container .el-btn[data-v-d86fe71c]{margin:2px}.header-operate-container .header-opreate-dropdown[data-v-d86fe71c]{margin:4px 0 0 8px}.header-operate-container .header-btn-more[data-v-d86fe71c]{width:16px;height:16px}.header-operate-container .header-btn-more[data-v-d86fe71c]:hover{cursor:pointer;opacity:.8}.act-table .table-pagination[data-v-b5ec4a41]{padding:12px 4px;justify-content:flex-end}.no-config[data-v-f23c8fd2]{line-height:32px;font-weight:700}.no-config-field[data-v-f23c8fd2]{color:red}.card-header[data-v-95be1288]{display:flex;align-items:center}.card-header-operate[data-v-95be1288]{margin-left:auto}.add-icon-btn[data-v-2debd2c2]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-2debd2c2]{display:flex;justify-content:center}.condition-box[data-v-2debd2c2] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-2debd2c2]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-2debd2c2]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-571cf929]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-571cf929]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-571cf929]{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-8a705a54]{width:100%}.upload-container[data-v-8a705a54] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-8a705a54] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-8a705a54]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-8a705a54]{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-8a705a54]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-8a705a54]{text-decoration:underline}.upload-container .file-list-l[data-v-8a705a54]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-8a705a54]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-8a705a54]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-8a705a54]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-8a705a54]{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-8a705a54]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-8a705a54]: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-23982507]{width:100%}.act-code-mirror .format-code-btn[data-v-23982507]{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-915d04cd] .el-empty__image{width:100%}.file-image[data-v-915d04cd]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-915d04cd]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.act-module[data-v-915d04cd]{padding:0;margin:0;border:none}.table-opreate-dropdown[data-v-915d04cd]{margin:4px 0 0 8px}.table-btn-more[data-v-915d04cd]{width:16px;height:16px}.table-btn-more[data-v-915d04cd]:hover{cursor:pointer;opacity:.8}.add-icon-btn[data-v-3a00699d]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-3a00699d]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-3a00699d]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-3a00699d]{cursor:pointer;width:12px;height:12px}.card-header[data-v-de3abe59]{display:flex;align-items:center}.card-header -operate[data-v-de3abe59]{margin-left:auto}.form-list[data-v-de3abe59]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-de3abe59]:last-child{border:none}.config-list-operate[data-v-de3abe59]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-aa8721fa]{display:flex;align-items:center}.card-header-operate[data-v-aa8721fa]{margin-left:auto}.form-list[data-v-aa8721fa]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-aa8721fa]:last-child{border:none}.config-list-operate[data-v-aa8721fa]{display:flex;align-items:center;justify-content:flex-end}[data-v-aa8721fa] .el-badge__content.is-fixed{transform:translateY(-50%) translate(100%) scale(.7)}.submit-operate[data-v-5c2c8b66]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-5c2c8b66]{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-16983648] .el-form-item{margin-bottom:8px}.search-module-container[data-v-16983648] .el-select__selection{flex-wrap:nowrap;width:100%}.search-module-container .form-content[data-v-16983648]{display:grid;grid-template-columns:repeat(var(--table-query-row),minmax(120px,1fr));gap:6px;padding:6px 6px 0}.search-module-container .form-content .search-form-btn[data-v-16983648]{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-16983648]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-9b22985d]{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap}.header-operate-container .el-btn[data-v-9b22985d]{margin:2px}.header-operate-container .header-opreate-dropdown[data-v-9b22985d]{margin:4px 0 0 8px}.header-operate-container .header-btn-more[data-v-9b22985d]{width:16px;height:16px}.header-operate-container .header-btn-more[data-v-9b22985d]:hover{cursor:pointer;opacity:.8}.act-table .table-pagination[data-v-b5ec4a41]{padding:12px 4px;justify-content:flex-end}.no-config[data-v-d287f7a8]{line-height:32px;font-weight:700}.no-config-field[data-v-d287f7a8]{color:red}.card-header[data-v-95be1288]{display:flex;align-items:center}.card-header-operate[data-v-95be1288]{margin-left:auto}.add-icon-btn[data-v-09e29238]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-09e29238]{display:flex;justify-content:center}.condition-box[data-v-09e29238] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-09e29238]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-09e29238]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-46330ef5]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-46330ef5]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-46330ef5]{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-8a705a54]{width:100%}.upload-container[data-v-8a705a54] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-8a705a54] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-8a705a54]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-8a705a54]{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-8a705a54]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-8a705a54]{text-decoration:underline}.upload-container .file-list-l[data-v-8a705a54]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-8a705a54]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-8a705a54]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-8a705a54]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-8a705a54]{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-8a705a54]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-8a705a54]: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-23982507]{width:100%}.act-code-mirror .format-code-btn[data-v-23982507]{margin-bottom:4px}
@@ -1,215 +0,0 @@
1
- import { ref as K, inject as p, computed as Q, watch as U, resolveComponent as g, resolveDirective as W, openBlock as t, createElementBlock as m, Fragment as C, renderList as I, createBlock as a, resolveDynamicComponent as F, unref as d, withCtx as r, withDirectives as k, createCommentVNode as f, createTextVNode as h, toDisplayString as B, createVNode as N } from "vue";
2
- import { _ as X, u as Y, c as Z } from "./index-dd0e4184.js";
3
- import "vue-router";
4
- import "element-plus";
5
- const ee = { class: "header-operate-container" }, ne = {
6
- __name: "index",
7
- props: {
8
- data: { type: Object, default: () => ({}) }
9
- },
10
- emits: ["onOperate"],
11
- setup(P, { emit: M }) {
12
- const R = M, y = P, { t: w } = Y();
13
- let b = K([]);
14
- const A = p("globalProps"), O = p("menuPermissionBtns"), j = p("stringToBoolean"), q = p("matchCondition"), x = p("getTableData"), D = p("tableBtnRefs"), E = p("refreshTable"), v = Q(() => {
15
- const {
16
- tableConfig: { headerMoreBtnSplitNumber: o }
17
- } = y.data;
18
- return !o || o >= b.value.length;
19
- }), H = () => {
20
- const {
21
- tableConfig: { headerMoreBtnSplitNumber: o }
22
- } = y.data;
23
- return v.value ? b.value : b.value.slice(0, o);
24
- }, L = () => {
25
- var n;
26
- const {
27
- tableConfig: { headerMoreBtnSplitNumber: o }
28
- } = y.data;
29
- return v.value ? [] : b.value.slice(o, (n = b.value) == null ? void 0 : n.length);
30
- }, z = (o) => {
31
- if (!o.matchFields.length)
32
- return !0;
33
- const n = o.matchFields.filter((l) => l.matchType != "default"), i = (l) => A.matchData[l.matchType][l.matchFieldName];
34
- let $ = n.reduce((l, s, u) => {
35
- const e = i(s);
36
- return l += q(
37
- s.matchCondition,
38
- e,
39
- s.fieldValue == "" ? null : s.fieldValue == "true" || s.fieldValue == "false" ? j(s.fieldValue) : s.fieldValue
40
- ), u !== n.length - 1 && (l += s.spliceCondition || "&&"), l;
41
- }, "").split("||"), S = $.reduce((l, s, u) => (l += `(${s})`, u < $.length - 1 && (l += "||"), l), "");
42
- return new Function(`return ${S}`)();
43
- }, V = (o) => O.value.some((n) => n.unique == o.permissionCode) && z(o), G = (o) => {
44
- b.value = (o || []).filter((n) => n.permissionCode !== 1001 && n.btnPostion.includes("header")).sort((n, i) => n.sort - i.sort).map((n) => (n.btnAlias && (n.btnName = n.btnAlias), Reflect.has(n, "isPromptVerificationSelectTable") || (n.isPromptVerificationSelectTable = "1"), n));
45
- };
46
- U(
47
- () => y.data,
48
- (o, n) => {
49
- G(o.buttons);
50
- },
51
- { immediate: !0 }
52
- );
53
- const T = (o) => {
54
- R("onOperate", o, {});
55
- };
56
- return (o, n) => {
57
- const i = g("a-svg-icon"), _ = g("el-button"), $ = g("el-icon"), S = g("el-dropdown-item"), l = g("el-dropdown-menu"), s = g("el-dropdown"), u = W("debounce");
58
- return t(), m("div", ee, [
59
- (t(!0), m(C, null, I(H(), (e, J) => (t(), m(C, {
60
- key: e.permissionCode
61
- }, [
62
- V(e) ? (t(), m(C, { key: 0 }, [
63
- e.isCustomBtn && e.customType == "component" ? (t(), a(F(e[e.customComponentName]), {
64
- key: 0,
65
- class: "custom-btn",
66
- ref_for: !0,
67
- ref: (c) => d(D)[`${e.customComponentName}-${e.permissionCode}`] = c,
68
- buttonData: e,
69
- onRefresh: n[0] || (n[0] = (c) => d(x)()),
70
- onRefreshTable: n[1] || (n[1] = (c) => d(E)())
71
- }, {
72
- default: r(() => [
73
- k((t(), a(_, {
74
- class: "el-btn",
75
- type: e.btnColor,
76
- loading: e[`loading${e.permissionCode}`],
77
- onClick: (c) => T(e)
78
- }, {
79
- default: r(() => [
80
- e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), a(i, {
81
- key: 0,
82
- class: "mr4",
83
- name: e.btnIcon,
84
- width: "12",
85
- height: "12",
86
- color: "#fff"
87
- }, null, 8, ["name"])) : f("", !0),
88
- h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
89
- ]),
90
- _: 2
91
- }, 1032, ["type", "loading", "onClick"])), [
92
- [u]
93
- ])
94
- ]),
95
- _: 2
96
- }, 1064, ["buttonData"])) : k((t(), a(_, {
97
- key: 1,
98
- class: "el-btn",
99
- type: e.btnColor,
100
- loading: e[`loading${e.permissionCode}`],
101
- onClick: (c) => T(e)
102
- }, {
103
- default: r(() => [
104
- e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), a(i, {
105
- key: 0,
106
- class: "mr4",
107
- name: e.btnIcon,
108
- width: "12",
109
- height: "12",
110
- color: "#fff"
111
- }, null, 8, ["name"])) : f("", !0),
112
- h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
113
- ]),
114
- _: 2
115
- }, 1032, ["type", "loading", "onClick"])), [
116
- [u]
117
- ])
118
- ], 64)) : f("", !0)
119
- ], 64))), 128)),
120
- v.value ? f("", !0) : (t(), a(s, {
121
- key: 0,
122
- class: "header-opreate-dropdown"
123
- }, {
124
- dropdown: r(() => [
125
- N(l, null, {
126
- default: r(() => [
127
- (t(!0), m(C, null, I(L(), (e, J) => (t(), a(S, {
128
- key: e.permissionCode,
129
- onClick: (c) => T(e)
130
- }, {
131
- default: r(() => [
132
- V(e) ? (t(), m(C, { key: 0 }, [
133
- e.isCustomBtn && e.customType == "component" ? (t(), a(F(e[e.customComponentName]), {
134
- key: 0,
135
- class: "custom-btn",
136
- ref_for: !0,
137
- ref: (c) => d(D)[`${e.customComponentName}-${e.permissionCode}`] = c,
138
- buttonData: e,
139
- onRefresh: n[2] || (n[2] = (c) => d(x)())
140
- }, {
141
- default: r(() => [
142
- k((t(), a(_, {
143
- class: "el-btn",
144
- type: e.btnColor,
145
- loading: e[`loading${e.permissionCode}`]
146
- }, {
147
- default: r(() => [
148
- e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), a(i, {
149
- key: 0,
150
- class: "mr4",
151
- name: e.btnIcon,
152
- width: "12",
153
- height: "12",
154
- color: "#fff"
155
- }, null, 8, ["name"])) : f("", !0),
156
- h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
157
- ]),
158
- _: 2
159
- }, 1032, ["type", "loading"])), [
160
- [u]
161
- ])
162
- ]),
163
- _: 2
164
- }, 1064, ["buttonData"])) : k((t(), a(_, {
165
- key: 1,
166
- class: "el-btn",
167
- type: e.btnColor,
168
- loading: e[`loading${e.permissionCode}`]
169
- }, {
170
- default: r(() => [
171
- e.btnIcon && !e[`loading${e.permissionCode}`] ? (t(), a(i, {
172
- key: 0,
173
- class: "mr4",
174
- name: e.btnIcon,
175
- width: "12",
176
- height: "12",
177
- color: "#fff"
178
- }, null, 8, ["name"])) : f("", !0),
179
- h(" " + B(e[`loading${e.permissionCode}`] ? e.btnName + d(w)("act.loading") + "..." : e.btnName), 1)
180
- ]),
181
- _: 2
182
- }, 1032, ["type", "loading"])), [
183
- [u]
184
- ])
185
- ], 64)) : f("", !0)
186
- ]),
187
- _: 2
188
- }, 1032, ["onClick"]))), 128))
189
- ]),
190
- _: 1
191
- })
192
- ]),
193
- default: r(() => [
194
- N(_, { type: "primary" }, {
195
- default: r(() => [
196
- n[3] || (n[3] = h(" 更多按钮", -1)),
197
- N($, { class: "el-icon--right" }, {
198
- default: r(() => [
199
- N(d(Z))
200
- ]),
201
- _: 1
202
- })
203
- ]),
204
- _: 1
205
- })
206
- ]),
207
- _: 1
208
- }))
209
- ]);
210
- };
211
- }
212
- }, ae = /* @__PURE__ */ X(ne, [["__scopeId", "data-v-d86fe71c"]]);
213
- export {
214
- ae as default
215
- };