super-page-designer 2.3.18-tmp1-design1 → 2.3.19-sit1-design1
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/images/data/file.png.js +4 -0
- package/dist/es/assets/images/data/folder.png.js +4 -0
- package/dist/es/components/design/utils/assemblys-config.js +6 -6
- package/dist/es/components/design/utils/chart-design-util.js +100 -92
- package/dist/es/components/design/utils/page-event-util.js +0 -1
- package/dist/es/components/design/utils/page-i18n-util.js +5 -6
- package/dist/es/components/design/utils/ucr-element-filter.d.ts +2 -0
- package/dist/es/components/design/utils/ucr-element-filter.js +11 -0
- package/dist/es/components/design/views/assemblys/button/button/button-attr-advanced.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/button/button-attr-base.vue2.js +25 -25
- package/dist/es/components/design/views/assemblys/button/button-group/buttongroup-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/combination.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/condition-dialog.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/button/component/journal-set-dialog.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/button/component/set-dialog.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/button/dropdown/dropdown-attr-base.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-advanced.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/button/export-pdf/exportpdf-attr-base.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-advanced.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/button/print-label/printlabel-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr-style.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/chart/column-line/column-line-attr.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr-base.vue.js +5 -6
- package/dist/es/components/design/views/assemblys/chart/column-line/series/column-line-series-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/column-line/series/styles/style-bar.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/column-line/series/styles/style-line.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-data.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-groupby.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-sortby.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/chart/common/common-attr-stack.vue2.js +6 -6
- package/dist/es/components/design/views/assemblys/chart/common/common-home-chart.vue2.js +11 -11
- package/dist/es/components/design/views/assemblys/chart/common/common-style-datazoom.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/common/common-style-font-subtitle.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/common/common-style-font-title.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/common/common-style-legend.vue.js +7 -4
- package/dist/es/components/design/views/assemblys/chart/common/common-style-tooltip.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/chart/common/common-style-xaxis.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/common/common-style-yaxis.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/chart/common-series/common-attr-dataset-columnline.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/chart/common-series/common-attr-dynamic.vue.js +10 -10
- package/dist/es/components/design/views/assemblys/chart/common-series/common-style-label.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr-data.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/chart/gauge/gauge-attr.vue2.js +4 -3
- package/dist/es/components/design/views/assemblys/chart/gauge/series/gauge-series-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-anchor.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-axislabel.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-detail.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-gauge.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-pointer.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-split.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/gauge/series/styles/style-title.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/pie/pie-attr.vue2.js +8 -7
- package/dist/es/components/design/views/assemblys/chart/pie/series/pie-series-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/pie/series/styles/style-pie.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr-data.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/chart/radar/radar-attr.vue2.js +3 -2
- package/dist/es/components/design/views/assemblys/chart/radar/series/series-attr-dataset.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/chart/radar/series/series-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/radar/series/styles/style-axisname.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/radar/series/styles/style-datalabel.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/radar/series/styles/style-dataline.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/radar/series/styles/style-radar.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-data.vue.js +15 -15
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr-style-xaxis.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/scatter/scatter-attr.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/scatter/series/scatter-series-attr.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/scatter/series/scatter-series-data.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/scatter/series/styles/style-scatter.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/data-origin.vue2.js +4 -4
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/font-style-dialog.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/link-table.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-pageination.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/chart/statistical-table/component/table-showcondition.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr-base.vue2.js +10 -10
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-attr.vue2.js +11 -10
- package/dist/es/components/design/views/assemblys/chart/statistical-table/statisticalTable-design.vue2.js +17 -17
- package/dist/es/components/design/views/assemblys/common/common-advanced-basic-showcondition.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-attr-cursor.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/common/common-attr-size.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-icon-bind.vue2.js +24 -27
- package/dist/es/components/design/views/assemblys/common/common-select-page.vue.js +13 -13
- package/dist/es/components/design/views/assemblys/common/common-select-table.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/common/common-style-background.vue.js +2 -3
- package/dist/es/components/design/views/assemblys/common/common-style-border.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-style-font-head.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-style-font.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-style-position.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/common/common-task-title.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/common/common-variable-bind-option.js +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.vue3.js +16 -16
- package/dist/es/components/design/views/assemblys/common/common-watermark.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/common/page-permission-select.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/container/card/card-attr-base.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/container/card/card-attr.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/container/collapse/collapse-attr.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/container/container/container-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/container/container/container-attr.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/container/flex/flex-attr.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/container/form/form-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/container/form/form-attr.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/container/iframe/iframe-attr-base.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/container/iframe/iframe-attr.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr-base.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/container/tabs/tabs-attr.vue2.js +2 -3
- package/dist/es/components/design/views/assemblys/container/tools/tools-attr-base.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/container/tools/tools-attr.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/container/tools/tools-design.vue2.js +22 -22
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/data/component/column-config.vue.js +13 -13
- package/dist/es/components/design/views/assemblys/data/component/composite-header.vue2.js +7 -7
- package/dist/es/components/design/views/assemblys/data/component/data-origin-tree.vue2.js +7 -7
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/data/component/dynamic-column.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/data/component/formatting-icon-label.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/data/component/import-header.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/component/querySetting.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/data/component/return-set-table.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/data/table/table-attr-advanced.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/data/table/table-attr-base.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue2.js +9 -8
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue2.js +5 -5
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-dynamic-column.vue.js +11 -11
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/data/tree/tree-attr-context-menu.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/data/tree/tree-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/form/checkbox/checkbox-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +4 -4
- package/dist/es/components/design/views/assemblys/form/common/condition.vue.js +13 -13
- package/dist/es/components/design/views/assemblys/form/common/data-format.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/form/common/data-origin-autoset.vue.js +25 -25
- package/dist/es/components/design/views/assemblys/form/common/data-origin-service-in.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/common/data-origin.vue2.js +8 -8
- package/dist/es/components/design/views/assemblys/form/common/dataorigin-input-table.vue2.js +9 -9
- package/dist/es/components/design/views/assemblys/form/common/hyperlink-mult-config.vue.js +9 -9
- package/dist/es/components/design/views/assemblys/form/common/icon-set-dialog.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/form/common/linkpage-page-callback.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/pre-suffix.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/suffixmodule.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/form/common/verification-custom.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/form/custom/custom-attr-base.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/form/date-picker/datepicker-attr-base.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/form/dept-tree/depttree-attr-base.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/form/divider/divider-attr-base.vue.js +3 -3
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/file-upload/fileupload-design.vue2.js +3 -3
- package/dist/es/components/design/views/assemblys/form/input-number/input-number-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/label/label-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/label/label-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/link/link-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/placeholder/placeholder-attr-base.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/form/radio/radio-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/rich-text/richtext-design.vue2.js +13 -14
- package/dist/es/components/design/views/assemblys/form/select/select-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/separatelabel/separatelabel-attr.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/form/switch/switch-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/form/tag/tag-attr-base.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/form/textarea/textarea-attr-base.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/page/component/setting-form-rule-base-input.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/page/component/weight-field-input.vue.js +7 -7
- package/dist/es/components/design/views/assemblys/page/create-workflow-dialog.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-advanced.vue.js +2 -2
- package/dist/es/components/design/views/assemblys/page/page-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/page/variable-dialog.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/workflow/component/condition-dialog.vue.js +12 -12
- package/dist/es/components/design/views/assemblys/workflow/component/journal-set-dialog.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/workflow/component/set-dialog.vue.js +8 -8
- package/dist/es/components/design/views/assemblys/workflow/extract-workflow/extract-attr-advanced.vue.js +6 -6
- package/dist/es/components/design/views/assemblys/workflow/picture-flow/pictureflow-design.vue2.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/text-history/texthistory-attr-base.vue.js +5 -5
- package/dist/es/components/design/views/assemblys/workflow/workflow-button/workflowbutton-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/workflow/workflow-node/workflownode-design.vue2.js +3 -3
- package/dist/es/components/design/views/design/page-design.vue.d.ts +9 -0
- package/dist/es/components/design/views/design/page-design.vue2.js +43 -43
- package/dist/es/components/design/views/design/page-event/config.vue3.js +23 -24
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +7 -7
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +11 -10
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.d.ts +16 -2
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +8 -8
- package/dist/es/components/design/views/design/view/assemblys-container-list.vue.d.ts +16 -2
- package/dist/es/components/design/views/design/view/assemblys-container-list.vue.js +23 -20
- package/dist/es/components/design/views/design/view/assemblys-container.vue.js +11 -12
- package/dist/es/components/design/views/design/view/components/i18n-setting-enabled.vue.js +8 -8
- package/dist/es/components/design/views/design/view/components/i18n-setting-page.vue2.js +27 -27
- package/dist/es/components/design/views/design/view/components/quick-add-dialog.vue.js +7 -8
- package/dist/es/components/design/views/design/view/components/quick-add-fields.vue.js +1 -1
- package/dist/es/components/design/views/design/view/components/translate-error-dialog.vue.js +14 -14
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue.d.ts +38 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue.js +7 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/index.vue2.js +111 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/util.d.ts +6 -0
- package/dist/es/components/design/views/design/view/components/ucr-report-swtich/util.js +27 -0
- package/dist/es/components/design/views/design/view/page-switch.vue.d.ts +18 -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 +34 -31
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +13 -13
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +1 -1
- package/dist/es/components/design/views/design/view/view-design-preview.vue2.js +18 -16
- package/dist/es/stores/undo-redo-store.js +1 -1
- package/dist/es/style.css +62 -67
- package/package.json +4 -4
|
@@ -2,67 +2,75 @@ import "@element-plus/icons";
|
|
|
2
2
|
import { usePageContextStore as e } from "../../../stores/page-store.js";
|
|
3
3
|
import { getNumFormatterForChart as t } from "super-page-runtime";
|
|
4
4
|
import { deepCopy as l } from "./common-util.js";
|
|
5
|
-
|
|
5
|
+
import { parseLooseJSON as i } from "agilebuilder-ui/src/utils/json-util";
|
|
6
|
+
function a(e2) {
|
|
6
7
|
const t2 = {}, l2 = e2.props ? e2.props : {}, i2 = e2.style ? e2.style : {}, a2 = [];
|
|
7
8
|
if (l2.groups) for (let e3 of l2.groups) e3.group && e3.target && a2.push({ value: e3.group, label: e3.group, target: e3.target });
|
|
8
9
|
t2.options = a2, (l2.title || (!l2.groupSource || "fix" == l2.groupSource) && l2.groupPosition || !l2.enableDrill && l2.groupPosition) && (t2.showHeader = true, t2.title = l2.title, t2.textAlign = i2.titleTextAlign, l2.groupSource && "fix" != l2.groupSource || !l2.groupPosition || l2.enableDrill || (t2.showGroup = true, t2.groupPosition = l2.groupPosition, t2.groupComponent = l2.groupComponent), l2.enableDrill && l2.groupPosition && (t2.showDrill = true, t2.groupPosition = l2.groupPosition)), l2.groupSource && "fix" != l2.groupSource ? t2.groupValue = l2.groupVariable : "checkbox" == t2.groupComponent ? t2.groupValue = a2.length > 0 ? [a2[0].value] : null : t2.groupValue = a2.length > 0 ? a2[0].value : null;
|
|
9
10
|
const o2 = {};
|
|
10
11
|
i2.titleFontWeight && (o2["font-weight"] = "bold"), i2.titleIncline && (o2["font-style"] = "italic"), i2.titleFontSize && (o2["font-size"] = i2.titleFontSize + "px"), i2.titleColor && (o2.color = i2.titleColor), t2.style = o2;
|
|
11
|
-
const
|
|
12
|
-
if (l2.linkages) for (let e3 of l2.linkages) e3.fieldName && !
|
|
13
|
-
return "variable" == l2.groupSource && !l2.enableDrill && l2.groupVariable && (
|
|
12
|
+
const s2 = [];
|
|
13
|
+
if (l2.linkages) for (let e3 of l2.linkages) e3.fieldName && !s2.includes(e3.fieldName) && s2.push(e3.fieldName);
|
|
14
|
+
return "variable" == l2.groupSource && !l2.enableDrill && l2.groupVariable && (s2.includes(l2.groupVariable) || s2.push(l2.groupVariable)), t2.monitorFields = s2, t2;
|
|
14
15
|
}
|
|
15
|
-
function
|
|
16
|
-
const
|
|
17
|
-
if (
|
|
18
|
-
|
|
19
|
-
const e3 =
|
|
20
|
-
Object.assign(
|
|
16
|
+
function o(e2, l2) {
|
|
17
|
+
const a2 = e2.props ? e2.props : {}, o2 = e2.style ? e2.style : {}, b2 = { title: [{ textStyle: {}, subtextStyle: {} }], toolbox: { show: false, feature: { saveAsImage: { show: false }, restore: { show: false }, dataView: { show: false }, dataZoom: { show: false }, magicType: { show: false }, brush: { show: false } } }, grid: {}, xAxis: [{ axisLabel: {}, nameTruncate: {} }], yAxis: [{ show: false, position: "left", nameTextStyle: {}, axisLine: {}, splitLine: {}, axisLabel: {} }, { show: false, position: "right", nameTextStyle: {}, axisLine: {}, splitLine: {}, axisLabel: {} }], tooltip: { textStyle: {} }, dataZoom: [], series: [] }, h2 = "chart-column-line" == e2.name, c2 = "chart-pie" == e2.name, g2 = "chart-gauge" == e2.name, m = "chart-radar" == e2.name, f = "chart-scatter" == e2.name;
|
|
18
|
+
if (a2.title, a2.subTitle) {
|
|
19
|
+
b2.title[0].subtext = a2.subTitle, o2.subtitleTextAlign && (b2.title[0].left = o2.subtitleTextAlign);
|
|
20
|
+
const e3 = s(o2);
|
|
21
|
+
Object.assign(b2.title[0], e3);
|
|
21
22
|
}
|
|
22
|
-
if ((
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
if ((a2.enableDownloadBtn || a2.enableDataBtn) && (b2.toolbox.show = true), null != a2.enableDownloadBtn && (b2.toolbox.feature.saveAsImage.show = a2.enableDownloadBtn), null != a2.enableDataBtn && (b2.toolbox.feature.dataView.show = a2.enableDataBtn), (h2 || c2 || m || f) && null != o2.enableLegend && (null == b2.legend && (b2.legend = {}), b2.legend.show = o2.enableLegend, o2.enableLegend)) {
|
|
24
|
+
if (o2.legendLayout && (b2.legend.orient = o2.legendLayout), o2.legendAlign && (b2.legend.left = o2.legendAlign), o2.legendVerticalAlign && (b2.legend.top = o2.legendVerticalAlign), o2.legendPadding && (b2.legend.padding = o2.legendPadding), o2.legend && Object.assign(b2.legend, o2.legend), o2.customLegendParams) {
|
|
25
|
+
const e3 = i(o2.customLegendParams);
|
|
26
|
+
e3 && "object" == typeof e3 && Object.assign(b2.legend, e3);
|
|
27
|
+
}
|
|
28
|
+
o2.customLegend && (b2.legend.formatter = o2.customLegend);
|
|
29
|
+
}
|
|
30
|
+
if (o2.gridBackgroundColor && (b2.grid.show = true, b2.grid.backgroundColor = o2.gridBackgroundColor), o2.gridPaddingTop && (b2.grid.top = o2.gridPaddingTop), o2.gridPaddingRight && (b2.grid.right = o2.gridPaddingRight), o2.gridPaddingBottom && (b2.grid.bottom = o2.gridPaddingBottom), o2.gridPaddingLeft && (b2.grid.left = o2.gridPaddingLeft), o2.enableGridLine ? (b2.grid.show = true, o2.gridLineWidth && (b2.grid.borderWidth = o2.gridLineWidth), o2.gridLineColor && (b2.grid.show = true, b2.grid.borderColor = o2.gridLineColor)) : o2.gridShadowColor || (b2.grid.borderWidth = 0), o2.gridShadowColor && (b2.grid.show = true, b2.grid.shadowColor = o2.gridShadowColor, o2.gridShadowX && (b2.grid.shadowOffsetX = o2.gridShadowX), o2.gridShadowY && (b2.grid.shadowOffsetY = o2.gridShadowY), o2.gridShadowBlur && (b2.grid.shadowBlur = o2.gridShadowBlur)), h2 || f) {
|
|
31
|
+
h2 && (o2.xaxisTestdatas || (o2.xaxisTestdatas = "项1,项2,项3,项4,项5,项6,项7,项8"), b2.xAxis[0].data = o2.xaxisTestdatas.split(",")), null != o2.enableXaxis && (b2.xAxis[0].show = o2.enableXaxis, o2.enableXaxis && (null == b2.xAxis[0].axisLabel && (b2.xAxis[0].axisLabel = {}), o2.xaxisAngle && (b2.xAxis[0].axisLabel.rotate = o2.xaxisAngle), o2.xaxisOffset && (b2.xAxis[0].offset = o2.xaxisOffset), o2.xaxisWidth && (b2.xAxis[0].axisLabel.overflow = "truncate", b2.xAxis[0].axisLabel.width = o2.xaxisWidth), o2.xaxisEllipsis && (b2.xAxis[0].axisLabel.overflow = "truncate", b2.xAxis[0].axisLabel.ellipsis = o2.xaxisEllipsis), o2.xaxisFormatter && (b2.xAxis[0].axisLabel.formatter = o2.xaxisFormatter)), h2 && 0 != b2.xAxis[0].show && (b2.xAxis[0].data = o2.xaxisTestdatas.split(","))), o2.xaxisMin && (b2.xAxis[0].min = o2.xaxisMin), o2.xaxisMax && (b2.xAxis[0].max = o2.xaxisMax);
|
|
32
|
+
const e3 = [o2.yaxisLeft, o2.yaxisRight];
|
|
25
33
|
for (let t2 = 0; t2 < e3.length; t2++) {
|
|
26
|
-
r(e3[t2],
|
|
34
|
+
r(e3[t2], b2.yAxis[t2]);
|
|
27
35
|
}
|
|
28
36
|
}
|
|
29
|
-
if (
|
|
30
|
-
const l3 = e3.props ? e3.props : {},
|
|
37
|
+
if (m && function(e3, t2) {
|
|
38
|
+
const l3 = e3.props ? e3.props : {}, i2 = e3.style ? e3.style : {};
|
|
31
39
|
null == t2.radar && (t2.radar = []);
|
|
32
40
|
const a3 = {};
|
|
33
|
-
|
|
34
|
-
if (
|
|
41
|
+
i2.shape && (a3.shape = i2.shape);
|
|
42
|
+
if (i2.centerLeft || i2.centerTop) {
|
|
35
43
|
const e4 = ["50%", "50%"];
|
|
36
|
-
|
|
44
|
+
i2.centerLeft && (e4[0] = i2.centerLeft), i2.centerTop && (e4[1] = i2.centerTop), a3.center = e4;
|
|
37
45
|
}
|
|
38
|
-
|
|
39
|
-
(
|
|
40
|
-
(
|
|
41
|
-
null !=
|
|
42
|
-
null !=
|
|
43
|
-
null !=
|
|
44
|
-
null !=
|
|
46
|
+
i2.radiusOuter && (a3.radius = i2.radiusOuter);
|
|
47
|
+
(i2.splitNumber || "0" == i2.splitNumber) && (a3.splitNumber = i2.splitNumber);
|
|
48
|
+
(i2.startAngle || "0" == i2.startAngle) && (a3.startAngle = i2.startAngle);
|
|
49
|
+
null != i2.enableXaxisName && ((i2.nameGap || "0" == i2.nameGap) && (a3.nameGap = i2.nameGap), null == a3.axisName && (a3.axisName = {}), a3.axisName.show = i2.enableXaxisName, i2.enableXaxisName && (i2.axisNameColor && (a3.axisName.color = i2.axisNameColor), i2.axisNameFontSize && (a3.axisName.fontSize = i2.axisNameFontSize), i2.axisNameFontWeight && (a3.axisName.fontWeight = i2.axisNameFontWeight), i2.xaxisNameWidth && (a3.axisName.width = i2.xaxisNameWidth), i2.xaxisNameEllipsis && (a3.axisName.overflow = "truncate", a3.axisName.ellipsis = i2.xaxisNameEllipsis), i2.xaxisNameFormatter && (a3.axisName.formatter = i2.xaxisNameFormatter)));
|
|
50
|
+
null != i2.enableAxis && (null == a3.axisLine && (a3.axisLine = {}), a3.axisLine.show = i2.enableAxis, i2.enableAxis && (null == a3.axisLine.lineStyle && (a3.axisLine.lineStyle = {}), i2.axisColor && (a3.axisLine.lineStyle.color = i2.axisColor), i2.axisOpacity && (a3.axisLine.lineStyle.opacity = i2.axisOpacity), (i2.axisWidth || "0" == i2.axisWidth) && (a3.axisLine.lineStyle.width = i2.axisWidth)));
|
|
51
|
+
null != i2.enableSplit && (null == a3.splitLine && (a3.splitLine = {}), a3.splitLine.show = i2.enableSplit, i2.enableSplit && (null == a3.splitLine.lineStyle && (a3.splitLine.lineStyle = {}), i2.splitColor && (a3.splitLine.lineStyle.color = i2.splitColor), i2.splitOpacity && (a3.splitLine.lineStyle.opacity = i2.splitOpacity), (i2.splitWidth || "0" == i2.splitWidth) && (a3.splitLine.lineStyle.width = i2.splitWidth), (i2.splitLength || "0" == i2.splitLength) && (a3.splitLine.length = i2.splitLength), i2.splitLineType && (a3.splitLine.lineStyle.type = i2.splitLineType)));
|
|
52
|
+
null != i2.enableSplitArea && (null == a3.splitArea && (a3.splitArea = {}), a3.splitArea.show = i2.enableSplitArea, i2.enableSplitArea && (null == a3.splitArea.areaStyle && (a3.splitArea.areaStyle = {}), i2.splitAreaColor && (a3.splitArea.areaStyle.color = [i2.splitAreaColor, "#ffffff"]), i2.splitAreaOpacity && (a3.splitArea.areaStyle.opacity = i2.splitAreaOpacity), i2.splitAreaShadowColor && (a3.splitArea.areaStyle.shadowColor = i2.splitAreaShadowColor), i2.splitAreaShadowBlur && (a3.splitArea.areaStyle.shadowBlur = i2.splitAreaShadowBlur), i2.splitAreaShadowX && (a3.splitArea.areaStyle.shadowOffsetX = i2.splitAreaShadowX), i2.splitAreaShadowY && (a3.splitArea.areaStyle.shadowOffsetY = i2.splitAreaShadowY)));
|
|
45
53
|
l3.testitems || (l3.testitems = "项1,项2,项3,项4,项5,项6,项7,项8");
|
|
46
|
-
const
|
|
47
|
-
let
|
|
48
|
-
"fixed" == l3.maxSource && (
|
|
49
|
-
|
|
50
|
-
const
|
|
51
|
-
for (let e4 of
|
|
52
|
-
a3.indicator =
|
|
54
|
+
const o3 = l3.testitems.split(",");
|
|
55
|
+
let s2 = null;
|
|
56
|
+
"fixed" == l3.maxSource && (s2 = l3.maxFixed);
|
|
57
|
+
s2 || (s2 = 100);
|
|
58
|
+
const r2 = [];
|
|
59
|
+
for (let e4 of o3) r2.push({ text: e4, max: s2 });
|
|
60
|
+
a3.indicator = r2, t2.radar || (t2.radar = []);
|
|
53
61
|
0 == t2.radar.length && t2.radar.push({});
|
|
54
62
|
Object.assign(t2.radar[0], a3);
|
|
55
|
-
}(e2,
|
|
63
|
+
}(e2, b2), (h2 || f) && o2.enableDatazoom) {
|
|
56
64
|
const e3 = { type: "slider" };
|
|
57
|
-
|
|
65
|
+
o2.dataZoomType && (e3.type = o2.dataZoomType), o2.dataZoomStart && (e3.start = o2.dataZoomStart), o2.dataZoomEnd && (e3.end = o2.dataZoomEnd), b2.dataZoom.push(e3);
|
|
58
66
|
}
|
|
59
|
-
null !=
|
|
67
|
+
null != o2.enableTooltip && function(e3, l3) {
|
|
60
68
|
var _a;
|
|
61
69
|
l3.tooltip.show = e3.enableTooltip, e3.tooltipTrigger && (l3.tooltip.trigger = e3.tooltipTrigger);
|
|
62
70
|
e3.tooltipPosition && (l3.tooltip.position = e3.tooltipPosition);
|
|
63
71
|
if (e3.tooltipNumFormat) {
|
|
64
|
-
const
|
|
65
|
-
l3.tooltip.valueFormatter = t.apply(l3,
|
|
72
|
+
const i2 = [e3.tooltipNumFormat, e3.tooltipNumPrecision, e3.tooltipNumPrefix, e3.tooltipNumAppend, true];
|
|
73
|
+
l3.tooltip.valueFormatter = t.apply(l3, i2), l3.tooltipFormatterArgs = i2;
|
|
66
74
|
}
|
|
67
75
|
e3.tooltipFormatter && (l3.tooltip.formatter = e3.tooltipFormatter);
|
|
68
76
|
e3.tooltipFontSize && (l3.tooltip.textStyle.fontSize = e3.tooltipFontSize);
|
|
@@ -70,36 +78,36 @@ function a(e2, l2) {
|
|
|
70
78
|
e3.tooltipWeight && (l3.tooltip.textStyle.fontWeight = e3.tooltipWeight);
|
|
71
79
|
e3.tooltipFormatter && (l3.tooltip.formatter = e3.tooltipFormatter);
|
|
72
80
|
e3.axisPointer && (((_a = l3.tooltip) == null ? void 0 : _a.axisPointer) || (l3.tooltip.axisPointer = {}), e3.axisPointer.type && (l3.tooltip.axisPointer.type = e3.axisPointer.type));
|
|
73
|
-
}(
|
|
74
|
-
const
|
|
81
|
+
}(o2, b2);
|
|
82
|
+
const x = {};
|
|
75
83
|
if (e2.stacks && e2.stacks.length > 0) for (let t2 of e2.stacks) t2.series && t2.series.length > 0 && t2.series.forEach((e3) => {
|
|
76
|
-
|
|
84
|
+
x[e3] = t2.uuid;
|
|
77
85
|
});
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
80
|
-
|
|
81
|
-
let e3 =
|
|
86
|
+
const y = e2.items ? e2.items : [];
|
|
87
|
+
if (m) {
|
|
88
|
+
b2.series || (b2.series = []), 0 == b2.series.length && b2.series.push({});
|
|
89
|
+
let e3 = b2.series[0];
|
|
82
90
|
e3.type = "radar", e3.data = [];
|
|
83
|
-
for (let t2 of
|
|
84
|
-
const l3 =
|
|
91
|
+
for (let t2 of y) if ("radar" == t2.type) {
|
|
92
|
+
const l3 = d(t2, b2);
|
|
85
93
|
l3.uuid = t2.uuid, e3.data.push(l3);
|
|
86
94
|
}
|
|
87
|
-
} else for (let e3 of
|
|
95
|
+
} else for (let e3 of y) {
|
|
88
96
|
let t2 = null;
|
|
89
|
-
if (t2 = "scatter" == e3.type ?
|
|
90
|
-
const t3 =
|
|
91
|
-
t3.subtext = e3.props.subTitle,
|
|
97
|
+
if (t2 = "scatter" == e3.type ? p(e3) : n(e3), t2.uuid = e3.uuid, (h2 || f) && ("1" == e3.props.yAxisIndex ? (t2.yAxisIndex = 1, b2.yAxis[1].show = true) : b2.yAxis[0].show = true, "bar" == t2.type && (null != o2.barGap && null != o2.barGap && "" != o2.barGap && (t2.barGap = o2.barGap + "%"), null != o2.barCategoryGap && null != o2.barCategoryGap && "" != o2.barCategoryGap && (t2.barCategoryGap = o2.barCategoryGap + "%"))), (c2 || g2) && e3.props.subTitle) {
|
|
98
|
+
const t3 = s(e3.style);
|
|
99
|
+
t3.subtext = e3.props.subTitle, b2.title.push(t3);
|
|
92
100
|
}
|
|
93
|
-
|
|
101
|
+
x && Object.keys(x).length > 0 && x[t2.uuid] && (t2.stack = x[t2.uuid]), b2.series.push(t2);
|
|
94
102
|
}
|
|
95
|
-
if (
|
|
96
|
-
for (let e3 of
|
|
97
|
-
|
|
103
|
+
if (c2 && (0 == o2.enableLegend && (b2.legend = void 0), b2.xAxis[0].show = false), (g2 || m) && (b2.xAxis[0].show = false), a2.isBar) {
|
|
104
|
+
for (let e3 of b2.yAxis) e3.show && (e3.type = "category", e3.data = b2.xAxis[0].data);
|
|
105
|
+
b2.xAxis[0].data = void 0, b2.isBar = a2.isBar;
|
|
98
106
|
}
|
|
99
|
-
const
|
|
100
|
-
|
|
107
|
+
const S = u(o2.customAttr);
|
|
108
|
+
S && Object.assign(b2, S), l2.value = b2;
|
|
101
109
|
}
|
|
102
|
-
function
|
|
110
|
+
function s(e2) {
|
|
103
111
|
const t2 = { subtextStyle: {} };
|
|
104
112
|
return e2.subtitleFontWeight && (t2.subtextStyle.fontWeight = e2.subtitleFontWeight), e2.subtitleIncline && (t2.subtextStyle.fontStyle = "italic"), e2.subtitleFontSize && (t2.subtextStyle.fontSize = e2.subtitleFontSize), e2.subtitleColor && (t2.subtextStyle.color = e2.subtitleColor), e2.subtitleLeft && (t2.left = e2.subtitleLeft), e2.subtitleTop && (t2.top = e2.subtitleTop), t2;
|
|
105
113
|
}
|
|
@@ -110,7 +118,7 @@ function r(e2, t2) {
|
|
|
110
118
|
if (e3.max) return 10 * Math.ceil(e3.max / 10);
|
|
111
119
|
}), null != e2.enableAxisLine && (t2.splitLine.show = e2.enableAxisLine, e2.enableAxisLine && e2.splitNumber && (t2.splitNumber = e2.splitNumber)), e2.formatter && (t2.axisLabel.formatter = e2.formatter), e2.labelColor && (t2.axisLabel.color = e2.labelColor), e2.labelFontSize && (t2.axisLabel.fontSize = e2.labelFontSize);
|
|
112
120
|
}
|
|
113
|
-
function
|
|
121
|
+
function n(e2) {
|
|
114
122
|
const l2 = e2.props ? e2.props : {}, i2 = e2.style ? e2.style : {}, a2 = { name: l2.title, type: e2.type, label: {}, itemStyle: {}, lineStyle: {}, emphasis: {} };
|
|
115
123
|
if ("bar" === e2.type && (a2.emphasis.itemStyle = { color: "#E3E8C0", borderWidth: 1, borderType: "dashed", borderColor: "#878773" }, e2.style.emphasis && (a2.emphasis || (a2.emphasis = {}), Object.assign(a2.emphasis, e2.style.emphasis))), null != i2.enableLabel) {
|
|
116
124
|
if (a2.label.show = i2.enableLabel, i2.labelPosition && (a2.label.position = i2.labelPosition), i2.labelFontSize && (a2.label.fontSize = i2.labelFontSize), i2.labelColor && (a2.label.color = i2.labelColor), i2.labelWeight && (a2.label.fontWeight = i2.labelWeight), i2.textAlign && (a2.label.align = i2.textAlign), i2.verticalAlign && (a2.label.verticalAlign = i2.verticalAlign), i2.labelAngle && (a2.label.rotate = i2.labelAngle), i2.labelLeft || i2.labelTop) {
|
|
@@ -145,7 +153,7 @@ function s(e2) {
|
|
|
145
153
|
l3.symbolSize > -1 && (e3.symbolSize = l3.symbolSize);
|
|
146
154
|
l3.enableAreaColor && (e3.areaStyle = {}, l3.areaColor && (e3.areaStyle.color = l3.areaColor), l3.areaOrigin && (e3.areaStyle.origin = l3.areaOrigin), l3.areaOpacity && (e3.areaStyle.opacity = l3.areaOpacity), l3.areaShadowColor && (e3.areaStyle.shadowColor = l3.areaShadowColor, l3.areaShadowBlur > -1 && (e3.areaStyle.shadowBlur = l3.areaShadowBlur), l3.areaShadowX > -1 && (e3.areaStyle.shadowOffsetX = l3.areaShadowX), l3.areaShadowY > -1 && (e3.areaStyle.shadowOffsetY = l3.areaShadowY)));
|
|
147
155
|
}(a2, e2);
|
|
148
|
-
const o2 = "pie" == e2.type,
|
|
156
|
+
const o2 = "pie" == e2.type, s2 = {}, r2 = [];
|
|
149
157
|
if (o2 && (function(e3, t2) {
|
|
150
158
|
const l3 = t2.style ? t2.style : {};
|
|
151
159
|
l3.roseType && (e3.roseType = l3.roseType);
|
|
@@ -157,8 +165,8 @@ function s(e2) {
|
|
|
157
165
|
l3.borderColor && (e3.itemStyle.borderColor = l3.borderColor, l3.borderWidth && (e3.itemStyle.borderWidth = l3.borderWidth), l3.borderLineType && (e3.itemStyle.borderType = l3.borderLineType), l3.borderRadius && (e3.itemStyle.borderRadius = l3.borderRadius));
|
|
158
166
|
l3.shadowColor && (e3.itemStyle.shadowColor = l3.shadowColor, l3.borderRadius && (e3.itemStyle.borderColor = l3.borderRadius), l3.shadowBlur && (e3.itemStyle.shadowBlur = l3.shadowBlur), l3.shadowX && (e3.itemStyle.shadowOffsetX = l3.shadowX), l3.shadowY && (e3.itemStyle.shadowOffsetY = l3.shadowY));
|
|
159
167
|
}(a2, e2), i2.colors && i2.colors.length > 0)) {
|
|
160
|
-
for (let e3 of i2.colors) e3.color && (e3.name ?
|
|
161
|
-
a2.pieColorMap =
|
|
168
|
+
for (let e3 of i2.colors) e3.color && (e3.name ? s2[e3.name] = e3.color : r2.push(e3.color));
|
|
169
|
+
a2.pieColorMap = s2, a2.pieColors = r2;
|
|
162
170
|
}
|
|
163
171
|
const n2 = "gauge" == e2.type;
|
|
164
172
|
n2 && function(e3, t2) {
|
|
@@ -193,7 +201,7 @@ function s(e2) {
|
|
|
193
201
|
l3.anchorLeft && (t3[0] = l3.anchorLeft), l3.anchorTop && (t3[1] = l3.anchorTop), e3.anchor.offsetCenter = t3;
|
|
194
202
|
}
|
|
195
203
|
}(a2, e2);
|
|
196
|
-
const d2 =
|
|
204
|
+
const d2 = u(i2.customAttr);
|
|
197
205
|
if (d2 && Object.assign(a2, d2), !l2.testdatas) {
|
|
198
206
|
const e3 = 0, t2 = 100;
|
|
199
207
|
let i3 = [];
|
|
@@ -216,9 +224,9 @@ function s(e2) {
|
|
|
216
224
|
const a3 = i3.split(":");
|
|
217
225
|
if (a3.length < 2) continue;
|
|
218
226
|
const o3 = { value: a3[1], name: a3[0] };
|
|
219
|
-
if (l3 <
|
|
220
|
-
let e4 =
|
|
221
|
-
e4 || (e4 =
|
|
227
|
+
if (l3 < r2.length || s2[o3.name]) {
|
|
228
|
+
let e4 = s2[o3.name];
|
|
229
|
+
e4 || (e4 = r2[l3]), e4 && (o3.itemStyle = { color: e4 });
|
|
222
230
|
}
|
|
223
231
|
t2.push(o3);
|
|
224
232
|
}
|
|
@@ -240,7 +248,7 @@ function s(e2) {
|
|
|
240
248
|
} else a2.data = l2.testdatas.split(",");
|
|
241
249
|
return a2;
|
|
242
250
|
}
|
|
243
|
-
function
|
|
251
|
+
function d(e2, l2) {
|
|
244
252
|
const i2 = e2.props ? e2.props : {}, a2 = e2.style ? e2.style : {}, o2 = { uuid: e2.uuid, name: i2.title };
|
|
245
253
|
if (null != a2.enableLabel) {
|
|
246
254
|
if (null == o2.label && (o2.label = {}), o2.label.show = a2.enableLabel, a2.labelPosition && (o2.label.position = a2.labelPosition), a2.labelFontSize && (o2.label.fontSize = a2.labelFontSize), a2.labelColor && (o2.label.color = a2.labelColor), a2.labelWeight && (o2.label.fontWeight = a2.labelWeight), a2.labelAngle && (o2.label.rotate = a2.labelAngle), a2.labelLeft || a2.labelTop) {
|
|
@@ -253,8 +261,8 @@ function n(e2, l2) {
|
|
|
253
261
|
} else a2.labelFormatter && (o2.label.formatter = a2.labelFormatter);
|
|
254
262
|
}
|
|
255
263
|
null == o2.lineStyle && (o2.lineStyle = {}), a2.lineColor && (o2.lineStyle.color = a2.lineColor), a2.lineOpacity && (o2.lineStyle.opacity = a2.lineOpacity), a2.lineType && (o2.lineStyle.type = a2.lineType), a2.lineWidth > 0 && (o2.lineStyle.width = a2.lineWidth), a2.lineShadowColor && (o2.lineStyle.shadowColor = a2.lineShadowColor, a2.lineShadowBlur && (o2.lineStyle.shadowBlur = a2.lineShadowBlur), a2.lineShadowX && (o2.lineStyle.shadowOffsetX = a2.lineShadowX), a2.lineShadowY && (o2.lineStyle.shadowOffsetY = a2.lineShadowY)), a2.lineSymbol && (o2.symbol = a2.lineSymbol), a2.lineSymbolSize > -1 && (o2.symbolSize = a2.lineSymbolSize), a2.lineSymbolColor && (null == o2.itemStyle && (o2.itemStyle = {}), o2.itemStyle.color = a2.lineSymbolColor), null != a2.enableSplitLineArea && (null == o2.areaStyle && (o2.areaStyle = {}), o2.areaStyle.show = a2.enableSplitLineArea, a2.enableSplitLineArea && (a2.splitLineAreaColor && (o2.areaStyle.color = a2.splitLineAreaColor), a2.splitLineAreaOpacity && (o2.areaStyle.opacity = a2.splitLineAreaOpacity), a2.splitLineAreaShadowColor && (o2.areaStyle.shadowColor = a2.splitLineAreaShadowColor), a2.splitLineAreaShadowBlur && (o2.areaStyle.shadowBlur = a2.splitLineAreaShadowBlur), a2.splitLineAreaShadowX && (o2.areaStyle.shadowOffsetX = a2.splitLineAreaShadowX), a2.splitLineAreaShadowY && (o2.areaStyle.shadowOffsetY = a2.splitLineAreaShadowY)));
|
|
256
|
-
const
|
|
257
|
-
if (
|
|
264
|
+
const s2 = u(a2.customAttr);
|
|
265
|
+
if (s2 && Object.assign(o2, s2), !i2.testdatas) {
|
|
258
266
|
const e3 = 0;
|
|
259
267
|
let t2 = 100, l3 = [];
|
|
260
268
|
for (let i3 = 0; i3 < 8; i3++) {
|
|
@@ -263,12 +271,12 @@ function n(e2, l2) {
|
|
|
263
271
|
}
|
|
264
272
|
i2.testdatas = l3.join(",");
|
|
265
273
|
}
|
|
266
|
-
const
|
|
267
|
-
for (let e3 = 0; e3 < 8 || e3 <
|
|
268
|
-
let t2 = e3 <
|
|
274
|
+
const r2 = l2.radar && l2.radar.length > 0 ? l2.radar[0].indicator : [], n2 = i2.testdatas ? i2.testdatas.split(",") : [], d2 = [], p2 = n2.length;
|
|
275
|
+
for (let e3 = 0; e3 < 8 || e3 < p2; e3++) {
|
|
276
|
+
let t2 = e3 < r2.length ? r2[e3].max : null;
|
|
269
277
|
t2 || (t2 = 100), t2 = parseFloat(t2);
|
|
270
278
|
let l3 = false;
|
|
271
|
-
if (e3 <
|
|
279
|
+
if (e3 < p2) {
|
|
272
280
|
parseFloat(n2[e3]) < t2 && (l3 = true);
|
|
273
281
|
}
|
|
274
282
|
if (l3) d2.push(n2[e3]);
|
|
@@ -279,7 +287,7 @@ function n(e2, l2) {
|
|
|
279
287
|
}
|
|
280
288
|
return o2.value = d2, o2;
|
|
281
289
|
}
|
|
282
|
-
function
|
|
290
|
+
function p(e2, l2) {
|
|
283
291
|
const i2 = e2.props ? e2.props : {}, a2 = e2.style ? e2.style : {}, o2 = { name: i2.title, type: e2.type, itemStyle: {} };
|
|
284
292
|
if (a2.symbol && (o2.symbol = a2.symbol), a2.symbolSize && (o2.symbolSize = a2.symbolSize), a2.symbolColor && (o2.itemStyle.color = a2.symbolColor), a2.symbolRotate && (o2.symbolRotate = a2.symbolRotate), a2.symbolLeft || a2.symbolTop) {
|
|
285
293
|
const e3 = [0, 0];
|
|
@@ -295,8 +303,8 @@ function d(e2, l2) {
|
|
|
295
303
|
o2.label.formatter = t.apply(o2, e3), o2.labelFormatterArgs = e3;
|
|
296
304
|
} else a2.labelFormatter && (o2.label.formatter = a2.labelFormatter);
|
|
297
305
|
}
|
|
298
|
-
const
|
|
299
|
-
if (
|
|
306
|
+
const s2 = u(a2.customAttr);
|
|
307
|
+
if (s2 && Object.assign(o2, s2), !i2.testitems) {
|
|
300
308
|
let e3 = [];
|
|
301
309
|
const t2 = 0, l3 = 10;
|
|
302
310
|
for (let i3 = 0; i3 < 8; i3++) {
|
|
@@ -314,16 +322,16 @@ function d(e2, l2) {
|
|
|
314
322
|
}
|
|
315
323
|
i2.testdatas = l3.join(",");
|
|
316
324
|
}
|
|
317
|
-
const
|
|
318
|
-
for (let e3 = 0; e3 <
|
|
319
|
-
const t2 = parseFloat(
|
|
325
|
+
const r2 = i2.testitems.split(","), n2 = i2.testitems.split(","), d2 = [];
|
|
326
|
+
for (let e3 = 0; e3 < r2.length && e3 < n2.length; e3++) {
|
|
327
|
+
const t2 = parseFloat(r2[e3]), l3 = parseFloat(n2[e3]);
|
|
320
328
|
if (isNaN(t2) || isNaN(l3)) continue;
|
|
321
329
|
const i3 = [t2, l3];
|
|
322
330
|
d2.push(i3);
|
|
323
331
|
}
|
|
324
332
|
return o2.data = d2, o2;
|
|
325
333
|
}
|
|
326
|
-
function
|
|
334
|
+
function u(e2) {
|
|
327
335
|
if (e2) {
|
|
328
336
|
e2.trim && (e2 = e2.trim()), e2.indexOf && 0 != e2.indexOf("{") && (e2 = "{" + e2 + "}");
|
|
329
337
|
try {
|
|
@@ -333,7 +341,7 @@ function p(e2) {
|
|
|
333
341
|
}
|
|
334
342
|
return null;
|
|
335
343
|
}
|
|
336
|
-
function
|
|
344
|
+
function b(t2) {
|
|
337
345
|
const l2 = e().pageContext;
|
|
338
346
|
if (l2) {
|
|
339
347
|
l2.initChartServiceConfigs || (l2.initChartServiceConfigs = []);
|
|
@@ -362,18 +370,18 @@ function h(t2, i2) {
|
|
|
362
370
|
a2.allChartUuids.indexOf(t2.uuid) < 0 && a2.allChartUuids.push(t2.uuid);
|
|
363
371
|
const o2 = t2.props.dataOrigin ? t2.props.dataOrigin : {};
|
|
364
372
|
o2.service || (o2.service = {});
|
|
365
|
-
const
|
|
366
|
-
if (
|
|
367
|
-
const
|
|
373
|
+
const s2 = o2.service;
|
|
374
|
+
if (s2.simpleCode) {
|
|
375
|
+
const r2 = { uuid: t2.uuid }, n2 = { serivceCode: s2.simpleCode, uuid: t2.uuid };
|
|
368
376
|
i2 && (n2.groupValue = i2.groupValue, i2.dynamicSeriesFields && i2.dynamicSeriesFields.length > 0 && (n2.dynamicSeriesFields = i2.dynamicSeriesFields));
|
|
369
377
|
const d2 = (_a = t2 == null ? void 0 : t2.props.dataOrigin) == null ? void 0 : _a.serviceInputs;
|
|
370
|
-
return d2 && (n2.serviceInputs = l(d2)),
|
|
378
|
+
return d2 && (n2.serviceInputs = l(d2)), r2.services = [n2], r2 && (r2.initializationQuery = t2.initializationQuery), e2 > -1 ? a2.initChartServiceConfigs[e2] = r2 : a2.initChartServiceConfigs.push(r2), r2.resultSet = o2.resultSet ? o2.resultSet : null, r2;
|
|
371
379
|
}
|
|
372
380
|
e2 > -1 && a2.initChartServiceConfigs.shift(e2, 1);
|
|
373
381
|
}
|
|
374
382
|
return null;
|
|
375
383
|
}
|
|
376
|
-
function
|
|
384
|
+
function c(t2, i2) {
|
|
377
385
|
const a2 = e().pageContext;
|
|
378
386
|
if (a2.initChartServiceConfigs) {
|
|
379
387
|
a2.initChartServiceConfigs.filter((e2) => e2.uuid && e2.uuid === t2.uuid).forEach((e2) => {
|
|
@@ -382,17 +390,17 @@ function b(t2, i2) {
|
|
|
382
390
|
});
|
|
383
391
|
}
|
|
384
392
|
}
|
|
385
|
-
function
|
|
393
|
+
function g(e2, t2) {
|
|
386
394
|
const l2 = [];
|
|
387
395
|
e2.items && e2.items.length > 0 && e2.items.forEach((e3) => {
|
|
388
396
|
e3.props && e3.props.dynamicSeriesField && l2.push(e3.props.dynamicSeriesField);
|
|
389
397
|
}), t2.dynamicSeriesFields = l2;
|
|
390
398
|
}
|
|
391
399
|
export {
|
|
392
|
-
|
|
393
|
-
|
|
400
|
+
a as generateChartHeader,
|
|
401
|
+
o as generateChartOption,
|
|
394
402
|
h as initComponentDataConfig,
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
403
|
+
b as removComponentDataConfig,
|
|
404
|
+
g as updateDynamicSeriesField,
|
|
405
|
+
c as updateServiceInputs
|
|
398
406
|
};
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
const e = ["tools", "form"];
|
|
2
|
-
function s(
|
|
2
|
+
function s(l, o) {
|
|
3
3
|
var _a;
|
|
4
4
|
try {
|
|
5
|
-
|
|
6
|
-
s(e2,
|
|
5
|
+
l.name || l.label && a(l.label, o), ((_a = l.props) == null ? void 0 : _a.base) && !e.includes(l.name) && (l.props.base.title && a(l.props.base.title, o), l.props.base.placeholder && a(l.props.base.placeholder, o), l.props.base.label && a(l.props.base.label, o)), l.items && l.items.length > 0 && l.items.forEach((e2) => {
|
|
6
|
+
s(e2, o);
|
|
7
7
|
});
|
|
8
8
|
} catch (e2) {
|
|
9
|
-
console.error(e2);
|
|
10
9
|
}
|
|
11
10
|
}
|
|
12
|
-
function
|
|
11
|
+
function a(e2, s2) {
|
|
13
12
|
Array.isArray(e2) || (e2 = [e2]), e2.forEach((e3) => {
|
|
14
13
|
s2.i18nKeys.includes(e3) || s2.i18nKeys.push(e3);
|
|
15
14
|
});
|
|
16
15
|
}
|
|
17
16
|
export {
|
|
18
|
-
|
|
17
|
+
a as addI18nKey,
|
|
19
18
|
s as setPagetemI18nKey
|
|
20
19
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const e = ["workflow", "table"];
|
|
2
|
+
function t(t2) {
|
|
3
|
+
return t2.filter((t3) => !e.includes(t3.name)).map((t3) => {
|
|
4
|
+
const n = t3.items.filter((t4) => !e.includes(t4.name));
|
|
5
|
+
return { ...t3, items: n };
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
t as filterUcrElements,
|
|
10
|
+
e as ucrExcludeElements
|
|
11
|
+
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { defineComponent as e, ref as o, watch as l, resolveComponent as a, createBlock as i, openBlock as n, withCtx as t, createVNode as u, createCommentVNode as s, createElementVNode as r, createElementBlock as g, Fragment as c, renderList as f, createTextVNode as p, withDirectives as m, vShow as d } from "vue";
|
|
2
2
|
import b from "../component/condition-dialog.vue.js";
|
|
3
3
|
import v from "../component/set-dialog.vue.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { isShowOpinionSetting as
|
|
4
|
+
import y from "../component/combination.vue.js";
|
|
5
|
+
import k from "../component/journal-set-dialog.vue.js";
|
|
6
|
+
import C from "../../common/common-advanced-basic-showcondition.vue.js";
|
|
7
|
+
import { isShowOpinionSetting as _ } from "../../../../utils/form-design-util.js";
|
|
8
8
|
import V from "agilebuilder-ui/src/utils/request";
|
|
9
|
-
import { getTableConfigByTableUuid as
|
|
10
|
-
import
|
|
9
|
+
import { getTableConfigByTableUuid as D } from "../../../../utils/page-table-util.js";
|
|
10
|
+
import w from "../../common/common-watermark.vue.js";
|
|
11
11
|
import h from "../../common/common-task-title.vue.js";
|
|
12
12
|
const j = { style: { padding: "8px 0px 0px 0px" } }, O = e({ __name: "button-attr-advanced", props: { configure: { type: Object, default: () => {
|
|
13
13
|
} }, pageDesign: { type: Object, default: () => {
|
|
14
14
|
} } }, setup(e2) {
|
|
15
15
|
var _a;
|
|
16
|
-
const O2 = e2, M = o(["base"]), x = o(false), L = o([]), R = (_a = O2.pageDesign) == null ? void 0 : _a.systemVersion, S = o(
|
|
16
|
+
const O2 = e2, M = o(["base"]), x = o(false), L = o([]), R = (_a = O2.pageDesign) == null ? void 0 : _a.systemVersion, S = o(D(O2.pageDesign, O2.configure));
|
|
17
17
|
function N() {
|
|
18
18
|
x.value = false;
|
|
19
19
|
}
|
|
20
20
|
function U(e3) {
|
|
21
21
|
O2.configure.props.base.logSetting = e3, N();
|
|
22
22
|
}
|
|
23
|
-
V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${O2.pageDesign.systemCode}/${R}`).then((e3) => {
|
|
23
|
+
O2.pageDesign.ucrDesign || V.post(window.$vueApp.config.globalProperties.baseAPI + `/mms/setting-transformations/option/${O2.pageDesign.systemCode}/${R}`).then((e3) => {
|
|
24
24
|
L.value = e3;
|
|
25
25
|
});
|
|
26
26
|
const z = o(false);
|
|
@@ -32,7 +32,7 @@ const j = { style: { padding: "8px 0px 0px 0px" } }, O = e({ __name: "button-att
|
|
|
32
32
|
$.value = false;
|
|
33
33
|
}
|
|
34
34
|
function P(e3) {
|
|
35
|
-
O2.configure.props.setValueList = e3
|
|
35
|
+
O2.configure.props.setValueList = e3;
|
|
36
36
|
}
|
|
37
37
|
const T = o(false);
|
|
38
38
|
function W() {
|
|
@@ -47,15 +47,15 @@ const j = { style: { padding: "8px 0px 0px 0px" } }, O = e({ __name: "button-att
|
|
|
47
47
|
const l2 = O2.configure.events.filter((e4) => "click" === e4.name && e4.eventName);
|
|
48
48
|
if (l2 && l2.length > 0) {
|
|
49
49
|
const a2 = l2[0].eventName;
|
|
50
|
-
o2 =
|
|
50
|
+
o2 = _(a2, e3);
|
|
51
51
|
}
|
|
52
52
|
return o2;
|
|
53
53
|
}
|
|
54
54
|
return l(O2.configure.events, (e3) => {
|
|
55
55
|
I.value = E("opinion"), J.value = E("wfRemark"), I.value || (O2.configure.props.base.isMustOpinion = false);
|
|
56
56
|
}, { immediate: true }), (o2, l2) => {
|
|
57
|
-
const
|
|
58
|
-
return n(), i(K, { "label-width": "80px", size: "small" }, { default: t(() => [u(H, { modelValue: M.value, "onUpdate:modelValue": l2[7] || (l2[7] = (e3) => M.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [u(G, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", j, [u(
|
|
57
|
+
const _2 = a("el-option"), V2 = a("el-select"), D2 = a("el-form-item"), O3 = a("el-button"), R2 = a("el-text"), E2 = a("el-switch"), G = a("el-collapse-item"), H = a("el-collapse"), K = a("el-form");
|
|
58
|
+
return n(), i(K, { "label-width": "80px", size: "small" }, { default: t(() => [u(H, { modelValue: M.value, "onUpdate:modelValue": l2[7] || (l2[7] = (e3) => M.value = e3), style: { "margin-top": "6px" } }, { default: t(() => [u(G, { title: "高级设置", name: "base", class: "amb-design-attr-group-header" }, { default: t(() => [r("div", j, [u(D2, { label: "成功后", class: "amb-design-attr-item" }, { default: t(() => [u(V2, { modelValue: e2.configure.props.base.successOperation, "onUpdate:modelValue": l2[0] || (l2[0] = (o3) => e2.configure.props.base.successOperation = o3), class: "ml-4" }, { default: t(() => [u(_2, { label: "无操作", value: "noOperation" }), u(_2, { label: "刷新", value: "refresh" }), u(_2, { label: "关闭窗口", value: "closeWindow" }), u(_2, { label: "关闭窗口并刷新列表", value: "closeWindowAndRefresh" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), e2.pageDesign.ucrDesign ? s("", true) : (n(), i(D2, { key: 0, label: "转换规则", class: "amb-design-attr-item" }, { default: t(() => [u(V2, { modelValue: e2.configure.props.base.conversionCodes, "onUpdate:modelValue": l2[1] || (l2[1] = (o3) => e2.configure.props.base.conversionCodes = o3), multiple: "", class: "ml-4" }, { default: t(() => [(n(true), g(c, null, f(L.value, (e3) => (n(), i(_2, { key: e3.code, label: e3.name, value: e3.code }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })), u(D2, { label: "执行条件", class: "amb-design-attr-item" }, { default: t(() => [u(O3, { type: "primary", onClick: l2[2] || (l2[2] = (e3) => z.value = true) }, { default: t(() => l2[8] || (l2[8] = [p("编辑")])), _: 1 })]), _: 1 }), u(D2, { label: "启用条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(C, { key: e2.configure.uuid + "_edit", configure: e2.configure, title: "启用条件", tableConfigure: S.value, type: "editConditions" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), u(D2, { label: "自动设值", class: "amb-design-attr-item" }, { default: t(() => [u(O3, { type: "primary", onClick: l2[3] || (l2[3] = (e3) => $.value = true) }, { default: t(() => l2[9] || (l2[9] = [p("编辑")])), _: 1 }), m(u(R2, { type: "success" }, { default: t(() => l2[10] || (l2[10] = [p(" 已设置条件. ")])), _: 1 }, 512), [[d, e2.configure.props && e2.configure.props.setValueList && e2.configure.props.setValueList.length > 0]])]), _: 1 }), u(D2, { label: "显示条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(C, { key: e2.configure.uuid + "_show", configure: e2.configure, type: "showConditions", tableConfigure: S.value }, null, 8, ["configure", "tableConfigure"]))]), _: 1 }), u(D2, { label: "日志设置", class: "amb-design-attr-item" }, { default: t(() => [u(O3, { type: "primary", onClick: l2[4] || (l2[4] = (e3) => x.value = true) }, { default: t(() => l2[11] || (l2[11] = [p("编辑")])), _: 1 })]), _: 1 }), I.value ? (n(), i(D2, { key: 1, label: "意见必填", class: "amb-design-attr-item" }, { default: t(() => [u(E2, { modelValue: e2.configure.props.base.isMustOpinion, "onUpdate:modelValue": l2[5] || (l2[5] = (o3) => e2.configure.props.base.isMustOpinion = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), e2.configure.props.base.isMustOpinion ? (n(), i(D2, { key: 2, label: "意见必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(C, { key: e2.configure.uuid + "_opinion", configure: e2.configure, type: "mustOpinionConditions", tableConfigure: S.value, title: "意见必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : s("", true), J.value ? (n(), i(D2, { key: 3, label: "备注必填", class: "amb-design-attr-item" }, { default: t(() => [u(E2, { modelValue: e2.configure.props.base.isMustRemark, "onUpdate:modelValue": l2[6] || (l2[6] = (o3) => e2.configure.props.base.isMustRemark = o3), size: "default" }, null, 8, ["modelValue"])]), _: 1 })) : s("", true), e2.configure.props.base.isMustRemark ? (n(), i(D2, { key: 4, label: "备注必填条件", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(C, { key: e2.configure.uuid + "_remark", configure: e2.configure, type: "mustRemarkConditions", tableConfigure: S.value, title: "办理备注必填条件" }, null, 8, ["configure", "tableConfigure"]))]), _: 1 })) : s("", true), B.value ? (n(), i(D2, { key: 5, label: "任务标题", class: "amb-design-attr-item" }, { default: t(() => [(n(), i(h, { key: e2.configure.uuid + "_taskTitle", configure: e2.configure, pageDesign: e2.pageDesign, title: "任务标题生效条件" }, null, 8, ["configure", "pageDesign"]))]), _: 1 })) : s("", true)])]), _: 1 }), u(G, { title: "水印设置", name: "watermark", class: "amb-design-attr-group-header" }, { default: t(() => [u(w, { configure: e2.configure }, null, 8, ["configure"])]), _: 1 }), z.value ? (n(), i(b, { key: 0, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: S.value, onClose: A }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : s("", true), $.value ? (n(), i(v, { key: 1, pageDesign: e2.pageDesign, configure: e2.configure, tableConfigure: S.value, onSave: P, onClose: F }, null, 8, ["pageDesign", "configure", "tableConfigure"])) : s("", true), T.value ? (n(), i(y, { key: 2, conditionList: e2.configure.props.base.showConditions, fieldNameList: e2.pageDesign.modelFields, fieldMap: e2.pageDesign.modelFieldsMap, tableConfigure: S.value, onSave: q, onClose: W }, null, 8, ["conditionList", "fieldNameList", "fieldMap", "tableConfigure"])) : s("", true), x.value ? (n(), i(k, { key: 3, modelValue: e2.configure.props.base.logSetting, onClose: N, onSave: U }, null, 8, ["modelValue"])) : s("", true)]), _: 1 }, 8, ["modelValue"])]), _: 1 });
|
|
59
59
|
};
|
|
60
60
|
} });
|
|
61
61
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./button-attr-base.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const o = e(t, [["__scopeId", "data-v-
|
|
4
|
+
const o = e(t, [["__scopeId", "data-v-4240c332"]]);
|
|
5
5
|
export {
|
|
6
6
|
o as default
|
|
7
7
|
};
|