@bytenew/bn-bus-ui 1.1.463 → 1.1.464
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/dist/assocTableSearch-Bfe96864.js +349 -0
- package/dist/assocTableSearch.css +1 -0
- package/dist/bn-bus-ui.es.js +65 -0
- package/dist/bn-bus-ui.umd.js +49 -0
- package/dist/chooseIPaasData-COrrvQKZ.js +391 -0
- package/dist/chooseIPaasData.css +1 -0
- package/dist/defaultSet-CzN1ec_d.js +297 -0
- package/dist/defaultSet.css +1 -0
- package/dist/fileFormData-D_Q1vylE.js +53 -0
- package/dist/formItemFooter-BvptZj_u.js +108 -0
- package/dist/formItemFooter.css +1 -0
- package/dist/funcExprDialog-BguNs9fl.js +139 -0
- package/dist/funcExprDialog.css +1 -0
- package/dist/index-0oB7QocU.js +44 -0
- package/dist/index-69fRP0M8.js +89 -0
- package/dist/index-BdklTJtF.js +66 -0
- package/dist/index-Bu3jHlby.js +45 -0
- package/dist/index-BxWx5kpG.js +89 -0
- package/dist/index-C5LQ0OSs.js +183 -0
- package/dist/index-C8YhrrUN.js +51 -0
- package/dist/index-COuPCIzB.js +45 -0
- package/dist/index-CSvVyjxx.js +178 -0
- package/dist/index-DCv51EXX.js +109 -0
- package/dist/index-DUSI6MuC.js +135 -0
- package/dist/index-DVzxs2vR.js +58 -0
- package/dist/index-Dd4b8zNb.js +746 -0
- package/dist/index-Md-ZlkCW.js +66 -0
- package/dist/index-hsSIY2FP.js +221 -0
- package/dist/index-n13-H3_Y.js +118 -0
- package/dist/index-wUl5aPUD.js +64 -0
- package/dist/index.css +1 -0
- package/dist/index2.css +1 -0
- package/dist/index3.css +1 -0
- package/dist/index4.css +1 -0
- package/dist/index5.css +1 -0
- package/dist/index6.css +1 -0
- package/dist/index7.css +1 -0
- package/dist/install-CNjs0u5x.js +23299 -0
- package/dist/install.css +1 -0
- package/dist/setOption-CXOifQcx.js +329 -0
- package/dist/setOption.css +1 -0
- package/dist/setRelationOption-C7VDhej7.js +5217 -0
- package/dist/setRelationOption.css +1 -0
- package/package.json +4 -20
- package/install.js +0 -134
- package/packages/BnAddress/index.vue +0 -141
- package/packages/BnAddressParse/index.vue +0 -75
- package/packages/BnAdvancedFilter/BnFilterView.vue +0 -145
- package/packages/BnAdvancedFilter/index.vue +0 -345
- package/packages/BnAdvancedFilter/util.js +0 -171
- package/packages/BnCascader/BnCascader.vue +0 -543
- package/packages/BnCascader/BnCascaderPanel.vue +0 -1331
- package/packages/BnCascader/cascaderDisplay.js +0 -102
- package/packages/BnCheck/BnCheck.vue +0 -253
- package/packages/BnColumnConfig/columnConfigDialog.vue +0 -134
- package/packages/BnColumnConfig/component/childrenFormSetting/assocTable.vue +0 -143
- package/packages/BnColumnConfig/component/childrenFormSetting/assocTableSearch.vue +0 -314
- package/packages/BnColumnConfig/component/childrenFormSetting/index.vue +0 -243
- package/packages/BnColumnConfig/component/defaultSet/defaultSet.vue +0 -114
- package/packages/BnColumnConfig/component/defaultSet/stringDefault.vue +0 -210
- package/packages/BnColumnConfig/component/funcExprDialog/funcExprDialog.vue +0 -126
- package/packages/BnColumnConfig/component/packageFilter/index.vue +0 -141
- package/packages/BnColumnConfig/component/paraExplainSet/index.vue +0 -156
- package/packages/BnColumnConfig/component/setOption/setOption.vue +0 -321
- package/packages/BnColumnConfig/component/setRelationOption/ConditionList.vue +0 -277
- package/packages/BnColumnConfig/component/setRelationOption/LevelHeader.vue +0 -144
- package/packages/BnColumnConfig/component/setRelationOption/setRelationOption.vue +0 -642
- package/packages/BnColumnConfig/data.js +0 -129
- package/packages/BnColumnConfig/index.scss +0 -23
- package/packages/BnColumnConfig/index.vue +0 -309
- package/packages/BnCondVal/BnCondVal.vue +0 -112
- package/packages/BnCondVal/itemVal/dateRegVal.vue +0 -39
- package/packages/BnCondVal/itemVal/dateVal.vue +0 -39
- package/packages/BnCondVal/itemVal/numRegVal.vue +0 -67
- package/packages/BnCondVal/itemVal/numVal.vue +0 -44
- package/packages/BnCondVal/itemVal/relationVal.vue +0 -73
- package/packages/BnCondVal/itemVal/selectColumnVal.vue +0 -58
- package/packages/BnCondVal/itemVal/selectVal.vue +0 -59
- package/packages/BnCondVal/itemVal/stringVal.vue +0 -156
- package/packages/BnCondition/index.vue +0 -551
- package/packages/BnCondition/util.js +0 -232
- package/packages/BnDatePicker/BnDatePicker.vue +0 -194
- package/packages/BnDrop/BnDrop.vue +0 -917
- package/packages/BnEmptyTip/BnEmptyTip.vue +0 -107
- package/packages/BnExportOrder/BnExportOrder.vue +0 -241
- package/packages/BnExportOrder/validatorCode.vue +0 -94
- package/packages/BnFileView/BnFileView.vue +0 -271
- package/packages/BnFileView/FileDetail.vue +0 -125
- package/packages/BnFileView/videoPreview.vue +0 -70
- package/packages/BnFilterOption/BnFilterOption.vue +0 -160
- package/packages/BnFunExpr/BnFunExpr.vue +0 -608
- package/packages/BnImportOrder/BnImportOrder.vue +0 -323
- package/packages/BnImportTemplate/BnImportTemplate.vue +0 -866
- package/packages/BnImportTemplate/assets/merge_tip_img.png +0 -0
- package/packages/BnImportTemplate/assets/sheet_tip.png +0 -0
- package/packages/BnImportTemplate/assets/xls.png +0 -0
- package/packages/BnImportTemplate/components/ImportTemplateTrigger.vue +0 -198
- package/packages/BnImportTemplate/components/TemplateEditDialog.vue +0 -340
- package/packages/BnImportTemplate/components/TemplateFieldsConfig.vue +0 -401
- package/packages/BnImportTemplate/components/TemplateListDialog.vue +0 -297
- package/packages/BnInpNum/BnInpNum.vue +0 -165
- package/packages/BnMenus/BnMenus.vue +0 -502
- package/packages/BnMenus/MenuItem.vue +0 -321
- package/packages/BnOrderCard/BnOrderCard.vue +0 -389
- package/packages/BnOrderCard/orderRemark.vue +0 -178
- package/packages/BnOrderCard/util.js +0 -94
- package/packages/BnOrderDetail/BnOrderDetail.vue +0 -338
- package/packages/BnOrderDetail/filterLogByUser.vue +0 -108
- package/packages/BnOrderDetail/orderLogs.vue +0 -53
- package/packages/BnOrderDetail/showSubForm/index.vue +0 -41
- package/packages/BnOrderDetail/showSubForm/showChildTable.vue +0 -61
- package/packages/BnOrderDetail/showSubForm/showTimeLine.vue +0 -131
- package/packages/BnOrderDetail/showSubForm/tableCellCopy.vue +0 -84
- package/packages/BnOrderShare/index.vue +0 -378
- package/packages/BnOrderShare/shareUrlInp.vue +0 -54
- package/packages/BnRadio/BnRadio.vue +0 -181
- package/packages/BnRelation/BnRelation.vue +0 -120
- package/packages/BnSelect/BnSelect.vue +0 -485
- package/packages/BnSmartForm/BnBatchForm.vue +0 -334
- package/packages/BnSmartForm/BnBatchFormDialog.vue +0 -423
- package/packages/BnSmartForm/BnSmartElf/elfLog/index.vue +0 -57
- package/packages/BnSmartForm/BnSmartElf/index.vue +0 -95
- package/packages/BnSmartForm/BnSmartFormPsychic.js +0 -629
- package/packages/BnSmartForm/BnSmartFormUtil.js +0 -524
- package/packages/BnSmartForm/addressForm/index.vue +0 -73
- package/packages/BnSmartForm/checkboxForm/index.vue +0 -99
- package/packages/BnSmartForm/childrenForm/childFormFile.vue +0 -237
- package/packages/BnSmartForm/childrenForm/childrenFormBody.vue +0 -260
- package/packages/BnSmartForm/childrenForm/index.vue +0 -110
- package/packages/BnSmartForm/childrenForm/searchInventory.vue +0 -115
- package/packages/BnSmartForm/chooseAssocTable/chooseAssocTable.vue +0 -451
- package/packages/BnSmartForm/chooseAssocTable/chooseChildGood.vue +0 -229
- package/packages/BnSmartForm/chooseAssocTable/tableCellCopy.vue +0 -84
- package/packages/BnSmartForm/chooseChildOrder/chooseChildOrder.vue +0 -158
- package/packages/BnSmartForm/chooseIPaasData/chooseIPaasData.vue +0 -307
- package/packages/BnSmartForm/chooseIPaasData/tableCellCopy.vue +0 -84
- package/packages/BnSmartForm/choosePackage/choosePackage.vue +0 -361
- package/packages/BnSmartForm/dateDualForm/index.vue +0 -37
- package/packages/BnSmartForm/dateForm/index.vue +0 -38
- package/packages/BnSmartForm/fileForm/fileFormData.js +0 -50
- package/packages/BnSmartForm/fileForm/index.vue +0 -240
- package/packages/BnSmartForm/formItemFooter/formItemFooter.vue +0 -38
- package/packages/BnSmartForm/formItemTop/formItemTop.vue +0 -42
- package/packages/BnSmartForm/index.vue +0 -1201
- package/packages/BnSmartForm/numberForm/index.vue +0 -63
- package/packages/BnSmartForm/radioForm/index.vue +0 -72
- package/packages/BnSmartForm/receiveForm/index.vue +0 -112
- package/packages/BnSmartForm/relationForm/index.vue +0 -82
- package/packages/BnSmartForm/scoreForm/index.vue +0 -39
- package/packages/BnSmartForm/selectForm/index.vue +0 -55
- package/packages/BnSmartForm/showValForm/index.vue +0 -42
- package/packages/BnSmartForm/showValForm/showValFormTable.vue +0 -104
- package/packages/BnSmartForm/smartFormsCommon.scss +0 -43
- package/packages/BnSmartForm/stringForm/index.vue +0 -170
- package/packages/BnVirtPopover/index.vue +0 -319
- package/packages/BnWebLog/BnWebLog.vue +0 -140
- package/packages/BnWorkSettingDrop/advancedOptions.js +0 -112
- package/packages/BnWorkSettingDrop/benBenAIUtil.js +0 -89
- package/packages/BnWorkSettingDrop/index.vue +0 -292
- package/packages/font/iconfont.css +0 -243
- package/packages/font/iconfont.ttf +0 -0
- package/packages/font/iconfont.woff +0 -0
- package/packages/font/iconfont.woff2 +0 -0
- package/utils/addressParse-old.js +0 -645
- package/utils/addressParse.js +0 -735
- package/utils/config.js +0 -68
- package/utils/index.js +0 -1171
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { a as m, f as s } from "./formItemFooter-BvptZj_u.js";
|
|
2
|
+
import { resolveComponent as n, openBlock as d, createElementBlock as f, createVNode as l, createElementVNode as p } from "vue";
|
|
3
|
+
import { _ as h } from "./install-CNjs0u5x.js";
|
|
4
|
+
const _ = {
|
|
5
|
+
name: "relationForm",
|
|
6
|
+
components: { formItemFooter: s, formItemTop: m },
|
|
7
|
+
props: {
|
|
8
|
+
column: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default: function() {
|
|
11
|
+
return {};
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
disabled: Boolean,
|
|
15
|
+
// 接口请求外部转发
|
|
16
|
+
postFunc: Function
|
|
17
|
+
},
|
|
18
|
+
computed: {
|
|
19
|
+
/**
|
|
20
|
+
* 过滤后的选项列表,只保留columnStatus等于1的项
|
|
21
|
+
*/
|
|
22
|
+
filteredOptions() {
|
|
23
|
+
if (!this.column.moduleDefinition || !this.column.moduleDefinition.optionList)
|
|
24
|
+
return [];
|
|
25
|
+
const o = (t) => Array.isArray(t) ? t.filter((e) => e.columnStatus != 1 ? !1 : (e.children && Array.isArray(e.children) && (e.children = o(e.children)), !0)) : [];
|
|
26
|
+
return o(this.column.moduleDefinition.optionList);
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
methods: {
|
|
30
|
+
/**
|
|
31
|
+
* 组件值发生变化
|
|
32
|
+
* */
|
|
33
|
+
changeValue() {
|
|
34
|
+
this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}, b = { class: "w-default-wrap" }, F = { class: "w-default-wrap" };
|
|
38
|
+
function v(o, t, e, V, g, r) {
|
|
39
|
+
const a = n("formItemTop"), i = n("BnCascader"), c = n("formItemFooter");
|
|
40
|
+
return d(), f("div", b, [
|
|
41
|
+
l(a, { column: e.column }, null, 8, ["column"]),
|
|
42
|
+
p("div", F, [
|
|
43
|
+
l(i, {
|
|
44
|
+
onChange: r.changeValue,
|
|
45
|
+
modelValue: e.column.value,
|
|
46
|
+
"onUpdate:modelValue": t[0] || (t[0] = (u) => e.column.value = u),
|
|
47
|
+
postFunc: e.postFunc,
|
|
48
|
+
"path-url": e.column.pathUrl,
|
|
49
|
+
"post-data": e.column.postData,
|
|
50
|
+
"remote-mode": "tree",
|
|
51
|
+
optionProps: { value: "code", label: "title" },
|
|
52
|
+
"label-in-value": !1,
|
|
53
|
+
options: r.filteredOptions,
|
|
54
|
+
"hide-check-to-last": "",
|
|
55
|
+
multiple: e.column.behaviorType == 20,
|
|
56
|
+
disabled: e.disabled,
|
|
57
|
+
clearable: ""
|
|
58
|
+
}, null, 8, ["onChange", "modelValue", "postFunc", "path-url", "post-data", "options", "multiple", "disabled"])
|
|
59
|
+
]),
|
|
60
|
+
l(c, { column: e.column }, null, 8, ["column"])
|
|
61
|
+
]);
|
|
62
|
+
}
|
|
63
|
+
const w = /* @__PURE__ */ h(_, [["render", v]]);
|
|
64
|
+
export {
|
|
65
|
+
w as default
|
|
66
|
+
};
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { isEmpty as O, cloneDeep as T } from "lodash";
|
|
2
|
+
import { _ as U, W as F } from "./install-CNjs0u5x.js";
|
|
3
|
+
import { resolveComponent as a, openBlock as i, createElementBlock as s, createVNode as d, mergeProps as b, createElementVNode as o, toDisplayString as f, withCtx as r, createTextVNode as m, createCommentVNode as c, normalizeClass as V, createBlock as $, defineAsyncComponent as D } from "vue";
|
|
4
|
+
const W = {
|
|
5
|
+
name: "childrenFormSetting",
|
|
6
|
+
components: {
|
|
7
|
+
columnConfigDialog: D(() => import("./install-CNjs0u5x.js").then((t) => t.V)),
|
|
8
|
+
assocTableSearch: D(() => import("./assocTableSearch-Bfe96864.js"))
|
|
9
|
+
// assocTable: defineAsyncComponent(() => import("./assocTable.vue")),
|
|
10
|
+
},
|
|
11
|
+
props: {
|
|
12
|
+
columnData: {
|
|
13
|
+
type: Object,
|
|
14
|
+
default: () => ({})
|
|
15
|
+
},
|
|
16
|
+
postFunc: Function,
|
|
17
|
+
// API请求函数
|
|
18
|
+
extendPost: Object,
|
|
19
|
+
// 额外的请求参数
|
|
20
|
+
// 以下是从父组件传入的 props
|
|
21
|
+
row: {
|
|
22
|
+
type: Number,
|
|
23
|
+
default: 1
|
|
24
|
+
},
|
|
25
|
+
hideFiled: {
|
|
26
|
+
type: Array,
|
|
27
|
+
default: () => []
|
|
28
|
+
},
|
|
29
|
+
columnList: {
|
|
30
|
+
type: Array,
|
|
31
|
+
default: () => []
|
|
32
|
+
},
|
|
33
|
+
disabled: Boolean
|
|
34
|
+
},
|
|
35
|
+
data() {
|
|
36
|
+
return {
|
|
37
|
+
columnTypeMap: F,
|
|
38
|
+
componentWidth: 0
|
|
39
|
+
// 组件宽度
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
mounted() {
|
|
43
|
+
this.calculateWidth();
|
|
44
|
+
},
|
|
45
|
+
methods: {
|
|
46
|
+
isEmpty: O,
|
|
47
|
+
/**
|
|
48
|
+
* 计算组件宽度
|
|
49
|
+
*/
|
|
50
|
+
calculateWidth() {
|
|
51
|
+
this.$nextTick(() => {
|
|
52
|
+
const t = this.$el;
|
|
53
|
+
t && (this.componentWidth = t.offsetWidth);
|
|
54
|
+
});
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* 滚动到列表底部
|
|
58
|
+
*/
|
|
59
|
+
scrollToBottom() {
|
|
60
|
+
this.$nextTick(() => {
|
|
61
|
+
const t = this.$refs.optionList;
|
|
62
|
+
if (t && t.$el) {
|
|
63
|
+
const e = t.$el.querySelector(".el-scrollbar__wrap");
|
|
64
|
+
e && (e.scrollTop = e.scrollHeight);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* 编辑或者新增组件
|
|
70
|
+
*/
|
|
71
|
+
async editChildColumn(t) {
|
|
72
|
+
var e;
|
|
73
|
+
if (t.columnCode)
|
|
74
|
+
for (let n in this.columnData.moduleDefinition)
|
|
75
|
+
this.columnData.moduleDefinition[n].columnCode == t.columnCode && (this.columnData.moduleDefinition[n] = T(t));
|
|
76
|
+
else {
|
|
77
|
+
const n = ((e = this.extendPost) == null ? void 0 : e.appId) || "noApp", u = await this.postFunc(`/v2/projects/customId/1/${n}`, null, "get");
|
|
78
|
+
u.code || (this.columnData.moduleDefinition.push(
|
|
79
|
+
{ ...t, columnCode: `cc_${u.data[0]}` }
|
|
80
|
+
), this.scrollToBottom());
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* 删除选项
|
|
85
|
+
*/
|
|
86
|
+
deleteOption(t) {
|
|
87
|
+
this.columnData.moduleDefinition.splice(t, 1);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}, B = { class: "childrenSetOpt" }, N = { class: "childrenSetOpt-top w-flex-center w-flex-between" }, A = { class: "w-flex-center" }, E = { class: "w-color-orange" }, j = { class: "w-flex-center w-flex-column-gap5" }, L = { key: 0 }, P = { key: 1 }, M = { class: "w-flex-between w-flex-center childrenSetOpt-list-item-content" }, q = ["title"], z = { class: "w-flex-center" }, H = { class: "w-color-purple childrenSetOpt-list-item-memo" }, G = {
|
|
91
|
+
key: 0,
|
|
92
|
+
class: "w-margin-left4"
|
|
93
|
+
}, J = {
|
|
94
|
+
key: 1,
|
|
95
|
+
class: "w-margin-left4"
|
|
96
|
+
}, K = { class: "w-flex-right w-flex-center w-flex-column-gap8" }, Q = ["onClick"], R = ["onClick"], X = {
|
|
97
|
+
key: 0,
|
|
98
|
+
class: "w-empty"
|
|
99
|
+
};
|
|
100
|
+
function Y(t, e, n, u, h, p) {
|
|
101
|
+
var g;
|
|
102
|
+
const v = a("columnConfigDialog"), y = a("assocTableSearch"), _ = a("el-button"), C = a("el-tooltip"), k = a("draggable"), x = a("el-scrollbar");
|
|
103
|
+
return i(), s("div", B, [
|
|
104
|
+
d(v, b({ ref: "columnConfigDialog" }, t.$props, {
|
|
105
|
+
onSaveOver: p.editChildColumn,
|
|
106
|
+
"is-children": ""
|
|
107
|
+
}), null, 16, ["onSaveOver"]),
|
|
108
|
+
d(y, b({ ref: "assocTableSearch" }, t.$props), null, 16),
|
|
109
|
+
o("div", N, [
|
|
110
|
+
o("div", A, [
|
|
111
|
+
e[3] || (e[3] = o("div", { class: "childrenSetOpt-top-title" }, "子组件设置", -1)),
|
|
112
|
+
o("div", E, " (共" + f(n.columnData.moduleDefinition.length) + "个子组件) ", 1)
|
|
113
|
+
]),
|
|
114
|
+
o("div", j, [
|
|
115
|
+
n.hideFiled.includes("moduleDefinition") ? c("", !0) : (i(), s("div", L, [
|
|
116
|
+
d(_, {
|
|
117
|
+
link: "",
|
|
118
|
+
type: "primary",
|
|
119
|
+
onClick: e[0] || (e[0] = (l) => t.$refs.columnConfigDialog.open())
|
|
120
|
+
}, {
|
|
121
|
+
default: r(() => [...e[4] || (e[4] = [
|
|
122
|
+
o("span", { class: "bnUIcon bnUIcon-addFile w-padding-right2 w-font14" }, null, -1),
|
|
123
|
+
m("添加 ", -1)
|
|
124
|
+
])]),
|
|
125
|
+
_: 1
|
|
126
|
+
})
|
|
127
|
+
])),
|
|
128
|
+
((g = n.columnData.insideDataSourceInfo) == null ? void 0 : g.type) == "group" ? (i(), s("div", P, [
|
|
129
|
+
d(_, {
|
|
130
|
+
link: "",
|
|
131
|
+
type: "primary",
|
|
132
|
+
onClick: e[1] || (e[1] = (l) => t.$refs.assocTableSearch.open())
|
|
133
|
+
}, {
|
|
134
|
+
default: r(() => [...e[5] || (e[5] = [
|
|
135
|
+
o("span", { class: "bnUIcon bnUIcon-search w-padding-right2" }, null, -1),
|
|
136
|
+
m(" 设置数据筛选 ", -1)
|
|
137
|
+
])]),
|
|
138
|
+
_: 1
|
|
139
|
+
})
|
|
140
|
+
])) : c("", !0)
|
|
141
|
+
])
|
|
142
|
+
]),
|
|
143
|
+
d(x, {
|
|
144
|
+
"max-height": "380px",
|
|
145
|
+
class: "childrenSetOpt-list",
|
|
146
|
+
ref: "optionList"
|
|
147
|
+
}, {
|
|
148
|
+
default: r(() => [
|
|
149
|
+
d(k, {
|
|
150
|
+
modelValue: n.columnData.moduleDefinition,
|
|
151
|
+
"onUpdate:modelValue": e[2] || (e[2] = (l) => n.columnData.moduleDefinition = l),
|
|
152
|
+
"item-key": "id",
|
|
153
|
+
handle: ".childrenSetOpt-list-item-drag",
|
|
154
|
+
"ghost-class": "ghost-item",
|
|
155
|
+
"chosen-class": "chosen-item",
|
|
156
|
+
animation: "300",
|
|
157
|
+
tag: "div"
|
|
158
|
+
}, {
|
|
159
|
+
item: r(({ element: l, index: S }) => {
|
|
160
|
+
var w;
|
|
161
|
+
return [
|
|
162
|
+
o("div", {
|
|
163
|
+
class: V(["childrenSetOpt-list-item", [h.componentWidth > 400 ? "two" : "one"]])
|
|
164
|
+
}, [
|
|
165
|
+
o("div", M, [
|
|
166
|
+
e[7] || (e[7] = o("div", { class: "childrenSetOpt-list-item-drag w-default-hover" }, [
|
|
167
|
+
o("span", { class: "bnUIcon bnUIcon-move" })
|
|
168
|
+
], -1)),
|
|
169
|
+
o("div", {
|
|
170
|
+
class: "w-font14 w-color-black6 childrenSetOpt-list-item-text w-text-over-two",
|
|
171
|
+
title: l.name
|
|
172
|
+
}, [
|
|
173
|
+
((w = l.insideDataSourceInfo) == null ? void 0 : w.type) == "group" ? (i(), $(C, {
|
|
174
|
+
key: 0,
|
|
175
|
+
content: "来自关联表组件",
|
|
176
|
+
placement: "top"
|
|
177
|
+
}, {
|
|
178
|
+
default: r(() => [...e[6] || (e[6] = [
|
|
179
|
+
o("span", {
|
|
180
|
+
class: "bnUIcon bnUIcon-linkTable w-color-violet",
|
|
181
|
+
title: ""
|
|
182
|
+
}, null, -1)
|
|
183
|
+
])]),
|
|
184
|
+
_: 1
|
|
185
|
+
})) : c("", !0),
|
|
186
|
+
m(" " + f(l.name), 1)
|
|
187
|
+
], 8, q)
|
|
188
|
+
]),
|
|
189
|
+
o("div", z, [
|
|
190
|
+
o("div", H, [
|
|
191
|
+
m(f(h.columnTypeMap[l.behaviorType]) + " ", 1),
|
|
192
|
+
p.isEmpty(l.defaultInfo) ? c("", !0) : (i(), s("span", G, "已配默认值")),
|
|
193
|
+
l.extraInfo.exprId ? (i(), s("span", J, "已配函数表达式")) : c("", !0)
|
|
194
|
+
])
|
|
195
|
+
]),
|
|
196
|
+
o("div", K, [
|
|
197
|
+
o("span", {
|
|
198
|
+
class: "bnUIcon bnUIcon-setting w-color-orange",
|
|
199
|
+
onClick: (I) => t.$refs.columnConfigDialog.open(l)
|
|
200
|
+
}, null, 8, Q),
|
|
201
|
+
n.hideFiled.includes("moduleDefinition") ? c("", !0) : (i(), s("span", {
|
|
202
|
+
key: 0,
|
|
203
|
+
class: "bnUIcon bnUIcon-delete w-color-orange",
|
|
204
|
+
onClick: (I) => p.deleteOption(S, l.name)
|
|
205
|
+
}, null, 8, R))
|
|
206
|
+
])
|
|
207
|
+
], 2)
|
|
208
|
+
];
|
|
209
|
+
}),
|
|
210
|
+
_: 1
|
|
211
|
+
}, 8, ["modelValue"])
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
}, 512),
|
|
215
|
+
!n.columnData.moduleDefinition || n.columnData.moduleDefinition.length == 0 ? (i(), s("div", X, "没有子组件 ")) : c("", !0)
|
|
216
|
+
]);
|
|
217
|
+
}
|
|
218
|
+
const oe = /* @__PURE__ */ U(W, [["render", Y], ["__scopeId", "data-v-290e160f"]]);
|
|
219
|
+
export {
|
|
220
|
+
oe as default
|
|
221
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { _ as g, X as w } from "./install-CNjs0u5x.js";
|
|
2
|
+
import { resolveComponent as p, openBlock as l, createElementBlock as o, createVNode as u, createElementVNode as i, withCtx as h, Fragment as b, renderList as _, createCommentVNode as I } from "vue";
|
|
3
|
+
const v = {
|
|
4
|
+
name: "paraExplainSet",
|
|
5
|
+
props: {
|
|
6
|
+
columnData: {
|
|
7
|
+
type: Object,
|
|
8
|
+
default: () => ({})
|
|
9
|
+
},
|
|
10
|
+
disabled: Boolean,
|
|
11
|
+
postFunc: Function,
|
|
12
|
+
// API请求函数
|
|
13
|
+
extendPost: Object
|
|
14
|
+
// 额外的请求参数
|
|
15
|
+
},
|
|
16
|
+
data() {
|
|
17
|
+
return {
|
|
18
|
+
fileType: ["png", "jpg", "jpeg", "gif"]
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
mounted() {
|
|
22
|
+
this.columnData.extraInfo.operationPictures || (this.columnData.extraInfo.operationPictures = []);
|
|
23
|
+
},
|
|
24
|
+
computed: {
|
|
25
|
+
uploadUrl() {
|
|
26
|
+
return `${w()}/v2/attachment/upload/remarkOperation`;
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
methods: {
|
|
30
|
+
/**
|
|
31
|
+
* 上传成功
|
|
32
|
+
* */
|
|
33
|
+
fileSuccess(a) {
|
|
34
|
+
var e, t;
|
|
35
|
+
a.code ? this.$message.warning(a.msg) : ((e = this.columnData.extraInfo.operationPictures) == null ? void 0 : e.length) < 15 ? ((t = this.columnData.extraInfo.operationPictures) == null || t.length, this.columnData.extraInfo.operationPictures.push(a.data.url)) : this.$message.warning("上传文件个数不能超过15个");
|
|
36
|
+
},
|
|
37
|
+
/**
|
|
38
|
+
* 附件上传前
|
|
39
|
+
* */
|
|
40
|
+
beforeUpload(a) {
|
|
41
|
+
var s;
|
|
42
|
+
if (((s = this.columnData.extraInfo.operationPictures) == null ? void 0 : s.length) >= 15)
|
|
43
|
+
return this.$message.warning("上传文件个数不能超过15个"), !1;
|
|
44
|
+
const e = 50, t = 1048576 * e;
|
|
45
|
+
if (a.size > t)
|
|
46
|
+
return this.$message.warning(`上传文件大小不能超出${e}MB`), !1;
|
|
47
|
+
const d = a.name.split(".").pop().toLowerCase();
|
|
48
|
+
return this.fileType.includes(d) ? !0 : (this.$message.warning("仅支持上传图片"), !1);
|
|
49
|
+
},
|
|
50
|
+
/**
|
|
51
|
+
* 删除图片
|
|
52
|
+
* */
|
|
53
|
+
deleteImage(a) {
|
|
54
|
+
this.columnData.extraInfo.operationPictures.splice(a, 1);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}, D = { class: "paraExplainSet" }, E = { class: "w-flex-left w-flex-wrap w-flex-gap8 w-margin-top10" }, P = ["onClick"];
|
|
58
|
+
function S(a, e, t, d, s, n) {
|
|
59
|
+
const m = p("el-input"), f = p("el-upload"), x = p("el-image");
|
|
60
|
+
return l(), o("div", D, [
|
|
61
|
+
u(m, {
|
|
62
|
+
type: "textarea",
|
|
63
|
+
resize: "none",
|
|
64
|
+
rows: 3,
|
|
65
|
+
modelValue: t.columnData.extraInfo.paraExplain,
|
|
66
|
+
"onUpdate:modelValue": e[0] || (e[0] = (r) => t.columnData.extraInfo.paraExplain = r),
|
|
67
|
+
placeholder: "填写说明",
|
|
68
|
+
clearable: "",
|
|
69
|
+
disabled: t.disabled,
|
|
70
|
+
maxlength: 800,
|
|
71
|
+
"show-word-limit": ""
|
|
72
|
+
}, null, 8, ["modelValue", "disabled"]),
|
|
73
|
+
i("div", E, [
|
|
74
|
+
u(f, {
|
|
75
|
+
class: "paraExplainSet-upload",
|
|
76
|
+
ref: "uploadInput",
|
|
77
|
+
action: n.uploadUrl,
|
|
78
|
+
"show-file-list": !1,
|
|
79
|
+
disabled: t.disabled,
|
|
80
|
+
"before-upload": n.beforeUpload,
|
|
81
|
+
multiple: "",
|
|
82
|
+
"on-success": n.fileSuccess
|
|
83
|
+
}, {
|
|
84
|
+
default: h(() => [...e[1] || (e[1] = [
|
|
85
|
+
i("div", { class: "paraExplainSet-upload-btn w-flex-center w-flex-lrCenter" }, [
|
|
86
|
+
i("span", { class: "bnUIcon bnUIcon-upImg w-font24 w-color-blue" })
|
|
87
|
+
], -1)
|
|
88
|
+
])]),
|
|
89
|
+
_: 1
|
|
90
|
+
}, 8, ["action", "disabled", "before-upload", "on-success"]),
|
|
91
|
+
(l(!0), o(b, null, _(t.columnData.extraInfo.operationPictures, (r, c) => (l(), o("div", {
|
|
92
|
+
key: c,
|
|
93
|
+
class: "paraExplainSet-image-wrapper"
|
|
94
|
+
}, [
|
|
95
|
+
u(x, {
|
|
96
|
+
"preview-teleported": "",
|
|
97
|
+
style: { width: "40px", height: "40px" },
|
|
98
|
+
src: r,
|
|
99
|
+
"preview-src-list": t.columnData.extraInfo.operationPictures,
|
|
100
|
+
"show-progress": "",
|
|
101
|
+
"initial-index": c,
|
|
102
|
+
fit: "cover"
|
|
103
|
+
}, null, 8, ["src", "preview-src-list", "initial-index"]),
|
|
104
|
+
t.disabled ? I("", !0) : (l(), o("div", {
|
|
105
|
+
key: 0,
|
|
106
|
+
class: "paraExplainSet-image-delete",
|
|
107
|
+
onClick: (U) => n.deleteImage(c)
|
|
108
|
+
}, [...e[2] || (e[2] = [
|
|
109
|
+
i("span", { class: "bnUIcon bnUIcon-clear w-color-white" }, null, -1)
|
|
110
|
+
])], 8, P))
|
|
111
|
+
]))), 128))
|
|
112
|
+
])
|
|
113
|
+
]);
|
|
114
|
+
}
|
|
115
|
+
const C = /* @__PURE__ */ g(v, [["render", S], ["__scopeId", "data-v-7c881e71"]]);
|
|
116
|
+
export {
|
|
117
|
+
C as default
|
|
118
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { a as i, f as s } from "./formItemFooter-BvptZj_u.js";
|
|
2
|
+
import { resolveComponent as o, openBlock as d, createElementBlock as r, createVNode as t, createElementVNode as f } from "vue";
|
|
3
|
+
import { _ as p } from "./install-CNjs0u5x.js";
|
|
4
|
+
const h = {
|
|
5
|
+
name: "editSelectCol",
|
|
6
|
+
components: { formItemFooter: s, formItemTop: i },
|
|
7
|
+
props: {
|
|
8
|
+
column: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default: function() {
|
|
11
|
+
return {};
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
disabled: Boolean,
|
|
15
|
+
// 接口请求外部转发
|
|
16
|
+
postFunc: Function,
|
|
17
|
+
// 表级别扩展信息
|
|
18
|
+
extraInfo: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: function() {
|
|
21
|
+
return {};
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
taskId: {}
|
|
25
|
+
},
|
|
26
|
+
methods: {
|
|
27
|
+
/**
|
|
28
|
+
* 组件值发生变化
|
|
29
|
+
* */
|
|
30
|
+
changeValue() {
|
|
31
|
+
this.column.error = "", this.column.warning = "", this.$emit("onChange", this.column);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}, _ = { class: "w-default-wrap" }, g = { class: "w-default-wrap" };
|
|
35
|
+
function I(b, n, e, x, F, l) {
|
|
36
|
+
const a = o("formItemTop"), c = o("BnSelect"), m = o("formItemFooter");
|
|
37
|
+
return d(), r("div", _, [
|
|
38
|
+
t(a, { column: e.column }, null, 8, ["column"]),
|
|
39
|
+
f("div", g, [
|
|
40
|
+
t(c, {
|
|
41
|
+
modelValue: e.column.value,
|
|
42
|
+
"onUpdate:modelValue": n[0] || (n[0] = (u) => e.column.value = u),
|
|
43
|
+
options: e.column.moduleDefinition,
|
|
44
|
+
multiple: e.column.behaviorType == 5,
|
|
45
|
+
disabled: e.disabled || !e.taskId && e.extraInfo.isAutoAssign == 1 && e.column.columnCode == "executor",
|
|
46
|
+
optionProps: { value: "code", label: "title" },
|
|
47
|
+
pageProps: { pageNum: "pageNo", pageSize: "pageSize" },
|
|
48
|
+
pathUrl: e.column.pathUrl,
|
|
49
|
+
postData: e.column.postData,
|
|
50
|
+
postFunc: e.postFunc,
|
|
51
|
+
placeholder: !e.taskId && e.extraInfo.isAutoAssign && e.column.columnCode == "executor" ? "已开启自动分配" : "请选择",
|
|
52
|
+
clearable: "",
|
|
53
|
+
collapseTags: !1,
|
|
54
|
+
filterable: "",
|
|
55
|
+
onChange: l.changeValue
|
|
56
|
+
}, null, 8, ["modelValue", "options", "multiple", "disabled", "pathUrl", "postData", "postFunc", "placeholder", "onChange"])
|
|
57
|
+
]),
|
|
58
|
+
t(m, { column: e.column }, null, 8, ["column"])
|
|
59
|
+
]);
|
|
60
|
+
}
|
|
61
|
+
const k = /* @__PURE__ */ p(h, [["render", I]]);
|
|
62
|
+
export {
|
|
63
|
+
k as default
|
|
64
|
+
};
|
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.radioForm-empty[data-v-7a529164]{width:330px;line-height:32px;text-align:center;font-size:12px;color:#999}.radioForm-item[data-v-7a529164]{display:inline-block;line-height:32px;height:32px;min-width:200px;margin-right:16px}.radioForm-item .radio-box-label[data-v-7a529164]{width:100%;box-sizing:border-box;height:32px}.radioForm .radioForm-4[data-v-7a529164]{width:calc(25% - 16px);min-width:auto}.radioForm-evaluate[data-v-7a529164]{min-width:150px}
|
package/dist/index2.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.checkboxForm-title[data-v-81241159]{line-height:24px!important;margin-bottom:8px;font-size:14px;color:#666}.checkboxForm-tips[data-v-81241159]{line-height:32px;font-size:12px}.checkboxForm-item[data-v-81241159]{display:inline-block;width:calc(33% - 16px);line-height:32px;height:32px;min-width:200px;margin-right:16px;vertical-align:middle}.checkboxForm-empty[data-v-81241159]{width:330px;line-height:32px;text-align:center;font-size:12px;color:#999}
|
package/dist/index3.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.fileForm-btn[data-v-ce213ba4]{width:257px;height:20px;padding:5px 16px;border:1px solid rgba(0,0,0,.15);box-sizing:content-box;border-radius:2px;color:#666}.fileForm[data-v-ce213ba4] .fileForm-upload .el-upload{display:inline-block}.fileForm[data-v-ce213ba4] .fileForm-upload .el-upload-dragger{border:none;width:auto;height:auto;border-radius:0;padding:0}.fileForm-list[data-v-ce213ba4]{position:relative}.fileForm[data-v-ce213ba4] .fileForm-input{width:145px;display:inline-block}.fileForm[data-v-ce213ba4] .fileForm-input .el-input__wrapper{border:1px dashed rgba(0,0,0,.15)}.fileForm-tip[data-v-ce213ba4]{margin-left:8px;display:inline-block;font-size:12px;line-height:32px;color:#00000040}.fileForm-progress[data-v-ce213ba4]{width:100%;max-width:444px;margin-top:8px}
|
package/dist/index4.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.childFormFile-btn[data-v-a1b3b6de]{width:257px;height:20px;padding:5px 16px;border:1px solid rgba(0,0,0,.15);box-sizing:content-box;border-radius:2px;color:#666}.childFormFile[data-v-a1b3b6de] .childFormFile-upload .el-upload{display:inline-block}.childFormFile[data-v-a1b3b6de] .childFormFile-upload .el-upload-dragger{border:none;width:auto;height:auto;border-radius:0;padding:0}.childFormFile-list[data-v-a1b3b6de]{position:relative}.childFormFile[data-v-a1b3b6de] .childFormFile-input{width:145px;display:inline-block}.childFormFile[data-v-a1b3b6de] .childFormFile-input .el-input__wrapper{border:1px dashed rgba(0,0,0,.15)}.childFormFile-tip[data-v-a1b3b6de]{margin-left:8px;display:inline-block;font-size:12px;line-height:32px;color:#00000040}.childFormFile-progress[data-v-a1b3b6de]{width:100%;max-width:444px;margin-top:8px}.inventory[data-v-7c5817ba]{min-height:46px;padding:10px;border:1px solid #eee}.childFormBody-file[data-v-30ec2afe]{order:1;display:flex;align-items:center}.childFormBody-file-icon[data-v-30ec2afe]{font-size:22px}.childFormBody-file-view[data-v-30ec2afe]{width:calc(100% - 20px);overflow:hidden}.childFormBody-td[data-v-30ec2afe]{flex-grow:1}.childFormBody-operate[data-v-30ec2afe]{display:flex;align-items:center}
|
package/dist/index5.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.paraExplainSet[data-v-7c881e71]{width:100%}.paraExplainSet-upload[data-v-7c881e71]{width:40px;height:40px}.paraExplainSet-upload-btn[data-v-7c881e71]{width:40px;height:40px;border:1px solid rgba(0,0,0,.12);box-shadow:0 0 12px #0000001f}.paraExplainSet-image-wrapper[data-v-7c881e71]{position:relative;width:40px;height:40px}.paraExplainSet-image-wrapper:hover .paraExplainSet-image-delete[data-v-7c881e71]{opacity:1}.paraExplainSet-image-delete[data-v-7c881e71]{position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:50%;background-color:#0009;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:opacity .2s;z-index:10}.paraExplainSet-image-delete[data-v-7c881e71]:hover{background-color:#000c}.paraExplainSet-image-delete .el-icon-close[data-v-7c881e71]{color:#fff;font-size:12px}
|
package/dist/index6.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.childrenSetOpt-top[data-v-290e160f]{height:32px;font-size:14px}.childrenSetOpt-top-title[data-v-290e160f]{font-weight:500}.childrenSetOpt-list[data-v-290e160f]{margin-top:10px;padding-right:10px}.childrenSetOpt-list .el-scrollbar__view>div[data-v-290e160f]{display:flex;flex-wrap:wrap;gap:10px}.childrenSetOpt-list-item[data-v-290e160f]{position:relative;cursor:pointer;background:#ebeef5;border-radius:6px;padding:10px}.childrenSetOpt-list-item.two[data-v-290e160f]{width:calc(50% - 5px)}.childrenSetOpt-list-item.one[data-v-290e160f]{width:100%}.childrenSetOpt-list-item[data-v-290e160f]:hover{background:#e4e7ed;box-shadow:0 0 6px #0000001f}.childrenSetOpt-list-item-content[data-v-290e160f]{flex:1;min-width:0;overflow:hidden}.childrenSetOpt-list-item-text[data-v-290e160f]{flex:1;min-width:0}.childrenSetOpt-list-item-memo[data-v-290e160f]{font-size:12px;padding:12px 0 4px 22px}.childrenSetOpt-list-item-drag[data-v-290e160f]{padding-right:8px;flex-shrink:0}
|
package/dist/index7.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.packageFilter-top[data-v-a92dc360]{height:32px;font-size:14px}.packageFilter-top-title[data-v-a92dc360]{font-weight:500}.packageFilter-list[data-v-a92dc360]{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px;max-height:300px;overflow-y:auto}.packageFilter-list-item[data-v-a92dc360]{position:relative;cursor:pointer;background:#ebeef5;border-radius:6px;padding:10px}.packageFilter-list-item.two[data-v-a92dc360]{width:calc(50% - 5px)}.packageFilter-list-item.one[data-v-a92dc360]{width:100%}.packageFilter-list-item[data-v-a92dc360]:hover{background:#e4e7ed;box-shadow:0 0 6px #0000001f}
|