super-page-designer 2.0.51 → 2.0.54
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/components/design/utils/assemblys-config.js +67 -1
- package/dist/es/components/design/utils/data-table-util.js +3 -3
- package/dist/es/components/design/utils/form-design-util.d.ts +7 -0
- package/dist/es/components/design/utils/form-design-util.js +9 -0
- package/dist/es/components/design/utils/page-design-util.js +1 -4
- package/dist/es/components/design/utils/page-table-util.d.ts +7 -0
- package/dist/es/components/design/utils/page-table-util.js +50 -7
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-advanced.vue.js +242 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-advanced.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +571 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-event.vue.js +33 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-event.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-style.vue.js +50 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-style.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr.vue.js +5 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr.vue2.js +80 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr.vue3.js +1 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue.js +4 -0
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-design.vue2.js +91 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.d.ts +9 -0
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue2.js +1 -692
- package/dist/es/components/design/views/assemblys/common/common-variable-bind.vue3.js +702 -1
- package/dist/es/components/design/views/assemblys/container/card/card-design.vue2.js +23 -4
- package/dist/es/components/design/views/assemblys/container/collapse/collapse-design.vue2.js +23 -16
- package/dist/es/components/design/views/assemblys/container/container/container-design.vue2.js +14 -13
- package/dist/es/components/design/views/assemblys/container/flex/flex-design.vue2.js +10 -5
- package/dist/es/components/design/views/assemblys/container/form/form-design.vue2.js +10 -5
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-design.vue2.js +22 -16
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +10 -5
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +1 -2
- package/dist/es/components/design/views/assemblys/data/component/configuration-value.vue.js +1 -1
- 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 +4 -3
- package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue.js +188 -0
- package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/data/component/formatting.vue.js +21 -59
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/component/table-children-column.vue.js +3 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/data/table/table-attr.vue2.js +0 -1
- 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 +16 -5
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +70 -97
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +12 -5
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +27 -30
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr.vue2.js +11 -1
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +92 -63
- 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 +20 -30
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue.js +1 -152
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +152 -1
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +1 -217
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue3.js +217 -1
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +102 -8
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue.js +176 -0
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue2.js +4 -0
- package/dist/es/components/design/views/assemblys/form/common/verification.vue.js +17 -28
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +14 -3
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-autoset.vue.js +6 -1
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +26 -11
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +17 -3
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr.vue2.js +3 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +0 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/label/label-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +29 -14
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +41 -3
- package/dist/es/components/design/views/assemblys/form/link/link-attr.vue2.js +2 -1
- package/dist/es/components/design/views/assemblys/form/link/link-design.vue2.js +20 -14
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +27 -30
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr.vue2.js +11 -1
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +26 -29
- package/dist/es/components/design/views/assemblys/form/select/select-attr.vue2.js +12 -1
- package/dist/es/components/design/views/assemblys/form/select/select-design.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +14 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +28 -2
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr.vue2.js +4 -1
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +27 -29
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr.vue2.js +11 -1
- package/dist/es/components/design/views/assemblys/object-design.vue.js +0 -1
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +57 -18
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +49 -24
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +20 -7
- package/dist/es/components/design/views/assemblys/page/page-attr.vue.js +5 -4
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +38 -6
- package/dist/es/components/design/views/design/page-design.vue.js +4 -3
- package/dist/es/components/design/views/design/view/attr-container.vue.js +4 -2
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +0 -25
- package/dist/es/stores/table-store.d.ts +10 -0
- package/dist/es/stores/table-store.js +20 -0
- package/dist/es/style.css +661 -42
- package/package.json +4 -4
|
@@ -1532,6 +1532,51 @@ const assemblyGroups = [{
|
|
|
1532
1532
|
attrComponent: defineAsyncComponent(() => {
|
|
1533
1533
|
return import("../views/assemblys/button/dropdown/dropdown-attr.vue.js");
|
|
1534
1534
|
})
|
|
1535
|
+
}, {
|
|
1536
|
+
name: "export-pdf",
|
|
1537
|
+
label: "导出PDF",
|
|
1538
|
+
icon: buttonGroup,
|
|
1539
|
+
//设计时的样式
|
|
1540
|
+
design: {
|
|
1541
|
+
style: {
|
|
1542
|
+
"display": "inline-block"
|
|
1543
|
+
}
|
|
1544
|
+
},
|
|
1545
|
+
props: {
|
|
1546
|
+
base: {
|
|
1547
|
+
title: "导出PDF",
|
|
1548
|
+
type: "primary"
|
|
1549
|
+
},
|
|
1550
|
+
dropdown: {},
|
|
1551
|
+
dataOrigin: {
|
|
1552
|
+
optionValueSetType: "",
|
|
1553
|
+
staticState: [],
|
|
1554
|
+
json: `[
|
|
1555
|
+
{"label":"1"},
|
|
1556
|
+
{"label":"2"},
|
|
1557
|
+
{"label":"3"}
|
|
1558
|
+
]`
|
|
1559
|
+
},
|
|
1560
|
+
verification: [],
|
|
1561
|
+
scan: {},
|
|
1562
|
+
preSuffix: {},
|
|
1563
|
+
prefix: {},
|
|
1564
|
+
size: {},
|
|
1565
|
+
title: {}
|
|
1566
|
+
},
|
|
1567
|
+
style: { titleFont: {}, background: {}, margin: {}, padding: {}, border: {}, shadow: {} },
|
|
1568
|
+
events: [
|
|
1569
|
+
{ name: "show", label: "显示", tip: "显示" },
|
|
1570
|
+
{ name: "hidden", label: "隐藏", tip: "隐藏" },
|
|
1571
|
+
{ name: "beforeClick", label: "点击前事件", tip: "点击前事件" },
|
|
1572
|
+
{ name: "click", isEdit: false, label: "点击事件", tip: "点击事件", title: "导出PDF", eventName: "exportPDF", isStandard: true }
|
|
1573
|
+
],
|
|
1574
|
+
designComponent: defineAsyncComponent(() => {
|
|
1575
|
+
return import("../views/assemblys/button/export-pdf/exportpdf-design.vue.js");
|
|
1576
|
+
}),
|
|
1577
|
+
attrComponent: defineAsyncComponent(() => {
|
|
1578
|
+
return import("../views/assemblys/button/export-pdf/exportpdf-attr.vue.js");
|
|
1579
|
+
})
|
|
1535
1580
|
}, {
|
|
1536
1581
|
name: "print-label",
|
|
1537
1582
|
label: "打印标签",
|
|
@@ -2112,7 +2157,7 @@ const assemblyGroups = [{
|
|
|
2112
2157
|
}
|
|
2113
2158
|
],
|
|
2114
2159
|
props: {
|
|
2115
|
-
base: {},
|
|
2160
|
+
base: { showActivityName: true },
|
|
2116
2161
|
verification: [],
|
|
2117
2162
|
scan: {},
|
|
2118
2163
|
preSuffix: {},
|
|
@@ -2612,6 +2657,26 @@ function getDesignComponentByName(name) {
|
|
|
2612
2657
|
}
|
|
2613
2658
|
return null;
|
|
2614
2659
|
}
|
|
2660
|
+
function getInitialInformationByName(name) {
|
|
2661
|
+
if (!name) {
|
|
2662
|
+
return null;
|
|
2663
|
+
}
|
|
2664
|
+
let initUse = {};
|
|
2665
|
+
for (let i = 0; i < assemblyGroups.length; i++) {
|
|
2666
|
+
let items = assemblyGroups[i].items;
|
|
2667
|
+
for (let j = 0; j < items.length; j++) {
|
|
2668
|
+
let item = items[j];
|
|
2669
|
+
if (item.name == name) {
|
|
2670
|
+
initUse.props = item.props;
|
|
2671
|
+
initUse.style = item.style;
|
|
2672
|
+
initUse.events = item.events;
|
|
2673
|
+
initUse.label = item.label;
|
|
2674
|
+
return initUse;
|
|
2675
|
+
}
|
|
2676
|
+
}
|
|
2677
|
+
}
|
|
2678
|
+
return null;
|
|
2679
|
+
}
|
|
2615
2680
|
function getDesignEvents(name) {
|
|
2616
2681
|
if (!name)
|
|
2617
2682
|
return [];
|
|
@@ -2692,6 +2757,7 @@ export {
|
|
|
2692
2757
|
getDesignConfByName,
|
|
2693
2758
|
getDesignEvents,
|
|
2694
2759
|
getFormComponentOptions,
|
|
2760
|
+
getInitialInformationByName,
|
|
2695
2761
|
getPageConf,
|
|
2696
2762
|
getTableColumnConf,
|
|
2697
2763
|
getTableIndexConf,
|
|
@@ -49,7 +49,7 @@ function formatConditionList(conditionList, attributeMap, fieldMap) {
|
|
|
49
49
|
}
|
|
50
50
|
function getOperators(item) {
|
|
51
51
|
if (item) {
|
|
52
|
-
if (item.dataType === "
|
|
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.dataType === "
|
|
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.dataType === "
|
|
122
|
+
} else if (item.dataType === "TEXT" || item.dataType === "STRING") {
|
|
123
123
|
return [
|
|
124
124
|
{
|
|
125
125
|
name: "EQ",
|
|
@@ -176,3 +176,10 @@ export declare function watchMaxOrMinValidate(configure: any, type: any, value:
|
|
|
176
176
|
* @param configure
|
|
177
177
|
*/
|
|
178
178
|
export declare function deleteRule(pageDesign: any, configure: any): void;
|
|
179
|
+
/**
|
|
180
|
+
* @description: 切换组件类型重置配置数据
|
|
181
|
+
* @Date: 2024-07-25 11:04:13
|
|
182
|
+
* @param {*}
|
|
183
|
+
* @return {*}
|
|
184
|
+
*/
|
|
185
|
+
export declare function resetConfigIndo(configure: object, val: string): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { usePageContextStore } from "../../../stores/page-store.js";
|
|
2
2
|
import { getComponentOptionConfigs } from "super-page-runtime";
|
|
3
|
+
import { getInitialInformationByName } from "./assemblys-config.js";
|
|
3
4
|
function caculateDetailComponentStyle(configure, designStyle, designClass, designHeaderStyle) {
|
|
4
5
|
const tempStyle = {};
|
|
5
6
|
const tempHeaderStyle = {};
|
|
@@ -455,12 +456,20 @@ function packageStringRuleByDataType(fieldInfo, type, rule) {
|
|
|
455
456
|
rule.trigger = "blur";
|
|
456
457
|
}
|
|
457
458
|
}
|
|
459
|
+
function resetConfigIndo(configure, val) {
|
|
460
|
+
let moduleInfo = getInitialInformationByName(val);
|
|
461
|
+
configure.props = moduleInfo.props;
|
|
462
|
+
configure.style = moduleInfo.style;
|
|
463
|
+
configure.events = moduleInfo.events;
|
|
464
|
+
configure.label = moduleInfo.label;
|
|
465
|
+
}
|
|
458
466
|
export {
|
|
459
467
|
caculateComponentProps,
|
|
460
468
|
caculateDetailComponentStyle,
|
|
461
469
|
columnCustomTittleClass,
|
|
462
470
|
columnTittleStyle,
|
|
463
471
|
removComponentOptionConfigs,
|
|
472
|
+
resetConfigIndo,
|
|
464
473
|
watchMaxOrMinValidate,
|
|
465
474
|
watchPatternValidate,
|
|
466
475
|
watchRequiredValidate,
|
|
@@ -6,7 +6,7 @@ function queryWorkflowsRequest(tableName, systemCode, publishVersion) {
|
|
|
6
6
|
tableName
|
|
7
7
|
};
|
|
8
8
|
return http.post(
|
|
9
|
-
window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/workflow-
|
|
9
|
+
window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/workflow-definition-codes",
|
|
10
10
|
params
|
|
11
11
|
);
|
|
12
12
|
}
|
|
@@ -27,9 +27,6 @@ function getHighestVersionDefinition(wfDefinitionCode, defVersion, publishVersio
|
|
|
27
27
|
wfDefinitionCode,
|
|
28
28
|
publishVersion
|
|
29
29
|
};
|
|
30
|
-
if (defVersion !== void 0) {
|
|
31
|
-
params["defVersion"] = defVersion;
|
|
32
|
-
}
|
|
33
30
|
return http.post(
|
|
34
31
|
window["$vueApp"].config.globalProperties.baseAPI + "/component/super-page-design/get-workflow-definition",
|
|
35
32
|
params
|
|
@@ -28,3 +28,10 @@ export declare function querySublist(systemCode: string, systemVersion: number,
|
|
|
28
28
|
* 设置tableRuntimes
|
|
29
29
|
*/
|
|
30
30
|
export declare function setTableRuntimesFromConfigure(tableConfigure: Component, pageDesign: PageDesign): void;
|
|
31
|
+
/**
|
|
32
|
+
* @description: table中重置组件属性
|
|
33
|
+
* @Date: 2024-07-25 15:24:38
|
|
34
|
+
* @param {*}
|
|
35
|
+
* @return {*}
|
|
36
|
+
*/
|
|
37
|
+
export declare function tableResetConfigIndo(configure: object, moduleValue: any): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import http from "agilebuilder-ui/src/utils/request";
|
|
2
2
|
import { getFormPropName } from "./page-helper-util.js";
|
|
3
|
+
import { getDesignEvents } from "./assemblys-config.js";
|
|
3
4
|
function queryTableFields(systemCode, systemVersion, tableName) {
|
|
4
5
|
let url = window["$vueApp"].config.globalProperties.baseAPI + "/mms/data-tables/table-columns";
|
|
5
6
|
url += "?systemCode=" + (systemCode ? systemCode : "");
|
|
@@ -110,6 +111,7 @@ function getListView(configureCopy, pageDesign, tableConfigureStr) {
|
|
|
110
111
|
// groupHeader groupHeaders: any
|
|
111
112
|
};
|
|
112
113
|
listView.items = getListColumns(configureCopy);
|
|
114
|
+
console.log(listView.items, "listView.lListColumns");
|
|
113
115
|
listView.groupHeaders = getGroupHeaders(configureCopy);
|
|
114
116
|
return listView;
|
|
115
117
|
}
|
|
@@ -243,6 +245,15 @@ function getValueSetOptions(item) {
|
|
|
243
245
|
result.min = configureProps.base.min || configureProps.base.min === 0 ? configureProps.base.min : null;
|
|
244
246
|
result.max = configureProps.base.max || configureProps.base.max === 0 ? configureProps.base.max : null;
|
|
245
247
|
return JSON.stringify(result);
|
|
248
|
+
} else if (item.name === "switch") {
|
|
249
|
+
return JSON.stringify({
|
|
250
|
+
activeText: configureProps.base.activeText,
|
|
251
|
+
activeValue: configureProps.base.activeValue,
|
|
252
|
+
inactiveText: configureProps.base.inactiveText,
|
|
253
|
+
inactiveValue: configureProps.base.inactiveValue,
|
|
254
|
+
offColor: configureProps.base.offColor,
|
|
255
|
+
onColor: configureProps.base.onColor
|
|
256
|
+
});
|
|
246
257
|
} else if (configureProps.dataOrigin && configureProps.dataOrigin.optionValueSetType) {
|
|
247
258
|
const optionType = configureProps.dataOrigin.optionValueSetType;
|
|
248
259
|
if (optionType === "dynamicData") {
|
|
@@ -383,13 +394,22 @@ function getControlConfig(item) {
|
|
|
383
394
|
return null;
|
|
384
395
|
}
|
|
385
396
|
function getPropsFormat(item) {
|
|
386
|
-
if (item.props.format
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
397
|
+
if (!item.props.format) {
|
|
398
|
+
return null;
|
|
399
|
+
} else {
|
|
400
|
+
if (item.props.format.type === "hyperlinks") {
|
|
401
|
+
const format = {};
|
|
402
|
+
format.type = item.props.format.type;
|
|
403
|
+
format.jumpPageJson = JSON.stringify(item.props.linkPage);
|
|
404
|
+
return JSON.stringify(format);
|
|
405
|
+
} else if (item.props.format.type === "icon") {
|
|
406
|
+
const format = {};
|
|
407
|
+
format.type = item.props.format.type;
|
|
408
|
+
format.formatConfigJson = JSON.stringify(item.props.format);
|
|
409
|
+
return JSON.stringify(format);
|
|
410
|
+
}
|
|
411
|
+
return JSON.stringify(item.props.format);
|
|
391
412
|
}
|
|
392
|
-
return JSON.stringify(item.props.format);
|
|
393
413
|
}
|
|
394
414
|
function getNameFromProp(prop) {
|
|
395
415
|
if (prop) {
|
|
@@ -403,9 +423,32 @@ function getNameFromProp(prop) {
|
|
|
403
423
|
function formatDynamicColumnData(item, temp) {
|
|
404
424
|
temp.dynamicColumnJson = JSON.stringify(item.props.dataOrigin.dynamicColumnJson);
|
|
405
425
|
}
|
|
426
|
+
function tableResetConfigIndo(configure, moduleValue) {
|
|
427
|
+
let newColumnInfo = {
|
|
428
|
+
uuid: configure.uuid,
|
|
429
|
+
base: configure.props.base,
|
|
430
|
+
dataOrigin: configure.props.dataOrigin,
|
|
431
|
+
dynamicColumnData: configure.props.dynamicColumnData,
|
|
432
|
+
editLine: configure.props.editLine,
|
|
433
|
+
format: configure.props.format,
|
|
434
|
+
verification: configure.props.verification,
|
|
435
|
+
definition: configure.props.definition
|
|
436
|
+
};
|
|
437
|
+
configure.props = {};
|
|
438
|
+
configure.uuid = newColumnInfo.uuid;
|
|
439
|
+
configure.props.base = newColumnInfo.base;
|
|
440
|
+
configure.props.dataOrigin = newColumnInfo.dataOrigin;
|
|
441
|
+
configure.props.dynamicColumnData = newColumnInfo.dynamicColumnData;
|
|
442
|
+
configure.props.editLine = newColumnInfo.editLine;
|
|
443
|
+
configure.props.format = newColumnInfo.format;
|
|
444
|
+
configure.props.verification = newColumnInfo.verification;
|
|
445
|
+
configure.props.definition = newColumnInfo.definition;
|
|
446
|
+
configure.events = getDesignEvents(moduleValue);
|
|
447
|
+
}
|
|
406
448
|
export {
|
|
407
449
|
querySublist,
|
|
408
450
|
queryTableFields,
|
|
409
451
|
queryTableFieldsOrMap,
|
|
410
|
-
setTableRuntimesFromConfigure
|
|
452
|
+
setTableRuntimesFromConfigure,
|
|
453
|
+
tableResetConfigIndo
|
|
411
454
|
};
|
package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-advanced.vue.js
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { defineComponent, ref, resolveComponent, openBlock, createBlock, withCtx, createVNode, createElementVNode, createTextVNode, createCommentVNode } from "vue";
|
|
2
|
+
import _sfc_main$2 from "../component/condition-dialog.vue.js";
|
|
3
|
+
import _sfc_main$3 from "../component/set-dialog.vue.js";
|
|
4
|
+
import _sfc_main$4 from "../component/combination.vue.js";
|
|
5
|
+
import JournalSetDialog from "../component/journal-set-dialog.vue.js";
|
|
6
|
+
import _sfc_main$1 from "../../common/common-advanced-basic-showcondition.vue.js";
|
|
7
|
+
const _hoisted_1 = { style: { "padding": "8px 0px 0px 0px" } };
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "exportpdf-attr-advanced",
|
|
10
|
+
props: {
|
|
11
|
+
configure: Object,
|
|
12
|
+
default: () => ({ props: {} })
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const openCollapseItems = ref(["base"]);
|
|
17
|
+
const attributeMap = ref([
|
|
18
|
+
{
|
|
19
|
+
dbColumnName: "FIRST_TASK_ID",
|
|
20
|
+
label: "该流程的第一个任务的id",
|
|
21
|
+
type: "TEXT",
|
|
22
|
+
value: "FIRST_TASK_ID"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
dbColumnName: "ID",
|
|
26
|
+
label: "id",
|
|
27
|
+
type: "LONG",
|
|
28
|
+
value: "ID"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
dbColumnName: "AUDIT_REPORT_NO",
|
|
32
|
+
label: "审核报告编号",
|
|
33
|
+
type: "TEXT",
|
|
34
|
+
value: "AUDIT_REPORT_NO"
|
|
35
|
+
}
|
|
36
|
+
]);
|
|
37
|
+
const fieldMap = ref({
|
|
38
|
+
FIRST_TASK_ID: {
|
|
39
|
+
dbColumnName: "FIRST_TASK_ID",
|
|
40
|
+
label: "该流程的第一个任务的id",
|
|
41
|
+
type: "TEXT",
|
|
42
|
+
value: "FIRST_TASK_ID"
|
|
43
|
+
},
|
|
44
|
+
ID: {
|
|
45
|
+
dbColumnName: "ID",
|
|
46
|
+
label: "id",
|
|
47
|
+
type: "LONG",
|
|
48
|
+
value: "ID"
|
|
49
|
+
},
|
|
50
|
+
AUDIT_REPORT_NO: {
|
|
51
|
+
dbColumnName: "AUDIT_REPORT_NO",
|
|
52
|
+
label: "审核报告编号",
|
|
53
|
+
type: "TEXT",
|
|
54
|
+
value: "AUDIT_REPORT_NO"
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const journalSetVisible = ref(false);
|
|
58
|
+
function closeJournalSet() {
|
|
59
|
+
journalSetVisible.value = false;
|
|
60
|
+
}
|
|
61
|
+
function saveJournalSet(value) {
|
|
62
|
+
props.configure.props.base.logSetting = value;
|
|
63
|
+
closeJournalSet();
|
|
64
|
+
}
|
|
65
|
+
const conditionVisible = ref(false);
|
|
66
|
+
function closeConditionDialog() {
|
|
67
|
+
conditionVisible.value = false;
|
|
68
|
+
}
|
|
69
|
+
const setVisible = ref(false);
|
|
70
|
+
function closeSetDialog() {
|
|
71
|
+
setVisible.value = false;
|
|
72
|
+
}
|
|
73
|
+
const combinationVisible = ref(false);
|
|
74
|
+
function closeCombinationDialog() {
|
|
75
|
+
combinationVisible.value = false;
|
|
76
|
+
}
|
|
77
|
+
function saveCondition(table) {
|
|
78
|
+
props.configure.props.base.showCondition = JSON.stringify(table);
|
|
79
|
+
}
|
|
80
|
+
return (_ctx, _cache) => {
|
|
81
|
+
const _component_el_option = resolveComponent("el-option");
|
|
82
|
+
const _component_el_select = resolveComponent("el-select");
|
|
83
|
+
const _component_el_form_item = resolveComponent("el-form-item");
|
|
84
|
+
const _component_el_button = resolveComponent("el-button");
|
|
85
|
+
const _component_el_collapse_item = resolveComponent("el-collapse-item");
|
|
86
|
+
const _component_el_collapse = resolveComponent("el-collapse");
|
|
87
|
+
const _component_el_form = resolveComponent("el-form");
|
|
88
|
+
return openBlock(), createBlock(_component_el_form, {
|
|
89
|
+
"label-width": "80px",
|
|
90
|
+
size: "small"
|
|
91
|
+
}, {
|
|
92
|
+
default: withCtx(() => [
|
|
93
|
+
createVNode(_component_el_collapse, {
|
|
94
|
+
modelValue: openCollapseItems.value,
|
|
95
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => openCollapseItems.value = $event),
|
|
96
|
+
style: { "margin-top": "6px" }
|
|
97
|
+
}, {
|
|
98
|
+
default: withCtx(() => [
|
|
99
|
+
createVNode(_component_el_collapse_item, {
|
|
100
|
+
title: "高级设置",
|
|
101
|
+
name: "base",
|
|
102
|
+
class: "amb-design-attr-group-header"
|
|
103
|
+
}, {
|
|
104
|
+
default: withCtx(() => [
|
|
105
|
+
createElementVNode("div", _hoisted_1, [
|
|
106
|
+
createVNode(_component_el_form_item, {
|
|
107
|
+
label: "成功后",
|
|
108
|
+
class: "amb-design-attr-item"
|
|
109
|
+
}, {
|
|
110
|
+
default: withCtx(() => [
|
|
111
|
+
createVNode(_component_el_select, {
|
|
112
|
+
modelValue: __props.configure.props.base.successOperation,
|
|
113
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.configure.props.base.successOperation = $event),
|
|
114
|
+
class: "ml-4"
|
|
115
|
+
}, {
|
|
116
|
+
default: withCtx(() => [
|
|
117
|
+
createVNode(_component_el_option, {
|
|
118
|
+
label: "无操作",
|
|
119
|
+
value: "noOperation"
|
|
120
|
+
}),
|
|
121
|
+
createVNode(_component_el_option, {
|
|
122
|
+
label: "刷新",
|
|
123
|
+
value: "refresh"
|
|
124
|
+
}),
|
|
125
|
+
createVNode(_component_el_option, {
|
|
126
|
+
label: "关闭窗口",
|
|
127
|
+
value: "closeWindow"
|
|
128
|
+
}),
|
|
129
|
+
createVNode(_component_el_option, {
|
|
130
|
+
label: "关闭窗口并刷新列表",
|
|
131
|
+
value: "closeWindowAndRefresh"
|
|
132
|
+
})
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
}, 8, ["modelValue"])
|
|
136
|
+
]),
|
|
137
|
+
_: 1
|
|
138
|
+
}),
|
|
139
|
+
createVNode(_component_el_form_item, {
|
|
140
|
+
label: "执行条件",
|
|
141
|
+
class: "amb-design-attr-item"
|
|
142
|
+
}, {
|
|
143
|
+
default: withCtx(() => [
|
|
144
|
+
createVNode(_component_el_button, {
|
|
145
|
+
type: "primary",
|
|
146
|
+
onClick: _cache[1] || (_cache[1] = ($event) => conditionVisible.value = true)
|
|
147
|
+
}, {
|
|
148
|
+
default: withCtx(() => [
|
|
149
|
+
createTextVNode("编辑")
|
|
150
|
+
]),
|
|
151
|
+
_: 1
|
|
152
|
+
})
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
}),
|
|
156
|
+
createVNode(_component_el_form_item, {
|
|
157
|
+
label: "启用条件",
|
|
158
|
+
class: "amb-design-attr-item"
|
|
159
|
+
}, {
|
|
160
|
+
default: withCtx(() => [
|
|
161
|
+
(openBlock(), createBlock(_sfc_main$1, {
|
|
162
|
+
key: __props.configure.uuid + "_edit",
|
|
163
|
+
configure: __props.configure,
|
|
164
|
+
type: "editConditions"
|
|
165
|
+
}, null, 8, ["configure"]))
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
}),
|
|
169
|
+
createVNode(_component_el_form_item, {
|
|
170
|
+
label: "显示条件",
|
|
171
|
+
class: "amb-design-attr-item"
|
|
172
|
+
}, {
|
|
173
|
+
default: withCtx(() => [
|
|
174
|
+
createVNode(_component_el_button, {
|
|
175
|
+
type: "primary",
|
|
176
|
+
onClick: _cache[2] || (_cache[2] = ($event) => combinationVisible.value = true)
|
|
177
|
+
}, {
|
|
178
|
+
default: withCtx(() => [
|
|
179
|
+
createTextVNode("编辑")
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
})
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
185
|
+
}),
|
|
186
|
+
createVNode(_component_el_form_item, {
|
|
187
|
+
label: "日志设置",
|
|
188
|
+
class: "amb-design-attr-item"
|
|
189
|
+
}, {
|
|
190
|
+
default: withCtx(() => [
|
|
191
|
+
createVNode(_component_el_button, {
|
|
192
|
+
type: "primary",
|
|
193
|
+
onClick: _cache[3] || (_cache[3] = ($event) => journalSetVisible.value = true)
|
|
194
|
+
}, {
|
|
195
|
+
default: withCtx(() => [
|
|
196
|
+
createTextVNode("编辑")
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
})
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
})
|
|
203
|
+
])
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
}),
|
|
207
|
+
conditionVisible.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
208
|
+
key: 0,
|
|
209
|
+
configure: __props.configure,
|
|
210
|
+
onClose: closeConditionDialog
|
|
211
|
+
}, null, 8, ["configure"])) : createCommentVNode("", true),
|
|
212
|
+
setVisible.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
213
|
+
key: 1,
|
|
214
|
+
configure: __props.configure,
|
|
215
|
+
onClose: closeSetDialog
|
|
216
|
+
}, null, 8, ["configure"])) : createCommentVNode("", true),
|
|
217
|
+
combinationVisible.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
218
|
+
key: 2,
|
|
219
|
+
conditionList: __props.configure.props.base.showCondition,
|
|
220
|
+
fieldNameList: attributeMap.value,
|
|
221
|
+
fieldMap: fieldMap.value,
|
|
222
|
+
onSave: saveCondition,
|
|
223
|
+
onClose: closeCombinationDialog
|
|
224
|
+
}, null, 8, ["conditionList", "fieldNameList", "fieldMap"])) : createCommentVNode("", true),
|
|
225
|
+
journalSetVisible.value ? (openBlock(), createBlock(JournalSetDialog, {
|
|
226
|
+
key: 3,
|
|
227
|
+
modelValue: __props.configure.props.base.logSetting,
|
|
228
|
+
onClose: closeJournalSet,
|
|
229
|
+
onSave: saveJournalSet
|
|
230
|
+
}, null, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
231
|
+
]),
|
|
232
|
+
_: 1
|
|
233
|
+
}, 8, ["modelValue"])
|
|
234
|
+
]),
|
|
235
|
+
_: 1
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
export {
|
|
241
|
+
_sfc_main as default
|
|
242
|
+
};
|