@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.
Files changed (167) hide show
  1. package/dist/assocTableSearch-Bfe96864.js +349 -0
  2. package/dist/assocTableSearch.css +1 -0
  3. package/dist/bn-bus-ui.es.js +65 -0
  4. package/dist/bn-bus-ui.umd.js +49 -0
  5. package/dist/chooseIPaasData-COrrvQKZ.js +391 -0
  6. package/dist/chooseIPaasData.css +1 -0
  7. package/dist/defaultSet-CzN1ec_d.js +297 -0
  8. package/dist/defaultSet.css +1 -0
  9. package/dist/fileFormData-D_Q1vylE.js +53 -0
  10. package/dist/formItemFooter-BvptZj_u.js +108 -0
  11. package/dist/formItemFooter.css +1 -0
  12. package/dist/funcExprDialog-BguNs9fl.js +139 -0
  13. package/dist/funcExprDialog.css +1 -0
  14. package/dist/index-0oB7QocU.js +44 -0
  15. package/dist/index-69fRP0M8.js +89 -0
  16. package/dist/index-BdklTJtF.js +66 -0
  17. package/dist/index-Bu3jHlby.js +45 -0
  18. package/dist/index-BxWx5kpG.js +89 -0
  19. package/dist/index-C5LQ0OSs.js +183 -0
  20. package/dist/index-C8YhrrUN.js +51 -0
  21. package/dist/index-COuPCIzB.js +45 -0
  22. package/dist/index-CSvVyjxx.js +178 -0
  23. package/dist/index-DCv51EXX.js +109 -0
  24. package/dist/index-DUSI6MuC.js +135 -0
  25. package/dist/index-DVzxs2vR.js +58 -0
  26. package/dist/index-Dd4b8zNb.js +746 -0
  27. package/dist/index-Md-ZlkCW.js +66 -0
  28. package/dist/index-hsSIY2FP.js +221 -0
  29. package/dist/index-n13-H3_Y.js +118 -0
  30. package/dist/index-wUl5aPUD.js +64 -0
  31. package/dist/index.css +1 -0
  32. package/dist/index2.css +1 -0
  33. package/dist/index3.css +1 -0
  34. package/dist/index4.css +1 -0
  35. package/dist/index5.css +1 -0
  36. package/dist/index6.css +1 -0
  37. package/dist/index7.css +1 -0
  38. package/dist/install-CNjs0u5x.js +23299 -0
  39. package/dist/install.css +1 -0
  40. package/dist/setOption-CXOifQcx.js +329 -0
  41. package/dist/setOption.css +1 -0
  42. package/dist/setRelationOption-C7VDhej7.js +5217 -0
  43. package/dist/setRelationOption.css +1 -0
  44. package/package.json +4 -20
  45. package/install.js +0 -134
  46. package/packages/BnAddress/index.vue +0 -141
  47. package/packages/BnAddressParse/index.vue +0 -75
  48. package/packages/BnAdvancedFilter/BnFilterView.vue +0 -145
  49. package/packages/BnAdvancedFilter/index.vue +0 -345
  50. package/packages/BnAdvancedFilter/util.js +0 -171
  51. package/packages/BnCascader/BnCascader.vue +0 -543
  52. package/packages/BnCascader/BnCascaderPanel.vue +0 -1331
  53. package/packages/BnCascader/cascaderDisplay.js +0 -102
  54. package/packages/BnCheck/BnCheck.vue +0 -253
  55. package/packages/BnColumnConfig/columnConfigDialog.vue +0 -134
  56. package/packages/BnColumnConfig/component/childrenFormSetting/assocTable.vue +0 -143
  57. package/packages/BnColumnConfig/component/childrenFormSetting/assocTableSearch.vue +0 -314
  58. package/packages/BnColumnConfig/component/childrenFormSetting/index.vue +0 -243
  59. package/packages/BnColumnConfig/component/defaultSet/defaultSet.vue +0 -114
  60. package/packages/BnColumnConfig/component/defaultSet/stringDefault.vue +0 -210
  61. package/packages/BnColumnConfig/component/funcExprDialog/funcExprDialog.vue +0 -126
  62. package/packages/BnColumnConfig/component/packageFilter/index.vue +0 -141
  63. package/packages/BnColumnConfig/component/paraExplainSet/index.vue +0 -156
  64. package/packages/BnColumnConfig/component/setOption/setOption.vue +0 -321
  65. package/packages/BnColumnConfig/component/setRelationOption/ConditionList.vue +0 -277
  66. package/packages/BnColumnConfig/component/setRelationOption/LevelHeader.vue +0 -144
  67. package/packages/BnColumnConfig/component/setRelationOption/setRelationOption.vue +0 -642
  68. package/packages/BnColumnConfig/data.js +0 -129
  69. package/packages/BnColumnConfig/index.scss +0 -23
  70. package/packages/BnColumnConfig/index.vue +0 -309
  71. package/packages/BnCondVal/BnCondVal.vue +0 -112
  72. package/packages/BnCondVal/itemVal/dateRegVal.vue +0 -39
  73. package/packages/BnCondVal/itemVal/dateVal.vue +0 -39
  74. package/packages/BnCondVal/itemVal/numRegVal.vue +0 -67
  75. package/packages/BnCondVal/itemVal/numVal.vue +0 -44
  76. package/packages/BnCondVal/itemVal/relationVal.vue +0 -73
  77. package/packages/BnCondVal/itemVal/selectColumnVal.vue +0 -58
  78. package/packages/BnCondVal/itemVal/selectVal.vue +0 -59
  79. package/packages/BnCondVal/itemVal/stringVal.vue +0 -156
  80. package/packages/BnCondition/index.vue +0 -551
  81. package/packages/BnCondition/util.js +0 -232
  82. package/packages/BnDatePicker/BnDatePicker.vue +0 -194
  83. package/packages/BnDrop/BnDrop.vue +0 -917
  84. package/packages/BnEmptyTip/BnEmptyTip.vue +0 -107
  85. package/packages/BnExportOrder/BnExportOrder.vue +0 -241
  86. package/packages/BnExportOrder/validatorCode.vue +0 -94
  87. package/packages/BnFileView/BnFileView.vue +0 -271
  88. package/packages/BnFileView/FileDetail.vue +0 -125
  89. package/packages/BnFileView/videoPreview.vue +0 -70
  90. package/packages/BnFilterOption/BnFilterOption.vue +0 -160
  91. package/packages/BnFunExpr/BnFunExpr.vue +0 -608
  92. package/packages/BnImportOrder/BnImportOrder.vue +0 -323
  93. package/packages/BnImportTemplate/BnImportTemplate.vue +0 -866
  94. package/packages/BnImportTemplate/assets/merge_tip_img.png +0 -0
  95. package/packages/BnImportTemplate/assets/sheet_tip.png +0 -0
  96. package/packages/BnImportTemplate/assets/xls.png +0 -0
  97. package/packages/BnImportTemplate/components/ImportTemplateTrigger.vue +0 -198
  98. package/packages/BnImportTemplate/components/TemplateEditDialog.vue +0 -340
  99. package/packages/BnImportTemplate/components/TemplateFieldsConfig.vue +0 -401
  100. package/packages/BnImportTemplate/components/TemplateListDialog.vue +0 -297
  101. package/packages/BnInpNum/BnInpNum.vue +0 -165
  102. package/packages/BnMenus/BnMenus.vue +0 -502
  103. package/packages/BnMenus/MenuItem.vue +0 -321
  104. package/packages/BnOrderCard/BnOrderCard.vue +0 -389
  105. package/packages/BnOrderCard/orderRemark.vue +0 -178
  106. package/packages/BnOrderCard/util.js +0 -94
  107. package/packages/BnOrderDetail/BnOrderDetail.vue +0 -338
  108. package/packages/BnOrderDetail/filterLogByUser.vue +0 -108
  109. package/packages/BnOrderDetail/orderLogs.vue +0 -53
  110. package/packages/BnOrderDetail/showSubForm/index.vue +0 -41
  111. package/packages/BnOrderDetail/showSubForm/showChildTable.vue +0 -61
  112. package/packages/BnOrderDetail/showSubForm/showTimeLine.vue +0 -131
  113. package/packages/BnOrderDetail/showSubForm/tableCellCopy.vue +0 -84
  114. package/packages/BnOrderShare/index.vue +0 -378
  115. package/packages/BnOrderShare/shareUrlInp.vue +0 -54
  116. package/packages/BnRadio/BnRadio.vue +0 -181
  117. package/packages/BnRelation/BnRelation.vue +0 -120
  118. package/packages/BnSelect/BnSelect.vue +0 -485
  119. package/packages/BnSmartForm/BnBatchForm.vue +0 -334
  120. package/packages/BnSmartForm/BnBatchFormDialog.vue +0 -423
  121. package/packages/BnSmartForm/BnSmartElf/elfLog/index.vue +0 -57
  122. package/packages/BnSmartForm/BnSmartElf/index.vue +0 -95
  123. package/packages/BnSmartForm/BnSmartFormPsychic.js +0 -629
  124. package/packages/BnSmartForm/BnSmartFormUtil.js +0 -524
  125. package/packages/BnSmartForm/addressForm/index.vue +0 -73
  126. package/packages/BnSmartForm/checkboxForm/index.vue +0 -99
  127. package/packages/BnSmartForm/childrenForm/childFormFile.vue +0 -237
  128. package/packages/BnSmartForm/childrenForm/childrenFormBody.vue +0 -260
  129. package/packages/BnSmartForm/childrenForm/index.vue +0 -110
  130. package/packages/BnSmartForm/childrenForm/searchInventory.vue +0 -115
  131. package/packages/BnSmartForm/chooseAssocTable/chooseAssocTable.vue +0 -451
  132. package/packages/BnSmartForm/chooseAssocTable/chooseChildGood.vue +0 -229
  133. package/packages/BnSmartForm/chooseAssocTable/tableCellCopy.vue +0 -84
  134. package/packages/BnSmartForm/chooseChildOrder/chooseChildOrder.vue +0 -158
  135. package/packages/BnSmartForm/chooseIPaasData/chooseIPaasData.vue +0 -307
  136. package/packages/BnSmartForm/chooseIPaasData/tableCellCopy.vue +0 -84
  137. package/packages/BnSmartForm/choosePackage/choosePackage.vue +0 -361
  138. package/packages/BnSmartForm/dateDualForm/index.vue +0 -37
  139. package/packages/BnSmartForm/dateForm/index.vue +0 -38
  140. package/packages/BnSmartForm/fileForm/fileFormData.js +0 -50
  141. package/packages/BnSmartForm/fileForm/index.vue +0 -240
  142. package/packages/BnSmartForm/formItemFooter/formItemFooter.vue +0 -38
  143. package/packages/BnSmartForm/formItemTop/formItemTop.vue +0 -42
  144. package/packages/BnSmartForm/index.vue +0 -1201
  145. package/packages/BnSmartForm/numberForm/index.vue +0 -63
  146. package/packages/BnSmartForm/radioForm/index.vue +0 -72
  147. package/packages/BnSmartForm/receiveForm/index.vue +0 -112
  148. package/packages/BnSmartForm/relationForm/index.vue +0 -82
  149. package/packages/BnSmartForm/scoreForm/index.vue +0 -39
  150. package/packages/BnSmartForm/selectForm/index.vue +0 -55
  151. package/packages/BnSmartForm/showValForm/index.vue +0 -42
  152. package/packages/BnSmartForm/showValForm/showValFormTable.vue +0 -104
  153. package/packages/BnSmartForm/smartFormsCommon.scss +0 -43
  154. package/packages/BnSmartForm/stringForm/index.vue +0 -170
  155. package/packages/BnVirtPopover/index.vue +0 -319
  156. package/packages/BnWebLog/BnWebLog.vue +0 -140
  157. package/packages/BnWorkSettingDrop/advancedOptions.js +0 -112
  158. package/packages/BnWorkSettingDrop/benBenAIUtil.js +0 -89
  159. package/packages/BnWorkSettingDrop/index.vue +0 -292
  160. package/packages/font/iconfont.css +0 -243
  161. package/packages/font/iconfont.ttf +0 -0
  162. package/packages/font/iconfont.woff +0 -0
  163. package/packages/font/iconfont.woff2 +0 -0
  164. package/utils/addressParse-old.js +0 -645
  165. package/utils/addressParse.js +0 -735
  166. package/utils/config.js +0 -68
  167. package/utils/index.js +0 -1171
@@ -0,0 +1,391 @@
1
+ import { cloneDeep as w } from "lodash";
2
+ import { _, Y as N, $ as E } from "./install-CNjs0u5x.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
+ const A = {
5
+ name: "WorksheetCopy",
6
+ data() {
7
+ return {
8
+ isMouseIn: !1,
9
+ visiable: !1,
10
+ params: {},
11
+ style: {}
12
+ };
13
+ },
14
+ methods: {
15
+ /**
16
+ * 鼠标移入移出
17
+ * @param {Event} e 事件对象
18
+ */
19
+ onMouseEvent(s) {
20
+ this.isMouseIn = s.type !== "mouseleave";
21
+ },
22
+ /**
23
+ * 初始化
24
+ * @param {Object} params {column:组件信息,row:行数据}
25
+ */
26
+ onShow(s, e) {
27
+ try {
28
+ const { right: n, top: o } = s.getBoundingClientRect();
29
+ this.style = {
30
+ left: `${n - 34}px`,
31
+ top: `${o}px`
32
+ }, this.params = e, this.visiable = !0;
33
+ } catch {
34
+ console.log("显示复制按钮失败");
35
+ }
36
+ },
37
+ onHide() {
38
+ this.visiable = !1;
39
+ },
40
+ /**
41
+ * 复制文本
42
+ */
43
+ copyText() {
44
+ const { column: s, row: e } = this.params;
45
+ let n = e[s.columnCode] || "";
46
+ if (n) {
47
+ const o = document.createElement("textarea");
48
+ o.value = n, document.body.appendChild(o), o.select(), document.execCommand("copy"), document.body.removeChild(o), this.$message.success("复制成功");
49
+ } else
50
+ this.$message.warning("无内容可复制");
51
+ }
52
+ }
53
+ };
54
+ function H(s, e, n, o, t, l) {
55
+ return k((u(), v("div", {
56
+ class: "worksheetCopy",
57
+ style: z(t.style),
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
+ }, "复制 ", 36)), [
62
+ [B, t.visiable || t.isMouseIn]
63
+ ]);
64
+ }
65
+ const O = /* @__PURE__ */ _(A, [["render", H], ["__scopeId", "data-v-684f7285"]]), j = {
66
+ name: "chooseIPaasData",
67
+ components: { tableCellCopy: O },
68
+ props: {
69
+ // 接口请求外部转发
70
+ postFunc: Function,
71
+ // 扩展参数
72
+ extendPost: Object
73
+ },
74
+ data() {
75
+ return {
76
+ show: !1,
77
+ loading: !1,
78
+ // 子表单信息
79
+ columnData: {},
80
+ // 支持筛选的组件
81
+ searchColumns: [],
82
+ // 对筛选组件进行处理,尽量少的传一些字段
83
+ conditions: [],
84
+ // 最大高度
85
+ tableMaxHeight: 400,
86
+ // 选中数据
87
+ selectData: [],
88
+ // 高级筛选
89
+ searchPost: {
90
+ pageSize: 20,
91
+ pageNum: 1,
92
+ total: 0,
93
+ conditions: [],
94
+ taskContent: ""
95
+ },
96
+ // 表格数据
97
+ orderList: [],
98
+ // 快捷筛选项
99
+ searchList: []
100
+ };
101
+ },
102
+ methods: {
103
+ /**
104
+ * 打开选择弹框,处理数据回显
105
+ * */
106
+ open(s, e) {
107
+ this.columnData = w(s), this.orderList = [], this.searchPost.pageNum = 1, this.searchPost.taskContent = JSON.stringify(e), this.searchColumns = [];
108
+ try {
109
+ let n = [];
110
+ s.moduleDefinition.forEach((o) => {
111
+ let t = o.outDataSourceInfo[0] || {}, l = t.extend ? JSON.parse(t.extend) : {};
112
+ t.platform == "relation_ipaas" && l.io == "in" && n.push(o);
113
+ }), this.searchColumns = E(n, this.extendPost.appId, this.extendPost.projectId), this.conditions = this.searchColumns.map((o) => ({
114
+ id: o.id,
115
+ name: o.name,
116
+ behaviorType: o.behaviorType,
117
+ columnCode: o.columnCode,
118
+ searchType: o.searchType,
119
+ value: o.value
120
+ }));
121
+ } catch (n) {
122
+ console.log("格式化关联表筛选组件" + n);
123
+ }
124
+ this.tableMaxHeight = window.innerHeight - 360, this.postFunc(`/v2/client/cache/get/${this.extendPost.projectId}_${this.columnData.id}_${this.extendPost.userId || ""}_assocTable`, {}, "get").then((n) => {
125
+ if (!n.code && n.data) {
126
+ const o = JSON.parse(n.data);
127
+ o.conditions ? this.searchPost.conditions = o.conditions : this.searchColumns.length > 0 && (this.searchPost.conditions = [w(this.searchColumns[0])]);
128
+ }
129
+ this.search();
130
+ }), this.show = !0;
131
+ },
132
+ /**
133
+ * 选中任务
134
+ * */
135
+ checkChange({ checked: s, row: e }) {
136
+ this.$refs.assocTable.setCheckboxRow(e, s), s ? this.selectData.includes(e.id) || this.selectData.push(e.id) : this.selectData.includes(e.id) && this.selectData.splice(this.selectData.indexOf(e.id), 1);
137
+ },
138
+ /**
139
+ * 全选任务
140
+ * */
141
+ checkAllTask({ records: s }) {
142
+ s.length != 0 ? s.map((e) => {
143
+ this.selectData.includes(e.id) || this.selectData.push(e.id);
144
+ }) : this.selectData = [];
145
+ },
146
+ /**
147
+ * 筛选数据
148
+ * */
149
+ search(s) {
150
+ var n;
151
+ this.searchPost = { ...this.searchPost, ...s }, this.postFunc("/v2/client/cache/save", {
152
+ key: `${this.extendPost.projectId}_${this.columnData.id}_${this.extendPost.userId || ""}_assocTable`,
153
+ value: this.searchPost
154
+ });
155
+ let e = {
156
+ ...this.searchPost,
157
+ conditions: JSON.stringify(this.searchPost.conditions),
158
+ originId: this.extendPost.projectId,
159
+ subFormId: this.columnData.id
160
+ };
161
+ this.selectData = [], (n = this.$refs.assocTable) == null || n.clearCheckboxRow(), this.loading = !0, this.postFunc("/biztable/content/queryChildTask", e).then((o) => {
162
+ this.loading = !1, o.code ? (this.orderList = [], this.searchPost.total = 0, this.searchPost.pageNum = 1) : (this.orderList = o.data.results, this.searchPost.total = parseInt(o.data.total), this.searchPost.pageNum = o.data.pageNum);
163
+ });
164
+ },
165
+ /**
166
+ * 鼠标移入移出单元格,展示隐藏复制按钮
167
+ * @param {Event} e 事件对象
168
+ */
169
+ onMouseEvent(s) {
170
+ var n, o, t;
171
+ if (s.$event.type === "mouseleave")
172
+ (n = this.$refs.childTableCopy) == null || n.onHide();
173
+ else {
174
+ let l = {
175
+ column: { columnCode: (o = this.headerColumns[s.columnIndex - 2]) == null ? void 0 : o.columnCode },
176
+ row: s.row
177
+ };
178
+ l.row[l.column.columnCode] && ((t = this.$refs.childTableCopy) == null || t.onShow(s.cell, l));
179
+ }
180
+ },
181
+ /**
182
+ * 转义title
183
+ * */
184
+ getTitle(s, e) {
185
+ return N(s, !0, e);
186
+ },
187
+ /**
188
+ * 确认
189
+ * */
190
+ sure(s) {
191
+ let e = this.orderList.reduce((n, o) => (this.selectData.includes(o.id) && n.push(o), n), []);
192
+ setTimeout(() => {
193
+ this.$emit("setChildrenForm", e, s, this.columnData.columnCode);
194
+ }, 200), this.show = !1;
195
+ }
196
+ }
197
+ }, J = { class: "chooseIPaasData" }, R = { class: "chooseIPaasData-search w-margin-bottom10" }, q = { class: "w-flex-between w-margin-bottom10" }, K = { class: "w-flex-center" }, W = { 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
+ return u(), C(F, {
201
+ modelValue: t.show,
202
+ "onUpdate:modelValue": e[7] || (e[7] = (i) => t.show = i),
203
+ title: `请选择${t.columnData.name}`,
204
+ top: "18px",
205
+ width: "70%",
206
+ "destroy-on-close": "",
207
+ style: { "margin-bottom": "0" }
208
+ }, {
209
+ footer: a(() => [
210
+ c("div", Y, [
211
+ c("span", G, "已选择(" + x(t.selectData.length) + "/" + x(t.orderList.length) + ")条", 1),
212
+ r(S, {
213
+ class: "w-margin-right8",
214
+ background: "",
215
+ "current-page": t.searchPost.pageNum,
216
+ "onUpdate:currentPage": e[2] || (e[2] = (i) => t.searchPost.pageNum = i),
217
+ "page-size": t.searchPost.pageSize,
218
+ "onUpdate:pageSize": e[3] || (e[3] = (i) => t.searchPost.pageSize = i),
219
+ layout: "prev, pager, next",
220
+ onCurrentChange: l.search,
221
+ total: t.searchPost.total
222
+ }, null, 8, ["current-page", "page-size", "onCurrentChange", "total"]),
223
+ r(m, {
224
+ onClick: e[4] || (e[4] = (i) => t.show = !1)
225
+ }, {
226
+ default: a(() => [...e[11] || (e[11] = [
227
+ g("取消", -1)
228
+ ])]),
229
+ _: 1
230
+ }),
231
+ r(y, {
232
+ placement: "top-start",
233
+ width: 298,
234
+ trigger: "hover"
235
+ }, {
236
+ reference: a(() => [
237
+ r(m, {
238
+ type: "primary",
239
+ onClick: e[5] || (e[5] = (i) => l.sure("add")),
240
+ disabled: t.selectData.length == 0
241
+ }, {
242
+ default: a(() => [...e[12] || (e[12] = [
243
+ g("确认追加", -1)
244
+ ])]),
245
+ _: 1
246
+ }, 8, ["disabled"])
247
+ ]),
248
+ default: a(() => [
249
+ e[13] || (e[13] = c("div", { class: "BnSmartForm-title-tip" }, "在原有的子表单值的基础上追加选中的数据", -1))
250
+ ]),
251
+ _: 1
252
+ }),
253
+ r(y, {
254
+ placement: "top-start",
255
+ width: 290,
256
+ trigger: "hover"
257
+ }, {
258
+ reference: a(() => [
259
+ r(m, {
260
+ type: "primary",
261
+ onClick: e[6] || (e[6] = (i) => l.sure("cover")),
262
+ disabled: t.selectData.length == 0
263
+ }, {
264
+ default: a(() => [...e[14] || (e[14] = [
265
+ g("确认覆盖", -1)
266
+ ])]),
267
+ _: 1
268
+ }, 8, ["disabled"])
269
+ ]),
270
+ default: a(() => [
271
+ e[15] || (e[15] = c("div", { class: "BnSmartForm-title-tip" }, "用选中的数据直接覆盖子表单的原有的值", -1))
272
+ ]),
273
+ _: 1
274
+ })
275
+ ])
276
+ ]),
277
+ default: a(() => [
278
+ r(d, { ref: "childTableCopy" }, null, 512),
279
+ c("div", J, [
280
+ c("div", R, [
281
+ (u(!0), v(D, null, P(t.searchPost.conditions, (i, p) => (u(), v("div", {
282
+ key: p,
283
+ class: "chooseIPaasData-search-item"
284
+ }, [
285
+ r(I, {
286
+ modelValue: t.searchPost.conditions[p],
287
+ "onUpdate:modelValue": (f) => t.searchPost.conditions[p] = f,
288
+ columnList: t.searchColumns,
289
+ onValueChange: e[0] || (e[0] = (f) => l.search()),
290
+ allowSearchType: !1,
291
+ allowDel: "",
292
+ onDel: (f) => t.searchPost.conditions.splice(p, 1),
293
+ postFunc: n.postFunc,
294
+ pathUrl: i.pathUrl,
295
+ postData: i.postData
296
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "columnList", "onDel", "postFunc", "pathUrl", "postData"])
297
+ ]))), 128))
298
+ ]),
299
+ c("div", q, [
300
+ c("div", K, [
301
+ r(T, {
302
+ modelValue: t.searchPost.conditions,
303
+ "onUpdate:modelValue": e[1] || (e[1] = (i) => t.searchPost.conditions = i),
304
+ options: t.conditions,
305
+ multiple: "",
306
+ optionProps: { value: "columnCode", label: "name" }
307
+ }, {
308
+ default: a(() => [
309
+ r(m, {
310
+ type: "primary",
311
+ link: ""
312
+ }, {
313
+ default: a(() => [...e[8] || (e[8] = [
314
+ g(" + 添加筛选条件", -1)
315
+ ])]),
316
+ _: 1
317
+ })
318
+ ]),
319
+ _: 1
320
+ }, 8, ["modelValue", "options"])
321
+ ]),
322
+ c("div", W, [
323
+ r(m, {
324
+ type: "primary",
325
+ onClick: l.search
326
+ }, {
327
+ default: a(() => [...e[9] || (e[9] = [
328
+ g("筛选", -1)
329
+ ])]),
330
+ _: 1
331
+ }, 8, ["onClick"])
332
+ ])
333
+ ]),
334
+ k((u(), C(M, {
335
+ ref: "assocTable",
336
+ border: "",
337
+ size: "small",
338
+ data: t.orderList,
339
+ class: "chooseIPaasData-out",
340
+ "tooltip-config": {},
341
+ "row-config": { keyField: "id", isCurrent: !0, isHover: !0 },
342
+ "max-height": t.tableMaxHeight,
343
+ "min-height": "50",
344
+ "expand-config": { expandAll: !0 },
345
+ "column-config": { resizable: !0 },
346
+ "checkbox-config": { checkRowKeys: t.selectData },
347
+ "scroll-x": { enabled: !0, gt: 8 },
348
+ "scroll-y": { enabled: !0, gt: 15 },
349
+ onCheckboxChange: l.checkChange,
350
+ onCellMouseenter: l.onMouseEvent,
351
+ onCellMouseleave: l.onMouseEvent,
352
+ onCheckboxAll: l.checkAllTask
353
+ }, {
354
+ empty: a(() => [...e[10] || (e[10] = [
355
+ c("span", null, "暂无数据", -1)
356
+ ])]),
357
+ default: a(() => [
358
+ r(b, {
359
+ type: "checkbox",
360
+ width: "32",
361
+ fixed: "left"
362
+ }),
363
+ (u(!0), v(D, null, P(t.columnData.moduleDefinition, (i, p) => (u(), C(b, {
364
+ visible: i.extraInfo.isAddable == 1,
365
+ title: i.name,
366
+ field: i.columnCode,
367
+ "min-width": "160",
368
+ key: p,
369
+ "show-header-overflow": "title",
370
+ "show-overflow": "title",
371
+ "show-footer-overflow": ""
372
+ }, {
373
+ default: a((f) => [
374
+ c("span", null, x(l.getTitle(i, f.row[i.columnCode])), 1)
375
+ ]),
376
+ _: 2
377
+ }, 1032, ["visible", "title", "field"]))), 128))
378
+ ]),
379
+ _: 1
380
+ }, 8, ["data", "max-height", "checkbox-config", "onCheckboxChange", "onCellMouseenter", "onCellMouseleave", "onCheckboxAll"])), [
381
+ [V, t.loading]
382
+ ])
383
+ ])
384
+ ]),
385
+ _: 1
386
+ }, 8, ["modelValue", "title"]);
387
+ }
388
+ const ee = /* @__PURE__ */ _(j, [["render", Q], ["__scopeId", "data-v-67f946e1"]]);
389
+ export {
390
+ ee as default
391
+ };
@@ -0,0 +1 @@
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}
@@ -0,0 +1,297 @@
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-CNjs0u5x.js";
3
+ import { cloneDeep as g } 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, l) {
44
+ if (document.selection) {
45
+ t.focus();
46
+ const n = document.selection.createRange();
47
+ n.text = l, t.focus();
48
+ } else if (t.selectionStart || t.selectionStart === 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
+ } else
52
+ t.value += l, t.focus();
53
+ return t.value;
54
+ },
55
+ /**
56
+ * 将默认值中的组件名称转换为对应的code和id
57
+ * 格式:$组件名$ -> $组件code$ 或 $组件id$
58
+ */
59
+ updateDefaultInfoWithCodeAndId() {
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
+ },
66
+ /**
67
+ * 处理选择关联组件事件
68
+ * @param {Object} column - 被选中的组件对象
69
+ */
70
+ handleColumnSelect(t) {
71
+ var e, r, 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 l = (r = this.$refs.defaultContentString) == null ? void 0 : r.input, n = `$${t.name}$`, o = this.insertTextAtCursor(l, n);
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 l, n;
91
+ if (!t) {
92
+ this.columnInfo.extraInfo.defaultInfoRuleCols = [], this.columnInfo.extraInfo.defaultInfoWithCode = "", this.columnInfo.extraInfo.defaultInfoWithId = "";
93
+ return;
94
+ }
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
+ }
100
+ }
101
+ }, D = { class: "w-default-wrap" };
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
+ modelValue: e.columnInfo.defaultInfo,
107
+ "onUpdate:modelValue": l[0] || (l[0] = (p) => e.columnInfo.defaultInfo = p),
108
+ placeholder: "点击右侧可选择组件关联",
109
+ ref: "defaultContentString",
110
+ onChange: e.handleDefaultValueChange
111
+ }, {
112
+ append: h(() => [
113
+ d(m, {
114
+ options: n.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
+ d(r, {
123
+ class: "box-item",
124
+ effect: "dark",
125
+ "show-after": 600,
126
+ content: "关联组件将会把组件的值,映射到当前组件的默认值中",
127
+ placement: "top"
128
+ }, {
129
+ default: h(() => [...l[1] || (l[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__ */ C(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 = (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);
185
+ }
186
+ }
187
+ }, S = { class: "defaultSet" }, B = {
188
+ key: 0,
189
+ class: "w-default-wrap"
190
+ }, U = {
191
+ key: 1,
192
+ class: "w-default-wrap"
193
+ }, P = {
194
+ key: 2,
195
+ class: "w-default-wrap"
196
+ }, A = {
197
+ key: 3,
198
+ class: "w-default-wrap"
199
+ }, F = {
200
+ key: 4,
201
+ class: "w-default-wrap"
202
+ }, R = {
203
+ key: 5,
204
+ class: "w-default-wrap"
205
+ }, W = {
206
+ key: 6,
207
+ class: "w-default-wrap"
208
+ };
209
+ function L(t, l, n, o, i, e) {
210
+ var b;
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, {
215
+ modelValue: e.columnInfo.defaultInfo,
216
+ "onUpdate:modelValue": l[0] || (l[0] = (a) => e.columnInfo.defaultInfo = a),
217
+ placeholder: "设置组件默认值",
218
+ clearable: "",
219
+ disabled: n.disabled
220
+ }, null, 8, ["modelValue", "disabled"])
221
+ ])),
222
+ e.columnInfo.behaviorType == 1 ? (f(), s("div", U, [
223
+ d(m, {
224
+ modelValue: e.columnInfo,
225
+ "onUpdate:modelValue": l[1] || (l[1] = (a) => e.columnInfo = a),
226
+ disabled: n.disabled,
227
+ columnList: n.columnList
228
+ }, null, 8, ["modelValue", "disabled", "columnList"])
229
+ ])) : c("", !0),
230
+ e.columnInfo.behaviorType == 2 ? (f(), s("div", P, [
231
+ d(I, {
232
+ modelValue: e.columnInfo.defaultInfo,
233
+ "onUpdate:modelValue": l[2] || (l[2] = (a) => e.columnInfo.defaultInfo = a),
234
+ disabled: n.disabled,
235
+ precision: (b = e.columnInfo.extraInfo) == null ? void 0 : b.valueType
236
+ }, null, 8, ["modelValue", "disabled", "precision"])
237
+ ])) : c("", !0),
238
+ [3, 4, 5].includes(e.columnInfo.behaviorType) ? (f(), s("div", A, [
239
+ d(p, {
240
+ modelValue: e.columnInfo.defaultInfo,
241
+ "onUpdate:modelValue": l[3] || (l[3] = (a) => e.columnInfo.defaultInfo = a),
242
+ options: e.columnInfo.moduleDefinition,
243
+ multiple: e.columnInfo.behaviorType == 5,
244
+ disabled: n.disabled,
245
+ optionProps: { value: "code", label: "title" },
246
+ pageProps: { pageNum: "pageNo", pageSize: "pageSize" },
247
+ pathUrl: e.columnInfo.pathUrl,
248
+ postData: e.columnInfo.postData,
249
+ postFunc: n.postFunc,
250
+ placeholder: "请选择",
251
+ clearable: "",
252
+ filterable: ""
253
+ }, null, 8, ["modelValue", "options", "multiple", "disabled", "pathUrl", "postData", "postFunc"])
254
+ ])) : c("", !0),
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,
266
+ options: e.filteredOptions,
267
+ "hide-check-to-last": "",
268
+ multiple: e.columnInfo.behaviorType == 20,
269
+ clearable: ""
270
+ }, null, 8, ["modelValue", "postFunc", "path-url", "post-data", "label-in-value", "options", "multiple"])
271
+ ])) : c("", !0),
272
+ e.columnInfo.behaviorType == 7 ? (f(), s("div", R, [
273
+ d(y, {
274
+ style: { width: "100%" },
275
+ disabled: n.disabled,
276
+ modelValue: e.columnInfo.defaultInfo,
277
+ "onUpdate:modelValue": l[5] || (l[5] = (a) => e.columnInfo.defaultInfo = a),
278
+ type: "datetime",
279
+ placement: "bottom-start",
280
+ format: "YYYY-MM-DD HH:mm:ss",
281
+ "value-format": "YYYY-MM-DD HH:mm:ss"
282
+ }, null, 8, ["disabled", "modelValue"])
283
+ ])) : c("", !0),
284
+ e.columnInfo.behaviorType == 8 ? (f(), s("div", W, [
285
+ d(v, {
286
+ modelValue: e.columnInfo.defaultInfo,
287
+ "onUpdate:modelValue": l[6] || (l[6] = (a) => e.columnInfo.defaultInfo = a),
288
+ type: "datetimerange",
289
+ disabled: n.disabled
290
+ }, null, 8, ["modelValue", "disabled"])
291
+ ])) : c("", !0)
292
+ ]);
293
+ }
294
+ const E = /* @__PURE__ */ C(k, [["render", L], ["__scopeId", "data-v-b47a6b44"]]);
295
+ export {
296
+ E as default
297
+ };
@@ -0,0 +1 @@
1
+ .defaultSet[data-v-ca300f0b],.defaultSet[data-v-b47a6b44]{position:relative;width:100%}