act-plus 1.1.24 → 1.1.26

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,90 +1,95 @@
1
- import { defineAsyncComponent as W, ref as v, watch as K, resolveComponent as d, unref as o, openBlock as a, createElementBlock as h, createVNode as j, normalizeStyle as G, withCtx as m, Fragment as C, renderList as g, withDirectives as J, createBlock as n, mergeProps as y, withKeys as U, withModifiers as x, createCommentVNode as _, vShow as X, createTextVNode as N, toDisplayString as P } from "vue";
2
- import { _ as Z, u as ee, P as le, a as te } from "./index-d0c3be37.js";
1
+ import { defineAsyncComponent as j, ref as g, watch as G, resolveComponent as s, resolveDirective as J, unref as t, openBlock as r, createElementBlock as h, createVNode as X, normalizeStyle as Z, withCtx as m, Fragment as v, renderList as C, withDirectives as U, createBlock as u, mergeProps as y, withKeys as x, withModifiers as N, createCommentVNode as _, vShow as ee, createTextVNode as P, toDisplayString as E } from "vue";
2
+ import { _ as le, u as te, P as oe, a as ae } from "./index-2ebc799e.js";
3
3
  import "vue-router";
4
+ import "js-base64";
4
5
  import "element-plus";
5
6
  import "monaco-editor";
6
- const oe = {
7
+ const re = {
7
8
  key: 0,
8
9
  class: "search-module-container"
9
- }, ae = {
10
+ }, ne = {
10
11
  __name: "index",
11
12
  props: {
12
13
  data: { type: Object, default: () => ({}) }
13
14
  },
14
15
  emits: ["reset", "search"],
15
- setup(E, { emit: I }) {
16
- const M = W(() => import("./index-e2f2023d.js")), { t: u } = ee(), k = I, c = E;
17
- let p = v([]), q = v([]), V = v(!0);
18
- const Q = (r) => c.data.tableConfig.isExpandQuery && V.value ? c.data.tableConfig.tableQueryRowWidth > r + 1 : !0, i = (r) => new Function("", r.fieldUiProps)() || {}, D = (r) => {
19
- p.value = (r || []).filter((t) => t.useScenes.includes("tableSearch"));
20
- }, R = (r) => {
21
- const t = (r || []).filter((s) => s.permissionCode === 1001);
22
- q.value = [...t, { btnName: u("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset" }];
16
+ setup(D, { emit: M }) {
17
+ const Q = j(() => import("./index-2ebc799e.js").then((a) => a.f)), { t: d } = te(), k = M, c = D;
18
+ let p = g([]), q = g([]), b = g(!0);
19
+ const A = (a) => c.data.tableConfig.isExpandQuery && b.value ? c.data.tableConfig.tableQueryRowWidth > a + 1 : !0, i = (a) => new Function("", a.fieldUiProps)() || {}, R = (a) => {
20
+ p.value = (a || []).filter((o) => o.useScenes.includes("tableSearch"));
21
+ }, Y = (a) => {
22
+ const o = (a || []).filter((n) => n.permissionCode === 1001).map((n) => ({ ...n, loading: !1 }));
23
+ q.value = [...o, { btnName: d("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset", loading: !1 }];
23
24
  };
24
- K(
25
+ G(
25
26
  () => c.data,
26
- (r, t) => {
27
- D(r.fields), R(r.buttons);
27
+ (a, o) => {
28
+ R(a.fields), Y(a.buttons);
28
29
  },
29
30
  { immediate: !0 }
30
31
  );
31
- const f = (r) => {
32
- switch (r.permissionCode) {
32
+ const f = (a) => {
33
+ switch (a.loading = !0, a.permissionCode) {
33
34
  case "9999":
34
- p.value.forEach((s) => {
35
- s.fieldType.includes("&") ? s.queryValue = [] : s.queryValue = void 0;
36
- }), k("reset", []);
35
+ p.value.forEach((n) => {
36
+ n.fieldType.includes("&") ? n.queryValue = [] : n.queryValue = void 0;
37
+ }), k("reset", [], () => {
38
+ a.loading = !1;
39
+ });
37
40
  break;
38
41
  default:
39
- const t = p.value.filter((s) => !!s.queryValue);
40
- k("search", t);
42
+ const o = p.value.filter((n) => Array.isArray(n.queryValue) ? n.queryValue.length : !!n.queryValue);
43
+ k("search", o, () => {
44
+ a.loading = !1;
45
+ });
41
46
  break;
42
47
  }
43
- }, Y = () => {
44
- V.value = !V.value;
48
+ }, z = () => {
49
+ b.value = !b.value;
45
50
  };
46
- return (r, t) => {
51
+ return (a, o) => {
47
52
  var S;
48
- const s = d("el-input"), z = d("el-option"), A = d("el-select"), F = d("el-select-v2"), L = d("el-cascader"), w = d("el-date-picker"), T = d("el-form-item"), O = d("a-svg-icon"), $ = d("el-button"), B = d("el-form");
49
- return o(p) && o(p).length ? (a(), h("div", oe, [
50
- j(B, {
51
- style: G({ "--table-query-row": c.data.tableConfig.tableQueryRowWidth }),
53
+ const n = s("el-input"), F = s("el-option"), I = s("el-select"), L = s("el-select-v2"), O = s("el-cascader"), w = s("el-date-picker"), T = s("el-form-item"), B = s("a-svg-icon"), $ = s("el-button"), H = s("el-form"), W = J("debounce");
54
+ return t(p) && t(p).length ? (r(), h("div", re, [
55
+ X(H, {
56
+ style: Z({ "--table-query-row": c.data.tableConfig.tableQueryRowWidth }),
52
57
  class: "form-content",
53
58
  ref: "elForm",
54
59
  "label-suffix": ":",
55
60
  "label-position": "right"
56
61
  }, {
57
62
  default: m(() => [
58
- (a(!0), h(C, null, g(o(p), (e, b) => J((a(), n(T, {
59
- key: b,
63
+ (r(!0), h(v, null, C(t(p), (e, V) => U((r(), u(T, {
64
+ key: V,
60
65
  class: "search-form-item",
61
66
  "label-width": c.data.tableConfig.tableQueryLabelWidth,
62
67
  label: e.fieldName
63
68
  }, {
64
69
  default: m(() => [
65
- e.fieldType === "input" || e.fieldType === "editor" ? (a(), n(s, y({
70
+ e.fieldType === "input" || e.fieldType === "editor" ? (r(), u(n, y({
66
71
  key: 0,
67
72
  modelValue: e.queryValue,
68
73
  "onUpdate:modelValue": (l) => e.queryValue = l,
69
- placeholder: `${o(u)("act.inputPlaceholder")}${e.fieldName}`,
74
+ placeholder: `${t(d)("act.inputPlaceholder")}${e.fieldName}`,
70
75
  clearable: "",
71
76
  ref_for: !0
72
77
  }, i(e), {
73
- onKeyup: t[0] || (t[0] = U(x((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
78
+ onKeyup: o[0] || (o[0] = x(N((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
74
79
  }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _("", !0),
75
- e.fieldType === "inputNumber" ? (a(), n(o(M), y({
80
+ e.fieldType === "inputNumber" ? (r(), u(t(Q), y({
76
81
  key: 1,
77
82
  modelValue: e.queryValue,
78
83
  "onUpdate:modelValue": (l) => e.queryValue = l,
79
- placeholder: `${o(u)("act.inputPlaceholder")}${e.fieldName}`,
84
+ placeholder: `${t(d)("act.inputPlaceholder")}${e.fieldName}`,
80
85
  clearable: "",
81
- onKeyup: t[1] || (t[1] = U(x((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
86
+ onKeyup: o[1] || (o[1] = x(N((l) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
82
87
  ref_for: !0
83
- }, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (a(), n(A, y({
88
+ }, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (r(), u(I, y({
84
89
  key: 2,
85
90
  modelValue: e.queryValue,
86
91
  "onUpdate:modelValue": (l) => e.queryValue = l,
87
- placeholder: `${o(u)("act.selectPlaceholder")}${e.fieldName}`,
92
+ placeholder: `${t(d)("act.selectPlaceholder")}${e.fieldName}`,
88
93
  clearable: "",
89
94
  filterable: "",
90
95
  ref_for: !0
@@ -92,23 +97,23 @@ const oe = {
92
97
  multiple: e.fieldType === "multipleSelect",
93
98
  "collapse-tags": e.fieldType === "multipleSelect",
94
99
  "collapse-tags-tooltip": e.fieldType === "multipleSelect",
95
- onChange: t[2] || (t[2] = (l) => f({ permissionCode: 1001 }))
100
+ onChange: o[2] || (o[2] = (l) => f({ permissionCode: 1001 }))
96
101
  }), {
97
102
  default: m(() => [
98
- (a(!0), h(C, null, g(e.dataList, (l, H) => (a(), n(z, {
99
- key: H,
103
+ (r(!0), h(v, null, C(e.dataList, (l, K) => (r(), u(F, {
104
+ key: K,
100
105
  label: l.key,
101
106
  value: l.value
102
107
  }, null, 8, ["label", "value"]))), 128))
103
108
  ]),
104
109
  _: 2
105
- }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (a(), n(F, y({
110
+ }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (r(), u(L, y({
106
111
  key: 3,
107
112
  modelValue: e.queryValue,
108
113
  "onUpdate:modelValue": (l) => e.queryValue = l,
109
114
  options: e.dataList,
110
- props: { ...o(le) },
111
- placeholder: `${o(u)("act.selectPlaceholder")}${e.fieldName}`,
115
+ props: { ...t(oe) },
116
+ placeholder: `${t(d)("act.selectPlaceholder")}${e.fieldName}`,
112
117
  clearable: "",
113
118
  filterable: "",
114
119
  ref_for: !0
@@ -116,57 +121,58 @@ const oe = {
116
121
  "collapse-tags": e.fieldType === "virtualizedMultipleSelect",
117
122
  "collapse-tags-tooltip": e.fieldType === "virtualizedMultipleSelect",
118
123
  multiple: e.fieldType === "virtualizedMultipleSelect",
119
- onChange: t[3] || (t[3] = (l) => f({ permissionCode: 1001 }))
120
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (a(), n(L, y({
124
+ onChange: o[3] || (o[3] = (l) => f({ permissionCode: 1001 }))
125
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (r(), u(O, y({
121
126
  key: 4,
122
127
  modelValue: e.queryValue,
123
128
  "onUpdate:modelValue": (l) => e.queryValue = l,
124
129
  options: e.dataList,
125
- props: { ...o(te), [e.fieldUiType]: !0 },
130
+ props: { ...t(ae), [e.fieldUiType]: !0 },
126
131
  clearable: "",
127
132
  filterable: "",
128
- placeholder: `${o(u)("act.selectPlaceholder")}${e.fieldName}`,
133
+ placeholder: `${t(d)("act.selectPlaceholder")}${e.fieldName}`,
129
134
  ref_for: !0
130
- }, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "date" ? (a(), n(w, y({
135
+ }, i(e)), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "date" ? (r(), u(w, y({
131
136
  key: 5,
132
137
  modelValue: e.queryValue,
133
138
  "onUpdate:modelValue": (l) => e.queryValue = l,
134
139
  type: "date",
135
- placeholder: `${o(u)("act.selectPlaceholder")}${o(u)("act.time")}`,
140
+ placeholder: `${t(d)("act.selectPlaceholder")}${t(d)("act.time")}`,
136
141
  "value-format": "YYYY-MM-DD HH:mm:ss",
137
142
  ref_for: !0
138
143
  }, i(e), {
139
- onChange: t[4] || (t[4] = (l) => f({ permissionCode: 1001 }))
140
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (a(), n(w, y({
144
+ onChange: o[4] || (o[4] = (l) => f({ permissionCode: 1001 }))
145
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (r(), u(w, y({
141
146
  key: 6,
142
147
  modelValue: e.queryValue,
143
148
  "onUpdate:modelValue": (l) => e.queryValue = l,
144
149
  type: "daterange",
145
- "start-placeholder": o(u)("act.startTime"),
146
- "end-placeholder": o(u)("act.endTime"),
150
+ "start-placeholder": t(d)("act.startTime"),
151
+ "end-placeholder": t(d)("act.endTime"),
147
152
  "value-format": "YYYY-MM-DD HH:mm:ss",
148
153
  ref_for: !0
149
154
  }, i(e), {
150
- onChange: t[5] || (t[5] = (l) => f({ permissionCode: 1001 }))
155
+ onChange: o[5] || (o[5] = (l) => f({ permissionCode: 1001 }))
151
156
  }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])) : _("", !0)
152
157
  ]),
153
158
  _: 2
154
159
  }, 1032, ["label-width", "label"])), [
155
- [X, Q(b)]
160
+ [ee, A(V)]
156
161
  ])), 128)),
157
- o(p).length ? (a(), n(T, {
162
+ t(p).length ? (r(), u(T, {
158
163
  key: 0,
159
164
  class: "search-form-btn",
160
165
  "label-width": "0"
161
166
  }, {
162
167
  default: m(() => [
163
- (a(!0), h(C, null, g(o(q), (e, b) => (a(), n($, {
164
- key: b,
168
+ (r(!0), h(v, null, C(t(q), (e, V) => U((r(), u($, {
169
+ key: V,
165
170
  type: e.btnColor,
171
+ loading: e.loading,
166
172
  onClick: (l) => f(e)
167
173
  }, {
168
174
  default: m(() => [
169
- e.btnIcon ? (a(), n(O, {
175
+ e.btnIcon ? (r(), u(B, {
170
176
  key: 0,
171
177
  class: "mr6",
172
178
  name: e.btnIcon,
@@ -174,33 +180,35 @@ const oe = {
174
180
  height: "12",
175
181
  color: "#fff"
176
182
  }, null, 8, ["name"])) : _("", !0),
177
- N(" " + P(e.btnName), 1)
183
+ P(" " + E(e.btnName), 1)
178
184
  ]),
179
185
  _: 2
180
- }, 1032, ["type", "onClick"]))), 128))
186
+ }, 1032, ["type", "loading", "onClick"])), [
187
+ [W]
188
+ ])), 128))
181
189
  ]),
182
190
  _: 1
183
191
  })) : _("", !0)
184
192
  ]),
185
193
  _: 1
186
194
  }, 8, ["style"]),
187
- c.data.tableConfig.isExpandQuery && ((S = o(p)) == null ? void 0 : S.length) > c.data.tableConfig.tableQueryRowWidth ? (a(), n($, {
195
+ c.data.tableConfig.isExpandQuery && ((S = t(p)) == null ? void 0 : S.length) > c.data.tableConfig.tableQueryRowWidth ? (r(), u($, {
188
196
  key: 0,
189
197
  class: "expand",
190
198
  text: "",
191
199
  size: "small",
192
- icon: o(V) ? "ArrowDown" : "ArrowUp",
193
- onClick: Y
200
+ icon: t(b) ? "ArrowDown" : "ArrowUp",
201
+ onClick: z
194
202
  }, {
195
203
  default: m(() => [
196
- N(P(o(V) ? "展开" : "收起"), 1)
204
+ P(E(t(b) ? t(d)("act.expand") : t(d)("act.retract")), 1)
197
205
  ]),
198
206
  _: 1
199
207
  }, 8, ["icon"])) : _("", !0)
200
208
  ])) : _("", !0);
201
209
  };
202
210
  }
203
- }, pe = /* @__PURE__ */ Z(ae, [["__scopeId", "data-v-851e4602"]]);
211
+ }, fe = /* @__PURE__ */ le(ne, [["__scopeId", "data-v-be2a8549"]]);
204
212
  export {
205
- pe as default
213
+ fe as default
206
214
  };
@@ -1,6 +1,7 @@
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 V } from "./index-d0c3be37.js";
2
+ import { _ as k, u as V } from "./index-2ebc799e.js";
3
3
  import "vue-router";
4
+ import "js-base64";
4
5
  import "element-plus";
5
6
  import "monaco-editor";
6
7
  const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
@@ -11,15 +12,15 @@ const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
11
12
  data: { type: Object, default: () => ({}) }
12
13
  },
13
14
  emits: ["update:visible", "refresh"],
14
- setup(a, { emit: c }) {
15
- const { t: d } = V(), r = c, t = a;
16
- let l = m((() => ({
15
+ setup(l, { emit: c }) {
16
+ const { t: d } = V(), r = c, t = l;
17
+ let a = m((() => ({
17
18
  loading: !1
18
19
  }))());
19
20
  v(
20
21
  () => t.visible,
21
22
  async (e, p) => {
22
- e && (l.loading = !0, l.loading = !1);
23
+ e && (a.loading = !0, a.loading = !1);
23
24
  }
24
25
  );
25
26
  const _ = (e) => {
@@ -51,14 +52,14 @@ const w = ["innerHTML"], B = { class: "dialog-footer" }, D = {
51
52
  ]),
52
53
  default: o(() => [
53
54
  i("div", {
54
- innerHTML: a.data.editorContent
55
+ innerHTML: l.data.editorContent
55
56
  }, null, 8, w)
56
57
  ]),
57
58
  _: 1
58
59
  }, 8, ["model-value", "title"]);
59
60
  };
60
61
  }
61
- }, S = /* @__PURE__ */ k(D, [["__scopeId", "data-v-a8dbe98a"]]);
62
+ }, j = /* @__PURE__ */ k(D, [["__scopeId", "data-v-3484c709"]]);
62
63
  export {
63
- S as default
64
+ j as default
64
65
  };
package/package.json CHANGED
@@ -1,17 +1,13 @@
1
1
  {
2
2
  "name": "act-plus",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
4
4
  "private": false,
5
5
  "description": "act config",
6
6
  "main": "act-plus.js",
7
7
  "scripts": {
8
8
  "test": "echo \"Error: no test specified\" && exit 1"
9
9
  },
10
- "keywords": [
11
- "act",
12
- "act-plus",
13
- "vue"
14
- ],
10
+ "keywords": ["act", "act-plus", "vue"],
15
11
  "author": "destiny",
16
12
  "license": "ISC",
17
13
  "publishConfig": {
package/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.page-container{padding:12px}.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{--el-table-header-bg-color: #eef1f6;--el-table-header-text-color: #1f2d3d;font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 16px}.el-card__body{height:calc(100% - 45px);box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}[data-v-d40b7dd2] .el-empty__image{width:100%}.file-image[data-v-d40b7dd2]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-d40b7dd2]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.page-container[data-v-ed715464]{position:relative}.page-container .header-operate[data-v-ed715464]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-ed715464]{display:flex;align-items:center;justify-content:flex-end}.page-container .submit-box-l[data-v-ed715464]{width:360px;margin-right:24px}.act-table .table-pagination[data-v-e54f31ab]{padding:12px 4px;justify-content:flex-end}.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}.upload-container[data-v-1ef2cd20]{width:100%}.upload-container[data-v-1ef2cd20] .el-upload-list--picture-card{display:flex;flex:1}.upload-container[data-v-1ef2cd20] .el-upload.is-drag{width:100%;height:100%}.upload-container .tip-text[data-v-1ef2cd20]{margin:0;padding:0;font-size:12px;color:#999}.upload-container .file-list[data-v-1ef2cd20]{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-1ef2cd20]:hover{cursor:pointer;opacity:.8}.upload-container .file-list:hover .el-file-name[data-v-1ef2cd20]{text-decoration:underline}.upload-container .file-list-l[data-v-1ef2cd20]{display:flex;align-items:center;flex:1;width:500px}.upload-container .file-list-image[data-v-1ef2cd20]{flex-shrink:0;width:40px;height:40px;border-radius:4px}.upload-container .file-list-icon[data-v-1ef2cd20]{flex-shrink:0;width:40px;height:40px}.upload-container .file-list .el-file-name[data-v-1ef2cd20]{flex:1;padding:0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.upload-container .file-list .el-file-operate[data-v-1ef2cd20]{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-1ef2cd20]{cursor:pointer;margin-left:12px}.upload-container .file-list .el-file-operate>i[data-v-1ef2cd20]:hover{opacity:.8}.search-module-container[data-v-851e4602] .el-form-item{margin-bottom:8px}.search-module-container[data-v-851e4602] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-851e4602]{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-851e4602]{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-851e4602]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-20d66b80]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-20d66b80]{margin:6px}.card-header[data-v-4734dc60]{display:flex;align-items:center}.card-header-operate[data-v-4734dc60]{margin-left:auto}.no-config[data-v-4734dc60]{line-height:32px;font-weight:700}.no-config-field[data-v-4734dc60]{margin-left:60px;color:red}.card-header[data-v-a8dbe98a]{display:flex;align-items:center}.card-header-operate[data-v-a8dbe98a]{margin-left:auto}.add-icon-btn[data-v-2dd3967b]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-2dd3967b]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-2dd3967b]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-2dd3967b]{cursor:pointer;width:12px;height:12px}.card-header[data-v-2943c543]{display:flex;align-items:center}.card-header-operate[data-v-2943c543]{margin-left:auto}.form-list[data-v-2943c543]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-2943c543]:last-child{border:none}.config-list-operate[data-v-2943c543]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-9d3ab8fb]{display:flex;align-items:center}.card-header-operate[data-v-9d3ab8fb]{margin-left:auto}.form-list[data-v-9d3ab8fb]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-9d3ab8fb]:last-child{border:none}.config-list-operate[data-v-9d3ab8fb]{display:flex;align-items:center;justify-content:flex-end}.add-icon-btn[data-v-26dcca01]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-26dcca01]{display:flex;justify-content:center}.condition-box[data-v-26dcca01] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-26dcca01]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-26dcca01]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-987b559b]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-987b559b]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-987b559b]{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-eac43c79]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-eac43c79]{margin-left:12px}
1
+ @charset "UTF-8";.page-container{padding:12px}.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{--el-table-header-bg-color: #eef1f6;--el-table-header-text-color: #1f2d3d;font-size:14px}.el-select,.el-cascader,.el-form--inline .el-form-item{display:block;width:100%}.el-card{height:100%;--el-card-padding: 16px}.el-card__body{height:calc(100% - 45px);box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}[data-v-cf6eded7] .el-empty__image{width:100%}.file-image[data-v-cf6eded7]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-cf6eded7]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.page-container[data-v-b703a6a6]{position:relative}.page-container .header-operate[data-v-b703a6a6]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-b703a6a6]{display:flex;align-items:center;justify-content:flex-end}.page-container .submit-box-l[data-v-b703a6a6]{width:360px;margin-right:24px}.act-table .table-pagination[data-v-c6a200c1]{padding:12px 4px;justify-content:flex-end}.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}.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}.search-module-container[data-v-be2a8549] .el-form-item{margin-bottom:8px}.search-module-container[data-v-be2a8549] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-be2a8549]{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-be2a8549]{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-be2a8549]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-00d47037]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-00d47037]{margin:6px}.card-header[data-v-58ff2aa1]{display:flex;align-items:center}.card-header-operate[data-v-58ff2aa1]{margin-left:auto}.no-config[data-v-58ff2aa1]{line-height:32px;font-weight:700}.no-config-field[data-v-58ff2aa1]{margin-left:60px;color:red}.card-header[data-v-3484c709]{display:flex;align-items:center}.card-header-operate[data-v-3484c709]{margin-left:auto}.add-icon-btn[data-v-ada54450]{cursor:pointer;width:24px;height:24px;margin-left:6px}.table-post-params[data-v-ada54450]{position:relative;margin-bottom:12px}.table-post-params .submit-operate[data-v-ada54450]{position:absolute;top:-20px;right:-10px;display:flex;align-items:center}.table-post-params .submit-operate .match-opreate[data-v-ada54450]{cursor:pointer;width:12px;height:12px}.card-header[data-v-c348bee1]{display:flex;align-items:center}.card-header-operate[data-v-c348bee1]{margin-left:auto}.form-list[data-v-c348bee1]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-c348bee1]:last-child{border:none}.config-list-operate[data-v-c348bee1]{display:flex;align-items:center;justify-content:flex-end}.card-header[data-v-3440b427]{display:flex;align-items:center}.card-header-operate[data-v-3440b427]{margin-left:auto}.form-list[data-v-3440b427]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-3440b427]:last-child{border:none}.config-list-operate[data-v-3440b427]{display:flex;align-items:center;justify-content:flex-end}.add-icon-btn[data-v-4b2dee6d]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-4b2dee6d]{display:flex;justify-content:center}.condition-box[data-v-4b2dee6d] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-4b2dee6d]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-4b2dee6d]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-3d2cbdfc]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-3d2cbdfc]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-3d2cbdfc]{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-3437a309]{display:flex;align-items:center}.select-icon-container .icon-value .icon-btn[data-v-3437a309]{margin-left:12px}
@@ -1,151 +0,0 @@
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 d, createVNode as f, unref as s, 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, d as H } from "./index-d0c3be37.js";
3
- import { useRoute as K } from "vue-router";
4
- import "element-plus";
5
- import "monaco-editor";
6
- const $ = (c) => (j("data-v-2943c543"), c = c(), z(), c), G = /* @__PURE__ */ $(() => /* @__PURE__ */ x("div", { class: "card-header" }, [
7
- /* @__PURE__ */ x("div", { class: "card-header-title" }, "按钮配置")
8
- ], -1)), J = {
9
- __name: "configBtns",
10
- props: {
11
- modelValue: { type: Object, default: () => [] }
12
- },
13
- emits: ["update:modelValue"],
14
- setup(c, { expose: V, emit: Q }) {
15
- const h = K(), L = U(() => import("./dialogConfigBtn-c97ccee8.js")), u = c, C = () => ({
16
- sort: 0,
17
- permissionCode: null,
18
- requestUrl: "",
19
- btnName: "",
20
- btnAlias: "",
21
- btnIcon: "",
22
- btnPostion: "",
23
- btnType: "",
24
- btnColor: "",
25
- submitWay: "",
26
- isCustomBtn: !1,
27
- customType: "",
28
- codeStr: "",
29
- customComponentName: "",
30
- customComponentUrl: "",
31
- // isBatchOperate: false,
32
- associationMenuId: "",
33
- submitFields: [],
34
- matchFields: []
35
- });
36
- let n = A((() => ({
37
- tableLoading: !1,
38
- showConfigBtnDialog: !1,
39
- dialogData: {}
40
- }))()), w = g(null), v = 0, y = [], l = g([]), N = [
41
- { prop: "checkbox", width: 60 },
42
- { prop: "serialNumber", width: 80 },
43
- { label: "按钮名称", prop: "btnName", minWidth: 200 },
44
- { label: "权限码", prop: "permissionCode", minWidth: 200 },
45
- { label: "按钮别名", prop: "btnAlias", minWidth: 120 },
46
- { label: "按钮图标", prop: "btnIcon", minWidth: 120 },
47
- { label: "是否自定义", prop: "isCustomBtn", width: 120, render: !0 },
48
- { label: "排序", prop: "sort", width: 180, render: !0 },
49
- { label: "操作", prop: "operate", width: 120, render: !0, fixed: "right" }
50
- ], b = g([]);
51
- const S = (t, o) => {
52
- l.value.includes(t.permissionCode) || l.value.push(t.permissionCode), Object.assign(b.value[v], t), o(!0);
53
- }, k = async (t) => {
54
- try {
55
- n.tableLoading = !0;
56
- const o = u.id ? u.id : h.params.id, { data: i } = await H({ id: o });
57
- l.value = (i || []).filter((a) => (t || []).some((r) => r.permissionCode == a.unique)).map((a) => a.unique), b.value = (i || []).map((a, r) => {
58
- let _ = C(), p = (t || []).find((e) => e.permissionCode == a.unique) || {};
59
- return { ..._, ...p, btnName: a.name, permissionCode: a.unique, sort: p.sort ? p.sort : (r + 1) * 10 };
60
- }).sort((a, r) => a.sort - r.sort), n.tableLoading = !1;
61
- } catch (o) {
62
- n.tableLoading = !1, console.error(o);
63
- }
64
- }, R = () => w.value.getSelectionRows() || [];
65
- D("associationMenuList", y), D("createDefaultButtonItem", C), M(
66
- () => u.modelValue,
67
- async (t, o) => {
68
- try {
69
- const i = u.id ? u.id : h.params.id;
70
- y = (await P({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: i }] })).data || [], await k(t);
71
- } catch (i) {
72
- n.tableLoading = !1, console.error(i);
73
- }
74
- },
75
- { deep: !0, immediate: !0 }
76
- );
77
- const q = (t) => {
78
- n.dialogData = t.row, v = t.$index, n.showConfigBtnDialog = !0;
79
- };
80
- return V({ getTableSelectionRows: R }), (t, o) => {
81
- const i = m("el-tag"), a = m("el-input-number"), r = m("el-button"), _ = m("a-table"), p = m("el-card");
82
- return T(), W(p, {
83
- class: "form-card",
84
- shadow: "hover"
85
- }, {
86
- header: d(() => [
87
- G
88
- ]),
89
- default: d(() => [
90
- f(_, {
91
- ref_key: "tableRef",
92
- ref: w,
93
- loading: s(n).tableLoading,
94
- rowKey: "permissionCode",
95
- selection: s(l),
96
- "onUpdate:selection": o[0] || (o[0] = (e) => F(l) ? l.value = e : l = e),
97
- headers: s(N),
98
- data: s(b),
99
- showPagination: !1
100
- }, {
101
- isCustomBtn: d(({ scope: e }) => [
102
- f(i, {
103
- type: "primary",
104
- effect: "dark",
105
- size: "small"
106
- }, {
107
- default: d(() => [
108
- I(O(e.row.isCustomBtn ? "是" : "否"), 1)
109
- ]),
110
- _: 2
111
- }, 1024)
112
- ]),
113
- sort: d(({ scope: e }) => [
114
- f(a, {
115
- modelValue: e.row.sort,
116
- "onUpdate:modelValue": (B) => e.row.sort = B,
117
- min: 0
118
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
119
- ]),
120
- operate: d(({ scope: e }) => [
121
- f(r, {
122
- type: "primary",
123
- text: "",
124
- size: "small",
125
- icon: "Aim",
126
- onClick: (B) => q(e)
127
- }, {
128
- default: d(() => [
129
- I(" 配置 ")
130
- ]),
131
- _: 2
132
- }, 1032, ["onClick"])
133
- ]),
134
- _: 1
135
- }, 8, ["loading", "selection", "headers", "data"]),
136
- f(s(L), {
137
- visible: s(n).showConfigBtnDialog,
138
- "onUpdate:visible": o[1] || (o[1] = (e) => s(n).showConfigBtnDialog = e),
139
- title: "配置按钮",
140
- data: s(n).dialogData,
141
- onRefresh: S
142
- }, null, 8, ["visible", "data"])
143
- ]),
144
- _: 1
145
- });
146
- };
147
- }
148
- }, ae = /* @__PURE__ */ E(J, [["__scopeId", "data-v-2943c543"]]);
149
- export {
150
- ae as default
151
- };