@bytenew/bn-bus-ui 1.1.399

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.
Files changed (46) hide show
  1. package/README.md +637 -0
  2. package/common.scss +715 -0
  3. package/dist/assocTableSearch-C9KUFIpd.js +349 -0
  4. package/dist/assocTableSearch.css +1 -0
  5. package/dist/bn-bus-ui.es.js +58 -0
  6. package/dist/bn-bus-ui.umd.js +42 -0
  7. package/dist/chooseIPaasData-Bfm58C-0.js +391 -0
  8. package/dist/chooseIPaasData.css +1 -0
  9. package/dist/defaultSet-BA11k622.js +322 -0
  10. package/dist/defaultSet.css +1 -0
  11. package/dist/fileFormData-D_Q1vylE.js +53 -0
  12. package/dist/formItemFooter-B3nlSwnS.js +108 -0
  13. package/dist/formItemFooter.css +1 -0
  14. package/dist/funcExprDialog-DeHPFa-L.js +139 -0
  15. package/dist/funcExprDialog.css +1 -0
  16. package/dist/index-B8KbssVN.js +45 -0
  17. package/dist/index-CTZ-0Tyh.js +45 -0
  18. package/dist/index-CZOFm8wK.js +135 -0
  19. package/dist/index-C_ix9-hS.js +44 -0
  20. package/dist/index-Cov88CtD.js +221 -0
  21. package/dist/index-DAtLc2a1.js +89 -0
  22. package/dist/index-DCbIfKgk.js +66 -0
  23. package/dist/index-DDy1d3BS.js +178 -0
  24. package/dist/index-DJ15iYPg.js +89 -0
  25. package/dist/index-DNHXG3dr.js +62 -0
  26. package/dist/index-Dg5V1uNO.js +740 -0
  27. package/dist/index-Dme97Hra.js +118 -0
  28. package/dist/index-DnzoAsk8.js +109 -0
  29. package/dist/index-DrngruPb.js +64 -0
  30. package/dist/index-Q08paoUN.js +51 -0
  31. package/dist/index-VbL1cqCu.js +58 -0
  32. package/dist/index-aooX1QXm.js +183 -0
  33. package/dist/index.css +1 -0
  34. package/dist/index2.css +1 -0
  35. package/dist/index3.css +1 -0
  36. package/dist/index4.css +1 -0
  37. package/dist/index5.css +1 -0
  38. package/dist/index6.css +1 -0
  39. package/dist/index7.css +1 -0
  40. package/dist/install-DSQCBsd_.js +19155 -0
  41. package/dist/install.css +1 -0
  42. package/dist/setOption-BOD7nAuG.js +329 -0
  43. package/dist/setOption.css +1 -0
  44. package/dist/setRelationOption-D7FqiLWj.js +5217 -0
  45. package/dist/setRelationOption.css +1 -0
  46. package/package.json +57 -0
@@ -0,0 +1,322 @@
1
+ import { resolveComponent as f, openBlock as r, createElementBlock as s, createVNode as i, withCtx as h, createElementVNode as _, createCommentVNode as c } from "vue";
2
+ import { _ as V } from "./install-DSQCBsd_.js";
3
+ import { cloneDeep as y } from "lodash";
4
+ const x = {
5
+ name: "defaultSet",
6
+ props: {
7
+ // 最终选中的value
8
+ modelValue: {
9
+ type: Object,
10
+ default() {
11
+ return {};
12
+ }
13
+ },
14
+ // 组件列表
15
+ columnList: {
16
+ type: Array,
17
+ default() {
18
+ return [];
19
+ }
20
+ },
21
+ // 是否禁用
22
+ disabled: Boolean,
23
+ postFunc: Function,
24
+ extendPost: Object
25
+ },
26
+ computed: {
27
+ columnInfo: {
28
+ get() {
29
+ return this.modelValue;
30
+ },
31
+ set(t) {
32
+ this.$emit("update:modelValue", t);
33
+ }
34
+ }
35
+ },
36
+ methods: {
37
+ /**
38
+ * 在光标位置插入文本
39
+ * @param {HTMLElement} dom - 目标输入框DOM元素
40
+ * @param {string} value - 要插入的文本
41
+ * @returns {string} 插入后的完整文本
42
+ */
43
+ insertTextAtCursor(t, n) {
44
+ if (document.selection) {
45
+ t.focus();
46
+ const l = document.selection.createRange();
47
+ l.text = n, t.focus();
48
+ } else if (t.selectionStart || t.selectionStart === 0) {
49
+ const l = t.selectionStart, o = t.selectionEnd, u = t.scrollTop;
50
+ t.value = t.value.substring(0, l) + n + t.value.substring(o), t.focus(), t.selectionStart = l + n.length, t.selectionEnd = l + n.length, t.scrollTop = u;
51
+ } else
52
+ t.value += n, t.focus();
53
+ return t.value;
54
+ },
55
+ /**
56
+ * 将默认值中的组件名称转换为对应的code和id
57
+ * 格式:$组件名$ -> $组件code$ 或 $组件id$
58
+ */
59
+ updateDefaultInfoWithCodeAndId() {
60
+ let t = this.columnInfo.defaultInfo, n = this.columnInfo.defaultInfo;
61
+ this.columnList.forEach((l) => {
62
+ const o = `$${l.name}$`, u = `$${l.columnCode}$`, e = `$${l.id}$`;
63
+ t = t.split(o).join(u), n = n.split(o).join(e);
64
+ }), this.columnInfo.extraInfo.defaultInfoWithCode = t, this.columnInfo.extraInfo.defaultInfoWithId = n;
65
+ },
66
+ /**
67
+ * 处理选择关联组件事件
68
+ * @param {Object} column - 被选中的组件对象
69
+ */
70
+ handleColumnSelect(t) {
71
+ var e, d, m;
72
+ if (((e = this.columnInfo.extraInfo.defaultInfoRuleCols) == null ? void 0 : e.length) >= 10) {
73
+ this.$message.warning("最多可设置10个组件", 2.5);
74
+ return;
75
+ }
76
+ const n = (d = this.$refs.defaultContentString) == null ? void 0 : d.input, l = `$${t.name}$`, o = this.insertTextAtCursor(n, l);
77
+ this.columnInfo.defaultInfo = o, this.updateDefaultInfoWithCodeAndId(), ((m = this.columnInfo.extraInfo.defaultInfoRuleCols) == null ? void 0 : m.some(
78
+ (I) => I.id === t.id && I.name === t.name
79
+ )) || (this.columnInfo.extraInfo.defaultInfoRuleCols = this.columnInfo.extraInfo.defaultInfoRuleCols || [], this.columnInfo.extraInfo.defaultInfoRuleCols.push({
80
+ name: t.name,
81
+ columnCode: t.columnCode,
82
+ behaviorType: t.behaviorType
83
+ }));
84
+ },
85
+ /**
86
+ * 处理默认值输入框内容变化
87
+ * @param {string} val - 当前输入框的值
88
+ */
89
+ handleDefaultValueChange(t) {
90
+ var n, l;
91
+ if (!t) {
92
+ this.columnInfo.extraInfo.defaultInfoRuleCols = [], this.columnInfo.extraInfo.defaultInfoWithCode = "", this.columnInfo.extraInfo.defaultInfoWithId = "";
93
+ return;
94
+ }
95
+ this.columnInfo.extraInfo.defaultInfoRuleCols = ((n = this.columnInfo.extraInfo.defaultInfoRuleCols) == null ? void 0 : n.filter((o) => {
96
+ const u = `$${o.name}$`;
97
+ return t.includes(u);
98
+ })) || [], (l = this.columnInfo.extraInfo.defaultInfoRuleCols) != null && l.length ? this.updateDefaultInfoWithCodeAndId() : (this.columnInfo.extraInfo.defaultInfoWithCode = "", this.columnInfo.extraInfo.defaultInfoWithId = "");
99
+ }
100
+ }
101
+ }, D = { class: "w-default-wrap" };
102
+ function w(t, n, l, o, u, e) {
103
+ const d = f("el-tooltip"), m = f("BnDrop"), I = f("el-input");
104
+ return r(), s("div", D, [
105
+ i(I, {
106
+ modelValue: e.columnInfo.defaultInfo,
107
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => e.columnInfo.defaultInfo = p),
108
+ placeholder: "点击右侧可选择组件关联",
109
+ ref: "defaultContentString",
110
+ onChange: e.handleDefaultValueChange
111
+ }, {
112
+ append: h(() => [
113
+ i(m, {
114
+ options: l.columnList.filter((p) => p.id !== e.columnInfo.id && ![10, 11, 12, 13, 17, 18].includes(p.behaviorType)),
115
+ optionProps: { value: "columnCode", label: "name" },
116
+ placement: "bottom-end",
117
+ onCheckItem: e.handleColumnSelect,
118
+ noValue: ""
119
+ }, {
120
+ default: h(() => [
121
+ _("div", null, [
122
+ i(d, {
123
+ class: "box-item",
124
+ effect: "dark",
125
+ "show-after": 600,
126
+ content: "关联组件将会把组件的值,映射到当前组件的默认值中",
127
+ placement: "top"
128
+ }, {
129
+ default: h(() => [...n[1] || (n[1] = [
130
+ _("span", { class: "bnUIcon bnUIcon-linkFiled w-color-purple w-cursor-pointer" }, null, -1)
131
+ ])]),
132
+ _: 1
133
+ })
134
+ ])
135
+ ]),
136
+ _: 1
137
+ }, 8, ["options", "onCheckItem"])
138
+ ]),
139
+ _: 1
140
+ }, 8, ["modelValue", "onChange"])
141
+ ]);
142
+ }
143
+ const T = /* @__PURE__ */ V(x, [["render", w], ["__scopeId", "data-v-ca300f0b"]]), k = {
144
+ name: "defaultSet",
145
+ components: { stringDefault: T },
146
+ props: {
147
+ //最终选中的value
148
+ modelValue: {
149
+ type: Object,
150
+ default() {
151
+ return {};
152
+ }
153
+ },
154
+ // 组件列表
155
+ columnList: {
156
+ type: Array,
157
+ default() {
158
+ return [];
159
+ }
160
+ },
161
+ // 是否禁用
162
+ disabled: Boolean,
163
+ postFunc: Function,
164
+ extendPost: Object
165
+ },
166
+ methods: {},
167
+ computed: {
168
+ columnInfo: {
169
+ get() {
170
+ return this.modelValue;
171
+ },
172
+ set(t) {
173
+ this.$emit("update:modelValue", t);
174
+ }
175
+ },
176
+ /**
177
+ * 过滤后的选项列表,只保留columnStatus等于1的项
178
+ */
179
+ filteredOptions() {
180
+ if (!this.columnInfo.moduleDefinition || !this.columnInfo.moduleDefinition.optionList)
181
+ return [];
182
+ const t = (l) => Array.isArray(l) ? l.filter((o) => o.columnStatus != 1 ? !1 : (o.children && Array.isArray(o.children) && (o.children = t(o.children)), !0)) : [];
183
+ let n = y(this.columnInfo.moduleDefinition.optionList);
184
+ return t(n);
185
+ },
186
+ /**
187
+ * 联动组件的值转换
188
+ * BnRelation组件需要的是code数组,但我们需要保存完整的对象数组
189
+ */
190
+ relationValue: {
191
+ get() {
192
+ return Array.isArray(this.columnInfo.defaultInfo) && this.columnInfo.defaultInfo.length > 0 && typeof this.columnInfo.defaultInfo[0] == "object" && this.columnInfo.defaultInfo[0] !== null ? this.columnInfo.defaultInfo.map((t) => t.code) : this.columnInfo.defaultInfo || [];
193
+ },
194
+ set(t) {
195
+ if (!Array.isArray(t)) {
196
+ this.columnInfo.defaultInfo = [];
197
+ return;
198
+ }
199
+ const n = (o, u) => {
200
+ if (!Array.isArray(o)) return null;
201
+ for (const e of o) {
202
+ if (e.code === u) {
203
+ let d = y(e);
204
+ return delete d.children, { ...d };
205
+ }
206
+ if (e.children && Array.isArray(e.children)) {
207
+ const d = n(e.children, u);
208
+ if (d) return d;
209
+ }
210
+ }
211
+ return null;
212
+ }, l = t.map((o) => n(this.filteredOptions, o) || { code: o, title: "" });
213
+ this.columnInfo.defaultInfo = l;
214
+ }
215
+ }
216
+ }
217
+ }, A = { class: "defaultSet" }, S = {
218
+ key: 0,
219
+ class: "w-default-wrap"
220
+ }, B = {
221
+ key: 1,
222
+ class: "w-default-wrap"
223
+ }, R = {
224
+ key: 2,
225
+ class: "w-default-wrap"
226
+ }, U = {
227
+ key: 3,
228
+ class: "w-default-wrap"
229
+ }, P = {
230
+ key: 4,
231
+ class: "w-default-wrap"
232
+ }, W = {
233
+ key: 5,
234
+ class: "w-default-wrap"
235
+ }, L = {
236
+ key: 6,
237
+ class: "w-default-wrap"
238
+ };
239
+ function j(t, n, l, o, u, e) {
240
+ var b;
241
+ const d = f("el-input"), m = f("stringDefault"), I = f("BnInpNum"), p = f("BnSelect"), C = f("BnRelation"), v = f("el-date-picker"), g = f("BnDatePicker");
242
+ return r(), s("div", A, [
243
+ e.columnInfo.behaviorType ? c("", !0) : (r(), s("div", S, [
244
+ i(d, {
245
+ modelValue: e.columnInfo.defaultInfo,
246
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => e.columnInfo.defaultInfo = a),
247
+ placeholder: "设置组件默认值",
248
+ clearable: "",
249
+ disabled: l.disabled
250
+ }, null, 8, ["modelValue", "disabled"])
251
+ ])),
252
+ e.columnInfo.behaviorType == 1 ? (r(), s("div", B, [
253
+ i(m, {
254
+ modelValue: e.columnInfo,
255
+ "onUpdate:modelValue": n[1] || (n[1] = (a) => e.columnInfo = a),
256
+ disabled: l.disabled,
257
+ columnList: l.columnList
258
+ }, null, 8, ["modelValue", "disabled", "columnList"])
259
+ ])) : c("", !0),
260
+ e.columnInfo.behaviorType == 2 ? (r(), s("div", R, [
261
+ i(I, {
262
+ modelValue: e.columnInfo.defaultInfo,
263
+ "onUpdate:modelValue": n[2] || (n[2] = (a) => e.columnInfo.defaultInfo = a),
264
+ disabled: l.disabled,
265
+ precision: (b = e.columnInfo.extraInfo) == null ? void 0 : b.valueType
266
+ }, null, 8, ["modelValue", "disabled", "precision"])
267
+ ])) : c("", !0),
268
+ [3, 4, 5].includes(e.columnInfo.behaviorType) ? (r(), s("div", U, [
269
+ i(p, {
270
+ modelValue: e.columnInfo.defaultInfo,
271
+ "onUpdate:modelValue": n[3] || (n[3] = (a) => e.columnInfo.defaultInfo = a),
272
+ options: e.columnInfo.moduleDefinition,
273
+ multiple: e.columnInfo.behaviorType == 5,
274
+ disabled: l.disabled,
275
+ optionProps: { value: "code", label: "title" },
276
+ pageProps: { pageNum: "pageNo", pageSize: "pageSize" },
277
+ pathUrl: e.columnInfo.pathUrl,
278
+ postData: e.columnInfo.postData,
279
+ postFunc: l.postFunc,
280
+ placeholder: "请选择",
281
+ clearable: "",
282
+ filterable: ""
283
+ }, null, 8, ["modelValue", "options", "multiple", "disabled", "pathUrl", "postData", "postFunc"])
284
+ ])) : c("", !0),
285
+ e.columnInfo.behaviorType == 6 || e.columnInfo.behaviorType == 20 ? (r(), s("div", P, [
286
+ i(C, {
287
+ options: e.filteredOptions,
288
+ class: "w-default-wrap",
289
+ props: { checkStrictly: !0, value: "code", label: "title" },
290
+ modelValue: e.relationValue,
291
+ "onUpdate:modelValue": n[4] || (n[4] = (a) => e.relationValue = a),
292
+ multiple: e.columnInfo.behaviorType == 20,
293
+ filterable: "",
294
+ disabled: l.disabled
295
+ }, null, 8, ["options", "modelValue", "multiple", "disabled"])
296
+ ])) : c("", !0),
297
+ e.columnInfo.behaviorType == 7 ? (r(), s("div", W, [
298
+ i(v, {
299
+ style: { width: "100%" },
300
+ disabled: l.disabled,
301
+ modelValue: e.columnInfo.defaultInfo,
302
+ "onUpdate:modelValue": n[5] || (n[5] = (a) => e.columnInfo.defaultInfo = a),
303
+ type: "datetime",
304
+ placement: "bottom-start",
305
+ format: "YYYY-MM-DD HH:mm:ss",
306
+ "value-format": "YYYY-MM-DD HH:mm:ss"
307
+ }, null, 8, ["disabled", "modelValue"])
308
+ ])) : c("", !0),
309
+ e.columnInfo.behaviorType == 8 ? (r(), s("div", L, [
310
+ i(g, {
311
+ modelValue: e.columnInfo.defaultInfo,
312
+ "onUpdate:modelValue": n[6] || (n[6] = (a) => e.columnInfo.defaultInfo = a),
313
+ type: "datetimerange",
314
+ disabled: l.disabled
315
+ }, null, 8, ["modelValue", "disabled"])
316
+ ])) : c("", !0)
317
+ ]);
318
+ }
319
+ const Y = /* @__PURE__ */ V(k, [["render", j], ["__scopeId", "data-v-148021af"]]);
320
+ export {
321
+ Y as default
322
+ };
@@ -0,0 +1 @@
1
+ .defaultSet[data-v-ca300f0b],.defaultSet[data-v-148021af]{position:relative;width:100%}
@@ -0,0 +1,53 @@
1
+ const p = [
2
+ "gz",
3
+ "cdr",
4
+ "csv",
5
+ "png",
6
+ "jpg",
7
+ "jpeg",
8
+ "gif",
9
+ "bmp",
10
+ "rtf",
11
+ "swf",
12
+ "avi",
13
+ "mpeg",
14
+ "ogg",
15
+ "ogv",
16
+ "webm",
17
+ "mp3",
18
+ "wav",
19
+ "mid",
20
+ "rar",
21
+ "zip",
22
+ "tar",
23
+ "7z",
24
+ "bz2",
25
+ "doc",
26
+ "docx",
27
+ "xls",
28
+ "xlsx",
29
+ "ppt",
30
+ "pptx",
31
+ "pdf",
32
+ "txt",
33
+ "xml",
34
+ "xmind",
35
+ "rp",
36
+ "graffle",
37
+ "mp4",
38
+ "mpg",
39
+ "mov",
40
+ "rmvb",
41
+ "mkv",
42
+ "pot",
43
+ "pps",
44
+ "mpp",
45
+ "rtf",
46
+ "psd",
47
+ "csv",
48
+ "mmap",
49
+ "ofd"
50
+ ];
51
+ export {
52
+ p as f
53
+ };
@@ -0,0 +1,108 @@
1
+ import { resolveComponent as g, openBlock as n, createElementBlock as r, normalizeClass as y, withDirectives as m, createElementVNode as o, vShow as u, createTextVNode as c, toDisplayString as i, createBlock as w, withCtx as s, createCommentVNode as a, Fragment as B, renderList as C } from "vue";
2
+ import { _ as v } from "./install-DSQCBsd_.js";
3
+ const F = {
4
+ name: "formItemTop",
5
+ props: {
6
+ //组件对象
7
+ column: { type: Object },
8
+ dataBack: { type: Object }
9
+ }
10
+ }, S = { class: "w-color-red w-font-more" };
11
+ function U(d, t, e, I, h, k) {
12
+ const l = g("el-popover");
13
+ return n(), r("div", {
14
+ class: y(["w-default-wrap BnSmartForm-title", { "w-color-red": e.column.error }])
15
+ }, [
16
+ m(o("span", S, "*", 512), [
17
+ [u, e.column.extraInfo.valueEmptyCheck == 1]
18
+ ]),
19
+ c(" " + i(e.column.name) + " ", 1),
20
+ e.column.extraInfo.searchKey == 2 ? (n(), w(l, {
21
+ key: 0,
22
+ placement: "top-start",
23
+ width: 400,
24
+ trigger: "hover",
25
+ "show-arrow": !1
26
+ }, {
27
+ reference: s(() => [...t[0] || (t[0] = [
28
+ o("span", { class: "bnUIcon bnUIcon-fast w-color-orange w-font-weight w-cursor-pointer" }, null, -1)
29
+ ])]),
30
+ default: s(() => [
31
+ t[1] || (t[1] = o("div", { class: "BnSmartForm-title-tip" }, " 拥有该标识的组件,会在手动修改值或输入框失去焦点后,触发第三方数据拉取,并将结果回填到对应的组件上。 ", -1))
32
+ ]),
33
+ _: 1
34
+ })) : a("", !0),
35
+ e.dataBack && e.dataBack.key == e.column.columnCode ? (n(), w(l, {
36
+ key: 1,
37
+ placement: "top-start",
38
+ width: 400,
39
+ trigger: "hover",
40
+ "show-arrow": !1
41
+ }, {
42
+ reference: s(() => [...t[2] || (t[2] = [
43
+ o("span", { class: "bnUIcon bnUIcon-split w-color-blue w-font16 w-font-weight w-cursor-pointer" }, null, -1)
44
+ ])]),
45
+ default: s(() => [
46
+ t[3] || (t[3] = o("div", { class: "BnSmartForm-title-tip" }, [
47
+ o("span", { class: "w-color-blue" }, "多层级数据"),
48
+ c(",通过拥有 "),
49
+ o("span", { class: "bnUIcon bnUIcon-fast w-color-orange" }),
50
+ c(" 标识的组件拉取到完整第三方数据后,以该组件为主键进行拆分,选择数据后,我们会整合回填到表单的其他字段中。 "),
51
+ o("span", { class: "w-color-orange" }, "例如:"),
52
+ c("通过订单号拉取到多个包裹,在这里选择包裹后,会自动将多笔包裹数据合并回填整个表单得到完整数据 ")
53
+ ], -1))
54
+ ]),
55
+ _: 1
56
+ })) : a("", !0)
57
+ ], 2);
58
+ }
59
+ const R = /* @__PURE__ */ v(F, [["render", U], ["__scopeId", "data-v-2ae0a737"]]), E = {
60
+ name: "formItemFooter",
61
+ props: {
62
+ //组件对象
63
+ column: { type: Object },
64
+ extraInfo: Object
65
+ }
66
+ }, j = { class: "w-default-wrap" }, O = { class: "w-default-wrap BnSmartForm-tips" }, N = {
67
+ key: 0,
68
+ class: "w-default-wrap BnSmartForm-explain"
69
+ }, P = {
70
+ key: 1,
71
+ class: "w-default-wrap w-margin-top8 w-flex-wrap w-flex-gap8"
72
+ };
73
+ function T(d, t, e, I, h, k) {
74
+ var f, p, _;
75
+ const l = g("el-image");
76
+ return n(), r("div", j, [
77
+ o("div", O, [
78
+ m(o("span", { class: "w-font-min w-color-red" }, i(e.column.error), 513), [
79
+ [u, e.column.error]
80
+ ]),
81
+ m(o("span", { class: "w-font-min w-color-orange" }, i(e.column.warning), 513), [
82
+ [u, e.column.warning && !e.column.error]
83
+ ]),
84
+ e.extraInfo && e.extraInfo.isCheckRepeat && e.column.warning && e.column.warning.includes("相同") ? (n(), r("span", {
85
+ key: 0,
86
+ class: "w-font-min w-color-blue w-cursor-pointer",
87
+ onClick: t[0] || (t[0] = (x) => d.$emit("operate", this.column, "chooseRepeat"))
88
+ }, "查看")) : a("", !0)
89
+ ]),
90
+ (f = e.column.extraInfo) != null && f.paraExplain ? (n(), r("div", N, i(e.column.extraInfo.paraExplain), 1)) : a("", !0),
91
+ ((_ = (p = e.column.extraInfo) == null ? void 0 : p.operationPictures) == null ? void 0 : _.length) > 0 ? (n(), r("div", P, [
92
+ (n(!0), r(B, null, C(e.column.extraInfo.operationPictures, (x, b) => (n(), w(l, {
93
+ "preview-teleported": "",
94
+ style: { width: "46px", height: "46px" },
95
+ src: x,
96
+ "preview-src-list": e.column.extraInfo.operationPictures,
97
+ "show-progress": "",
98
+ "initial-index": b,
99
+ fit: "cover"
100
+ }, null, 8, ["src", "preview-src-list", "initial-index"]))), 256))
101
+ ])) : a("", !0)
102
+ ]);
103
+ }
104
+ const z = /* @__PURE__ */ v(E, [["render", T], ["__scopeId", "data-v-101622e9"]]);
105
+ export {
106
+ R as a,
107
+ z as f
108
+ };
@@ -0,0 +1 @@
1
+ .BnSmartForm-title[data-v-2ae0a737]{height:32px;line-height:32px;font-size:14px;color:#666}.BnSmartForm-title-tip[data-v-2ae0a737]{font-size:12px;color:#777}.BnSmartForm-explain[data-v-2ae0a737]{margin-top:5px;color:#888;font-size:12px}.BnSmartForm-img[data-v-2ae0a737]{margin-top:8px}.BnSmartForm-img-item[data-v-2ae0a737]{display:inline-block;width:46px;height:46px;margin-right:8px;border-radius:4px;border:1px solid #E6E6E6}.BnSmartForm-img-item img[data-v-2ae0a737]{width:100%;height:100%;border-radius:4px}.BnSmartForm-tips[data-v-2ae0a737]{line-height:32px;font-size:12px}.BnSmartForm-title[data-v-101622e9]{height:32px;line-height:32px;font-size:14px;color:#666}.BnSmartForm-title-tip[data-v-101622e9]{font-size:12px;color:#777}.BnSmartForm-explain[data-v-101622e9]{margin-top:5px;color:#888;font-size:12px}.BnSmartForm-img[data-v-101622e9]{margin-top:8px}.BnSmartForm-img-item[data-v-101622e9]{display:inline-block;width:46px;height:46px;margin-right:8px;border-radius:4px;border:1px solid #E6E6E6}.BnSmartForm-img-item img[data-v-101622e9]{width:100%;height:100%;border-radius:4px}.BnSmartForm-tips[data-v-101622e9]{line-height:32px;font-size:12px}
@@ -0,0 +1,139 @@
1
+ import { resolveComponent as i, openBlock as c, createBlock as f, withCtx as n, createCommentVNode as v, createElementVNode as r, createVNode as a, createTextVNode as u } from "vue";
2
+ import { _ as I } from "./install-DSQCBsd_.js";
3
+ const _ = {
4
+ name: "funcExprDialog",
5
+ props: {
6
+ //最终选中的value
7
+ modelValue: {
8
+ type: Object,
9
+ default() {
10
+ return {};
11
+ }
12
+ },
13
+ componentList: Array,
14
+ tableCode: String,
15
+ postFunc: Function,
16
+ extendPost: Object
17
+ },
18
+ computed: {
19
+ columnInfo: {
20
+ get() {
21
+ return this.modelValue;
22
+ },
23
+ set(t) {
24
+ this.$emit("update:modelValue", t);
25
+ }
26
+ },
27
+ columnList() {
28
+ let t = [];
29
+ return this.componentList.forEach((e) => {
30
+ let l = { id: e.id, behaviorType: e.behaviorType, name: e.name };
31
+ if (e.behaviorType === 13) {
32
+ const d = e.moduleDefinition.map((o) => ({
33
+ id: o.id,
34
+ behaviorType: o.behaviorType,
35
+ name: `${e.name}-${o.name}`,
36
+ parentId: e.id,
37
+ parentName: e.name
38
+ }));
39
+ t.push(...d);
40
+ } else
41
+ t.push(l);
42
+ }), [
43
+ {
44
+ name: "工作表组件",
45
+ children: t
46
+ }
47
+ ];
48
+ }
49
+ },
50
+ data() {
51
+ return {
52
+ visible: !1,
53
+ loading: !1
54
+ };
55
+ },
56
+ methods: {
57
+ open() {
58
+ this.loading = !1, this.visible = !0;
59
+ },
60
+ submitForm() {
61
+ this.loading = !0;
62
+ const t = this.$refs.bnFunExpr.saveRule();
63
+ if (!t.exprDisplay) {
64
+ this.columnInfo.extraInfo.exprId = "", this.columnInfo.extraInfo.exprExec = "", this.$emit("saveOver", ""), this.visible = !1;
65
+ return;
66
+ }
67
+ this.postFunc(
68
+ "/expr/create",
69
+ { ...t, ...this.extendPost }
70
+ ).then((e) => {
71
+ this.loading = !1, e.code || (this.$emit("saveOver", t.exprDisplay), this.columnInfo.extraInfo.exprId = e.data.id, this.columnInfo.extraInfo.exprExec = e.data.exprExec, (this.columnInfo.id == 6 || this.columnInfo.columnCode == "task_title") && (this.columnInfo.extraInfo.isAutoTitle = "1", this.columnInfo.extraInfo.autoTitleRule = ""), this.visible = !1);
72
+ });
73
+ }
74
+ }
75
+ }, g = { class: "dialog-footer" };
76
+ function y(t, e, l, d, o, s) {
77
+ const h = i("BnFunExpr"), x = i("el-link"), p = i("el-button"), b = i("el-dialog");
78
+ return c(), f(b, {
79
+ modelValue: o.visible,
80
+ "onUpdate:modelValue": e[1] || (e[1] = (m) => o.visible = m),
81
+ title: "编辑函数",
82
+ top: "5vh",
83
+ "close-on-click-modal": !1,
84
+ width: "900",
85
+ "destroy-on-close": !0,
86
+ "append-to-body": ""
87
+ }, {
88
+ footer: n(() => [
89
+ r("div", g, [
90
+ r("div", null, [
91
+ a(x, {
92
+ type: "primary",
93
+ href: "https://banniu.yuque.com/staff-dmhmqa/zn9sih/mgcoi8ogkyvew7gt?singleDoc# ",
94
+ target: "_blank"
95
+ }, {
96
+ default: n(() => [...e[2] || (e[2] = [
97
+ u("使用手册 ", -1)
98
+ ])]),
99
+ _: 1
100
+ })
101
+ ]),
102
+ r("div", null, [
103
+ a(p, {
104
+ onClick: e[0] || (e[0] = (m) => o.visible = !1)
105
+ }, {
106
+ default: n(() => [...e[3] || (e[3] = [
107
+ u("取消", -1)
108
+ ])]),
109
+ _: 1
110
+ }),
111
+ a(p, {
112
+ type: "primary",
113
+ loading: o.loading,
114
+ onClick: s.submitForm
115
+ }, {
116
+ default: n(() => [...e[4] || (e[4] = [
117
+ u("确认", -1)
118
+ ])]),
119
+ _: 1
120
+ }, 8, ["loading", "onClick"])
121
+ ])
122
+ ])
123
+ ]),
124
+ default: n(() => [
125
+ o.visible ? (c(), f(h, {
126
+ key: 0,
127
+ id: s.columnInfo.extraInfo.exprId,
128
+ "column-list": s.columnList,
129
+ ref: "bnFunExpr",
130
+ "post-func": l.postFunc
131
+ }, null, 8, ["id", "column-list", "post-func"])) : v("", !0)
132
+ ]),
133
+ _: 1
134
+ }, 8, ["modelValue"]);
135
+ }
136
+ const F = /* @__PURE__ */ I(_, [["render", y], ["__scopeId", "data-v-d954db8c"]]);
137
+ export {
138
+ F as default
139
+ };
@@ -0,0 +1 @@
1
+ .dialog-footer[data-v-d954db8c]{display:flex;justify-content:space-between;position:relative}
@@ -0,0 +1,45 @@
1
+ import { f as d, a as s } from "./formItemFooter-B3nlSwnS.js";
2
+ import { debounce as f } from "lodash";
3
+ import { resolveComponent as n, openBlock as i, createElementBlock as _, createVNode as t, createElementVNode as p } from "vue";
4
+ import { _ as x } from "./install-DSQCBsd_.js";
5
+ const h = {
6
+ name: "numberForm",
7
+ components: { formItemTop: s, formItemFooter: d },
8
+ props: {
9
+ column: {
10
+ type: Object,
11
+ default: function() {
12
+ return {};
13
+ }
14
+ },
15
+ disabled: Boolean
16
+ },
17
+ methods: {
18
+ /**
19
+ * 输入框Change事件
20
+ * */
21
+ onChange: f(function(m, o) {
22
+ this.$emit("onChange", this.column);
23
+ }, 500)
24
+ }
25
+ }, I = { class: "w-default-wrap" }, b = { class: "w-default-wrap" };
26
+ function v(m, o, e, C, g, a) {
27
+ const l = n("formItemTop"), c = n("el-rate"), r = n("formItemFooter");
28
+ return i(), _("div", I, [
29
+ t(l, { column: e.column }, null, 8, ["column"]),
30
+ p("div", b, [
31
+ t(c, {
32
+ modelValue: e.column.value,
33
+ "onUpdate:modelValue": o[0] || (o[0] = (u) => e.column.value = u),
34
+ disabled: e.disabled,
35
+ onChange: a.onChange,
36
+ max: e.column.extraInfo.valueMaxSize ? parseInt(e.column.extraInfo.valueMaxSize) : 5
37
+ }, null, 8, ["modelValue", "disabled", "onChange", "max"])
38
+ ]),
39
+ t(r, { column: e.column }, null, 8, ["column"])
40
+ ]);
41
+ }
42
+ const T = /* @__PURE__ */ x(h, [["render", v]]);
43
+ export {
44
+ T as default
45
+ };