bm-admin-ui 1.0.36-alpha → 1.0.38-alpha
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/es/components/button/index.d.ts +3 -0
- package/es/components/button/src/button.d.ts +12 -0
- package/es/components/button/src/button.vue.d.ts +306 -0
- package/es/components/feedback/index.d.ts +9 -0
- package/es/components/feedback/index.js +2 -2
- package/es/components/feedback/src/bmAlert.vue.d.ts +191 -0
- package/es/components/feedback/src/bmModal.vue.d.ts +839 -0
- package/es/components/float-table/index.d.ts +3 -0
- package/es/components/float-table/index.js +27 -36
- package/es/components/float-table/src/float-table.vue.d.ts +69 -0
- package/es/components/flow-designer/index.d.ts +3 -0
- package/es/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
- package/es/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
- package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +247 -0
- package/es/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
- package/es/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
- package/es/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
- package/es/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
- package/es/components/flow-designer/src/config.d.ts +24 -0
- package/es/components/flow-designer/src/flow-designer-test.d.ts +20 -0
- package/es/components/flow-designer/src/flow-designer.d.ts +11 -0
- package/es/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
- package/es/components/flow-designer/src/utils.d.ts +29 -0
- package/es/components/form-create/index.js +125 -163
- package/es/components/form-designer/index.js +271 -233
- package/es/components/index.d.ts +12 -0
- package/es/components/index.js +1 -0
- package/es/components/input-tags-display/index.d.ts +3 -0
- package/es/components/input-tags-display/index.js +21 -29
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +128 -0
- package/es/components/over-tooltips/index.d.ts +3 -0
- package/es/components/over-tooltips/index.js +20 -27
- package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
- package/es/components/search-filter/index.d.ts +3 -0
- package/es/components/search-filter/index.js +21 -25
- package/es/components/search-filter/src/search-filter.d.ts +89 -0
- package/es/components/search-filter/src/search-filter.vue.d.ts +234 -0
- package/es/components/search-filter/src/search-reset-btn.vue.d.ts +119 -0
- package/es/components/select-all/index.d.ts +3 -0
- package/es/components/select-all/index.js +157 -0
- package/es/components/select-all/src/selectAll.vue.d.ts +753 -0
- package/es/components/shops-filter/index.d.ts +3 -0
- package/es/components/shops-filter/index.js +43 -58
- package/es/components/shops-filter/src/shops-filter.d.ts +25 -0
- package/es/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
- package/es/components/staffs-selector/index.d.ts +3 -0
- package/es/components/staffs-selector/index.js +102 -137
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
- package/es/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
- package/es/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
- package/es/components/timeline/index.d.ts +5 -0
- package/es/components/timeline/index.js +7 -7
- package/es/components/timeline/src/props.d.ts +27 -0
- package/es/components/timeline/src/timeline-item.vue.d.ts +64 -0
- package/es/components/timeline/src/timeline.vue.d.ts +50 -0
- package/es/components/upload/index.d.ts +3 -0
- package/es/components/upload/index.js +78 -115
- package/es/components/upload/src/icons.d.ts +13 -0
- package/es/components/upload/src/upload.vue.d.ts +105 -0
- package/es/components/upload/utils/index.d.ts +7 -0
- package/es/index.d.ts +6 -0
- package/es/utils/bm-admin-ui-resolver.d.ts +11 -0
- package/es/utils/uniqueId.d.ts +1 -0
- package/es/utils/vxe-table.d.ts +6 -0
- package/es/utils/with-install.d.ts +1 -0
- package/index.esm.js +15003 -45855
- package/index.js +15004 -45855
- package/lib/components/button/index.d.ts +3 -0
- package/lib/components/button/src/button.d.ts +12 -0
- package/lib/components/button/src/button.vue.d.ts +306 -0
- package/lib/components/feedback/index.d.ts +9 -0
- package/lib/components/feedback/index.js +1 -1
- package/lib/components/feedback/src/bmAlert.vue.d.ts +191 -0
- package/lib/components/feedback/src/bmModal.vue.d.ts +839 -0
- package/lib/components/float-table/index.d.ts +3 -0
- package/lib/components/float-table/index.js +27 -36
- package/lib/components/float-table/src/float-table.vue.d.ts +69 -0
- package/lib/components/flow-designer/index.d.ts +3 -0
- package/lib/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
- package/lib/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
- package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +247 -0
- package/lib/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
- package/lib/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
- package/lib/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
- package/lib/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
- package/lib/components/flow-designer/src/config.d.ts +24 -0
- package/lib/components/flow-designer/src/flow-designer-test.d.ts +20 -0
- package/lib/components/flow-designer/src/flow-designer.d.ts +11 -0
- package/lib/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
- package/lib/components/flow-designer/src/utils.d.ts +29 -0
- package/lib/components/form-create/index.js +124 -162
- package/lib/components/form-designer/index.js +270 -232
- package/lib/components/index.d.ts +12 -0
- package/lib/components/index.js +7 -0
- package/lib/components/input-tags-display/index.d.ts +3 -0
- package/lib/components/input-tags-display/index.js +20 -28
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +128 -0
- package/lib/components/over-tooltips/index.d.ts +3 -0
- package/lib/components/over-tooltips/index.js +20 -27
- package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
- package/lib/components/search-filter/index.d.ts +3 -0
- package/lib/components/search-filter/index.js +21 -25
- package/lib/components/search-filter/src/search-filter.d.ts +89 -0
- package/lib/components/search-filter/src/search-filter.vue.d.ts +234 -0
- package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +119 -0
- package/lib/components/select-all/index.d.ts +3 -0
- package/lib/components/select-all/index.js +166 -0
- package/lib/components/select-all/src/selectAll.vue.d.ts +753 -0
- package/lib/components/shops-filter/index.d.ts +3 -0
- package/lib/components/shops-filter/index.js +42 -57
- package/lib/components/shops-filter/src/shops-filter.d.ts +25 -0
- package/lib/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
- package/lib/components/staffs-selector/index.d.ts +3 -0
- package/lib/components/staffs-selector/index.js +101 -136
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
- package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
- package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
- package/lib/components/timeline/index.d.ts +5 -0
- package/lib/components/timeline/index.js +7 -7
- package/lib/components/timeline/src/props.d.ts +27 -0
- package/lib/components/timeline/src/timeline-item.vue.d.ts +64 -0
- package/lib/components/timeline/src/timeline.vue.d.ts +50 -0
- package/lib/components/upload/index.d.ts +3 -0
- package/lib/components/upload/index.js +78 -115
- package/lib/components/upload/src/icons.d.ts +13 -0
- package/lib/components/upload/src/upload.vue.d.ts +105 -0
- package/lib/components/upload/utils/index.d.ts +7 -0
- package/lib/index.d.ts +6 -0
- package/lib/utils/bm-admin-ui-resolver.d.ts +11 -0
- package/lib/utils/uniqueId.d.ts +1 -0
- package/lib/utils/vxe-table.d.ts +6 -0
- package/lib/utils/with-install.d.ts +1 -0
- package/package.json +2 -2
- package/theme-chalk/button.css +1 -1
- package/theme-chalk/feedback.css +1 -1
- package/theme-chalk/float-table.css +1 -1
- package/theme-chalk/floating-vue.css +1 -1
- package/theme-chalk/flow-designer.css +1 -1
- package/theme-chalk/form-designer.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/modal.css +1 -1
- package/theme-chalk/over-tooltips.css +1 -1
- package/theme-chalk/search-filter.css +1 -1
- package/theme-chalk/select-all.css +1 -0
- package/theme-chalk/staffs-selector.css +1 -1
- package/theme-chalk/timeline.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/button/index.d.ts +3 -0
- package/types/components/button/src/button.d.ts +12 -0
- package/types/components/button/src/button.vue.d.ts +306 -0
- package/types/components/feedback/index.d.ts +9 -0
- package/types/components/feedback/src/bmAlert.vue.d.ts +191 -0
- package/types/components/feedback/src/bmModal.vue.d.ts +839 -0
- package/types/components/float-table/index.d.ts +3 -0
- package/types/components/float-table/src/float-table.vue.d.ts +69 -0
- package/types/components/flow-designer/index.d.ts +3 -0
- package/types/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
- package/types/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
- package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +247 -0
- package/types/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
- package/types/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
- package/types/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
- package/types/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
- package/types/components/flow-designer/src/config.d.ts +24 -0
- package/types/components/flow-designer/src/flow-designer-test.d.ts +20 -0
- package/types/components/flow-designer/src/flow-designer.d.ts +11 -0
- package/types/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
- package/types/components/flow-designer/src/utils.d.ts +29 -0
- package/types/components/index.d.ts +12 -0
- package/types/components/input-tags-display/index.d.ts +3 -0
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +128 -0
- package/types/components/over-tooltips/index.d.ts +3 -0
- package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
- package/types/components/search-filter/index.d.ts +3 -0
- package/types/components/search-filter/src/search-filter.d.ts +89 -0
- package/types/components/search-filter/src/search-filter.vue.d.ts +234 -0
- package/types/components/search-filter/src/search-reset-btn.vue.d.ts +119 -0
- package/types/components/select-all/index.d.ts +3 -0
- package/types/components/select-all/src/selectAll.vue.d.ts +753 -0
- package/types/components/shops-filter/index.d.ts +3 -0
- package/types/components/shops-filter/src/shops-filter.d.ts +25 -0
- package/types/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
- package/types/components/staffs-selector/index.d.ts +3 -0
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
- package/types/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
- package/types/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
- package/types/components/timeline/index.d.ts +5 -0
- package/types/components/timeline/src/props.d.ts +27 -0
- package/types/components/timeline/src/timeline-item.vue.d.ts +64 -0
- package/types/components/timeline/src/timeline.vue.d.ts +50 -0
- package/types/components/upload/index.d.ts +3 -0
- package/types/components/upload/src/icons.d.ts +13 -0
- package/types/components/upload/src/upload.vue.d.ts +105 -0
- package/types/components/upload/utils/index.d.ts +7 -0
- package/types/index.d.ts +6 -0
- package/types/utils/bm-admin-ui-resolver.d.ts +11 -0
- package/types/utils/uniqueId.d.ts +1 -0
- package/types/utils/vxe-table.d.ts +6 -0
- package/types/utils/with-install.d.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
|
-
import { h, nextTick, defineComponent, ref, watch, openBlock, createElementBlock, createVNode, unref, mergeProps, computed, normalizeStyle, Fragment, renderList, normalizeClass, reactive, createBlock, withCtx, createElementVNode, toDisplayString,
|
|
2
|
+
import { h, nextTick, defineComponent, ref, watch, openBlock, createElementBlock, createVNode, unref, mergeProps, computed, normalizeStyle, Fragment, renderList, normalizeClass, reactive, createBlock, withCtx, createTextVNode, createElementVNode, toDisplayString, createCommentVNode, createStaticVNode, resolveComponent } from 'vue';
|
|
3
3
|
import { Input, InputNumber, Select, DatePicker, RangePicker, message, Modal, Layout, LayoutSider, Tree, LayoutContent, Button, Row, Col, Pagination, FormItemRest, Divider, Tabs, TabPane, Cascader } from 'ant-design-vue';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
5
|
import Picture from 'bm-admin-ui/es/components/upload';
|
|
@@ -18,7 +18,10 @@ const fieldRatioMap = {
|
|
|
18
18
|
12: 12,
|
|
19
19
|
18: 18,
|
|
20
20
|
24: 24,
|
|
21
|
-
};
|
|
21
|
+
};
|
|
22
|
+
function getContainer() {
|
|
23
|
+
return document.body;
|
|
24
|
+
}
|
|
22
25
|
|
|
23
26
|
var input = {
|
|
24
27
|
name: 'input',
|
|
@@ -66,7 +69,7 @@ var input = {
|
|
|
66
69
|
field,
|
|
67
70
|
title: data.title.title,
|
|
68
71
|
headerClassName: data.effect.required ? 'is-required' : '',
|
|
69
|
-
|
|
72
|
+
minWidth: data.config.fieldRatio,
|
|
70
73
|
slots: {
|
|
71
74
|
default({ row }) {
|
|
72
75
|
return h(Input, {
|
|
@@ -131,7 +134,7 @@ var textarea = {
|
|
|
131
134
|
field,
|
|
132
135
|
title: data.title.title,
|
|
133
136
|
headerClassName: data.effect.required ? 'is-required' : '',
|
|
134
|
-
|
|
137
|
+
minWidth: data.config.fieldRatio,
|
|
135
138
|
slots: {
|
|
136
139
|
default({ row }) {
|
|
137
140
|
return h(Input, {
|
|
@@ -200,7 +203,7 @@ var numInput = {
|
|
|
200
203
|
field,
|
|
201
204
|
title: data.title.title,
|
|
202
205
|
headerClassName: data.effect.required ? 'is-required' : '',
|
|
203
|
-
|
|
206
|
+
minWidth: data.config.fieldRatio,
|
|
204
207
|
slots: {
|
|
205
208
|
default({ row }) {
|
|
206
209
|
return h(InputNumber, {
|
|
@@ -265,13 +268,14 @@ var radio = {
|
|
|
265
268
|
field,
|
|
266
269
|
title: data.title.title,
|
|
267
270
|
headerClassName: data.effect.required ? 'is-required' : '',
|
|
268
|
-
|
|
271
|
+
minWidth: data.config.fieldRatio,
|
|
269
272
|
slots: {
|
|
270
273
|
default({ row }) {
|
|
271
274
|
return h(Select, {
|
|
272
275
|
value: row[field],
|
|
273
276
|
placeholder: data.props.placeholder,
|
|
274
277
|
options: data.options,
|
|
278
|
+
getPopupContainer: getContainer,
|
|
275
279
|
'onUpdate:value': (value) => {
|
|
276
280
|
row[field] = value;
|
|
277
281
|
},
|
|
@@ -326,7 +330,7 @@ var checkbox = {
|
|
|
326
330
|
field,
|
|
327
331
|
title: data.title.title,
|
|
328
332
|
headerClassName: data.effect.required ? 'is-required' : '',
|
|
329
|
-
|
|
333
|
+
minWidth: data.config.fieldRatio,
|
|
330
334
|
slots: {
|
|
331
335
|
default({ row }) {
|
|
332
336
|
return h(Select, {
|
|
@@ -334,6 +338,7 @@ var checkbox = {
|
|
|
334
338
|
placeholder: data.props.placeholder,
|
|
335
339
|
options: data.options,
|
|
336
340
|
mode: 'multiple',
|
|
341
|
+
getPopupContainer: getContainer,
|
|
337
342
|
'onUpdate:value': (value) => {
|
|
338
343
|
row[field] = value;
|
|
339
344
|
},
|
|
@@ -407,7 +412,7 @@ var date = {
|
|
|
407
412
|
field,
|
|
408
413
|
title: data.title.title,
|
|
409
414
|
headerClassName: data.effect.required ? 'is-required' : '',
|
|
410
|
-
|
|
415
|
+
minWidth: data.config.fieldRatio,
|
|
411
416
|
slots: {
|
|
412
417
|
default({ row }) {
|
|
413
418
|
return h(DatePicker, {
|
|
@@ -423,6 +428,7 @@ var date = {
|
|
|
423
428
|
style: {
|
|
424
429
|
width: '100%',
|
|
425
430
|
},
|
|
431
|
+
getCalendarContainer: getContainer,
|
|
426
432
|
});
|
|
427
433
|
},
|
|
428
434
|
},
|
|
@@ -442,7 +448,7 @@ var dateRange = {
|
|
|
442
448
|
type: 'datePicker',
|
|
443
449
|
field: data.field,
|
|
444
450
|
title: data.title.title,
|
|
445
|
-
props: Object.assign({ range: true, separator: '~', format, valueFormat: format, placeholder: data.props.placeholder }, extraProps),
|
|
451
|
+
props: Object.assign({ range: true, separator: '~', format, valueFormat: format, placeholder: data.props.placeholder, getCalendarContainer: getContainer }, extraProps),
|
|
446
452
|
effect: {
|
|
447
453
|
required: data.effect.required && '请选择',
|
|
448
454
|
},
|
|
@@ -487,7 +493,7 @@ var dateRange = {
|
|
|
487
493
|
field,
|
|
488
494
|
title: data.title.title,
|
|
489
495
|
headerClassName: data.effect.required ? 'is-required' : '',
|
|
490
|
-
|
|
496
|
+
minWidth: data.config.fieldRatio,
|
|
491
497
|
slots: {
|
|
492
498
|
default({ row }) {
|
|
493
499
|
return h(RangePicker, {
|
|
@@ -503,6 +509,7 @@ var dateRange = {
|
|
|
503
509
|
style: {
|
|
504
510
|
width: '100%',
|
|
505
511
|
},
|
|
512
|
+
getCalendarContainer: getContainer,
|
|
506
513
|
});
|
|
507
514
|
},
|
|
508
515
|
},
|
|
@@ -529,7 +536,7 @@ var instruction = {
|
|
|
529
536
|
},
|
|
530
537
|
};
|
|
531
538
|
|
|
532
|
-
|
|
539
|
+
/*! *****************************************************************************
|
|
533
540
|
Copyright (c) Microsoft Corporation.
|
|
534
541
|
|
|
535
542
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -766,15 +773,11 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
766
773
|
function handleAdd() {
|
|
767
774
|
visible.value = true;
|
|
768
775
|
}
|
|
769
|
-
watch(
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
{
|
|
775
|
-
immediate: true
|
|
776
|
-
}
|
|
777
|
-
);
|
|
776
|
+
watch(() => props.defaultSelected, (val) => {
|
|
777
|
+
selected.value = val;
|
|
778
|
+
}, {
|
|
779
|
+
immediate: true
|
|
780
|
+
});
|
|
778
781
|
watch(selected, (val) => {
|
|
779
782
|
selectedChange(val);
|
|
780
783
|
});
|
|
@@ -883,7 +886,7 @@ var people = {
|
|
|
883
886
|
field,
|
|
884
887
|
title: data.title.title,
|
|
885
888
|
headerClassName: data.effect.required ? 'is-required' : '',
|
|
886
|
-
|
|
889
|
+
minWidth: data.config.fieldRatio,
|
|
887
890
|
slots: {
|
|
888
891
|
default({ row }) {
|
|
889
892
|
return h(StaffSelector, Object.assign({ title: '添加员工', mode: data.props.limit ? 'radio' : 'multiple', placeholder: data.props.placeholder, onChange: (value) => {
|
|
@@ -923,9 +926,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
923
926
|
return (_ctx, _cache) => {
|
|
924
927
|
return openBlock(), createElementBlock("div", {
|
|
925
928
|
class: "bm-fc-rect-outer",
|
|
926
|
-
style: normalizeStyle(
|
|
927
|
-
unref(layerBackGround) ? { backgroundImage: `url('${unref(layerBackGround)}')` } : {}
|
|
928
|
-
)
|
|
929
|
+
style: normalizeStyle(unref(layerBackGround) ? { backgroundImage: `url('${unref(layerBackGround)}')` } : {})
|
|
929
930
|
}, [
|
|
930
931
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(layers), (layer) => {
|
|
931
932
|
return openBlock(), createElementBlock("div", {
|
|
@@ -940,18 +941,16 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
940
941
|
});
|
|
941
942
|
var TempContent = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__file", "temp-content.vue"]]);
|
|
942
943
|
|
|
943
|
-
const _hoisted_1$5 =
|
|
944
|
-
const _hoisted_2$5 =
|
|
945
|
-
const _hoisted_3$
|
|
946
|
-
const _hoisted_4$4 =
|
|
947
|
-
const _hoisted_5$3 =
|
|
948
|
-
const _hoisted_6$3 = ["onClick"];
|
|
949
|
-
const _hoisted_7$3 = {
|
|
944
|
+
const _hoisted_1$5 = { class: "bm-fc-select-material-temp__content__item-info" };
|
|
945
|
+
const _hoisted_2$5 = { class: "bm-fc-select-material-temp__content__item-info__cover" };
|
|
946
|
+
const _hoisted_3$4 = ["src"];
|
|
947
|
+
const _hoisted_4$4 = ["onClick"];
|
|
948
|
+
const _hoisted_5$3 = {
|
|
950
949
|
key: 1,
|
|
951
950
|
class: "bm-fc-select-material-temp__content__circle"
|
|
952
951
|
};
|
|
953
|
-
const
|
|
954
|
-
const
|
|
952
|
+
const _hoisted_6$3 = ["title"];
|
|
953
|
+
const _hoisted_7$3 = { class: "bm-fc-select-material-temp__content__item-time" };
|
|
955
954
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
956
955
|
__name: "select-material-temp",
|
|
957
956
|
props: ["visible", "fetchMaterialType", "fetchMaterialTemp"],
|
|
@@ -1094,7 +1093,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1094
1093
|
onClick: reset
|
|
1095
1094
|
}, {
|
|
1096
1095
|
default: withCtx(() => [
|
|
1097
|
-
|
|
1096
|
+
createTextVNode("\u91CD\u7F6E")
|
|
1098
1097
|
]),
|
|
1099
1098
|
_: 1
|
|
1100
1099
|
}),
|
|
@@ -1105,7 +1104,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1105
1104
|
}, {
|
|
1106
1105
|
default: withCtx(() => [
|
|
1107
1106
|
createVNode(unref(SearchOutlined)),
|
|
1108
|
-
|
|
1107
|
+
createTextVNode(" \u67E5\u8BE2 ")
|
|
1109
1108
|
]),
|
|
1110
1109
|
_: 1
|
|
1111
1110
|
}),
|
|
@@ -1117,14 +1116,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1117
1116
|
span: 6
|
|
1118
1117
|
}, {
|
|
1119
1118
|
default: withCtx(() => [
|
|
1120
|
-
createElementVNode("div",
|
|
1121
|
-
createElementVNode("div",
|
|
1119
|
+
createElementVNode("div", _hoisted_1$5, [
|
|
1120
|
+
createElementVNode("div", _hoisted_2$5, [
|
|
1122
1121
|
item.coverPlanUrl ? (openBlock(), createElementBlock("img", {
|
|
1123
1122
|
key: 0,
|
|
1124
1123
|
class: "bm-fc-select-material-temp__content__item-info__cover__img",
|
|
1125
1124
|
src: item.coverPlanUrl,
|
|
1126
1125
|
alt: ""
|
|
1127
|
-
}, null, 8,
|
|
1126
|
+
}, null, 8, _hoisted_3$4)) : (openBlock(), createBlock(TempContent, {
|
|
1128
1127
|
key: 1,
|
|
1129
1128
|
content: item.htmlContent
|
|
1130
1129
|
}, null, 8, ["content"]))
|
|
@@ -1136,13 +1135,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
1136
1135
|
selectItem.value.id === item.id ? (openBlock(), createBlock(unref(CheckCircleFilled), {
|
|
1137
1136
|
key: 0,
|
|
1138
1137
|
class: "bm-fc-select-material-temp__content__check-icon"
|
|
1139
|
-
})) : (openBlock(), createElementBlock("span",
|
|
1138
|
+
})) : (openBlock(), createElementBlock("span", _hoisted_5$3)),
|
|
1140
1139
|
createElementVNode("span", {
|
|
1141
1140
|
class: "bm-fc-select-material-temp__content__name",
|
|
1142
1141
|
title: item.templateName
|
|
1143
|
-
}, toDisplayString(item.templateName), 9,
|
|
1144
|
-
], 8,
|
|
1145
|
-
createElementVNode("div",
|
|
1142
|
+
}, toDisplayString(item.templateName), 9, _hoisted_6$3)
|
|
1143
|
+
], 8, _hoisted_4$4),
|
|
1144
|
+
createElementVNode("div", _hoisted_7$3, toDisplayString(unref(dayjs)(item.lastUpdateTime).format("YYYY/MM/DD")), 1)
|
|
1146
1145
|
])
|
|
1147
1146
|
]),
|
|
1148
1147
|
_: 2
|
|
@@ -1176,15 +1175,11 @@ var SelectMaterialTemp = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "s
|
|
|
1176
1175
|
|
|
1177
1176
|
const _hoisted_1$4 = { class: "bm-dc-table-widget" };
|
|
1178
1177
|
const _hoisted_2$4 = { class: "bm-dc-table-widget__title" };
|
|
1179
|
-
const _hoisted_3$
|
|
1178
|
+
const _hoisted_3$3 = { class: "bm-dc-table-widget__title-samll" };
|
|
1180
1179
|
const _hoisted_4$3 = { class: "bm-dc-table-widget__top-bar" };
|
|
1181
|
-
const _hoisted_5$2 =
|
|
1182
|
-
const _hoisted_6$2 =
|
|
1183
|
-
const _hoisted_7$2 =
|
|
1184
|
-
const _hoisted_8$2 = /* @__PURE__ */ createTextVNode(" \u65B0\u589E ");
|
|
1185
|
-
const _hoisted_9$2 = { class: "bm-dc-table-widget__table" };
|
|
1186
|
-
const _hoisted_10$2 = ["onClick"];
|
|
1187
|
-
const _hoisted_11$2 = ["onClick"];
|
|
1180
|
+
const _hoisted_5$2 = { class: "bm-dc-table-widget__table" };
|
|
1181
|
+
const _hoisted_6$2 = ["onClick"];
|
|
1182
|
+
const _hoisted_7$2 = ["onClick"];
|
|
1188
1183
|
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
1189
1184
|
__name: "table-widget",
|
|
1190
1185
|
props: ["rule", "extraConfig"],
|
|
@@ -1252,17 +1247,15 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1252
1247
|
width: "54px"
|
|
1253
1248
|
});
|
|
1254
1249
|
}
|
|
1255
|
-
childRules?.length && columns.push(
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
}, [])
|
|
1265
|
-
);
|
|
1250
|
+
childRules?.length && columns.push(...childRules.reduce((pre, cur) => {
|
|
1251
|
+
const name = cur.name;
|
|
1252
|
+
if (name === "product") {
|
|
1253
|
+
pre.push(...getProductColumn(cur));
|
|
1254
|
+
} else {
|
|
1255
|
+
pre.push(ruleList[name].tableRule(cur, props.extraConfig));
|
|
1256
|
+
}
|
|
1257
|
+
return pre;
|
|
1258
|
+
}, []));
|
|
1266
1259
|
columns.push({
|
|
1267
1260
|
field: oper,
|
|
1268
1261
|
title: "\u64CD\u4F5C",
|
|
@@ -1292,7 +1285,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1292
1285
|
field,
|
|
1293
1286
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
1294
1287
|
headerClassName: rule.effect.required ? "is-required" : "",
|
|
1295
|
-
|
|
1288
|
+
minWidth: "138px",
|
|
1296
1289
|
slots: {
|
|
1297
1290
|
default({ row }) {
|
|
1298
1291
|
return h(Input, {
|
|
@@ -1315,7 +1308,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1315
1308
|
columns2.push({
|
|
1316
1309
|
field: childField,
|
|
1317
1310
|
title: item.label,
|
|
1318
|
-
|
|
1311
|
+
minWidth: "138px",
|
|
1319
1312
|
slots: {
|
|
1320
1313
|
default({ row }) {
|
|
1321
1314
|
if (item.value === "\u5546\u54C1\u56FE\u7247" && row[childField]) {
|
|
@@ -1328,15 +1321,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1328
1321
|
}
|
|
1329
1322
|
});
|
|
1330
1323
|
}
|
|
1331
|
-
return h(
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
}
|
|
1337
|
-
},
|
|
1338
|
-
[row[childField] || "\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA"]
|
|
1339
|
-
);
|
|
1324
|
+
return h("div", {
|
|
1325
|
+
style: {
|
|
1326
|
+
color: "#9393A3"
|
|
1327
|
+
}
|
|
1328
|
+
}, [row[childField] || "\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA"]);
|
|
1340
1329
|
}
|
|
1341
1330
|
}
|
|
1342
1331
|
});
|
|
@@ -1413,38 +1402,30 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1413
1402
|
}
|
|
1414
1403
|
return data2;
|
|
1415
1404
|
}
|
|
1416
|
-
watch(
|
|
1417
|
-
()
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
);
|
|
1425
|
-
watch(
|
|
1426
|
-
() => data,
|
|
1427
|
-
() => {
|
|
1428
|
-
emitChange();
|
|
1429
|
-
},
|
|
1430
|
-
{ deep: true, immediate: true }
|
|
1431
|
-
);
|
|
1405
|
+
watch(() => props.rule, () => {
|
|
1406
|
+
initConfig();
|
|
1407
|
+
}, {
|
|
1408
|
+
immediate: true
|
|
1409
|
+
});
|
|
1410
|
+
watch(() => data, () => {
|
|
1411
|
+
emitChange();
|
|
1412
|
+
}, { deep: true, immediate: true });
|
|
1432
1413
|
return (_ctx, _cache) => {
|
|
1433
1414
|
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
1434
1415
|
createElementVNode("div", _hoisted_2$4, [
|
|
1435
1416
|
createTextVNode(toDisplayString(__props.rule.title.title) + " ", 1),
|
|
1436
|
-
createElementVNode("span", _hoisted_3$
|
|
1417
|
+
createElementVNode("span", _hoisted_3$3, toDisplayString(unref(countText)), 1),
|
|
1437
1418
|
createElementVNode("div", _hoisted_4$3, [
|
|
1438
1419
|
unref(importFeature) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1439
1420
|
createVNode(unref(Button), { onClick: handleDownload }, {
|
|
1440
1421
|
default: withCtx(() => [
|
|
1441
|
-
|
|
1422
|
+
createTextVNode("\u4E0B\u8F7D\u6A21\u677F")
|
|
1442
1423
|
]),
|
|
1443
1424
|
_: 1
|
|
1444
1425
|
}),
|
|
1445
1426
|
createVNode(unref(Button), { onClick: handleImport }, {
|
|
1446
1427
|
default: withCtx(() => [
|
|
1447
|
-
|
|
1428
|
+
createTextVNode("\u6279\u91CF\u5BFC\u5165")
|
|
1448
1429
|
]),
|
|
1449
1430
|
_: 1
|
|
1450
1431
|
}),
|
|
@@ -1463,7 +1444,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1463
1444
|
onClick: handleBatchDelete
|
|
1464
1445
|
}, {
|
|
1465
1446
|
default: withCtx(() => [
|
|
1466
|
-
|
|
1447
|
+
createTextVNode("\u6279\u91CF\u5220\u9664")
|
|
1467
1448
|
]),
|
|
1468
1449
|
_: 1
|
|
1469
1450
|
})) : createCommentVNode("v-if", true),
|
|
@@ -1473,13 +1454,13 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1473
1454
|
}, {
|
|
1474
1455
|
default: withCtx(() => [
|
|
1475
1456
|
createVNode(unref(PlusOutlined)),
|
|
1476
|
-
|
|
1457
|
+
createTextVNode(" \u65B0\u589E ")
|
|
1477
1458
|
]),
|
|
1478
1459
|
_: 1
|
|
1479
1460
|
})
|
|
1480
1461
|
])
|
|
1481
1462
|
]),
|
|
1482
|
-
createElementVNode("div",
|
|
1463
|
+
createElementVNode("div", _hoisted_5$2, [
|
|
1483
1464
|
createVNode(unref(FormItemRest), null, {
|
|
1484
1465
|
default: withCtx(() => [
|
|
1485
1466
|
createVNode(unref(BmFloatTable), {
|
|
@@ -1491,12 +1472,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
1491
1472
|
unref(copyFeature) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
1492
1473
|
createElementVNode("a", {
|
|
1493
1474
|
onClick: ($event) => handleCopy(row)
|
|
1494
|
-
}, "\u590D\u5236", 8,
|
|
1475
|
+
}, "\u590D\u5236", 8, _hoisted_6$2),
|
|
1495
1476
|
createVNode(unref(Divider), { type: "vertical" })
|
|
1496
1477
|
], 64)) : createCommentVNode("v-if", true),
|
|
1497
1478
|
createElementVNode("a", {
|
|
1498
1479
|
onClick: ($event) => handleDelete(rowIndex)
|
|
1499
|
-
}, "\u5220\u9664", 8,
|
|
1480
|
+
}, "\u5220\u9664", 8, _hoisted_7$2)
|
|
1500
1481
|
]),
|
|
1501
1482
|
_: 1
|
|
1502
1483
|
}, 8, ["config"])
|
|
@@ -1512,15 +1493,13 @@ var TableWidget = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__file", "table-wi
|
|
|
1512
1493
|
|
|
1513
1494
|
const _hoisted_1$3 = /* @__PURE__ */ createElementVNode("span", { class: "bm-fc-form-item-label is-required" }, "\u7D20\u6750\u6A21\u677F\uFF1A", -1);
|
|
1514
1495
|
const _hoisted_2$3 = { key: 0 };
|
|
1515
|
-
const _hoisted_3$
|
|
1516
|
-
const _hoisted_4$2 = /* @__PURE__ */
|
|
1517
|
-
const _hoisted_5$1 = /* @__PURE__ */ createElementVNode("span", { class: "bm-fc-form-item-label" }, "\
|
|
1518
|
-
const _hoisted_6$1 =
|
|
1519
|
-
const _hoisted_7$1 =
|
|
1520
|
-
const _hoisted_8$1 =
|
|
1496
|
+
const _hoisted_3$2 = /* @__PURE__ */ createElementVNode("span", { class: "bm-fc-form-item-label" }, "\u7D20\u6750\u7C7B\u578B\uFF1A", -1);
|
|
1497
|
+
const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("span", { class: "bm-fc-form-item-label" }, "\u5C3A\u5BF8\uFF1A", -1);
|
|
1498
|
+
const _hoisted_5$1 = /* @__PURE__ */ createElementVNode("span", { class: "bm-fc-form-item-label" }, "\u5C01\u9762\u56FE\uFF1A", -1);
|
|
1499
|
+
const _hoisted_6$1 = ["src"];
|
|
1500
|
+
const _hoisted_7$1 = { key: 1 };
|
|
1501
|
+
const _hoisted_8$1 = /* @__PURE__ */ createElementVNode("span", { class: "bm-fc-form-item-label" }, "\u6A21\u677F\u7ED3\u6784\u56FE\uFF1A", -1);
|
|
1521
1502
|
const _hoisted_9$1 = { key: 1 };
|
|
1522
|
-
const _hoisted_10$1 = /* @__PURE__ */ createElementVNode("span", { class: "bm-fc-form-item-label" }, "\u6A21\u677F\u7ED3\u6784\u56FE\uFF1A", -1);
|
|
1523
|
-
const _hoisted_11$1 = { key: 1 };
|
|
1524
1503
|
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
1525
1504
|
__name: "material-temp",
|
|
1526
1505
|
props: [
|
|
@@ -1542,9 +1521,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1542
1521
|
tempSelected: {}
|
|
1543
1522
|
}
|
|
1544
1523
|
]);
|
|
1545
|
-
computed(
|
|
1546
|
-
() => panes.find((pane) => pane.key === activeKey.value)
|
|
1547
|
-
);
|
|
1524
|
+
computed(() => panes.find((pane) => pane.key === activeKey.value));
|
|
1548
1525
|
let index = 2;
|
|
1549
1526
|
const measrueDicts = ref([]);
|
|
1550
1527
|
function selectTemp() {
|
|
@@ -1577,10 +1554,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1577
1554
|
index++;
|
|
1578
1555
|
}
|
|
1579
1556
|
function handleDelete(targetKey) {
|
|
1580
|
-
panes.splice(
|
|
1581
|
-
panes.findIndex((pane) => pane.key === targetKey),
|
|
1582
|
-
1
|
|
1583
|
-
);
|
|
1557
|
+
panes.splice(panes.findIndex((pane) => pane.key === targetKey), 1);
|
|
1584
1558
|
}
|
|
1585
1559
|
function getTableRule(coverageArr) {
|
|
1586
1560
|
const fieldTypeMap = {
|
|
@@ -1673,16 +1647,12 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1673
1647
|
props.extraConfig.getDict().then((data) => {
|
|
1674
1648
|
measrueDicts.value = data;
|
|
1675
1649
|
});
|
|
1676
|
-
watch(
|
|
1677
|
-
()
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
immediate: true,
|
|
1683
|
-
deep: true
|
|
1684
|
-
}
|
|
1685
|
-
);
|
|
1650
|
+
watch(() => panes, () => {
|
|
1651
|
+
emitChange();
|
|
1652
|
+
}, {
|
|
1653
|
+
immediate: true,
|
|
1654
|
+
deep: true
|
|
1655
|
+
});
|
|
1686
1656
|
return (_ctx, _cache) => {
|
|
1687
1657
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
1688
1658
|
createVNode(unref(Tabs), {
|
|
@@ -1733,7 +1703,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1733
1703
|
onClick: selectTemp
|
|
1734
1704
|
}, {
|
|
1735
1705
|
default: withCtx(() => [
|
|
1736
|
-
|
|
1706
|
+
createTextVNode("\u66F4\u6362\u6A21\u677F")
|
|
1737
1707
|
]),
|
|
1738
1708
|
_: 1
|
|
1739
1709
|
})
|
|
@@ -1743,7 +1713,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1743
1713
|
}, {
|
|
1744
1714
|
default: withCtx(() => [
|
|
1745
1715
|
createVNode(unref(PlusOutlined)),
|
|
1746
|
-
|
|
1716
|
+
createTextVNode(" \u9009\u62E9\u6A21\u677F ")
|
|
1747
1717
|
]),
|
|
1748
1718
|
_: 1
|
|
1749
1719
|
}))
|
|
@@ -1762,7 +1732,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1762
1732
|
default: withCtx(() => [
|
|
1763
1733
|
createVNode(unref(Col), null, {
|
|
1764
1734
|
default: withCtx(() => [
|
|
1765
|
-
|
|
1735
|
+
_hoisted_3$2
|
|
1766
1736
|
]),
|
|
1767
1737
|
_: 1
|
|
1768
1738
|
}),
|
|
@@ -1787,7 +1757,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1787
1757
|
default: withCtx(() => [
|
|
1788
1758
|
createVNode(unref(Col), null, {
|
|
1789
1759
|
default: withCtx(() => [
|
|
1790
|
-
|
|
1760
|
+
_hoisted_4$2
|
|
1791
1761
|
]),
|
|
1792
1762
|
_: 1
|
|
1793
1763
|
}),
|
|
@@ -1796,9 +1766,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1796
1766
|
flex: 1
|
|
1797
1767
|
}, {
|
|
1798
1768
|
default: withCtx(() => [
|
|
1799
|
-
createTextVNode(toDisplayString(measrueDicts.value.find(
|
|
1800
|
-
(dict) => dict.dictId + "" === pane.tempSelected.measure + ""
|
|
1801
|
-
)?.dictName || "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"), 1)
|
|
1769
|
+
createTextVNode(toDisplayString(measrueDicts.value.find((dict) => dict.dictId + "" === pane.tempSelected.measure + "")?.dictName || "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"), 1)
|
|
1802
1770
|
]),
|
|
1803
1771
|
_: 2
|
|
1804
1772
|
}, 1024)
|
|
@@ -1814,7 +1782,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1814
1782
|
default: withCtx(() => [
|
|
1815
1783
|
createVNode(unref(Col), null, {
|
|
1816
1784
|
default: withCtx(() => [
|
|
1817
|
-
|
|
1785
|
+
_hoisted_5$1
|
|
1818
1786
|
]),
|
|
1819
1787
|
_: 1
|
|
1820
1788
|
}),
|
|
@@ -1827,7 +1795,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1827
1795
|
key: 0,
|
|
1828
1796
|
class: "bm-fc-form-item__cover",
|
|
1829
1797
|
src: pane.tempSelected.coverPlanPath
|
|
1830
|
-
}, null, 8,
|
|
1798
|
+
}, null, 8, _hoisted_6$1)) : (openBlock(), createElementBlock("span", _hoisted_7$1, "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"))
|
|
1831
1799
|
]),
|
|
1832
1800
|
_: 2
|
|
1833
1801
|
}, 1024)
|
|
@@ -1843,7 +1811,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1843
1811
|
default: withCtx(() => [
|
|
1844
1812
|
createVNode(unref(Col), null, {
|
|
1845
1813
|
default: withCtx(() => [
|
|
1846
|
-
|
|
1814
|
+
_hoisted_8$1
|
|
1847
1815
|
]),
|
|
1848
1816
|
_: 1
|
|
1849
1817
|
}),
|
|
@@ -1856,7 +1824,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
1856
1824
|
key: 0,
|
|
1857
1825
|
class: "bm-fc-form-item__temp-content",
|
|
1858
1826
|
content: pane.tempSelected.content
|
|
1859
|
-
}, null, 8, ["content"])) : (openBlock(), createElementBlock("span",
|
|
1827
|
+
}, null, 8, ["content"])) : (openBlock(), createElementBlock("span", _hoisted_9$1, "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6"))
|
|
1860
1828
|
]),
|
|
1861
1829
|
_: 2
|
|
1862
1830
|
}, 1024)
|
|
@@ -1976,7 +1944,6 @@ var materialTemp = {
|
|
|
1976
1944
|
|
|
1977
1945
|
const _hoisted_1$2 = { class: "bm-fc-form-item-label" };
|
|
1978
1946
|
const _hoisted_2$2 = ["src"];
|
|
1979
|
-
const _hoisted_3$2 = /* @__PURE__ */ createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA");
|
|
1980
1947
|
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
1981
1948
|
__name: "product-info",
|
|
1982
1949
|
props: [
|
|
@@ -2016,15 +1983,11 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2016
1983
|
function emitChange(value) {
|
|
2017
1984
|
emits("change", value);
|
|
2018
1985
|
}
|
|
2019
|
-
watch(
|
|
2020
|
-
()
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
{
|
|
2025
|
-
immediate: true
|
|
2026
|
-
}
|
|
2027
|
-
);
|
|
1986
|
+
watch(() => props.defalutValue, (val) => {
|
|
1987
|
+
val && fetch(val);
|
|
1988
|
+
}, {
|
|
1989
|
+
immediate: true
|
|
1990
|
+
});
|
|
2028
1991
|
return (_ctx, _cache) => {
|
|
2029
1992
|
return openBlock(), createBlock(unref(Row), { gutter: [0, 24] }, {
|
|
2030
1993
|
default: withCtx(() => [
|
|
@@ -2088,7 +2051,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
2088
2051
|
createTextVNode(toDisplayString(getValue(field.value)), 1)
|
|
2089
2052
|
], 64))
|
|
2090
2053
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
2091
|
-
|
|
2054
|
+
createTextVNode("\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA")
|
|
2092
2055
|
], 64))
|
|
2093
2056
|
]),
|
|
2094
2057
|
_: 2
|
|
@@ -2201,9 +2164,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
2201
2164
|
"filter-option": false,
|
|
2202
2165
|
"not-found-content": null,
|
|
2203
2166
|
options: options.value,
|
|
2167
|
+
"get-popup-container": unref(getContainer),
|
|
2204
2168
|
onChange: handleChange,
|
|
2205
2169
|
onSearch: handleSearch
|
|
2206
|
-
}, null, 8, ["value", "options"]);
|
|
2170
|
+
}, null, 8, ["value", "options", "get-popup-container"]);
|
|
2207
2171
|
};
|
|
2208
2172
|
}
|
|
2209
2173
|
});
|
|
@@ -2280,7 +2244,7 @@ var shop = {
|
|
|
2280
2244
|
field,
|
|
2281
2245
|
title: data.title.title,
|
|
2282
2246
|
headerClassName: data.effect.required ? 'is-required' : '',
|
|
2283
|
-
|
|
2247
|
+
minWidth: '138px',
|
|
2284
2248
|
slots: {
|
|
2285
2249
|
default({ row }) {
|
|
2286
2250
|
return h(ShopWidget, {
|
|
@@ -2339,8 +2303,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
2339
2303
|
multiple: __props.multiple,
|
|
2340
2304
|
options: options.value,
|
|
2341
2305
|
"load-data": loadData,
|
|
2306
|
+
"get-popup-container": unref(getContainer),
|
|
2342
2307
|
"onUpdate:value": handleChange
|
|
2343
|
-
}, null, 8, ["value", "multiple", "options"]);
|
|
2308
|
+
}, null, 8, ["value", "multiple", "options", "get-popup-container"]);
|
|
2344
2309
|
};
|
|
2345
2310
|
}
|
|
2346
2311
|
});
|
|
@@ -2481,7 +2446,7 @@ var materialType = {
|
|
|
2481
2446
|
field,
|
|
2482
2447
|
title: '素材类型',
|
|
2483
2448
|
headerClassName: data.effect.required ? 'is-required' : '',
|
|
2484
|
-
|
|
2449
|
+
minWidth: '138px',
|
|
2485
2450
|
slots: {
|
|
2486
2451
|
default({ row }) {
|
|
2487
2452
|
return h(materialTypeInTable, {
|
|
@@ -2618,7 +2583,7 @@ var department = {
|
|
|
2618
2583
|
field,
|
|
2619
2584
|
title: data.title.title,
|
|
2620
2585
|
headerClassName: data.effect.required ? 'is-required' : '',
|
|
2621
|
-
|
|
2586
|
+
minWidth: data.config.fieldRatio,
|
|
2622
2587
|
slots: {
|
|
2623
2588
|
default({ row }) {
|
|
2624
2589
|
return h(StaffSelector, Object.assign({ title: '添加部门', mode: data.props.limit ? 'radio' : 'multiple', placeholder: data.props.placeholder, immediateFetch: true, unitStr: '个', onChange: (value) => {
|
|
@@ -2820,7 +2785,7 @@ var FormBasicInfo = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "formBa
|
|
|
2820
2785
|
|
|
2821
2786
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2822
2787
|
__name: "form-create",
|
|
2823
|
-
props: ["fdRule", "extraConfig", "value"],
|
|
2788
|
+
props: ["fdRule", "extraConfig", "value", "info"],
|
|
2824
2789
|
emits: ["update:value"],
|
|
2825
2790
|
setup(__props, { expose, emit: emits }) {
|
|
2826
2791
|
const props = __props;
|
|
@@ -2845,9 +2810,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2845
2810
|
if (data.name === "row" && childRules?.length) {
|
|
2846
2811
|
const rowRule = rule2.children.find((item) => item.type === "row");
|
|
2847
2812
|
childRules.forEach((ruleItem) => {
|
|
2848
|
-
rowRule.children.push(
|
|
2849
|
-
ruleList[ruleItem.name].rowRule(ruleItem, props.extraConfig)
|
|
2850
|
-
);
|
|
2813
|
+
rowRule.children.push(ruleList[ruleItem.name].rowRule(ruleItem, props.extraConfig));
|
|
2851
2814
|
});
|
|
2852
2815
|
}
|
|
2853
2816
|
return rule2;
|
|
@@ -2864,24 +2827,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
2864
2827
|
item.value = props.value[item.field];
|
|
2865
2828
|
});
|
|
2866
2829
|
}
|
|
2867
|
-
rule2.value = props.value[rule2.field];
|
|
2830
|
+
rule2.value = props.value[rule2.field] || rule2.value;
|
|
2868
2831
|
});
|
|
2869
2832
|
return ruleData;
|
|
2870
2833
|
}
|
|
2871
|
-
watch(
|
|
2872
|
-
()
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
{
|
|
2877
|
-
immediate: true
|
|
2878
|
-
}
|
|
2879
|
-
);
|
|
2834
|
+
watch(() => props.fdRule, (fdRule) => {
|
|
2835
|
+
setRule(fdRule);
|
|
2836
|
+
}, {
|
|
2837
|
+
immediate: true
|
|
2838
|
+
});
|
|
2880
2839
|
expose({ fApi });
|
|
2881
2840
|
return (_ctx, _cache) => {
|
|
2882
2841
|
const _component_formCreate = resolveComponent("formCreate", true);
|
|
2883
2842
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
2884
|
-
createVNode(FormBasicInfo, {
|
|
2843
|
+
createVNode(FormBasicInfo, {
|
|
2844
|
+
class: "bm-fc-form-basic-info",
|
|
2845
|
+
info: __props.info
|
|
2846
|
+
}, null, 8, ["info"]),
|
|
2885
2847
|
createVNode(_component_formCreate, {
|
|
2886
2848
|
api: fApi.value,
|
|
2887
2849
|
"onUpdate:api": _cache[0] || (_cache[0] = ($event) => fApi.value = $event),
|