@bytenew/bn-bus-ui 1.1.443 → 1.1.445
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/README.md +637 -637
- package/common.scss +841 -841
- package/dist/{assocTableSearch-wWHJAEoc.js → assocTableSearch-BdJZwkIo.js} +8 -8
- package/dist/assocTableSearch.css +1 -1
- package/dist/bn-bus-ui.es.js +46 -47
- package/dist/bn-bus-ui.umd.js +35 -35
- package/dist/{chooseIPaasData-BKN3tJOL.js → chooseIPaasData-BqXMfPqI.js} +28 -28
- package/dist/chooseIPaasData.css +1 -1
- package/dist/{defaultSet-DSHHKS-E.js → defaultSet-j1QYjMD4.js} +86 -111
- package/dist/defaultSet.css +1 -1
- package/dist/{formItemFooter-CUO7lN3y.js → formItemFooter-CWaCSFIt.js} +3 -3
- package/dist/formItemFooter.css +1 -1
- package/dist/{funcExprDialog-CB0G7Adz.js → funcExprDialog-COxanKEf.js} +9 -9
- package/dist/funcExprDialog.css +1 -1
- package/dist/{index-CA5p03_X.js → index-8e9BxXuV.js} +162 -156
- package/dist/{index-CoRPuY-A.js → index-B-fCpph5.js} +3 -3
- package/dist/{index-Di4QUZGh.js → index-B1CCOEZh.js} +4 -4
- package/dist/{index-ikd6cc8K.js → index-B35rCAqR.js} +2 -2
- package/dist/{index-BVnrcrC7.js → index-BOWYSziY.js} +9 -9
- package/dist/{index-D6_A0LoJ.js → index-Bcs08vJH.js} +1 -1
- package/dist/{index-D-6pu0D0.js → index-Bf6PK4pL.js} +3 -3
- package/dist/{index-B8igHhBO.js → index-BicpKVoa.js} +2 -2
- package/dist/{index-DB919mNO.js → index-CKn4kcDL.js} +2 -2
- package/dist/{index-BovCPakD.js → index-COj1uXF9.js} +2 -2
- package/dist/{index-No0bAPly.js → index-CUoUi1U2.js} +2 -2
- package/dist/{index-D44Fmvmv.js → index-D1IDxBaB.js} +2 -2
- package/dist/{index-5Rq45Jg0.js → index-D2PjsTuk.js} +2 -2
- package/dist/{index-DOp91p3h.js → index-Dam-6pal.js} +3 -3
- package/dist/{index-Cijchf4-.js → index-DhLgKawG.js} +3 -3
- package/dist/{index-DaSFxdPn.js → index-DwRgK4h_.js} +2 -2
- package/dist/{index-CcPJgAeZ.js → index-Y9Dd4yKZ.js} +2 -2
- package/dist/index.css +1 -1
- package/dist/index2.css +1 -1
- package/dist/index3.css +1 -1
- package/dist/index4.css +1 -1
- package/dist/index5.css +1 -1
- package/dist/index6.css +1 -1
- package/dist/index7.css +1 -1
- package/dist/{install-CXQxMw8K.js → install-DaHu6xrB.js} +4385 -4634
- package/dist/install.css +1 -1
- package/dist/{setOption-Dy-OMm7l.js → setOption-Bvw99dqF.js} +2 -2
- package/dist/setOption.css +1 -1
- package/dist/{setRelationOption-C5kkv7gq.js → setRelationOption-BAvxn4RJ.js} +204 -204
- package/dist/setRelationOption.css +1 -1
- package/package.json +51 -51
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cloneDeep as w } from "lodash";
|
|
2
|
-
import { _,
|
|
3
|
-
import { withDirectives as k, openBlock as u, createElementBlock as v, withModifiers as L, normalizeStyle as z, vShow as B, resolveComponent as
|
|
2
|
+
import { _, W as N, Y as E } from "./install-DaHu6xrB.js";
|
|
3
|
+
import { withDirectives as k, openBlock as u, createElementBlock as v, withModifiers as L, normalizeStyle as z, vShow as B, resolveComponent as h, resolveDirective as U, createBlock as C, withCtx as a, createVNode as r, createElementVNode as c, Fragment as D, renderList as P, createTextVNode as g, toDisplayString as x } from "vue";
|
|
4
4
|
const A = {
|
|
5
5
|
name: "WorksheetCopy",
|
|
6
6
|
data() {
|
|
@@ -55,14 +55,14 @@ function H(s, e, n, o, t, l) {
|
|
|
55
55
|
return k((u(), v("div", {
|
|
56
56
|
class: "worksheetCopy",
|
|
57
57
|
style: z(t.style),
|
|
58
|
-
onMouseover: e[0] || (e[0] = (...
|
|
59
|
-
onMouseleave: e[1] || (e[1] = (...
|
|
60
|
-
onClick: e[2] || (e[2] = L((...
|
|
58
|
+
onMouseover: e[0] || (e[0] = (...d) => l.onMouseEvent && l.onMouseEvent(...d)),
|
|
59
|
+
onMouseleave: e[1] || (e[1] = (...d) => l.onMouseEvent && l.onMouseEvent(...d)),
|
|
60
|
+
onClick: e[2] || (e[2] = L((...d) => l.copyText && l.copyText(...d), ["stop"]))
|
|
61
61
|
}, "复制 ", 36)), [
|
|
62
62
|
[B, t.visiable || t.isMouseIn]
|
|
63
63
|
]);
|
|
64
64
|
}
|
|
65
|
-
const O = /* @__PURE__ */ _(A, [["render", H], ["__scopeId", "data-v-
|
|
65
|
+
const O = /* @__PURE__ */ _(A, [["render", H], ["__scopeId", "data-v-684f7285"]]), j = {
|
|
66
66
|
name: "chooseIPaasData",
|
|
67
67
|
components: { tableCellCopy: O },
|
|
68
68
|
props: {
|
|
@@ -194,9 +194,9 @@ const O = /* @__PURE__ */ _(A, [["render", H], ["__scopeId", "data-v-e720d7be"]]
|
|
|
194
194
|
}, 200), this.show = !1;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
}, J = { class: "chooseIPaasData" }, R = { class: "chooseIPaasData-search w-margin-bottom10" },
|
|
198
|
-
function
|
|
199
|
-
const
|
|
197
|
+
}, J = { class: "chooseIPaasData" }, R = { class: "chooseIPaasData-search w-margin-bottom10" }, W = { class: "w-flex-between w-margin-bottom10" }, q = { class: "w-flex-center" }, K = { class: "w-flex-center" }, Y = { class: "w-flex-right w-flex-center" }, G = { class: "w-font13 w-color-gray w-margin-right8" };
|
|
198
|
+
function Q(s, e, n, o, t, l) {
|
|
199
|
+
const d = h("tableCellCopy"), I = h("BnAdvancedFilter"), m = h("el-button"), T = h("BnDrop"), b = h("vxe-column"), M = h("vxe-table"), S = h("el-pagination"), y = h("el-popover"), F = h("el-dialog"), V = U("loading");
|
|
200
200
|
return u(), C(F, {
|
|
201
201
|
modelValue: t.show,
|
|
202
202
|
"onUpdate:modelValue": e[7] || (e[7] = (i) => t.show = i),
|
|
@@ -207,8 +207,8 @@ function X(s, e, n, o, t, l) {
|
|
|
207
207
|
style: { "margin-bottom": "0" }
|
|
208
208
|
}, {
|
|
209
209
|
footer: a(() => [
|
|
210
|
-
c("div",
|
|
211
|
-
c("span",
|
|
210
|
+
c("div", Y, [
|
|
211
|
+
c("span", G, "已选择(" + x(t.selectData.length) + "/" + x(t.orderList.length) + ")条", 1),
|
|
212
212
|
r(S, {
|
|
213
213
|
class: "w-margin-right8",
|
|
214
214
|
background: "",
|
|
@@ -224,7 +224,7 @@ function X(s, e, n, o, t, l) {
|
|
|
224
224
|
onClick: e[4] || (e[4] = (i) => t.show = !1)
|
|
225
225
|
}, {
|
|
226
226
|
default: a(() => [...e[11] || (e[11] = [
|
|
227
|
-
|
|
227
|
+
g("取消", -1)
|
|
228
228
|
])]),
|
|
229
229
|
_: 1
|
|
230
230
|
}),
|
|
@@ -240,7 +240,7 @@ function X(s, e, n, o, t, l) {
|
|
|
240
240
|
disabled: t.selectData.length == 0
|
|
241
241
|
}, {
|
|
242
242
|
default: a(() => [...e[12] || (e[12] = [
|
|
243
|
-
|
|
243
|
+
g("确认追加", -1)
|
|
244
244
|
])]),
|
|
245
245
|
_: 1
|
|
246
246
|
}, 8, ["disabled"])
|
|
@@ -262,7 +262,7 @@ function X(s, e, n, o, t, l) {
|
|
|
262
262
|
disabled: t.selectData.length == 0
|
|
263
263
|
}, {
|
|
264
264
|
default: a(() => [...e[14] || (e[14] = [
|
|
265
|
-
|
|
265
|
+
g("确认覆盖", -1)
|
|
266
266
|
])]),
|
|
267
267
|
_: 1
|
|
268
268
|
}, 8, ["disabled"])
|
|
@@ -275,7 +275,7 @@ function X(s, e, n, o, t, l) {
|
|
|
275
275
|
])
|
|
276
276
|
]),
|
|
277
277
|
default: a(() => [
|
|
278
|
-
r(
|
|
278
|
+
r(d, { ref: "childTableCopy" }, null, 512),
|
|
279
279
|
c("div", J, [
|
|
280
280
|
c("div", R, [
|
|
281
281
|
(u(!0), v(D, null, P(t.searchPost.conditions, (i, p) => (u(), v("div", {
|
|
@@ -284,20 +284,20 @@ function X(s, e, n, o, t, l) {
|
|
|
284
284
|
}, [
|
|
285
285
|
r(I, {
|
|
286
286
|
modelValue: t.searchPost.conditions[p],
|
|
287
|
-
"onUpdate:modelValue": (
|
|
287
|
+
"onUpdate:modelValue": (f) => t.searchPost.conditions[p] = f,
|
|
288
288
|
columnList: t.searchColumns,
|
|
289
|
-
onValueChange: e[0] || (e[0] = (
|
|
289
|
+
onValueChange: e[0] || (e[0] = (f) => l.search()),
|
|
290
290
|
allowSearchType: !1,
|
|
291
291
|
allowDel: "",
|
|
292
|
-
onDel: (
|
|
292
|
+
onDel: (f) => t.searchPost.conditions.splice(p, 1),
|
|
293
293
|
postFunc: n.postFunc,
|
|
294
294
|
pathUrl: i.pathUrl,
|
|
295
295
|
postData: i.postData
|
|
296
296
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "columnList", "onDel", "postFunc", "pathUrl", "postData"])
|
|
297
297
|
]))), 128))
|
|
298
298
|
]),
|
|
299
|
-
c("div",
|
|
300
|
-
c("div",
|
|
299
|
+
c("div", W, [
|
|
300
|
+
c("div", q, [
|
|
301
301
|
r(T, {
|
|
302
302
|
modelValue: t.searchPost.conditions,
|
|
303
303
|
"onUpdate:modelValue": e[1] || (e[1] = (i) => t.searchPost.conditions = i),
|
|
@@ -311,7 +311,7 @@ function X(s, e, n, o, t, l) {
|
|
|
311
311
|
link: ""
|
|
312
312
|
}, {
|
|
313
313
|
default: a(() => [...e[8] || (e[8] = [
|
|
314
|
-
|
|
314
|
+
g(" + 添加筛选条件", -1)
|
|
315
315
|
])]),
|
|
316
316
|
_: 1
|
|
317
317
|
})
|
|
@@ -319,13 +319,13 @@ function X(s, e, n, o, t, l) {
|
|
|
319
319
|
_: 1
|
|
320
320
|
}, 8, ["modelValue", "options"])
|
|
321
321
|
]),
|
|
322
|
-
c("div",
|
|
322
|
+
c("div", K, [
|
|
323
323
|
r(m, {
|
|
324
324
|
type: "primary",
|
|
325
325
|
onClick: l.search
|
|
326
326
|
}, {
|
|
327
327
|
default: a(() => [...e[9] || (e[9] = [
|
|
328
|
-
|
|
328
|
+
g("筛选", -1)
|
|
329
329
|
])]),
|
|
330
330
|
_: 1
|
|
331
331
|
}, 8, ["onClick"])
|
|
@@ -355,12 +355,12 @@ function X(s, e, n, o, t, l) {
|
|
|
355
355
|
c("span", null, "暂无数据", -1)
|
|
356
356
|
])]),
|
|
357
357
|
default: a(() => [
|
|
358
|
-
r(
|
|
358
|
+
r(b, {
|
|
359
359
|
type: "checkbox",
|
|
360
360
|
width: "32",
|
|
361
361
|
fixed: "left"
|
|
362
362
|
}),
|
|
363
|
-
(u(!0), v(D, null, P(t.columnData.moduleDefinition, (i, p) => (u(), C(
|
|
363
|
+
(u(!0), v(D, null, P(t.columnData.moduleDefinition, (i, p) => (u(), C(b, {
|
|
364
364
|
visible: i.extraInfo.isAddable == 1,
|
|
365
365
|
title: i.name,
|
|
366
366
|
field: i.columnCode,
|
|
@@ -370,8 +370,8 @@ function X(s, e, n, o, t, l) {
|
|
|
370
370
|
"show-overflow": "title",
|
|
371
371
|
"show-footer-overflow": ""
|
|
372
372
|
}, {
|
|
373
|
-
default: a((
|
|
374
|
-
c("span", null,
|
|
373
|
+
default: a((f) => [
|
|
374
|
+
c("span", null, x(l.getTitle(i, f.row[i.columnCode])), 1)
|
|
375
375
|
]),
|
|
376
376
|
_: 2
|
|
377
377
|
}, 1032, ["visible", "title", "field"]))), 128))
|
|
@@ -385,7 +385,7 @@ function X(s, e, n, o, t, l) {
|
|
|
385
385
|
_: 1
|
|
386
386
|
}, 8, ["modelValue", "title"]);
|
|
387
387
|
}
|
|
388
|
-
const ee = /* @__PURE__ */ _(j, [["render",
|
|
388
|
+
const ee = /* @__PURE__ */ _(j, [["render", Q], ["__scopeId", "data-v-67f946e1"]]);
|
|
389
389
|
export {
|
|
390
390
|
ee as default
|
|
391
391
|
};
|
package/dist/chooseIPaasData.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.worksheetCopy[data-v-
|
|
1
|
+
.worksheetCopy[data-v-684f7285]{position:fixed;width:34px;height:22px;line-height:22px;text-align:center;background-color:#3333334d;color:#fff;font-size:12px;z-index:999999}.worksheetCopy[data-v-684f7285]:hover{background-color:#65acff;cursor:pointer}.chooseIPaasData[data-v-67f946e1]{height:100%;overflow:hidden}.chooseIPaasData-search[data-v-67f946e1]{display:flex;flex-wrap:wrap;max-height:142px;overflow-y:auto;gap:10px 18px}.chooseIPaasData-search-item[data-v-67f946e1]{width:calc(33.33% - 18px);flex-grow:0}.chooseIPaasData-out[data-v-67f946e1] .vxe-table--header .vxe-header--row{background-color:#ecf5ff}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { resolveComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import { cloneDeep as
|
|
1
|
+
import { resolveComponent as u, openBlock as f, createElementBlock as s, createVNode as d, withCtx as h, createElementVNode as _, createCommentVNode as c } from "vue";
|
|
2
|
+
import { _ as C } from "./install-DaHu6xrB.js";
|
|
3
|
+
import { cloneDeep as g } from "lodash";
|
|
4
4
|
const x = {
|
|
5
5
|
name: "defaultSet",
|
|
6
6
|
props: {
|
|
@@ -40,16 +40,16 @@ const x = {
|
|
|
40
40
|
* @param {string} value - 要插入的文本
|
|
41
41
|
* @returns {string} 插入后的完整文本
|
|
42
42
|
*/
|
|
43
|
-
insertTextAtCursor(t,
|
|
43
|
+
insertTextAtCursor(t, l) {
|
|
44
44
|
if (document.selection) {
|
|
45
45
|
t.focus();
|
|
46
|
-
const
|
|
47
|
-
|
|
46
|
+
const n = document.selection.createRange();
|
|
47
|
+
n.text = l, t.focus();
|
|
48
48
|
} else if (t.selectionStart || t.selectionStart === 0) {
|
|
49
|
-
const
|
|
50
|
-
t.value = t.value.substring(0,
|
|
49
|
+
const n = t.selectionStart, o = t.selectionEnd, i = t.scrollTop;
|
|
50
|
+
t.value = t.value.substring(0, n) + l + t.value.substring(o), t.focus(), t.selectionStart = n + l.length, t.selectionEnd = n + l.length, t.scrollTop = i;
|
|
51
51
|
} else
|
|
52
|
-
t.value +=
|
|
52
|
+
t.value += l, t.focus();
|
|
53
53
|
return t.value;
|
|
54
54
|
},
|
|
55
55
|
/**
|
|
@@ -57,23 +57,23 @@ const x = {
|
|
|
57
57
|
* 格式:$组件名$ -> $组件code$ 或 $组件id$
|
|
58
58
|
*/
|
|
59
59
|
updateDefaultInfoWithCodeAndId() {
|
|
60
|
-
let t = this.columnInfo.defaultInfo,
|
|
61
|
-
this.columnList.forEach((
|
|
62
|
-
const o = `$${
|
|
63
|
-
t = t.split(o).join(
|
|
64
|
-
}), this.columnInfo.extraInfo.defaultInfoWithCode = t, this.columnInfo.extraInfo.defaultInfoWithId =
|
|
60
|
+
let t = this.columnInfo.defaultInfo, l = this.columnInfo.defaultInfo;
|
|
61
|
+
this.columnList.forEach((n) => {
|
|
62
|
+
const o = `$${n.name}$`, i = `$${n.columnCode}$`, e = `$${n.id}$`;
|
|
63
|
+
t = t.split(o).join(i), l = l.split(o).join(e);
|
|
64
|
+
}), this.columnInfo.extraInfo.defaultInfoWithCode = t, this.columnInfo.extraInfo.defaultInfoWithId = l;
|
|
65
65
|
},
|
|
66
66
|
/**
|
|
67
67
|
* 处理选择关联组件事件
|
|
68
68
|
* @param {Object} column - 被选中的组件对象
|
|
69
69
|
*/
|
|
70
70
|
handleColumnSelect(t) {
|
|
71
|
-
var e,
|
|
71
|
+
var e, r, m;
|
|
72
72
|
if (((e = this.columnInfo.extraInfo.defaultInfoRuleCols) == null ? void 0 : e.length) >= 10) {
|
|
73
73
|
this.$message.warning("最多可设置10个组件", 2.5);
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
|
-
const
|
|
76
|
+
const l = (r = this.$refs.defaultContentString) == null ? void 0 : r.input, n = `$${t.name}$`, o = this.insertTextAtCursor(l, n);
|
|
77
77
|
this.columnInfo.defaultInfo = o, this.updateDefaultInfoWithCodeAndId(), ((m = this.columnInfo.extraInfo.defaultInfoRuleCols) == null ? void 0 : m.some(
|
|
78
78
|
(I) => I.id === t.id && I.name === t.name
|
|
79
79
|
)) || (this.columnInfo.extraInfo.defaultInfoRuleCols = this.columnInfo.extraInfo.defaultInfoRuleCols || [], this.columnInfo.extraInfo.defaultInfoRuleCols.push({
|
|
@@ -87,31 +87,31 @@ const x = {
|
|
|
87
87
|
* @param {string} val - 当前输入框的值
|
|
88
88
|
*/
|
|
89
89
|
handleDefaultValueChange(t) {
|
|
90
|
-
var
|
|
90
|
+
var l, n;
|
|
91
91
|
if (!t) {
|
|
92
92
|
this.columnInfo.extraInfo.defaultInfoRuleCols = [], this.columnInfo.extraInfo.defaultInfoWithCode = "", this.columnInfo.extraInfo.defaultInfoWithId = "";
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
|
-
this.columnInfo.extraInfo.defaultInfoRuleCols = ((
|
|
96
|
-
const
|
|
97
|
-
return t.includes(
|
|
98
|
-
})) || [], (
|
|
95
|
+
this.columnInfo.extraInfo.defaultInfoRuleCols = ((l = this.columnInfo.extraInfo.defaultInfoRuleCols) == null ? void 0 : l.filter((o) => {
|
|
96
|
+
const i = `$${o.name}$`;
|
|
97
|
+
return t.includes(i);
|
|
98
|
+
})) || [], (n = this.columnInfo.extraInfo.defaultInfoRuleCols) != null && n.length ? this.updateDefaultInfoWithCodeAndId() : (this.columnInfo.extraInfo.defaultInfoWithCode = "", this.columnInfo.extraInfo.defaultInfoWithId = "");
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
}, D = { class: "w-default-wrap" };
|
|
102
|
-
function w(t,
|
|
103
|
-
const
|
|
104
|
-
return
|
|
105
|
-
|
|
102
|
+
function w(t, l, n, o, i, e) {
|
|
103
|
+
const r = u("el-tooltip"), m = u("BnDrop"), I = u("el-input");
|
|
104
|
+
return f(), s("div", D, [
|
|
105
|
+
d(I, {
|
|
106
106
|
modelValue: e.columnInfo.defaultInfo,
|
|
107
|
-
"onUpdate:modelValue":
|
|
107
|
+
"onUpdate:modelValue": l[0] || (l[0] = (p) => e.columnInfo.defaultInfo = p),
|
|
108
108
|
placeholder: "点击右侧可选择组件关联",
|
|
109
109
|
ref: "defaultContentString",
|
|
110
110
|
onChange: e.handleDefaultValueChange
|
|
111
111
|
}, {
|
|
112
112
|
append: h(() => [
|
|
113
|
-
|
|
114
|
-
options:
|
|
113
|
+
d(m, {
|
|
114
|
+
options: n.columnList.filter((p) => p.id !== e.columnInfo.id && ![10, 11, 12, 13, 17, 18].includes(p.behaviorType)),
|
|
115
115
|
optionProps: { value: "columnCode", label: "name" },
|
|
116
116
|
placement: "bottom-end",
|
|
117
117
|
onCheckItem: e.handleColumnSelect,
|
|
@@ -119,14 +119,14 @@ function w(t, n, l, o, u, e) {
|
|
|
119
119
|
}, {
|
|
120
120
|
default: h(() => [
|
|
121
121
|
_("div", null, [
|
|
122
|
-
|
|
122
|
+
d(r, {
|
|
123
123
|
class: "box-item",
|
|
124
124
|
effect: "dark",
|
|
125
125
|
"show-after": 600,
|
|
126
126
|
content: "关联组件将会把组件的值,映射到当前组件的默认值中",
|
|
127
127
|
placement: "top"
|
|
128
128
|
}, {
|
|
129
|
-
default: h(() => [...
|
|
129
|
+
default: h(() => [...l[1] || (l[1] = [
|
|
130
130
|
_("span", { class: "bnUIcon bnUIcon-linkFiled w-color-purple w-cursor-pointer" }, null, -1)
|
|
131
131
|
])]),
|
|
132
132
|
_: 1
|
|
@@ -140,7 +140,7 @@ function w(t, n, l, o, u, e) {
|
|
|
140
140
|
}, 8, ["modelValue", "onChange"])
|
|
141
141
|
]);
|
|
142
142
|
}
|
|
143
|
-
const T = /* @__PURE__ */
|
|
143
|
+
const T = /* @__PURE__ */ C(x, [["render", w], ["__scopeId", "data-v-ca300f0b"]]), k = {
|
|
144
144
|
name: "defaultSet",
|
|
145
145
|
components: { stringDefault: T },
|
|
146
146
|
props: {
|
|
@@ -179,144 +179,119 @@ const T = /* @__PURE__ */ V(x, [["render", w], ["__scopeId", "data-v-c847d7d8"]]
|
|
|
179
179
|
filteredOptions() {
|
|
180
180
|
if (!this.columnInfo.moduleDefinition || !this.columnInfo.moduleDefinition.optionList)
|
|
181
181
|
return [];
|
|
182
|
-
const t = (
|
|
183
|
-
let
|
|
184
|
-
return t(
|
|
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
|
-
}
|
|
182
|
+
const t = (n) => Array.isArray(n) ? n.filter((o) => o.columnStatus != 1 ? !1 : (o.children && Array.isArray(o.children) && (o.children = t(o.children)), !0)) : [];
|
|
183
|
+
let l = g(this.columnInfo.moduleDefinition.optionList);
|
|
184
|
+
return t(l);
|
|
215
185
|
}
|
|
216
186
|
}
|
|
217
|
-
},
|
|
187
|
+
}, S = { class: "defaultSet" }, B = {
|
|
218
188
|
key: 0,
|
|
219
189
|
class: "w-default-wrap"
|
|
220
|
-
},
|
|
190
|
+
}, U = {
|
|
221
191
|
key: 1,
|
|
222
192
|
class: "w-default-wrap"
|
|
223
|
-
},
|
|
193
|
+
}, P = {
|
|
224
194
|
key: 2,
|
|
225
195
|
class: "w-default-wrap"
|
|
226
|
-
},
|
|
196
|
+
}, A = {
|
|
227
197
|
key: 3,
|
|
228
198
|
class: "w-default-wrap"
|
|
229
|
-
},
|
|
199
|
+
}, F = {
|
|
230
200
|
key: 4,
|
|
231
201
|
class: "w-default-wrap"
|
|
232
|
-
},
|
|
202
|
+
}, R = {
|
|
233
203
|
key: 5,
|
|
234
204
|
class: "w-default-wrap"
|
|
235
|
-
},
|
|
205
|
+
}, W = {
|
|
236
206
|
key: 6,
|
|
237
207
|
class: "w-default-wrap"
|
|
238
208
|
};
|
|
239
|
-
function
|
|
209
|
+
function L(t, l, n, o, i, e) {
|
|
240
210
|
var b;
|
|
241
|
-
const
|
|
242
|
-
return
|
|
243
|
-
e.columnInfo.behaviorType ? c("", !0) : (
|
|
244
|
-
|
|
211
|
+
const r = u("el-input"), m = u("stringDefault"), I = u("BnInpNum"), p = u("BnSelect"), V = u("BnCascader"), y = u("el-date-picker"), v = u("BnDatePicker");
|
|
212
|
+
return f(), s("div", S, [
|
|
213
|
+
e.columnInfo.behaviorType ? c("", !0) : (f(), s("div", B, [
|
|
214
|
+
d(r, {
|
|
245
215
|
modelValue: e.columnInfo.defaultInfo,
|
|
246
|
-
"onUpdate:modelValue":
|
|
216
|
+
"onUpdate:modelValue": l[0] || (l[0] = (a) => e.columnInfo.defaultInfo = a),
|
|
247
217
|
placeholder: "设置组件默认值",
|
|
248
218
|
clearable: "",
|
|
249
|
-
disabled:
|
|
219
|
+
disabled: n.disabled
|
|
250
220
|
}, null, 8, ["modelValue", "disabled"])
|
|
251
221
|
])),
|
|
252
|
-
e.columnInfo.behaviorType == 1 ? (
|
|
253
|
-
|
|
222
|
+
e.columnInfo.behaviorType == 1 ? (f(), s("div", U, [
|
|
223
|
+
d(m, {
|
|
254
224
|
modelValue: e.columnInfo,
|
|
255
|
-
"onUpdate:modelValue":
|
|
256
|
-
disabled:
|
|
257
|
-
columnList:
|
|
225
|
+
"onUpdate:modelValue": l[1] || (l[1] = (a) => e.columnInfo = a),
|
|
226
|
+
disabled: n.disabled,
|
|
227
|
+
columnList: n.columnList
|
|
258
228
|
}, null, 8, ["modelValue", "disabled", "columnList"])
|
|
259
229
|
])) : c("", !0),
|
|
260
|
-
e.columnInfo.behaviorType == 2 ? (
|
|
261
|
-
|
|
230
|
+
e.columnInfo.behaviorType == 2 ? (f(), s("div", P, [
|
|
231
|
+
d(I, {
|
|
262
232
|
modelValue: e.columnInfo.defaultInfo,
|
|
263
|
-
"onUpdate:modelValue":
|
|
264
|
-
disabled:
|
|
233
|
+
"onUpdate:modelValue": l[2] || (l[2] = (a) => e.columnInfo.defaultInfo = a),
|
|
234
|
+
disabled: n.disabled,
|
|
265
235
|
precision: (b = e.columnInfo.extraInfo) == null ? void 0 : b.valueType
|
|
266
236
|
}, null, 8, ["modelValue", "disabled", "precision"])
|
|
267
237
|
])) : c("", !0),
|
|
268
|
-
[3, 4, 5].includes(e.columnInfo.behaviorType) ? (
|
|
269
|
-
|
|
238
|
+
[3, 4, 5].includes(e.columnInfo.behaviorType) ? (f(), s("div", A, [
|
|
239
|
+
d(p, {
|
|
270
240
|
modelValue: e.columnInfo.defaultInfo,
|
|
271
|
-
"onUpdate:modelValue":
|
|
241
|
+
"onUpdate:modelValue": l[3] || (l[3] = (a) => e.columnInfo.defaultInfo = a),
|
|
272
242
|
options: e.columnInfo.moduleDefinition,
|
|
273
243
|
multiple: e.columnInfo.behaviorType == 5,
|
|
274
|
-
disabled:
|
|
244
|
+
disabled: n.disabled,
|
|
275
245
|
optionProps: { value: "code", label: "title" },
|
|
276
246
|
pageProps: { pageNum: "pageNo", pageSize: "pageSize" },
|
|
277
247
|
pathUrl: e.columnInfo.pathUrl,
|
|
278
248
|
postData: e.columnInfo.postData,
|
|
279
|
-
postFunc:
|
|
249
|
+
postFunc: n.postFunc,
|
|
280
250
|
placeholder: "请选择",
|
|
281
251
|
clearable: "",
|
|
282
252
|
filterable: ""
|
|
283
253
|
}, null, 8, ["modelValue", "options", "multiple", "disabled", "pathUrl", "postData", "postFunc"])
|
|
284
254
|
])) : c("", !0),
|
|
285
|
-
e.columnInfo.behaviorType == 6 || e.columnInfo.behaviorType == 20 ? (
|
|
286
|
-
|
|
255
|
+
e.columnInfo.behaviorType == 6 || e.columnInfo.behaviorType == 20 ? (f(), s("div", F, [
|
|
256
|
+
d(V, {
|
|
257
|
+
modelValue: e.columnInfo.defaultInfo,
|
|
258
|
+
"onUpdate:modelValue": l[4] || (l[4] = (a) => e.columnInfo.defaultInfo = a),
|
|
259
|
+
postFunc: n.postFunc,
|
|
260
|
+
"path-url": e.columnInfo.pathUrl,
|
|
261
|
+
collapseTags: "",
|
|
262
|
+
"post-data": e.columnInfo.postData,
|
|
263
|
+
"remote-mode": "tree",
|
|
264
|
+
optionProps: { value: "code", label: "title" },
|
|
265
|
+
"label-in-value": e.columnInfo.behaviorType == 6,
|
|
287
266
|
options: e.filteredOptions,
|
|
288
|
-
|
|
289
|
-
props: { checkStrictly: !0, value: "code", label: "title" },
|
|
290
|
-
modelValue: e.relationValue,
|
|
291
|
-
"onUpdate:modelValue": n[4] || (n[4] = (a) => e.relationValue = a),
|
|
267
|
+
"hide-check-to-last": "",
|
|
292
268
|
multiple: e.columnInfo.behaviorType == 20,
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
}, null, 8, ["options", "modelValue", "multiple", "disabled"])
|
|
269
|
+
clearable: ""
|
|
270
|
+
}, null, 8, ["modelValue", "postFunc", "path-url", "post-data", "label-in-value", "options", "multiple"])
|
|
296
271
|
])) : c("", !0),
|
|
297
|
-
e.columnInfo.behaviorType == 7 ? (
|
|
298
|
-
|
|
272
|
+
e.columnInfo.behaviorType == 7 ? (f(), s("div", R, [
|
|
273
|
+
d(y, {
|
|
299
274
|
style: { width: "100%" },
|
|
300
|
-
disabled:
|
|
275
|
+
disabled: n.disabled,
|
|
301
276
|
modelValue: e.columnInfo.defaultInfo,
|
|
302
|
-
"onUpdate:modelValue":
|
|
277
|
+
"onUpdate:modelValue": l[5] || (l[5] = (a) => e.columnInfo.defaultInfo = a),
|
|
303
278
|
type: "datetime",
|
|
304
279
|
placement: "bottom-start",
|
|
305
280
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
306
281
|
"value-format": "YYYY-MM-DD HH:mm:ss"
|
|
307
282
|
}, null, 8, ["disabled", "modelValue"])
|
|
308
283
|
])) : c("", !0),
|
|
309
|
-
e.columnInfo.behaviorType == 8 ? (
|
|
310
|
-
|
|
284
|
+
e.columnInfo.behaviorType == 8 ? (f(), s("div", W, [
|
|
285
|
+
d(v, {
|
|
311
286
|
modelValue: e.columnInfo.defaultInfo,
|
|
312
|
-
"onUpdate:modelValue":
|
|
287
|
+
"onUpdate:modelValue": l[6] || (l[6] = (a) => e.columnInfo.defaultInfo = a),
|
|
313
288
|
type: "datetimerange",
|
|
314
|
-
disabled:
|
|
289
|
+
disabled: n.disabled
|
|
315
290
|
}, null, 8, ["modelValue", "disabled"])
|
|
316
291
|
])) : c("", !0)
|
|
317
292
|
]);
|
|
318
293
|
}
|
|
319
|
-
const
|
|
294
|
+
const E = /* @__PURE__ */ C(k, [["render", L], ["__scopeId", "data-v-b47a6b44"]]);
|
|
320
295
|
export {
|
|
321
|
-
|
|
296
|
+
E as default
|
|
322
297
|
};
|
package/dist/defaultSet.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.defaultSet[data-v-
|
|
1
|
+
.defaultSet[data-v-ca300f0b],.defaultSet[data-v-b47a6b44]{position:relative;width:100%}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { _ as v } from "./install-DaHu6xrB.js";
|
|
3
3
|
const F = {
|
|
4
4
|
name: "formItemTop",
|
|
5
5
|
props: {
|
|
@@ -56,7 +56,7 @@ function U(d, t, e, I, h, k) {
|
|
|
56
56
|
})) : a("", !0)
|
|
57
57
|
], 2);
|
|
58
58
|
}
|
|
59
|
-
const R = /* @__PURE__ */ v(F, [["render", U], ["__scopeId", "data-v-
|
|
59
|
+
const R = /* @__PURE__ */ v(F, [["render", U], ["__scopeId", "data-v-2ae0a737"]]), E = {
|
|
60
60
|
name: "formItemFooter",
|
|
61
61
|
props: {
|
|
62
62
|
//组件对象
|
|
@@ -101,7 +101,7 @@ function T(d, t, e, I, h, k) {
|
|
|
101
101
|
])) : a("", !0)
|
|
102
102
|
]);
|
|
103
103
|
}
|
|
104
|
-
const z = /* @__PURE__ */ v(E, [["render", T], ["__scopeId", "data-v-
|
|
104
|
+
const z = /* @__PURE__ */ v(E, [["render", T], ["__scopeId", "data-v-101622e9"]]);
|
|
105
105
|
export {
|
|
106
106
|
R as a,
|
|
107
107
|
z as f
|
package/dist/formItemFooter.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.BnSmartForm-title[data-v-
|
|
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}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolveComponent as i, openBlock as
|
|
2
|
-
import { _ as I } from "./install-
|
|
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-DaHu6xrB.js";
|
|
3
3
|
const _ = {
|
|
4
4
|
name: "funcExprDialog",
|
|
5
5
|
props: {
|
|
@@ -74,10 +74,10 @@ const _ = {
|
|
|
74
74
|
}
|
|
75
75
|
}, g = { class: "dialog-footer" };
|
|
76
76
|
function y(t, e, l, d, o, s) {
|
|
77
|
-
const h = i("BnFunExpr"), x = i("el-link"), p = i("el-button"),
|
|
78
|
-
return
|
|
77
|
+
const h = i("BnFunExpr"), x = i("el-link"), p = i("el-button"), b = i("el-dialog");
|
|
78
|
+
return c(), f(b, {
|
|
79
79
|
modelValue: o.visible,
|
|
80
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
80
|
+
"onUpdate:modelValue": e[1] || (e[1] = (m) => o.visible = m),
|
|
81
81
|
title: "编辑函数",
|
|
82
82
|
top: "5vh",
|
|
83
83
|
"close-on-click-modal": !1,
|
|
@@ -101,7 +101,7 @@ function y(t, e, l, d, o, s) {
|
|
|
101
101
|
]),
|
|
102
102
|
r("div", null, [
|
|
103
103
|
a(p, {
|
|
104
|
-
onClick: e[0] || (e[0] = (
|
|
104
|
+
onClick: e[0] || (e[0] = (m) => o.visible = !1)
|
|
105
105
|
}, {
|
|
106
106
|
default: n(() => [...e[3] || (e[3] = [
|
|
107
107
|
u("取消", -1)
|
|
@@ -122,18 +122,18 @@ function y(t, e, l, d, o, s) {
|
|
|
122
122
|
])
|
|
123
123
|
]),
|
|
124
124
|
default: n(() => [
|
|
125
|
-
o.visible ? (
|
|
125
|
+
o.visible ? (c(), f(h, {
|
|
126
126
|
key: 0,
|
|
127
127
|
id: s.columnInfo.extraInfo.exprId,
|
|
128
128
|
"column-list": s.columnList,
|
|
129
129
|
ref: "bnFunExpr",
|
|
130
130
|
"post-func": l.postFunc
|
|
131
|
-
}, null, 8, ["id", "column-list", "post-func"])) :
|
|
131
|
+
}, null, 8, ["id", "column-list", "post-func"])) : v("", !0)
|
|
132
132
|
]),
|
|
133
133
|
_: 1
|
|
134
134
|
}, 8, ["modelValue"]);
|
|
135
135
|
}
|
|
136
|
-
const F = /* @__PURE__ */ I(_, [["render", y], ["__scopeId", "data-v-
|
|
136
|
+
const F = /* @__PURE__ */ I(_, [["render", y], ["__scopeId", "data-v-d954db8c"]]);
|
|
137
137
|
export {
|
|
138
138
|
F as default
|
|
139
139
|
};
|
package/dist/funcExprDialog.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dialog-footer[data-v-
|
|
1
|
+
.dialog-footer[data-v-d954db8c]{display:flex;justify-content:space-between;position:relative}
|