super-page-designer 2.0.20 → 2.0.23
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/es/assets/fonts/iconfont.css.js +1 -0
- package/dist/es/components/design/utils/assemblys-config.js +107 -64
- package/dist/es/components/design/utils/data-table-util.js +4 -4
- package/dist/es/components/design/utils/form-design-util.js +11 -0
- package/dist/es/components/design/utils/page-service-util.js +1 -1
- package/dist/es/components/design/utils/page-table-util.js +3 -3
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +14 -8
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue2.js +16 -8
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-base.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue.js +16 -12
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +10 -7
- package/dist/es/components/design/views/assemblys/common/common-style-background.vue.js +31 -9
- package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +6 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +1 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +17 -7
- package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +17 -7
- package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +18 -8
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +14 -8
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +33 -16
- package/dist/es/components/design/views/assemblys/data/component/attr-style.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +37 -34
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +112 -13
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +0 -5
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +18 -9
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +31 -8
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +10 -9
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +13 -8
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +65 -76
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-event.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-style.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +45 -38
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-style.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +22 -13
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue2.js +2 -1
- package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +15 -50
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +4 -3
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue.js +1 -75
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue2.js +75 -1
- package/dist/es/components/design/views/assemblys/form/common/dimension-input.vue3.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +3 -42
- package/dist/es/components/design/views/assemblys/form/common/parameter-table.vue.js +19 -13
- package/dist/es/components/design/views/assemblys/form/common/pre-suffix.vue.js +5 -68
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +24 -14
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +21 -11
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-base.vue.js +6 -4
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-event.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-style.vue.js +6 -0
- package/dist/es/components/design/views/assemblys/form/divider/divider-design.vue2.js +17 -16
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +24 -9
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-design.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +19 -11
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +1 -0
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +20 -10
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-base.vue.js +3 -2
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-style.vue.js +6 -0
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-design.vue2.js +8 -13
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +22 -13
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +25 -15
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-base.vue.js +10 -5
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr-style.vue.js +4 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +13 -7
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +16 -9
- package/dist/es/components/design/views/assemblys/object-design.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.d.ts +2 -2
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.d.ts +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +9 -11
- package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-attr-base.vue.js +21 -6
- package/dist/es/components/design/views/assemblys/workflow/text-history/texthistory-attr-base.vue.js +10 -8
- package/dist/es/components/design/views/design/page-design.vue.js +135 -133
- package/dist/es/components/design/views/design/view/attr-container.vue.js +1 -0
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.d.ts +18 -0
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +678 -0
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue2.js +4 -0
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.d.ts +16 -0
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +602 -0
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue2.js +4 -0
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +2 -2
- package/dist/es/components/design/views/design/view/view-design-display.vue.d.ts +4 -0
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +82 -39
- package/dist/es/components/design/views/design/view/view-design.vue.d.ts +13 -1
- package/dist/es/components/design/views/design/view/view-design.vue.js +13 -3
- package/dist/es/index.d.ts +1 -1
- package/dist/es/index.js +1 -0
- package/dist/es/stores/page-store.js +1 -1
- package/dist/es/stores/undo-redo-store.d.ts +13 -0
- package/dist/es/stores/undo-redo-store.js +44 -0
- package/dist/es/style.css +472 -224
- package/package.json +4 -4
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +0 -539
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue2.js +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent } from "vue";
|
|
2
|
-
import { getUuidv4 } from "./common-util.js";
|
|
2
|
+
import { getUuidv4, deepCopy } from "./common-util.js";
|
|
3
3
|
import groupContainer from "../../../assets/images/group-container.png.js";
|
|
4
4
|
import containerForm from "../../../assets/images/container/container-form.png.js";
|
|
5
5
|
import containerFLex from "../../../assets/images/container/container-flex.png.js";
|
|
@@ -202,10 +202,13 @@ const assemblyGroups = [{
|
|
|
202
202
|
{ name: "click", label: "点击", tip: "点击" },
|
|
203
203
|
{ name: "input", label: "输入", tip: "输入" },
|
|
204
204
|
{ name: "change", label: "更改", tip: "更改" },
|
|
205
|
+
{ name: "setValueCallback", label: "弹框赋值回调", tip: "后缀图标弹框赋值回调" },
|
|
205
206
|
{ name: "blur", label: "失去焦点", tip: "失去焦点" },
|
|
206
207
|
{ name: "focus", label: "获取焦点", tip: "获取焦点" },
|
|
207
208
|
{ name: "show", label: "显示", tip: "显示元素时执行" },
|
|
208
|
-
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" }
|
|
209
|
+
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" },
|
|
210
|
+
{ name: "prefixClick", label: "前缀点击", tip: "前缀图标点击执行" },
|
|
211
|
+
{ name: "suffixClick", label: "后缀点击", tip: "后缀图标点击执行" }
|
|
209
212
|
],
|
|
210
213
|
designComponent: defineAsyncComponent(() => {
|
|
211
214
|
return import("../views/assemblys/form/input-text/inputtext-design.vue.js");
|
|
@@ -232,7 +235,6 @@ const assemblyGroups = [{
|
|
|
232
235
|
},
|
|
233
236
|
style: { titleFont: {}, background: {}, margin: {}, padding: {}, border: {}, shadow: {} },
|
|
234
237
|
events: [
|
|
235
|
-
{ name: "click", label: "点击", tip: "点击" },
|
|
236
238
|
{ name: "change", label: "更改", tip: "更改" },
|
|
237
239
|
{ name: "show", label: "显示", tip: "显示元素时执行" },
|
|
238
240
|
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" }
|
|
@@ -261,7 +263,6 @@ const assemblyGroups = [{
|
|
|
261
263
|
},
|
|
262
264
|
style: { titleFont: {}, background: {}, margin: {}, padding: {}, border: {}, shadow: {} },
|
|
263
265
|
events: [
|
|
264
|
-
{ name: "click", label: "点击", tip: "点击" },
|
|
265
266
|
{ name: "change", label: "更改", tip: "更改" },
|
|
266
267
|
{ name: "show", label: "显示", tip: "显示元素时执行" },
|
|
267
268
|
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" }
|
|
@@ -290,7 +291,6 @@ const assemblyGroups = [{
|
|
|
290
291
|
},
|
|
291
292
|
style: { titleFont: {}, background: {}, margin: {}, padding: {}, border: {}, shadow: {} },
|
|
292
293
|
events: [
|
|
293
|
-
{ name: "click", label: "点击", tip: "点击" },
|
|
294
294
|
{ name: "change", label: "更改", tip: "更改" },
|
|
295
295
|
{ name: "show", label: "显示", tip: "显示元素时执行" },
|
|
296
296
|
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" }
|
|
@@ -317,7 +317,6 @@ const assemblyGroups = [{
|
|
|
317
317
|
},
|
|
318
318
|
style: { titleFont: {}, background: {}, margin: {}, padding: {}, border: {}, shadow: {} },
|
|
319
319
|
events: [
|
|
320
|
-
{ name: "click", label: "点击", tip: "点击" },
|
|
321
320
|
{ name: "input", label: "输入", tip: "输入" },
|
|
322
321
|
{ name: "change", label: "更改", tip: "更改" },
|
|
323
322
|
{ name: "blur", label: "失去焦点", tip: "失去焦点" },
|
|
@@ -612,6 +611,11 @@ const assemblyGroups = [{
|
|
|
612
611
|
title: {}
|
|
613
612
|
},
|
|
614
613
|
style: { titleFont: {}, background: {}, margin: {}, padding: {}, border: {}, shadow: {} },
|
|
614
|
+
events: [
|
|
615
|
+
{ name: "click", label: "点击", tip: "点击" },
|
|
616
|
+
{ name: "show", label: "显示", tip: "显示元素时执行" },
|
|
617
|
+
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" }
|
|
618
|
+
],
|
|
615
619
|
designComponent: defineAsyncComponent(() => {
|
|
616
620
|
return import("../views/assemblys/form/divider/divider-design.vue.js");
|
|
617
621
|
}),
|
|
@@ -628,7 +632,7 @@ const assemblyGroups = [{
|
|
|
628
632
|
base: {
|
|
629
633
|
title: "标题"
|
|
630
634
|
},
|
|
631
|
-
size: {}
|
|
635
|
+
size: { widthType: "flex", flexSpan: 24 }
|
|
632
636
|
},
|
|
633
637
|
style: {},
|
|
634
638
|
designComponent: defineAsyncComponent(() => {
|
|
@@ -676,6 +680,7 @@ const assemblyGroups = [{
|
|
|
676
680
|
events: [
|
|
677
681
|
{ name: "beforeClick", label: "点击前", tip: "点击前" },
|
|
678
682
|
{ name: "click", label: "点击", tip: "点击" },
|
|
683
|
+
{ name: "setValueCallback", label: "弹框赋值回调", tip: "弹框赋值回调" },
|
|
679
684
|
{ name: "show", label: "显示", tip: "显示元素时执行" },
|
|
680
685
|
{ name: "hidden", label: "隐藏", tip: "隐藏元素时执行" }
|
|
681
686
|
],
|
|
@@ -706,7 +711,7 @@ const assemblyGroups = [{
|
|
|
706
711
|
dynamicDataSourceCode: ""
|
|
707
712
|
},
|
|
708
713
|
suffixModule: { action: "attonity", buttonDisplayConditionsList: [], jumpPageAdditional: [{ type: "", model: "" }] },
|
|
709
|
-
|
|
714
|
+
preSuffix: {},
|
|
710
715
|
singleWidth: {},
|
|
711
716
|
overallWidth: {},
|
|
712
717
|
overallHeight: {},
|
|
@@ -807,6 +812,7 @@ const assemblyGroups = [{
|
|
|
807
812
|
events: [
|
|
808
813
|
{ name: "beforeValidateForm", label: "验证数据前", tip: "行编辑保存时验证数据前,先于beforeClick事件" },
|
|
809
814
|
{ name: "beforeClick", label: "点击前事件", tip: "点击前事件" },
|
|
815
|
+
{ name: "setValueCallback", label: "弹框赋值回调", tip: "弹框赋值回调" },
|
|
810
816
|
{ name: "click", label: "点击事件", tip: "点击事件" },
|
|
811
817
|
{ name: "afterClick", label: "点击后事件", tip: "点击后事件" },
|
|
812
818
|
{ name: "show", label: "显示", tip: "显示" },
|
|
@@ -819,7 +825,7 @@ const assemblyGroups = [{
|
|
|
819
825
|
uuid: getUuidv4(),
|
|
820
826
|
name: "",
|
|
821
827
|
props: {
|
|
822
|
-
base: { name: "复选框", prop: "$selection", tittleShow: true, columnWidth: 80, visible: true, sortable: true, displayOrder:
|
|
828
|
+
base: { name: "复选框", prop: "$selection", tittleShow: true, columnWidth: 80, visible: true, sortable: true, displayOrder: 0 },
|
|
823
829
|
size: {},
|
|
824
830
|
editLine: {},
|
|
825
831
|
scan: {},
|
|
@@ -866,7 +872,7 @@ const assemblyGroups = [{
|
|
|
866
872
|
uuid: getUuidv4(),
|
|
867
873
|
name: "",
|
|
868
874
|
props: {
|
|
869
|
-
base: { name: "序号", prop: "$index", tittleShow: true, columnWidth: 80, visible: true, sortable: true, displayOrder:
|
|
875
|
+
base: { name: "序号", prop: "$index", tittleShow: true, columnWidth: 80, visible: true, sortable: true, displayOrder: 1 },
|
|
870
876
|
size: {},
|
|
871
877
|
editLine: {},
|
|
872
878
|
scan: {},
|
|
@@ -910,51 +916,6 @@ const assemblyGroups = [{
|
|
|
910
916
|
tittleClass: ""
|
|
911
917
|
}
|
|
912
918
|
},
|
|
913
|
-
{
|
|
914
|
-
uuid: getUuidv4(),
|
|
915
|
-
name: "input-text",
|
|
916
|
-
props: {
|
|
917
|
-
base: { name: "字段1", visible: true, tittleShow: false, displayOrder: 3, sortable: true },
|
|
918
|
-
size: {},
|
|
919
|
-
editLine: {
|
|
920
|
-
plugType: "input-text"
|
|
921
|
-
},
|
|
922
|
-
scan: {},
|
|
923
|
-
preSuffix: {},
|
|
924
|
-
verification: {},
|
|
925
|
-
dataOrigin: {
|
|
926
|
-
sortField: [{ name: "", type: "" }],
|
|
927
|
-
staticState: [{ label: "选项1", vaule: 1 }],
|
|
928
|
-
displayQuantity: 20
|
|
929
|
-
},
|
|
930
|
-
defaultValue: {},
|
|
931
|
-
inParameter: {},
|
|
932
|
-
title: {},
|
|
933
|
-
definition: {},
|
|
934
|
-
uploadConfig: {},
|
|
935
|
-
singleWidth: {},
|
|
936
|
-
suffixModule: {},
|
|
937
|
-
querySetting: {},
|
|
938
|
-
orgFields: [{ type: "", model: "" }],
|
|
939
|
-
format: `{"type":"","icon":"111","suffixModule":{"staticStates":[]},"jumpPageAdditional":{"staticStates":[]}}`
|
|
940
|
-
},
|
|
941
|
-
events: [
|
|
942
|
-
{ name: "show", label: "列表显示", tip: "列表显示回调方法" },
|
|
943
|
-
{ name: "hidden", label: "列表隐藏", tip: "列表隐藏回调方法" }
|
|
944
|
-
],
|
|
945
|
-
style: {
|
|
946
|
-
titleFont: {},
|
|
947
|
-
contentFont: {},
|
|
948
|
-
width: {},
|
|
949
|
-
background: {},
|
|
950
|
-
tableCell: [{ value: "", label: "" }],
|
|
951
|
-
conentPadding: {},
|
|
952
|
-
tittlePadding: {},
|
|
953
|
-
border: {},
|
|
954
|
-
shadow: {},
|
|
955
|
-
tittleClass: ""
|
|
956
|
-
}
|
|
957
|
-
},
|
|
958
919
|
{
|
|
959
920
|
uuid: getUuidv4(),
|
|
960
921
|
name: "",
|
|
@@ -1208,6 +1169,7 @@ const assemblyGroups = [{
|
|
|
1208
1169
|
{ name: "beforeValidateForm", label: "验证表单前", tip: "验证表单前,先于beforeClick事件" },
|
|
1209
1170
|
{ name: "beforeClick", label: "点击前事件", tip: "点击前事件" },
|
|
1210
1171
|
{ name: "click", label: "点击事件", tip: "点击事件" },
|
|
1172
|
+
{ name: "setValueCallback", label: "弹框赋值回调", tip: "弹框赋值回调" },
|
|
1211
1173
|
{ name: "afterClick", label: "点击后事件", tip: "点击后事件" },
|
|
1212
1174
|
{ name: "show", label: "显示", tip: "显示" },
|
|
1213
1175
|
{ name: "hidden", label: "隐藏", tip: "隐藏" }
|
|
@@ -1989,18 +1951,73 @@ const assemblyGroups = [{
|
|
|
1989
1951
|
})
|
|
1990
1952
|
}]
|
|
1991
1953
|
}];
|
|
1954
|
+
const pageConf = {
|
|
1955
|
+
id: -1,
|
|
1956
|
+
code: "",
|
|
1957
|
+
name: "page",
|
|
1958
|
+
label: "",
|
|
1959
|
+
version: 1,
|
|
1960
|
+
systemCode: "",
|
|
1961
|
+
systemVersion: 1,
|
|
1962
|
+
dbName: "",
|
|
1963
|
+
tableName: "",
|
|
1964
|
+
tableAlias: "",
|
|
1965
|
+
workflowCode: "",
|
|
1966
|
+
workflowVersion: 0,
|
|
1967
|
+
//模型的字段
|
|
1968
|
+
modelFields: [],
|
|
1969
|
+
logicDesigns: [],
|
|
1970
|
+
//子集对象
|
|
1971
|
+
items: [],
|
|
1972
|
+
props: {
|
|
1973
|
+
// 无ID初始化条件
|
|
1974
|
+
notIdInitializationList: "[]",
|
|
1975
|
+
// 判重组合字段
|
|
1976
|
+
judgeHeavyList: []
|
|
1977
|
+
},
|
|
1978
|
+
style: {},
|
|
1979
|
+
events: [
|
|
1980
|
+
{
|
|
1981
|
+
// 页面布局等加载后,但数据加载前时
|
|
1982
|
+
name: "beforeload",
|
|
1983
|
+
label: "加载前"
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
// 数据加载后
|
|
1987
|
+
name: "load",
|
|
1988
|
+
label: "加载后"
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
name: "resize",
|
|
1992
|
+
label: "尺寸变化",
|
|
1993
|
+
params: [
|
|
1994
|
+
{
|
|
1995
|
+
name: "width",
|
|
1996
|
+
label: "宽度",
|
|
1997
|
+
type: "number"
|
|
1998
|
+
},
|
|
1999
|
+
{
|
|
2000
|
+
name: "height",
|
|
2001
|
+
label: "高度",
|
|
2002
|
+
type: "number"
|
|
2003
|
+
}
|
|
2004
|
+
]
|
|
2005
|
+
}
|
|
2006
|
+
]
|
|
2007
|
+
};
|
|
2008
|
+
function getPageConf() {
|
|
2009
|
+
const tempConf = deepCopy(pageConf);
|
|
2010
|
+
tempConf.code = getUuidv4();
|
|
2011
|
+
tempConf.label = "页面";
|
|
2012
|
+
return tempConf;
|
|
2013
|
+
}
|
|
1992
2014
|
const standardButtonOperations = [
|
|
1993
2015
|
{
|
|
1994
2016
|
label: "表单标准功能",
|
|
2017
|
+
type: "form",
|
|
1995
2018
|
options: [{
|
|
1996
2019
|
label: "暂存",
|
|
1997
2020
|
value: "save"
|
|
1998
|
-
}, {
|
|
1999
|
-
label: "导出报告",
|
|
2000
|
-
value: "exportForm"
|
|
2001
|
-
}, {
|
|
2002
|
-
label: "导出PDF",
|
|
2003
|
-
value: "exportPDF"
|
|
2004
2021
|
}, {
|
|
2005
2022
|
label: "提交",
|
|
2006
2023
|
value: "submit"
|
|
@@ -2010,6 +2027,12 @@ const standardButtonOperations = [
|
|
|
2010
2027
|
}, {
|
|
2011
2028
|
label: "不同意",
|
|
2012
2029
|
value: "disagree"
|
|
2030
|
+
}, {
|
|
2031
|
+
label: "导出报告",
|
|
2032
|
+
value: "exportForm"
|
|
2033
|
+
}, {
|
|
2034
|
+
label: "导出PDF",
|
|
2035
|
+
value: "exportPDF"
|
|
2013
2036
|
}, {
|
|
2014
2037
|
label: "返回",
|
|
2015
2038
|
value: "back"
|
|
@@ -2017,6 +2040,7 @@ const standardButtonOperations = [
|
|
|
2017
2040
|
},
|
|
2018
2041
|
{
|
|
2019
2042
|
label: "流程表单功能",
|
|
2043
|
+
type: "workflow",
|
|
2020
2044
|
options: [{
|
|
2021
2045
|
label: "暂存",
|
|
2022
2046
|
value: "workflowSave"
|
|
@@ -2078,6 +2102,7 @@ const standardButtonOperations = [
|
|
|
2078
2102
|
},
|
|
2079
2103
|
{
|
|
2080
2104
|
label: "列表功能",
|
|
2105
|
+
type: "list",
|
|
2081
2106
|
options: [{
|
|
2082
2107
|
label: "暂存",
|
|
2083
2108
|
value: "saveList"
|
|
@@ -2093,6 +2118,9 @@ const standardButtonOperations = [
|
|
|
2093
2118
|
}, {
|
|
2094
2119
|
label: "不同意",
|
|
2095
2120
|
value: "disagreeList"
|
|
2121
|
+
}, {
|
|
2122
|
+
label: "下载导入模板",
|
|
2123
|
+
value: "downloadTemplate"
|
|
2096
2124
|
}, {
|
|
2097
2125
|
label: "导入",
|
|
2098
2126
|
value: "import"
|
|
@@ -2102,13 +2130,11 @@ const standardButtonOperations = [
|
|
|
2102
2130
|
}, {
|
|
2103
2131
|
label: "查询",
|
|
2104
2132
|
value: "search"
|
|
2105
|
-
}, {
|
|
2106
|
-
label: "下载导入模板",
|
|
2107
|
-
value: "downloadTemplate"
|
|
2108
2133
|
}]
|
|
2109
2134
|
},
|
|
2110
2135
|
{
|
|
2111
2136
|
label: "列表行编辑功能",
|
|
2137
|
+
type: "list-edit",
|
|
2112
2138
|
options: [{
|
|
2113
2139
|
label: "新建",
|
|
2114
2140
|
value: "lineEditCreate"
|
|
@@ -2142,6 +2168,21 @@ function getDesignComponentByName(name) {
|
|
|
2142
2168
|
}
|
|
2143
2169
|
return null;
|
|
2144
2170
|
}
|
|
2171
|
+
function getDesignConfByName(name) {
|
|
2172
|
+
if (!name) {
|
|
2173
|
+
return null;
|
|
2174
|
+
}
|
|
2175
|
+
for (let i = 0; i < assemblyGroups.length; i++) {
|
|
2176
|
+
let items = assemblyGroups[i].items;
|
|
2177
|
+
for (let j = 0; j < items.length; j++) {
|
|
2178
|
+
let item = items[j];
|
|
2179
|
+
if (item.name == name) {
|
|
2180
|
+
return item;
|
|
2181
|
+
}
|
|
2182
|
+
}
|
|
2183
|
+
}
|
|
2184
|
+
return null;
|
|
2185
|
+
}
|
|
2145
2186
|
function getAttrComponentByName(name) {
|
|
2146
2187
|
if (!name) {
|
|
2147
2188
|
return null;
|
|
@@ -2197,7 +2238,9 @@ export {
|
|
|
2197
2238
|
getAttrComponentByName,
|
|
2198
2239
|
getComponentEventOptions,
|
|
2199
2240
|
getDesignComponentByName,
|
|
2241
|
+
getDesignConfByName,
|
|
2200
2242
|
getFormComponentOptions,
|
|
2243
|
+
getPageConf,
|
|
2201
2244
|
getStandardOperationLabel,
|
|
2202
2245
|
standardButtonOperations
|
|
2203
2246
|
};
|
|
@@ -49,7 +49,7 @@ function formatConditionList(conditionList, attributeMap, fieldMap) {
|
|
|
49
49
|
}
|
|
50
50
|
function getOperators(item) {
|
|
51
51
|
if (item) {
|
|
52
|
-
if (item.
|
|
52
|
+
if (item.dataType === "integer" || item.dataType === "long" || item.dataType === "double" || item.dataType === "float") {
|
|
53
53
|
return [
|
|
54
54
|
{
|
|
55
55
|
name: "GT",
|
|
@@ -84,7 +84,7 @@ function getOperators(item) {
|
|
|
84
84
|
label: "不等于Null"
|
|
85
85
|
}
|
|
86
86
|
];
|
|
87
|
-
} else if (item.
|
|
87
|
+
} else if (item.dataType === "date" || item.dataType === "time") {
|
|
88
88
|
return [
|
|
89
89
|
{
|
|
90
90
|
name: "GT",
|
|
@@ -119,7 +119,7 @@ function getOperators(item) {
|
|
|
119
119
|
label: "时间范围"
|
|
120
120
|
}
|
|
121
121
|
];
|
|
122
|
-
} else if (item.
|
|
122
|
+
} else if (item.dataType === "text") {
|
|
123
123
|
return [
|
|
124
124
|
{
|
|
125
125
|
name: "EQ",
|
|
@@ -214,7 +214,7 @@ function setGroupHeaderDataDisplayOrder(parentUuid, draggingGroupData, groupHead
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
function deleteGroupHeaderByColumnUuid(groupHeaders, columnUuid) {
|
|
217
|
-
const index = groupHeaders.findIndex((item) => item.
|
|
217
|
+
const index = groupHeaders.findIndex((item) => item.uuid === columnUuid);
|
|
218
218
|
if (index !== void 0 && index !== null && index >= 0) {
|
|
219
219
|
groupHeaders.splice(index, 1);
|
|
220
220
|
}
|
|
@@ -28,6 +28,9 @@ function caculateDetailComponentStyle(configure, designStyle, designClass, desig
|
|
|
28
28
|
if (defineStyle.color) {
|
|
29
29
|
tempStyle["color"] = defineStyle.color;
|
|
30
30
|
}
|
|
31
|
+
if (defineStyle.backgroundColor) {
|
|
32
|
+
tempStyle["background-color"] = defineStyle.backgroundColor;
|
|
33
|
+
}
|
|
31
34
|
if (defineStyle.textAlign) {
|
|
32
35
|
tempStyle["text-align"] = defineStyle.textAlign;
|
|
33
36
|
}
|
|
@@ -73,6 +76,14 @@ function caculateDetailComponentStyle(configure, designStyle, designClass, desig
|
|
|
73
76
|
}
|
|
74
77
|
}
|
|
75
78
|
}
|
|
79
|
+
if (defineStyle.shadowColor) {
|
|
80
|
+
let shadow = (defineStyle.shadowTop ? defineStyle.shadowTop : "0") + "px ";
|
|
81
|
+
shadow += (defineStyle.shadowRight ? defineStyle.shadowRight : "0") + "px ";
|
|
82
|
+
shadow += (defineStyle.shadowBottom ? defineStyle.shadowBottom : "0") + "px ";
|
|
83
|
+
shadow += (defineStyle.shadowLeft ? defineStyle.shadowLeft : "0") + "px ";
|
|
84
|
+
shadow += defineStyle.shadowColor;
|
|
85
|
+
tempStyle["box-shadow"] = shadow;
|
|
86
|
+
}
|
|
76
87
|
if (defineStyle.headerFontWeight) {
|
|
77
88
|
tempHeaderStyle["font-weight"] = "bold";
|
|
78
89
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import http from "agilebuilder-ui/src/utils/request";
|
|
2
2
|
function queryServiceInfo(serivceId) {
|
|
3
|
-
let url = "/component/super-page-design/service-flow/" + serivceId;
|
|
3
|
+
let url = window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/service-flow/" + serivceId;
|
|
4
4
|
return http.get(url);
|
|
5
5
|
}
|
|
6
6
|
function queryServiceReturnFields(serivceId) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import http from "agilebuilder-ui/src/utils/request";
|
|
2
2
|
function queryTableFields(systemCode, systemVersion, tableName) {
|
|
3
|
-
let url = "/mms/data-tables/table-columns";
|
|
3
|
+
let url = window["$vueApp"].config.globalProperties.baseAPI + "/mms/data-tables/table-columns";
|
|
4
4
|
url += "?systemCode=" + (systemCode ? systemCode : "");
|
|
5
5
|
url += "&publishVersion=" + (systemVersion ? systemVersion : "");
|
|
6
6
|
url += "&tableName=" + (tableName ? tableName : "");
|
|
@@ -12,7 +12,7 @@ function queryTableFieldsOrMap(systemCode, systemVersion, tableName) {
|
|
|
12
12
|
publishVersion: systemVersion,
|
|
13
13
|
tableName
|
|
14
14
|
};
|
|
15
|
-
return http.get("/mms/data-tables/table-columns/findAttributeMap", param);
|
|
15
|
+
return http.get(window["$vueApp"].config.globalProperties.baseAPI + "/mms/data-tables/table-columns/findAttributeMap", param);
|
|
16
16
|
}
|
|
17
17
|
function querySublist(systemCode, systemVersion, publishVersion) {
|
|
18
18
|
const param = {
|
|
@@ -20,7 +20,7 @@ function querySublist(systemCode, systemVersion, publishVersion) {
|
|
|
20
20
|
formVersion: systemVersion,
|
|
21
21
|
publishVersion
|
|
22
22
|
};
|
|
23
|
-
return http.get("/mms/list-view-children/forms", param);
|
|
23
|
+
return http.get(window["$vueApp"].config.globalProperties.baseAPI + "/mms/list-view-children/forms", param);
|
|
24
24
|
}
|
|
25
25
|
function setTableRuntimesFromConfigure(tableConfigure, pageDesign) {
|
|
26
26
|
const tableConfigureStr = JSON.stringify(tableConfigure);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, onMounted, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createElementBlock, Fragment, renderList, unref, createTextVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { getFormComponentOptions } from "../../../../utils/assemblys-config.js";
|
|
3
3
|
import "../../../../../../stores/page-store.js";
|
|
4
|
-
import "../../form/common/dimension-input.
|
|
4
|
+
import "../../form/common/dimension-input.vue.js";
|
|
5
5
|
import _sfc_main$2 from "../../common/common-icon-bind.vue.js";
|
|
6
6
|
import http from "agilebuilder-ui/src/utils/request";
|
|
7
7
|
import _sfc_main$1 from "../../common/common-function-code.vue.js";
|
|
@@ -40,7 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
code: "DC_TEMPLATE_MANAGEMENT"
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
http.post(`/dc/template-management/list/${props.pageDesign.systemCode}`, data).then((res) => {
|
|
43
|
+
http.post(window["$vueApp"].config.globalProperties.baseAPI + `/dc/template-management/list/${props.pageDesign.systemCode}`, data).then((res) => {
|
|
44
44
|
templateList.value = res.data;
|
|
45
45
|
});
|
|
46
46
|
}
|
|
@@ -138,7 +138,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
138
138
|
class: "amb-design-attr-item"
|
|
139
139
|
}, {
|
|
140
140
|
default: withCtx(() => [
|
|
141
|
-
|
|
141
|
+
(openBlock(), createBlock(_sfc_main$1, {
|
|
142
|
+
key: __props.configure.uuid,
|
|
143
|
+
configure: __props.configure
|
|
144
|
+
}, null, 8, ["configure"]))
|
|
142
145
|
]),
|
|
143
146
|
_: 1
|
|
144
147
|
}),
|
|
@@ -238,7 +241,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
238
241
|
createVNode(_component_el_select, {
|
|
239
242
|
modelValue: __props.configure.props.base.type,
|
|
240
243
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => __props.configure.props.base.type = $event),
|
|
241
|
-
class: "ml-4"
|
|
244
|
+
class: "ml-4",
|
|
245
|
+
clearable: ""
|
|
242
246
|
}, {
|
|
243
247
|
default: withCtx(() => [
|
|
244
248
|
createVNode(_component_el_option, {
|
|
@@ -272,11 +276,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
272
276
|
class: "amb-design-attr-item"
|
|
273
277
|
}, {
|
|
274
278
|
default: withCtx(() => [
|
|
275
|
-
|
|
279
|
+
(openBlock(), createBlock(_sfc_main$2, {
|
|
280
|
+
key: __props.configure.uuid,
|
|
276
281
|
iconType: __props.configure.props.base.iconType,
|
|
277
282
|
iconValue: __props.configure.props.base.iconValue,
|
|
278
283
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = (iconType, iconValue) => afterBindIcon(iconType, iconValue))
|
|
279
|
-
}, null, 8, ["iconType", "iconValue"])
|
|
284
|
+
}, null, 8, ["iconType", "iconValue"]))
|
|
280
285
|
]),
|
|
281
286
|
_: 1
|
|
282
287
|
}),
|
|
@@ -502,10 +507,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
502
507
|
}, {
|
|
503
508
|
default: withCtx(() => [
|
|
504
509
|
createElementVNode("div", _hoisted_3, [
|
|
505
|
-
|
|
510
|
+
(openBlock(), createBlock(_sfc_main$3, {
|
|
511
|
+
key: __props.configure.uuid,
|
|
506
512
|
configure: __props.configure,
|
|
507
513
|
pageDesign: __props.pageDesign
|
|
508
|
-
}, null, 8, ["configure", "pageDesign"])
|
|
514
|
+
}, null, 8, ["configure", "pageDesign"]))
|
|
509
515
|
])
|
|
510
516
|
]),
|
|
511
517
|
_: 1
|
package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-design.vue2.js
CHANGED
|
@@ -2,6 +2,7 @@ import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock,
|
|
|
2
2
|
import _sfc_main$1 from "../../object-design.vue.js";
|
|
3
3
|
import { caculateDetailComponentStyle, caculateComponentProps } from "../../../../utils/form-design-util.js";
|
|
4
4
|
import { useDraggable } from "vue-draggable-plus";
|
|
5
|
+
import { ElMessageBox } from "element-plus";
|
|
5
6
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
7
|
__name: "buttongroup-design",
|
|
7
8
|
props: {
|
|
@@ -68,15 +69,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
69
|
}
|
|
69
70
|
function deleteItem(sourceItem) {
|
|
70
71
|
let items = btnItems;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
ElMessageBox.confirm(
|
|
73
|
+
"还有子元素,确定要删除吗?",
|
|
74
|
+
"删除",
|
|
75
|
+
{
|
|
76
|
+
confirmButtonText: "确认",
|
|
77
|
+
cancelButtonText: "取消",
|
|
78
|
+
type: "warning"
|
|
74
79
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
).then(() => {
|
|
81
|
+
const index = items.indexOf(sourceItem);
|
|
82
|
+
if (index > -1) {
|
|
83
|
+
items.splice(index, 1);
|
|
84
|
+
}
|
|
85
|
+
}).catch((err) => {
|
|
86
|
+
console.log(err);
|
|
87
|
+
});
|
|
80
88
|
}
|
|
81
89
|
return (_ctx, _cache) => {
|
|
82
90
|
const _component_el_button_group = resolveComponent("el-button-group");
|
|
@@ -84,7 +84,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
84
|
class: "amb-design-attr-item"
|
|
85
85
|
}, {
|
|
86
86
|
default: withCtx(() => [
|
|
87
|
-
|
|
87
|
+
(openBlock(), createBlock(_sfc_main$1, {
|
|
88
|
+
key: __props.configure.uuid,
|
|
89
|
+
configure: __props.configure
|
|
90
|
+
}, null, 8, ["configure"]))
|
|
88
91
|
]),
|
|
89
92
|
_: 1
|
|
90
93
|
}),
|
package/dist/es/components/design/views/assemblys/chart/column-line/column-line-design.vue2.js
CHANGED
|
@@ -10,6 +10,7 @@ import { CanvasRenderer } from "echarts/renderers";
|
|
|
10
10
|
import { LineChart, BarChart } from "echarts/charts";
|
|
11
11
|
import { GridComponent, LegendComponent, TitleComponent, TooltipComponent, ToolboxComponent, DataZoomComponent } from "echarts/components";
|
|
12
12
|
import VChart from "vue-echarts";
|
|
13
|
+
import "element-plus";
|
|
13
14
|
const _hoisted_1 = { style: { "position": "absolute", "top": "0px", "right": "60px", "text-align": "center" } };
|
|
14
15
|
const _hoisted_2 = ["onClick"];
|
|
15
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -25,13 +25,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
25
|
setup(__props, { emit: __emit }) {
|
|
26
26
|
const emits = __emit;
|
|
27
27
|
const props = __props;
|
|
28
|
-
const typeOptions = [
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
const typeOptions = [
|
|
29
|
+
{
|
|
30
|
+
value: "ElementUI",
|
|
31
|
+
label: "ElementUI"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
value: "custom",
|
|
35
|
+
label: "自定义"
|
|
36
|
+
}
|
|
37
|
+
];
|
|
35
38
|
ref(false);
|
|
36
39
|
const cachePage = {};
|
|
37
40
|
const pagination = ref({});
|
|
@@ -103,13 +106,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
103
106
|
pageNo: pagination.value && pagination.value.pageNo ? pagination.value.pageNo : 1
|
|
104
107
|
};
|
|
105
108
|
searchValue.value;
|
|
106
|
-
http.post("/component/
|
|
109
|
+
http.post(window["$vueApp"].config.globalProperties.baseAPI + "/component/general-icon/query", param).then((result) => {
|
|
107
110
|
const data = result.data ? result.data : [];
|
|
108
111
|
const tempOptions = [];
|
|
109
112
|
for (let result2 of data) {
|
|
110
113
|
tempOptions.push({
|
|
111
|
-
value: result2.
|
|
112
|
-
label: result2.
|
|
114
|
+
value: result2.iconName,
|
|
115
|
+
label: result2.iconName
|
|
113
116
|
});
|
|
114
117
|
}
|
|
115
118
|
selectOptions.value.customOptions = tempOptions;
|
|
@@ -211,14 +214,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
211
214
|
}
|
|
212
215
|
iconType.value = "custom";
|
|
213
216
|
thisIconValue.value = searchValue.value;
|
|
217
|
+
const addValue = searchValue.value;
|
|
214
218
|
searchValue.value = "";
|
|
215
219
|
emits("update:modelValue", iconType.value, thisIconValue.value);
|
|
216
220
|
popoverRef.value.hide();
|
|
217
221
|
if (!isExist) {
|
|
218
222
|
const iconInfo = {
|
|
219
|
-
|
|
223
|
+
iconName: addValue
|
|
220
224
|
};
|
|
221
|
-
http.post("/
|
|
225
|
+
http.post(window["$vueApp"].config.globalProperties.baseAPI + "/bs/general-icon/get-or-create", iconInfo).then((result) => {
|
|
222
226
|
if (iconType.value == "custom") {
|
|
223
227
|
queryCustomIcons();
|
|
224
228
|
}
|
|
@@ -62,7 +62,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
function queryAllSystems() {
|
|
65
|
-
http.get("/component/super-charts/findAllSystem").then((res) => {
|
|
65
|
+
http.get(window["$vueApp"].config.globalProperties.baseAPI + "/component/super-charts/findAllSystem").then((res) => {
|
|
66
66
|
const datas = res;
|
|
67
67
|
const systemCodes = [];
|
|
68
68
|
const tempMap = {};
|
|
@@ -144,7 +144,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
144
144
|
}
|
|
145
145
|
let systemId = searchModel.systemId;
|
|
146
146
|
searchModel.tableType ? searchModel.tableType : 0;
|
|
147
|
-
const url = "/mms/app-pages/listBySystem/" + (systemId ? systemId : 0);
|
|
147
|
+
const url = window["$vueApp"].config.globalProperties.baseAPI + "/mms/app-pages/listBySystem/" + (systemId ? systemId : 0);
|
|
148
148
|
console.log("searchPages", url);
|
|
149
149
|
http.post(url, param).then((res) => {
|
|
150
150
|
tableDatas.value = res.data;
|