act-plus 1.1.36 → 1.1.38

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "act-plus",
3
- "version": "1.1.36",
3
+ "version": "1.1.38",
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";.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-aee5e89e] .el-empty__image{width:100%}.file-image[data-v-aee5e89e]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-aee5e89e]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.page-container[data-v-356e8a63]{position:relative}.page-container .header-operate[data-v-356e8a63]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-356e8a63]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-356e8a63]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-356e8a63]{width:360px;margin:0 24px}.act-table .table-pagination[data-v-3ccfdf86]{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-39165fde] .el-form-item{margin-bottom:8px}.search-module-container[data-v-39165fde] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-39165fde]{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-39165fde]{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-39165fde]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-b8dfe0ca]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-b8dfe0ca]{margin:6px}.card-header[data-v-883ef486]{display:flex;align-items:center}.card-header-operate[data-v-883ef486]{margin-left:auto}.no-config[data-v-883ef486]{line-height:32px;font-weight:700}.no-config-field[data-v-883ef486]{margin-left:60px;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-9f0c7bbf]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-9f0c7bbf]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-9f0c7bbf]{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: 16px}.el-card__body{height:100%;box-sizing:border-box}.el-date-editor{--el-date-editor-width: 100%}[data-v-fcf1be94] .el-empty__image{width:100%}.table-link[data-v-fcf1be94]{cursor:pointer;color:#409eff;text-decoration:underline}.file-image[data-v-fcf1be94]{display:block;width:32px;height:32px;margin:0 auto;border-radius:4px;line-height:32px!important}.no-image[data-v-fcf1be94]{width:100%;height:100%;font-size:12px;background-color:#f5f7fa}.act-module[data-v-fcf1be94]{padding:0;margin:0;border:none}.page-container[data-v-356e8a63]{position:relative}.page-container .header-operate[data-v-356e8a63]{position:sticky;top:0;z-index:999}.page-container .submit-box[data-v-356e8a63]{display:flex;align-items:center;justify-content:space-between}.page-container .submit-box-r[data-v-356e8a63]{display:flex;align-items:center}.page-container .submit-box-r .menu-select[data-v-356e8a63]{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-e8e4dcb3] .el-form-item{margin-bottom:8px}.search-module-container[data-v-e8e4dcb3] .el-select__selection{flex-wrap:nowrap}.search-module-container .form-content[data-v-e8e4dcb3]{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-e8e4dcb3]{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-e8e4dcb3]{display:flex;margin:0 auto;color:#a4a2a2}.header-operate-container[data-v-b8dfe0ca]{display:flex;align-items:center;justify-content:flex-end}.header-operate-container .el-btn[data-v-b8dfe0ca]{margin:6px}.card-header[data-v-7ddb4597]{display:flex;align-items:center}.card-header-operate[data-v-7ddb4597]{margin-left:auto}.no-config[data-v-7ddb4597]{line-height:32px;font-weight:700}.no-config-field[data-v-7ddb4597]{margin-left:60px;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-9f0c7bbf]{cursor:pointer;width:24px;height:24px;margin-left:6px}.submit-operate[data-v-9f0c7bbf]{display:flex;align-items:center;height:32px;padding-left:12px}.submit-operate .match-opreate[data-v-9f0c7bbf]{cursor:pointer;width:20px;height:20px}
@@ -1,337 +0,0 @@
1
- import { defineAsyncComponent as T, inject as F, reactive as ge, ref as $, watch as Ve, resolveComponent as m, resolveDirective as z, openBlock as d, createBlock as i, withCtx as h, createElementVNode as W, createVNode as G, unref as l, createTextVNode as x, toDisplayString as N, withDirectives as J, createElementBlock as D, Fragment as w, renderList as A, mergeProps as b, createCommentVNode as Q, resolveDynamicComponent as Fe, isRef as Ce, toRaw as De } from "vue";
2
- import { _ as Ke, u as Te, P as Ne, a as we } from "./index-a4e6b7a2.js";
3
- import { ElNotification as Ue } from "element-plus";
4
- import "vue-router";
5
- import "js-base64";
6
- import "monaco-editor";
7
- const ke = { class: "no-config-field" }, Le = { class: "dialog-footer" }, ve = {
8
- __name: "index",
9
- props: {
10
- visible: { type: Boolean, default: !1 },
11
- title: { type: String, default: "" },
12
- data: { type: Object, default: () => ({}) }
13
- },
14
- emits: ["update:visible", "refresh"],
15
- setup(K, { emit: X }) {
16
- const Z = T(() => import("./index-a4e6b7a2.js").then((o) => o.f)), I = T(() => import("./index-21ab1ef2.js")), ee = T(() => import("./index-a4e6b7a2.js").then((o) => o.e)), le = T(() => import("./index-a4e6b7a2.js").then((o) => o.d)), { t: c } = Te(), M = F("request"), oe = F("loadComponents"), q = F("formatDataType"), E = F("globalProps"), ae = F("stringToBoolean"), y = F("getFieldUiProps"), te = F("disposeRequestData"), O = X, u = K;
17
- let g = ge((() => ({
18
- dialogLoading: !1,
19
- btnLoading: !1
20
- }))()), U = $([]), t = $({}), k = $(null), de = {};
21
- const se = (o) => o.formColumnCol == null || o.customFiledsComponentes[o.customFiledsComponentes.customComponentName] ? 24 : o.formColumnCol ? o.formColumnCol : 24 / o.formRow, re = (o) => {
22
- if (["input", "textarea"].includes(o.fieldType))
23
- return "blur";
24
- if (["select", "multipleSelect", "datetimerange", "treeSelect", "provinceCascade"].includes(o.fieldType))
25
- return "change";
26
- }, ne = (o) => {
27
- if (!["input", "textarea"].includes(o) && ["multipleSelect", "dateRange"].includes(o))
28
- return [];
29
- }, ie = (o, p) => {
30
- if (["string"].includes(p))
31
- return o.join(";");
32
- if (["number"].includes(p))
33
- return Number(o);
34
- if (["array"].includes(p))
35
- return o;
36
- }, ce = (o) => {
37
- if (["multipleSelect"].includes(o.fieldType))
38
- return u.data.rowData[o.fieldKey] ? u.data.rowData[o.fieldKey].split(";") : [];
39
- if (["dateRange"].includes(o.fieldType)) {
40
- const _ = o.fieldKey.split("&");
41
- return u.data.rowData[o.fieldKey] = _.map((n) => u.data.rowData[n]), u.data.rowData[o.fieldKey];
42
- }
43
- const p = u.data.rowData[o.fieldKey];
44
- return p === "true" || p === "false" ? ae(p) : p;
45
- }, ue = (o) => M({ url: u.data.dataItem.requestUrl, method: "post", data: o });
46
- Ve(
47
- () => u.visible,
48
- async (o, p) => {
49
- if (o)
50
- try {
51
- g.dialogLoading = !0;
52
- const _ = await te(u.data.formList, u.data.rowData, !1, !0);
53
- u.data.formList.sort((n, f) => n.sort - f.sort).forEach(async (n) => {
54
- const f = _.find((r) => n.fieldName == r.fieldName && n.fieldKey == r.fieldKey);
55
- f && (n.dataList = (f == null ? void 0 : f.dataList) ?? []), de[n.fieldKey] = { submitFieldType: n.fieldSubmitType, isFormSetValue: n.isFormSetValue }, t.value[n.fieldKey] = Object.keys(u.data.rowData).length && n.isFormSetValue ? ce(n) : ne(n.fieldType);
56
- const { isFiledCustom: C, customComponentName: V, customComponentUrl: s } = n.customFiledsComponentes;
57
- if (C && !n.customFiledsComponentes[V]) {
58
- const r = await oe(s, V);
59
- n.customFiledsComponentes[V] = r;
60
- }
61
- }), console.log(u.data.formList), U.value = u.data.formList || [], g.dialogLoading = !1;
62
- } catch {
63
- g.dialogLoading = !1, ƒ;
64
- }
65
- }
66
- );
67
- const fe = (o) => {
68
- L(), o();
69
- }, L = () => {
70
- U.value = [], k.value.resetFields(), O("update:visible", !1);
71
- }, pe = (o) => {
72
- o && o.validate((p) => {
73
- if (p) {
74
- g.btnLoading = !0;
75
- const { dataItem: _, rowData: n } = u.data;
76
- let f = { ...De(t.value) };
77
- Object.keys(f).forEach((s) => {
78
- s.includes("&") ? f[s].split("&").forEach((v, P) => {
79
- f[v] = f[s][P];
80
- }) : Array.isArray(f[s]) && (f[s] = ie(f[s], "string"));
81
- });
82
- const C = _.submitFields.filter((s) => s.matchType == "default").reduce((s, r) => (r.submitFieldType === "string" && (s[r.submitFieldName] = r.matchFieldName.toString()), s), {}), V = _.submitFields.filter((s) => s.matchType == "match").reduce((s, r) => (Reflect.has(r, "submitFieldMatchOrigin") && r.submitFieldMatchOrigin != "rowData" ? Reflect.has(E.matchData, r.submitFieldMatchOrigin) && (s[r.submitFieldName] = q(r.submitFieldType, E.matchData[r.submitFieldMatchOrigin][r.matchFieldName])) : s[r.submitFieldName] = q(r.submitFieldType, n[r.matchFieldName]), s), {});
83
- ue({
84
- ...f,
85
- ...C,
86
- ...V
87
- }).then((s) => {
88
- try {
89
- Ue({ title: c("act.tip"), message: c("act.saveSuccessfully"), type: "success", duration: 2500 }), L(), O("refresh");
90
- } catch (r) {
91
- console.error(r);
92
- }
93
- g.btnLoading = !1;
94
- }).catch((s) => {
95
- console.error(s), g.btnLoading = !1;
96
- });
97
- }
98
- });
99
- };
100
- return (o, p) => {
101
- var B;
102
- const _ = m("el-input"), n = m("el-option"), f = m("el-select"), C = m("el-select-v2"), V = m("el-date-picker"), s = m("el-cascader"), r = m("el-switch"), v = m("el-form-item"), P = m("el-col"), me = m("el-row"), ye = m("el-form"), Y = m("el-button"), be = m("el-dialog"), _e = z("loading"), he = z("debounce");
103
- return d(), i(be, {
104
- "model-value": u.visible,
105
- title: u.title,
106
- top: "5vh",
107
- width: (B = K.data.formConfig) == null ? void 0 : B.dialogWidth,
108
- draggable: "",
109
- overflow: "",
110
- "append-to-body": "",
111
- "destroy-on-close": "",
112
- "close-on-click-modal": !1,
113
- "before-close": fe
114
- }, {
115
- footer: h(() => [
116
- W("span", Le, [
117
- G(Y, {
118
- loading: l(g).btnLoading,
119
- onClick: L
120
- }, {
121
- default: h(() => [
122
- x(N(l(c)("act.cancel")), 1)
123
- ]),
124
- _: 1
125
- }, 8, ["loading"]),
126
- J((d(), i(Y, {
127
- type: "primary",
128
- loading: l(g).btnLoading,
129
- onClick: p[1] || (p[1] = (S) => pe(l(k)))
130
- }, {
131
- default: h(() => [
132
- x(N(l(c)("act.save")), 1)
133
- ]),
134
- _: 1
135
- }, 8, ["loading"])), [
136
- [he]
137
- ])
138
- ])
139
- ]),
140
- default: h(() => {
141
- var S, j;
142
- return [
143
- J((d(), i(ye, {
144
- ref_key: "formRef",
145
- ref: k,
146
- model: l(t),
147
- "label-suffix": ":",
148
- "label-width": (S = K.data.formConfig) == null ? void 0 : S.formLabelWidth,
149
- "label-position": (j = K.data.formConfig) == null ? void 0 : j.formLabelPosition
150
- }, {
151
- default: h(() => [
152
- G(me, { gutter: 40 }, {
153
- default: h(() => [
154
- (d(!0), D(w, null, A(l(U), (e, H) => (d(), i(P, {
155
- span: se(e),
156
- key: H
157
- }, {
158
- default: h(() => [
159
- e.customFiledsComponentes.isFiledCustom ? (d(), D(w, { key: 1 }, [
160
- e.customFiledsComponentes[e.customFiledsComponentes.customComponentName] ? (d(), i(Fe(e.customFiledsComponentes[e.customFiledsComponentes.customComponentName]), {
161
- key: 0,
162
- fieldCofnigItem: e,
163
- rowData: u.data.rowData,
164
- form: l(t),
165
- "onUpdate:form": p[0] || (p[0] = (a) => Ce(t) ? t.value = a : t = a)
166
- }, null, 40, ["fieldCofnigItem", "rowData", "form"])) : (d(), D("div", {
167
- class: "no-config",
168
- key: H
169
- }, [
170
- W("span", ke, "【" + N(e.fieldName) + "】", 1),
171
- x(N(l(c)("act.fieldCustom")), 1)
172
- ]))
173
- ], 64)) : (d(), i(v, {
174
- key: 0,
175
- label: e.fieldName,
176
- prop: e.fieldKey,
177
- rules: [{ required: e.isFormFieldRequired, message: l(c)("act.requiredMessage"), trigger: re(e) }]
178
- }, {
179
- default: h(() => [
180
- e.fieldType === "input" ? (d(), i(_, b({
181
- key: 0,
182
- modelValue: l(t)[e.fieldKey],
183
- "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
184
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
185
- clearable: "",
186
- ref_for: !0
187
- }, l(y)(e), {
188
- disabled: e.isFormDisabled
189
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : Q("", !0),
190
- e.fieldType === "inputNumber" ? (d(), i(l(Z), b({
191
- key: 1,
192
- modelValue: l(t)[e.fieldKey],
193
- "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
194
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
195
- clearable: "",
196
- ref_for: !0
197
- }, l(y)(e), {
198
- disabled: e.isFormDisabled
199
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "textarea" ? (d(), i(_, b({
200
- key: 2,
201
- modelValue: l(t)[e.fieldKey],
202
- "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
203
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
204
- rows: 4,
205
- ref_for: !0
206
- }, l(y)(e), {
207
- type: "textarea",
208
- disabled: e.isFormDisabled
209
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "selectIcon" ? (d(), i(l(I), b({
210
- key: 3,
211
- modelValue: l(t)[e.fieldKey],
212
- "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
213
- icons: e.dataList,
214
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
215
- ref_for: !0
216
- }, l(y)(e), {
217
- disabled: e.isFormDisabled
218
- }), {
219
- default: h(() => [
220
- (d(!0), D(w, null, A(e.dataList, (a, R) => (d(), i(n, {
221
- key: R,
222
- label: a.key,
223
- value: a.value
224
- }, null, 8, ["label", "value"]))), 128))
225
- ]),
226
- _: 2
227
- }, 1040, ["modelValue", "onUpdate:modelValue", "icons", "placeholder", "disabled"])) : ["select", "multipleSelect"].includes(e.fieldType) ? (d(), i(f, b({
228
- key: 4,
229
- modelValue: l(t)[e.fieldKey],
230
- "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
231
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
232
- clearable: "",
233
- filterable: "",
234
- ref_for: !0
235
- }, l(y)(e), {
236
- multiple: e.fieldType === "multipleSelect",
237
- disabled: e.isFormDisabled
238
- }), {
239
- default: h(() => [
240
- (d(!0), D(w, null, A(e.dataList, (a, R) => (d(), i(n, {
241
- key: R,
242
- label: a.key,
243
- value: a.value
244
- }, null, 8, ["label", "value"]))), 128))
245
- ]),
246
- _: 2
247
- }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "disabled"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (d(), i(C, b({
248
- key: 5,
249
- modelValue: l(t)[e.fieldKey],
250
- "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
251
- options: e.dataList,
252
- props: { ...l(Ne) },
253
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
254
- clearable: "",
255
- filterable: "",
256
- ref_for: !0
257
- }, l(y)(e), {
258
- disabled: e.isFormDisabled,
259
- multiple: e.fieldType === "virtualizedMultipleSelect"
260
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled", "multiple"])) : e.fieldType === "date" ? (d(), i(V, b({
261
- key: 6,
262
- modelValue: l(t)[e.fieldKey],
263
- "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
264
- type: "date",
265
- placeholder: `${l(c)("act.selectPlaceholder")}${l(c)("act.time")}`,
266
- "value-format": "YYYY-MM-DD HH:mm:ss",
267
- ref_for: !0
268
- }, l(y)(e), {
269
- disabled: e.isFormDisabled
270
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : e.fieldType === "dateRange" ? (d(), i(V, b({
271
- key: 7,
272
- modelValue: l(t)[e.fieldKey],
273
- "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
274
- type: "daterange",
275
- "start-placeholder": l(c)("act.startTime"),
276
- "end-placeholder": l(c)("act.endTime"),
277
- "value-format": "YYYY-MM-DD HH:mm:ss",
278
- ref_for: !0
279
- }, l(y)(e), {
280
- disabled: e.isFormDisabled
281
- }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder", "disabled"])) : e.fieldType === "provinceCascade" ? (d(), i(s, b({
282
- key: 8,
283
- modelValue: l(t)[e.fieldKey],
284
- "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
285
- options: e.dataList,
286
- props: l(we),
287
- clearable: "",
288
- filterable: "",
289
- placeholder: `${l(c)("act.selectPlaceholder")}${e.fieldName}`,
290
- ref_for: !0
291
- }, l(y)(e), {
292
- disabled: e.isFormDisabled
293
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "disabled"])) : e.fieldType === "switch" ? (d(), i(r, {
294
- key: 9,
295
- modelValue: l(t)[e.fieldKey],
296
- "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
297
- "active-value": !0,
298
- "inactive-value": !1
299
- }, null, 8, ["modelValue", "onUpdate:modelValue"])) : e.fieldType === "upload" ? (d(), i(l(ee), b({
300
- key: 10,
301
- class: "form-upload",
302
- modelValue: l(t)[e.fieldKey],
303
- "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
304
- request: l(M),
305
- ref_for: !0
306
- }, l(y)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "request"])) : e.fieldType === "editor" ? (d(), i(l(le), b({
307
- key: 11,
308
- modelValue: l(t)[e.fieldKey],
309
- "onUpdate:modelValue": (a) => l(t)[e.fieldKey] = a,
310
- disabled: e.isFormDisabled,
311
- placeholder: `${l(c)("act.inputPlaceholder")}${e.fieldName}`,
312
- ref_for: !0
313
- }, l(y)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "disabled", "placeholder"])) : Q("", !0)
314
- ]),
315
- _: 2
316
- }, 1032, ["label", "prop", "rules"]))
317
- ]),
318
- _: 2
319
- }, 1032, ["span"]))), 128))
320
- ]),
321
- _: 1
322
- })
323
- ]),
324
- _: 1
325
- }, 8, ["model", "label-width", "label-position"])), [
326
- [_e, l(g).dialogLoading]
327
- ])
328
- ];
329
- }),
330
- _: 1
331
- }, 8, ["model-value", "title", "width"]);
332
- };
333
- }
334
- }, qe = /* @__PURE__ */ Ke(ve, [["__scopeId", "data-v-883ef486"]]);
335
- export {
336
- qe as default
337
- };
@@ -1,214 +0,0 @@
1
- import { defineAsyncComponent as j, inject as G, ref as g, watch as J, resolveComponent as s, resolveDirective as X, unref as l, openBlock as a, createElementBlock as h, createVNode as Z, normalizeStyle as ee, 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 le, createTextVNode as P, toDisplayString as E } from "vue";
2
- import { _ as te, u as oe, P as ae, a as re } from "./index-a4e6b7a2.js";
3
- import "vue-router";
4
- import "js-base64";
5
- import "element-plus";
6
- import "monaco-editor";
7
- const ne = {
8
- key: 0,
9
- class: "search-module-container"
10
- }, ue = {
11
- __name: "index",
12
- props: {
13
- data: { type: Object, default: () => ({}) }
14
- },
15
- emits: ["reset", "search"],
16
- setup(D, { emit: M }) {
17
- const Q = j(() => import("./index-a4e6b7a2.js").then((r) => r.f)), { t: d } = oe(), c = G("getFieldUiProps"), k = M, i = D;
18
- let p = g([]), q = g([]), V = g(!0);
19
- const A = (r) => i.data.tableConfig.isExpandQuery && V.value ? i.data.tableConfig.tableQueryRowWidth > r + 1 : !0, R = (r) => {
20
- p.value = (r || []).filter((o) => o.useScenes.includes("tableSearch"));
21
- }, Y = (r) => {
22
- const o = (r || []).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 }];
24
- };
25
- J(
26
- () => i.data,
27
- (r, o) => {
28
- R(r.fields), Y(r.buttons);
29
- },
30
- { immediate: !0 }
31
- );
32
- const f = (r) => {
33
- switch (r.loading = !0, r.permissionCode) {
34
- case "9999":
35
- p.value.forEach((n) => {
36
- n.fieldType.includes("&") ? n.queryValue = [] : n.queryValue = void 0;
37
- }), k("reset", [], () => {
38
- r.loading = !1;
39
- });
40
- break;
41
- default:
42
- const o = p.value.filter((n) => Array.isArray(n.queryValue) ? n.queryValue.length : !!n.queryValue);
43
- k("search", o, () => {
44
- r.loading = !1;
45
- });
46
- break;
47
- }
48
- }, z = () => {
49
- V.value = !V.value;
50
- };
51
- return (r, o) => {
52
- var S;
53
- const n = s("el-input"), F = s("el-option"), I = s("el-select"), L = s("el-select-v2"), O = s("el-cascader"), T = s("el-date-picker"), w = s("el-form-item"), B = s("a-svg-icon"), $ = s("el-button"), H = s("el-form"), W = X("debounce");
54
- return l(p) && l(p).length ? (a(), h("div", ne, [
55
- Z(H, {
56
- style: ee({ "--table-query-row": i.data.tableConfig.tableQueryRowWidth }),
57
- class: "form-content",
58
- ref: "elForm",
59
- "label-suffix": ":",
60
- "label-position": "right"
61
- }, {
62
- default: m(() => [
63
- (a(!0), h(v, null, C(l(p), (e, b) => U((a(), u(w, {
64
- key: b,
65
- class: "search-form-item",
66
- "label-width": i.data.tableConfig.tableQueryLabelWidth,
67
- label: e.fieldName
68
- }, {
69
- default: m(() => [
70
- e.fieldType === "input" || e.fieldType === "editor" ? (a(), u(n, y({
71
- key: 0,
72
- modelValue: e.queryValue,
73
- "onUpdate:modelValue": (t) => e.queryValue = t,
74
- placeholder: `${l(d)("act.inputPlaceholder")}${e.fieldName}`,
75
- clearable: "",
76
- ref_for: !0
77
- }, l(c)(e), {
78
- onKeyup: o[0] || (o[0] = x(N((t) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"]))
79
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : _("", !0),
80
- e.fieldType === "inputNumber" ? (a(), u(l(Q), y({
81
- key: 1,
82
- modelValue: e.queryValue,
83
- "onUpdate:modelValue": (t) => e.queryValue = t,
84
- placeholder: `${l(d)("act.inputPlaceholder")}${e.fieldName}`,
85
- clearable: "",
86
- onKeyup: o[1] || (o[1] = x(N((t) => f({ permissionCode: 1001 }), ["prevent"]), ["enter", "native"])),
87
- ref_for: !0
88
- }, l(c)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : ["select", "switch", "multipleSelect"].includes(e.fieldType) ? (a(), u(I, y({
89
- key: 2,
90
- modelValue: e.queryValue,
91
- "onUpdate:modelValue": (t) => e.queryValue = t,
92
- placeholder: `${l(d)("act.selectPlaceholder")}${e.fieldName}`,
93
- clearable: "",
94
- filterable: "",
95
- ref_for: !0
96
- }, l(c)(e), {
97
- multiple: e.fieldType === "multipleSelect",
98
- "collapse-tags": e.fieldType === "multipleSelect",
99
- "collapse-tags-tooltip": e.fieldType === "multipleSelect",
100
- onChange: o[2] || (o[2] = (t) => f({ permissionCode: 1001 }))
101
- }), {
102
- default: m(() => [
103
- (a(!0), h(v, null, C(e.dataList, (t, K) => (a(), u(F, {
104
- key: K,
105
- label: t.key,
106
- value: t.value
107
- }, null, 8, ["label", "value"]))), 128))
108
- ]),
109
- _: 2
110
- }, 1040, ["modelValue", "onUpdate:modelValue", "placeholder", "multiple", "collapse-tags", "collapse-tags-tooltip"])) : ["virtualizedSelect", "virtualizedMultipleSelect"].includes(e.fieldType) ? (a(), u(L, y({
111
- key: 3,
112
- modelValue: e.queryValue,
113
- "onUpdate:modelValue": (t) => e.queryValue = t,
114
- options: e.dataList,
115
- props: { ...l(ae) },
116
- placeholder: `${l(d)("act.selectPlaceholder")}${e.fieldName}`,
117
- clearable: "",
118
- filterable: "",
119
- ref_for: !0
120
- }, l(c)(e), {
121
- "collapse-tags": e.fieldType === "virtualizedMultipleSelect",
122
- "collapse-tags-tooltip": e.fieldType === "virtualizedMultipleSelect",
123
- multiple: e.fieldType === "virtualizedMultipleSelect",
124
- onChange: o[3] || (o[3] = (t) => f({ permissionCode: 1001 }))
125
- }), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder", "collapse-tags", "collapse-tags-tooltip", "multiple"])) : e.fieldType === "provinceCascade" ? (a(), u(O, y({
126
- key: 4,
127
- modelValue: e.queryValue,
128
- "onUpdate:modelValue": (t) => e.queryValue = t,
129
- options: e.dataList,
130
- props: { ...l(re), [e.fieldUiType]: !0 },
131
- clearable: "",
132
- filterable: "",
133
- placeholder: `${l(d)("act.selectPlaceholder")}${e.fieldName}`,
134
- ref_for: !0
135
- }, l(c)(e)), null, 16, ["modelValue", "onUpdate:modelValue", "options", "props", "placeholder"])) : e.fieldType === "date" ? (a(), u(T, y({
136
- key: 5,
137
- modelValue: e.queryValue,
138
- "onUpdate:modelValue": (t) => e.queryValue = t,
139
- type: "date",
140
- placeholder: `${l(d)("act.selectPlaceholder")}${l(d)("act.time")}`,
141
- "value-format": "YYYY-MM-DD HH:mm:ss",
142
- ref_for: !0
143
- }, l(c)(e), {
144
- onChange: o[4] || (o[4] = (t) => f({ permissionCode: 1001 }))
145
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder"])) : e.fieldType === "dateRange" ? (a(), u(T, y({
146
- key: 6,
147
- modelValue: e.queryValue,
148
- "onUpdate:modelValue": (t) => e.queryValue = t,
149
- type: "daterange",
150
- "start-placeholder": l(d)("act.startTime"),
151
- "end-placeholder": l(d)("act.endTime"),
152
- "value-format": "YYYY-MM-DD HH:mm:ss",
153
- ref_for: !0
154
- }, l(c)(e), {
155
- onChange: o[5] || (o[5] = (t) => f({ permissionCode: 1001 }))
156
- }), null, 16, ["modelValue", "onUpdate:modelValue", "start-placeholder", "end-placeholder"])) : _("", !0)
157
- ]),
158
- _: 2
159
- }, 1032, ["label-width", "label"])), [
160
- [le, A(b)]
161
- ])), 128)),
162
- l(p).length ? (a(), u(w, {
163
- key: 0,
164
- class: "search-form-btn",
165
- "label-width": "0"
166
- }, {
167
- default: m(() => [
168
- (a(!0), h(v, null, C(l(q), (e, b) => U((a(), u($, {
169
- key: b,
170
- type: e.btnColor,
171
- loading: e.loading,
172
- onClick: (t) => f(e)
173
- }, {
174
- default: m(() => [
175
- e.btnIcon ? (a(), u(B, {
176
- key: 0,
177
- class: "mr6",
178
- name: e.btnIcon,
179
- width: "12",
180
- height: "12",
181
- color: "#fff"
182
- }, null, 8, ["name"])) : _("", !0),
183
- P(" " + E(e.btnName), 1)
184
- ]),
185
- _: 2
186
- }, 1032, ["type", "loading", "onClick"])), [
187
- [W]
188
- ])), 128))
189
- ]),
190
- _: 1
191
- })) : _("", !0)
192
- ]),
193
- _: 1
194
- }, 8, ["style"]),
195
- i.data.tableConfig.isExpandQuery && ((S = l(p)) == null ? void 0 : S.length) > i.data.tableConfig.tableQueryRowWidth ? (a(), u($, {
196
- key: 0,
197
- class: "expand",
198
- text: "",
199
- size: "small",
200
- icon: l(V) ? "ArrowDown" : "ArrowUp",
201
- onClick: z
202
- }, {
203
- default: m(() => [
204
- P(E(l(V) ? l(d)("act.expand") : l(d)("act.retract")), 1)
205
- ]),
206
- _: 1
207
- }, 8, ["icon"])) : _("", !0)
208
- ])) : _("", !0);
209
- };
210
- }
211
- }, ye = /* @__PURE__ */ te(ue, [["__scopeId", "data-v-39165fde"]]);
212
- export {
213
- ye as default
214
- };