act-plus 1.1.40 → 1.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { defineAsyncComponent as le, inject as x, ref as R, watch as ae, resolveComponent as i, resolveDirective as te, unref as l, openBlock as n, createElementBlock as $, createVNode as oe, normalizeStyle as re, withCtx as h, Fragment as E, renderList as D, withDirectives as z, createBlock as u, mergeProps as m, withKeys as A, withModifiers as F, createCommentVNode as g, vShow as ne, createTextVNode as Y, toDisplayString as B } from "vue";
2
- import { _ as se, u as ue, P as H, a as de, b as pe } from "./index-c18badb4.js";
1
+ import { defineAsyncComponent as ee, inject as x, ref as R, watch as le, resolveComponent as i, resolveDirective as ae, unref as l, openBlock as n, createElementBlock as $, createVNode as te, normalizeStyle as oe, withCtx as h, Fragment as E, renderList as D, withDirectives as z, createBlock as u, mergeProps as m, withKeys as A, withModifiers as F, createCommentVNode as g, vShow as re, createTextVNode as Y, toDisplayString as B } from "vue";
2
+ import { _ as ne, u as se, P as ue, a as de, b as pe } from "./index-bbca6b2b.js";
3
3
  import "vue-router";
4
4
  import "js-base64";
5
5
  import "element-plus";
@@ -13,36 +13,36 @@ const ie = {
13
13
  data: { type: Object, default: () => ({}) }
14
14
  },
15
15
  emits: ["reset", "search"],
16
- setup(W, { emit: j }) {
17
- const I = le(() => import("./index-c18badb4.js").then((o) => o.g)), { t: d } = ue(), K = x("request"), p = x("getFieldUiProps"), L = x("formatDataType"), M = j, b = W;
16
+ setup(H, { emit: W }) {
17
+ const j = ee(() => import("./index-bbca6b2b.js").then((o) => o.t)), { t: d } = se(), I = x("request"), p = x("getFieldUiProps"), L = x("formatDataType"), M = W, _ = H;
18
18
  let f = R([]), O = R([]), C = R(!0);
19
- const G = (o) => b.data.tableConfig.isExpandQuery && C.value ? b.data.tableConfig.tableQueryRowWidth > o + 1 : !0, J = (o) => {
19
+ const K = (o) => _.data.tableConfig.isExpandQuery && C.value ? _.data.tableConfig.tableQueryRowWidth > o + 1 : !0, G = (o) => {
20
20
  f.value = (o || []).filter((t) => t.useScenes.includes("tableSearch"));
21
- }, X = (o) => {
21
+ }, J = (o) => {
22
22
  const t = (o || []).filter((r) => r.permissionCode === 1001).map((r) => ({ ...r, loading: !1 }));
23
23
  O.value = [...t, { btnName: d("act.reset"), permissionCode: "9999", btnColor: "info", btnIcon: "btn-reset", loading: !1 }];
24
- }, Z = async ({ node: o, resolve: t }, r) => {
25
- const _ = p(r), { label: w, value: U, children: Q, isLeaf: q } = { ...pe, ..._.treeProps || {} };
24
+ }, X = async ({ node: o, resolve: t }, r) => {
25
+ const b = p(r), { label: w, value: U, children: Q, isLeaf: q } = { ...pe, ...b.treeProps || {} };
26
26
  if (o[q])
27
27
  return t([]);
28
28
  const v = r.postRequestParams.filter((s) => s.submitType === "default").reduce((s, V) => (s[V.submitName] = L(V.paramsType, V.submitValue), s), {}), k = r.postRequestParams.filter((s) => s.submitType === "dynamic").map((s) => ({
29
29
  field: s.submitName,
30
30
  operate: s.submitMatchType,
31
- value: _.loadCode ? o == null ? void 0 : o.data.value : L(s.paramsType, s.submitValue)
31
+ value: b.loadCode ? o == null ? void 0 : o.data.value : L(s.paramsType, s.submitValue)
32
32
  }));
33
33
  let y = {};
34
- Object.keys(v).length && (y = { ...y, ...v }), k.length && (y.dynamicFilters = k), _.loadCode && Reflect.has(y, _.loadCode) && (y[_.loadCode] = o == null ? void 0 : o.data.value);
35
- const { data: T } = await K({
34
+ Object.keys(v).length && (y = { ...y, ...v }), k.length && (y.dynamicFilters = k), b.loadCode && Reflect.has(y, b.loadCode) && (y[b.loadCode] = o == null ? void 0 : o.data.value);
35
+ const { data: T } = await I({
36
36
  url: r.fieldRequestUrl,
37
37
  method: r.fieldRequestType || "GET",
38
38
  data: y
39
39
  }), S = (T || []).map((s) => ({ label: s[w], value: s[U], children: [], isLeaf: s[q] }));
40
40
  t(S);
41
41
  };
42
- ae(
43
- () => b.data,
42
+ le(
43
+ () => _.data,
44
44
  (o, t) => {
45
- J(o.fields), X(o.buttons);
45
+ G(o.fields), J(o.buttons);
46
46
  },
47
47
  { immediate: !0 }
48
48
  );
@@ -62,15 +62,15 @@ const ie = {
62
62
  });
63
63
  break;
64
64
  }
65
- }, ee = () => {
65
+ }, Z = () => {
66
66
  C.value = !C.value;
67
67
  };
68
68
  return (o, t) => {
69
69
  var V;
70
- const r = i("el-input"), _ = i("el-option"), w = i("el-select"), U = i("el-select-v2"), Q = i("el-cascader"), q = i("el-tree-select"), v = i("el-date-picker"), k = i("el-form-item"), y = i("a-svg-icon"), T = i("el-button"), S = i("el-form"), s = te("debounce");
70
+ const r = i("el-input"), b = i("el-option"), w = i("el-select"), U = i("el-select-v2"), Q = i("el-cascader"), q = i("el-tree-select"), v = i("el-date-picker"), k = i("el-form-item"), y = i("a-svg-icon"), T = i("el-button"), S = i("el-form"), s = ae("debounce");
71
71
  return l(f) && l(f).length ? (n(), $("div", ie, [
72
- oe(S, {
73
- style: re({ "--table-query-row": b.data.tableConfig.tableQueryRowWidth }),
72
+ te(S, {
73
+ style: oe({ "--table-query-row": _.data.tableConfig.tableQueryRowWidth }),
74
74
  class: "form-content",
75
75
  ref: "elForm",
76
76
  "label-suffix": ":",
@@ -80,7 +80,7 @@ const ie = {
80
80
  (n(!0), $(E, null, D(l(f), (e, P) => z((n(), u(k, {
81
81
  key: P,
82
82
  class: "search-form-item",
83
- "label-width": b.data.tableConfig.tableQueryLabelWidth,
83
+ "label-width": _.data.tableConfig.tableQueryLabelWidth,
84
84
  label: e.fieldName
85
85
  }, {
86
86
  default: h(() => [
@@ -94,7 +94,7 @@ const ie = {
94
94
  }, l(p)(e), {
95
95
  onKeyup: t[0] || (t[0] = A(F((a) => c({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
96
96
  }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : g("", !0),
97
- e.fieldType === "inputNumber" ? (n(), u(l(I), m({
97
+ e.fieldType === "inputNumber" ? (n(), u(l(j), m({
98
98
  key: 1,
99
99
  modelValue: e.queryValue,
100
100
  "onUpdate:modelValue": (a) => e.queryValue = a,
@@ -109,7 +109,6 @@ const ie = {
109
109
  placeholder: `${l(d)("act.selectPlaceholder")}${e.fieldName}`,
110
110
  clearable: "",
111
111
  filterable: "",
112
- props: { ...l(H) },
113
112
  ref_for: !0
114
113
  }, l(p)(e), {
115
114
  multiple: e.fieldType === "multipleSelect",
@@ -118,19 +117,19 @@ const ie = {
118
117
  onChange: t[2] || (t[2] = (a) => c({ permissionCode: 1001 }))
119
118
  }), {
120
119
  default: h(() => [
121
- (n(!0), $(E, null, D(e.dataList, (a, N) => (n(), u(_, {
120
+ (n(!0), $(E, null, D(e.dataList, (a, N) => (n(), u(b, {
122
121
  key: N,
123
122
  label: a.key,
124
123
  value: a.value
125
124
  }, null, 8, ["label", "value"]))), 128))
126
125
  ]),
127
126
  _: 2
128
- }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "props", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (n(), u(U, m({
127
+ }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (n(), u(U, m({
129
128
  key: 3,
130
129
  modelValue: e.queryValue,
131
130
  "onUpdate:modelValue": (a) => e.queryValue = a,
132
131
  options: e.dataList,
133
- props: { ...l(H) },
132
+ props: { ...l(ue) },
134
133
  placeholder: `${l(d)("act.selectPlaceholder")}${e.fieldName}`,
135
134
  clearable: "",
136
135
  filterable: "",
@@ -166,7 +165,7 @@ const ie = {
166
165
  clearable: "",
167
166
  filterable: "",
168
167
  lazy: "",
169
- load: (a, N) => Z({ node: a, resolve: N }, e),
168
+ load: (a, N) => X({ node: a, resolve: N }, e),
170
169
  ref_for: !0
171
170
  }, l(p)(e), {
172
171
  onChange: t[5] || (t[5] = (a) => c({ permissionCode: 1001 }))
@@ -197,7 +196,7 @@ const ie = {
197
196
  ]),
198
197
  _: 2
199
198
  }, 1032, ["label-width", "label"])), [
200
- [ne, G(P)]
199
+ [re, K(P)]
201
200
  ])), 128)),
202
201
  l(f).length ? (n(), u(k, {
203
202
  key: 0,
@@ -232,13 +231,13 @@ const ie = {
232
231
  ]),
233
232
  _: 1
234
233
  }, 8, ["style"]),
235
- b.data.tableConfig.isExpandQuery && ((V = l(f)) == null ? void 0 : V.length) > b.data.tableConfig.tableQueryRowWidth ? (n(), u(T, {
234
+ _.data.tableConfig.isExpandQuery && ((V = l(f)) == null ? void 0 : V.length) > _.data.tableConfig.tableQueryRowWidth ? (n(), u(T, {
236
235
  key: 0,
237
236
  class: "expand",
238
237
  text: "",
239
238
  size: "small",
240
239
  icon: l(C) ? "ArrowDown" : "ArrowUp",
241
- onClick: ee
240
+ onClick: Z
242
241
  }, {
243
242
  default: h(() => [
244
243
  Y(B(l(C) ? l(d)("act.expand") : l(d)("act.retract")), 1)
@@ -248,7 +247,7 @@ const ie = {
248
247
  ])) : g("", !0);
249
248
  };
250
249
  }
251
- }, he = /* @__PURE__ */ se(ce, [["__scopeId", "data-v-5dc94ebf"]]);
250
+ }, he = /* @__PURE__ */ ne(ce, [["__scopeId", "data-v-e748430f"]]);
252
251
  export {
253
252
  he as default
254
253
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "act-plus",
3
- "version": "1.1.40",
3
+ "version": "1.1.42",
4
4
  "private": false,
5
5
  "description": "act config",
6
6
  "main": "act-plus.js",
package/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.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%}.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-780a35b0] .el-empty__image{width:100%}.table-link[data-v-780a35b0]{cursor:pointer;color:#409eff;text-decoration:underline}.file-image[data-v-780a35b0]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-780a35b0]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.act-module[data-v-780a35b0]{padding:0;margin:0;border:none}.page-container[data-v-90872094]{position:relative}.page-container .header-operate[data-v-90872094]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-90872094]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-90872094]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-90872094]{width:360px;margin:0 24px}.act-table .table-pagination[data-v-3f4bfffb]{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-5dc94ebf] .el-form-item{margin-bottom:8px}.search-module-container[data-v-5dc94ebf] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-5dc94ebf]{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-5dc94ebf]{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-5dc94ebf]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-1cf1f0ce]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-1cf1f0ce]{margin:6px}.no-config[data-v-92775a28]{line-height:32px;font-weight:700}.no-config-field[data-v-92775a28]{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-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-862782ff]{display:flex;align-items:center}.card-header-operate[data-v-862782ff]{margin-left:auto}.form-list[data-v-862782ff]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-862782ff]:last-child{border:none}.config-list-operate[data-v-862782ff]{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}.submit-operate[data-v-c63f456e]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-c63f456e]{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}.add-icon-btn[data-v-bc91dc45]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-bc91dc45]{display:flex;justify-content:center}.condition-box[data-v-bc91dc45] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-bc91dc45]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-bc91dc45]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-2aab2179]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-2aab2179]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-2aab2179]{cursor:pointer;width:20px;height:20px}
1
+ @charset "UTF-8";.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%}.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-fa6cf45b] .el-empty__image{width:100%}.table-link[data-v-fa6cf45b]{cursor:pointer;color:#409eff;text-decoration:underline}.file-image[data-v-fa6cf45b]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-fa6cf45b]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.act-module[data-v-fa6cf45b]{padding:0;margin:0;border:none}.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-3e5e9347]{display:flex;align-items:center}.card-header -operate[data-v-3e5e9347]{margin-left:auto}.form-list[data-v-3e5e9347]{margin-bottom:24px;border-bottom:1px solid var(--el-color-primary)}.form-list[data-v-3e5e9347]:last-child{border:none}.config-list-operate[data-v-3e5e9347]{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}.submit-operate[data-v-c63f456e]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-c63f456e]{cursor:pointer;width:20px;height:20px}.page-container[data-v-4ec549a6]{position:relative}.page-container .header-operate[data-v-4ec549a6]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-4ec549a6]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-4ec549a6]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-4ec549a6]{width:360px;margin:0 24px}.act-table .table-pagination[data-v-92f0fcb4]{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-e748430f] .el-form-item{margin-bottom:8px}.search-module-container[data-v-e748430f] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-e748430f]{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-e748430f]{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-e748430f]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-7d9574aa]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-7d9574aa]{margin:6px}.no-config[data-v-37b49f83]{line-height:32px;font-weight:700}.no-config-field[data-v-37b49f83]{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-75eab9b4]{cursor:pointer;width:24px;height:24px;margin-left:6px}.condition-box[data-v-75eab9b4]{display:flex;justify-content:center}.condition-box[data-v-75eab9b4] .el-form-item__content{flex:0;min-width:300px}.submit-operate[data-v-75eab9b4]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-75eab9b4]{cursor:pointer;width:20px;height:20px}.add-icon-btn[data-v-2aab2179]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-2aab2179]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-2aab2179]{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}
@@ -1,155 +0,0 @@
1
- import { inject as S, defineAsyncComponent as T, reactive as W, ref as g, provide as D, watch as j, resolveComponent as m, openBlock as F, createBlock as z, withCtx as d, createElementVNode as I, createVNode as c, unref as i, isRef as E, createTextVNode as x, toDisplayString as P } from "vue";
2
- import { useRoute as H } from "vue-router";
3
- import { _ as K } from "./index-c18badb4.js";
4
- import "js-base64";
5
- import "element-plus";
6
- import "monaco-editor";
7
- const $ = {
8
- __name: "configBtns",
9
- props: {
10
- modelValue: { type: Object, default: () => [] }
11
- },
12
- emits: ["update:modelValue"],
13
- setup(L, { expose: V, emit: G }) {
14
- const _ = H(), h = S("request"), q = T(() => import("./dialogConfigBtn-2a5b29d3.js")), u = L, C = () => ({
15
- sort: 0,
16
- permissionCode: null,
17
- requestUrl: "",
18
- btnName: "",
19
- btnAlias: "",
20
- btnIcon: "",
21
- btnPostion: "",
22
- btnType: "",
23
- btnColor: "",
24
- submitWay: "",
25
- isCustomBtn: !1,
26
- customType: "",
27
- codeStr: "",
28
- customComponentName: "",
29
- customComponentUrl: "",
30
- // isBatchOperate: false,
31
- associationMenuId: "",
32
- submitFields: [],
33
- matchFields: []
34
- });
35
- let n = W((() => ({
36
- tableLoading: !1,
37
- showConfigBtnDialog: !1,
38
- dialogData: {}
39
- }))()), w = g(null), v = 0, y = [], s = g([]), M = [
40
- { prop: "checkbox", width: 60 },
41
- { prop: "serialNumber", width: 80 },
42
- { label: "按钮名称", prop: "btnName", minWidth: 200 },
43
- { label: "权限码", prop: "permissionCode", minWidth: 200 },
44
- { label: "按钮别名", prop: "btnAlias", minWidth: 120 },
45
- { label: "按钮图标", prop: "btnIcon", minWidth: 120 },
46
- { label: "是否自定义", prop: "isCustomBtn", width: 120, render: !0 },
47
- { label: "排序", prop: "sort", width: 180, render: !0 },
48
- { label: "操作", prop: "operate", width: 120, render: !0, fixed: "right" }
49
- ], f = g([]);
50
- const N = (e) => h({ url: "/api/v1/sysMenus/getAllList", method: "post", data: e }), k = (e) => h({ url: "/api/v1/sysMenus/getMenuOfOperate", method: "get", params: e }), R = (e, t) => {
51
- s.value.includes(e.permissionCode) || s.value.push(e.permissionCode), Object.assign(f.value[v], e), t(!0);
52
- }, A = async (e) => {
53
- try {
54
- n.tableLoading = !0;
55
- const t = u.id ? u.id : _.params.id, { data: l } = await k({ id: t });
56
- s.value = (l || []).filter((a) => (e || []).some((r) => r.permissionCode == a.unique)).map((a) => a.unique), f.value = (l || []).map((a, r) => {
57
- let b = C(), p = (e || []).find((o) => o.permissionCode == a.unique) || {};
58
- return { ...b, btnIcon: a.icon || "", ...p, btnName: a.name, permissionCode: a.unique, sort: p.sort ? p.sort : (r + 1) * 10 };
59
- }).sort((a, r) => a.sort - r.sort), n.tableLoading = !1;
60
- } catch (t) {
61
- n.tableLoading = !1, console.error(t);
62
- }
63
- }, U = () => w.value.getSelectionRows() || [];
64
- D("associationMenuList", y), D("createDefaultButtonItem", C), j(
65
- () => u.modelValue,
66
- async (e, t) => {
67
- try {
68
- if (e.length) {
69
- const l = u.id ? u.id : _.params.id;
70
- y = (await N({ dynamicFilters: [{ field: "parentId", operate: "Equal", value: l }] })).data || [], await A(e);
71
- } else
72
- s.value = [], f.value = [];
73
- } catch (l) {
74
- n.tableLoading = !1, console.error(l);
75
- }
76
- },
77
- { deep: !0 }
78
- );
79
- const O = (e) => {
80
- n.dialogData = e.row, v = e.$index, n.showConfigBtnDialog = !0;
81
- };
82
- return V({ getTableSelectionRows: U }), (e, t) => {
83
- const l = m("el-tag"), a = m("el-input-number"), r = m("el-button"), b = m("a-table"), p = m("el-card");
84
- return F(), z(p, {
85
- class: "form-card",
86
- shadow: "hover"
87
- }, {
88
- header: d(() => t[2] || (t[2] = [
89
- I("div", { class: "card-header" }, [
90
- I("div", { class: "card-header-title" }, "按钮配置")
91
- ], -1)
92
- ])),
93
- default: d(() => [
94
- c(b, {
95
- ref_key: "tableRef",
96
- ref: w,
97
- loading: i(n).tableLoading,
98
- rowKey: "permissionCode",
99
- selection: i(s),
100
- "onUpdate:selection": t[0] || (t[0] = (o) => E(s) ? s.value = o : s = o),
101
- headers: i(M),
102
- data: i(f),
103
- showPagination: !1
104
- }, {
105
- isCustomBtn: d(({ scope: o }) => [
106
- c(l, {
107
- type: "primary",
108
- effect: "dark",
109
- size: "small"
110
- }, {
111
- default: d(() => [
112
- x(P(o.row.isCustomBtn ? "是" : "否"), 1)
113
- ]),
114
- _: 2
115
- }, 1024)
116
- ]),
117
- sort: d(({ scope: o }) => [
118
- c(a, {
119
- modelValue: o.row.sort,
120
- "onUpdate:modelValue": (B) => o.row.sort = B,
121
- min: 0
122
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
123
- ]),
124
- operate: d(({ scope: o }) => [
125
- c(r, {
126
- type: "primary",
127
- text: "",
128
- size: "small",
129
- icon: "Aim",
130
- onClick: (B) => O(o)
131
- }, {
132
- default: d(() => t[3] || (t[3] = [
133
- x(" 配置 ")
134
- ])),
135
- _: 2
136
- }, 1032, ["onClick"])
137
- ]),
138
- _: 1
139
- }, 8, ["loading", "selection", "headers", "data"]),
140
- c(i(q), {
141
- visible: i(n).showConfigBtnDialog,
142
- "onUpdate:visible": t[1] || (t[1] = (o) => i(n).showConfigBtnDialog = o),
143
- title: "配置按钮",
144
- data: i(n).dialogData,
145
- onRefresh: R
146
- }, null, 8, ["visible", "data"])
147
- ]),
148
- _: 1
149
- });
150
- };
151
- }
152
- }, oe = /* @__PURE__ */ K($, [["__scopeId", "data-v-862782ff"]]);
153
- export {
154
- oe as default
155
- };
@@ -1,199 +0,0 @@
1
- import { defineAsyncComponent as H, inject as U, reactive as j, ref as B, watch as q, resolveComponent as m, openBlock as c, createBlock as w, withCtx as a, createElementVNode as h, createVNode as d, createTextVNode as i, unref as s, toDisplayString as f, createElementBlock as I, Fragment as K, renderList as O, createCommentVNode as W } from "vue";
2
- import { a as Y } from "./enum-d734222c.js";
3
- import { _ as G } from "./index-c18badb4.js";
4
- import "vue-router";
5
- import "js-base64";
6
- import "element-plus";
7
- import "monaco-editor";
8
- const J = { class: "card-header" }, M = {
9
- __name: "configFileds",
10
- props: {
11
- modelValue: { type: Object, default: () => [] }
12
- },
13
- emits: ["update:modelValue"],
14
- setup(C, { emit: v }) {
15
- const F = H(() => import("./dialogAddField-37d23c28.js")), g = v, b = C, V = U("configData")();
16
- let l = j((() => ({
17
- tableLoading: !1,
18
- showAddFieldDialog: !1,
19
- dialogTitle: "字段配置",
20
- dialogData: {}
21
- }))()), p = 0, D = [
22
- { label: "序号", prop: "serialNumber", width: 60 },
23
- { label: "字段", prop: "fieldName", width: 220 },
24
- { label: "字段Key", prop: "fieldKey", width: 180 },
25
- { label: "字段类型", prop: "fieldType", width: 180, render: !0 },
26
- { label: "使用场景", prop: "useScenes", minWidth: 180, render: !0 },
27
- { label: "是否自定义表头", prop: "customTableHeaderName", width: 140, render: !0 },
28
- { label: "场景自定义", prop: "formCustomComponentes", width: 140, render: !0 },
29
- { label: "排序", prop: "sort", width: 180, render: !0 },
30
- { label: "操作", prop: "operate", width: 180, render: !0, fixed: "right" }
31
- ], r = B([]);
32
- const T = (e) => {
33
- if (!Reflect.has(e, "fieldType"))
34
- return "";
35
- const t = Y.find((n) => n.value == e.fieldType);
36
- return (t == null ? void 0 : t.key) || "";
37
- }, k = (e) => Reflect.has(e, "useScenes") ? [
38
- { btnName: "表格查询", permissionCode: "tableSearch" },
39
- { btnName: "表格展示", permissionCode: "tableShow" },
40
- ...V.value.buttons || []
41
- ].filter((n) => e.useScenes.includes(n.permissionCode)).map((n) => n.btnName) : [], y = (e) => (e.formCustomComponentes || []).filter((t) => t.isFiledCustom).map((t) => `${t.btnName}:是`).join(), x = (e, t) => {
42
- if (p == null) {
43
- const n = r.value.length;
44
- r.value.push({ ...e, sort: (n + 1) * 10 });
45
- } else
46
- r.value[p] = {
47
- ...e,
48
- postRequestParams: [...e.postRequestParams],
49
- useScenes: [...e.useScenes],
50
- formCustomComponentes: [...e.formCustomComponentes]
51
- };
52
- g("update:modelValue", r.value), t(!0);
53
- }, N = async () => {
54
- try {
55
- l.tableLoading = !0, r.value = (b.modelValue || []).map((e) => ({ ...e, sort: e.sort ? e.sort : 0 })).sort((e, t) => e.sort - t.sort), l.tableLoading = !1;
56
- } catch (e) {
57
- l.tableLoading = !1, console.error(e);
58
- }
59
- };
60
- q(
61
- () => b.modelValue,
62
- async (e, t) => {
63
- await N();
64
- },
65
- { deep: !0, immediate: !0 }
66
- );
67
- const S = () => {
68
- p = null, l.dialogData = {}, l.showAddFieldDialog = !0;
69
- }, A = (e) => {
70
- p = e.$index, l.dialogData = e.row, l.showAddFieldDialog = !0;
71
- }, L = () => {
72
- g("update:modelValue", r.value);
73
- }, E = (e) => {
74
- r.value.splice(e.$index, 1), g("update:modelValue", r.value);
75
- };
76
- return (e, t) => {
77
- const n = m("el-button"), _ = m("el-tag"), P = m("el-input-number"), R = m("a-table"), $ = m("el-card");
78
- return c(), w($, {
79
- class: "form-card",
80
- shadow: "hover"
81
- }, {
82
- header: a(() => [
83
- h("div", J, [
84
- t[3] || (t[3] = h("div", { class: "card-header-title" }, "字段配置", -1)),
85
- d(n, {
86
- class: "card-header-operate",
87
- type: "primary",
88
- icon: "Plus",
89
- onClick: t[0] || (t[0] = (o) => S())
90
- }, {
91
- default: a(() => t[2] || (t[2] = [
92
- i("添加字段")
93
- ])),
94
- _: 1
95
- })
96
- ])
97
- ]),
98
- default: a(() => [
99
- d(R, {
100
- loading: s(l).tableLoading,
101
- headers: s(D),
102
- data: s(r),
103
- showPagination: !1
104
- }, {
105
- fieldType: a(({ scope: o }) => [
106
- i(f(T(o.row)), 1)
107
- ]),
108
- useScenes: a(({ scope: o }) => [
109
- (c(!0), I(K, null, O(k(o.row), (u, z) => (c(), w(_, {
110
- style: { margin: "0 4px" },
111
- key: z,
112
- type: "success",
113
- effect: "dark",
114
- size: "small"
115
- }, {
116
- default: a(() => [
117
- i(f(u), 1)
118
- ]),
119
- _: 2
120
- }, 1024))), 128))
121
- ]),
122
- customTableHeaderName: a(({ scope: o }) => [
123
- d(_, {
124
- type: "primary",
125
- effect: "dark",
126
- size: "small"
127
- }, {
128
- default: a(() => [
129
- i(f(o.row.customTableHeaderName ? "是" : "否"), 1)
130
- ]),
131
- _: 2
132
- }, 1024)
133
- ]),
134
- formCustomComponentes: a(({ scope: o }) => [
135
- y(o.row) ? (c(), w(_, {
136
- key: 0,
137
- type: "primary",
138
- effect: "dark",
139
- size: "small"
140
- }, {
141
- default: a(() => [
142
- i(f(y(o.row)), 1)
143
- ]),
144
- _: 2
145
- }, 1024)) : W("", !0)
146
- ]),
147
- sort: a(({ scope: o }) => [
148
- d(P, {
149
- modelValue: o.row.sort,
150
- "onUpdate:modelValue": (u) => o.row.sort = u,
151
- min: 0,
152
- onChange: L
153
- }, null, 8, ["modelValue", "onUpdate:modelValue"])
154
- ]),
155
- operate: a(({ scope: o }) => [
156
- d(n, {
157
- type: "primary",
158
- text: "",
159
- size: "small",
160
- icon: "EditPen",
161
- onClick: (u) => A(o)
162
- }, {
163
- default: a(() => t[4] || (t[4] = [
164
- i(" 编辑 ")
165
- ])),
166
- _: 2
167
- }, 1032, ["onClick"]),
168
- d(n, {
169
- type: "danger",
170
- text: "",
171
- size: "small",
172
- icon: "Delete",
173
- onClick: (u) => E(o)
174
- }, {
175
- default: a(() => t[5] || (t[5] = [
176
- i(" 删除 ")
177
- ])),
178
- _: 2
179
- }, 1032, ["onClick"])
180
- ]),
181
- _: 1
182
- }, 8, ["loading", "headers", "data"]),
183
- d(s(F), {
184
- visible: s(l).showAddFieldDialog,
185
- "onUpdate:visible": t[1] || (t[1] = (o) => s(l).showAddFieldDialog = o),
186
- title: s(l).dialogTitle,
187
- configData: b.data,
188
- data: s(l).dialogData,
189
- onRefresh: x
190
- }, null, 8, ["visible", "title", "configData", "data"])
191
- ]),
192
- _: 1
193
- });
194
- };
195
- }
196
- }, ne = /* @__PURE__ */ G(M, [["__scopeId", "data-v-3440b427"]]);
197
- export {
198
- ne as default
199
- };