cloud-web-corejs 1.0.54-dev.35 → 1.0.54-dev.351
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/package.json +8 -3
- package/src/components/Qrcode/fileParse.vue +0 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +218 -120
- package/src/components/advancedSearchDialog/mixins.js +1 -1
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/mixins.js +1 -1
- package/src/components/baseInputExport/mixins.js +386 -1
- package/src/components/errorMsg/mixins.js +94 -5
- package/src/components/excelExport/button.vue +57 -4
- package/src/components/excelExport/exportFieldDialog.vue +16 -6
- package/src/components/excelExport/index.js +7 -5
- package/src/components/excelExport/index.vue +64 -8
- package/src/components/excelExport/mixins.js +3 -2
- package/src/components/excelImport/mixins.js +750 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
- package/src/components/fileLibrary/filterDialog.vue +383 -0
- package/src/components/fileLibrary/index.vue +23 -24
- package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +335 -212
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +31 -27
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +4 -4
- package/src/components/fileLibrary/mixins/indexMixins.js +69 -26
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
- package/src/components/fileLibrary/propertiesDialog.vue +18 -0
- package/src/components/fileLibrary/shareDialog.vue +1 -1
- package/src/components/formOplog/mixins.js +1 -1
- package/src/components/jsonImport/index.js +1 -1
- package/src/components/jsonImport/mixins.js +333 -1
- package/src/components/langImport/mixins.js +500 -16
- package/src/components/statusTag/mixins.js +1 -1
- package/src/components/table/CellSlot.vue +1 -0
- package/src/components/table/index.js +12 -10
- package/src/components/table/tableForm.vue +99 -63
- package/src/components/table/tableFormMixin.js +1 -1
- package/src/components/table/util/index.js +328 -0
- package/src/components/table/vxeFilter/mixin.js +6 -6
- package/src/components/tempStorage/index.vue +9 -6
- package/src/components/tempStorage/tempStorageDialog.vue +1 -1
- package/src/components/vb-tabs/x-tabs.vue +3 -2
- package/src/components/wf/addOpinionButton.vue +57 -0
- package/src/components/wf/content.vue +833 -362
- package/src/components/wf/mixins/addOpinionButton.js +3 -0
- package/src/components/wf/mixins/setCandidateButton.js +6 -0
- package/src/components/wf/mixins/setCandidateDialog.js +2 -1
- package/src/components/wf/mixins/setCandidateDialog2.js +6 -0
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +131 -0
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +3 -0
- package/src/components/wf/setCandidateButton.vue +40 -0
- package/src/components/wf/setCandidateDialog.vue +10 -0
- package/src/components/wf/setCandidateDialog2.vue +95 -0
- package/src/components/wf/wf.js +2117 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
- package/src/components/wf/wfStartDialog.vue +70 -42
- package/src/components/wf/wfTaskUserRangeDialog.vue +65 -0
- package/src/components/wf/wfUtil.js +1 -1
- package/src/components/xform/form-designer/designer.js +1649 -3
- package/src/components/xform/form-designer/form-widget/container-widget/containerMixin.js +3 -3
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +289 -8
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
- package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +16 -4
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1331 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +26 -7
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +21 -2
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1615 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +652 -379
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +10 -8
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +176 -0
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +107 -81
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +185 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +108 -0
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -3
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +21 -5
- package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +17 -5
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -0
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +31 -17
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +99 -0
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +127 -0
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +2 -170
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +259 -58
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +725 -0
- package/src/components/xform/form-designer/indexMixin.js +825 -2
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +927 -159
- package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +376 -302
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +126 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1196 -1042
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1160 -511
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +64 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +32 -9
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +67 -41
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +62 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +52 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +31 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +318 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +10 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +305 -19
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +384 -53
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +263 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +30 -11
- package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +19 -18
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1576 -874
- package/src/components/xform/form-render/container-item/containerItemMixin.js +359 -11
- package/src/components/xform/form-render/container-item/data-table-item.vue +89 -42
- package/src/components/xform/form-render/container-item/data-table-mixin.js +22 -18
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
- package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
- package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
- package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
- package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
- package/src/components/xform/form-render/container-item/table-item.vue +4 -2
- package/src/components/xform/form-render/index.vue +4 -1
- package/src/components/xform/form-render/indexMixin.js +13 -26
- package/src/components/xform/lang/zh-CN.js +20 -3
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +175 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/format.js +21 -30
- package/src/components/xform/utils/formula-util.js +669 -0
- package/src/components/xform/utils/util.js +1451 -1
- package/src/components/xform/utils/validators.js +1 -5
- package/src/index.js +2 -2
- package/src/layout/components/AppMain.vue +5 -1
- package/src/layout/components/Sidebar/default.vue +50 -6
- package/src/layout/components/TagsView/index.vue +37 -12
- package/src/layout/components/extractedCode/createDialog.vue +92 -0
- package/src/layout/components/extractedCode/queryDialog.vue +96 -0
- package/src/layout/components/extractedCode/viewDialog.vue +193 -0
- package/src/layout/components/watermark/index.vue +83 -0
- package/src/layout/defaultLayout.vue +1 -1
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/mixins/tableTree/index.js +1 -1
- package/src/router/modules/customer.js +61 -8
- package/src/store/config/index.js +1 -532
- package/src/store/modules/permission.js +1 -1
- package/src/store/modules/settings.js +1 -1
- package/src/store/modules/tagsView.js +1 -14
- package/src/store/modules/user.js +1 -1
- package/src/utils/index.js +2 -3
- package/src/utils/pddLog.js +103 -0
- package/src/utils/pdfUtil.js +71 -0
- package/src/utils/request.js +359 -1
- package/src/utils/vab.js +1113 -27
- package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
- package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
- package/src/views/bd/setting/bd_company_env/edit.vue +193 -0
- package/src/views/bd/setting/bd_company_env/list.vue +175 -0
- package/src/views/bd/setting/config_manage/list.vue +66 -0
- package/src/views/bd/setting/form_import_log/edit.vue +127 -0
- package/src/views/bd/setting/form_import_log/list.vue +206 -0
- package/src/views/bd/setting/form_script/edit.vue +9 -0
- package/src/views/bd/setting/form_script/edit1.vue +36 -3
- package/src/views/bd/setting/form_script/form_list.vue +1 -1
- package/src/views/bd/setting/form_script/list1.vue +4 -4
- package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +201 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
- package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
- package/src/views/bd/setting/form_script/mixins/list.js +236 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +423 -14
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
- package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
- package/src/views/bd/setting/form_template/edit.vue +22 -1
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/list.vue +5 -5
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +282 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
- package/src/views/bd/setting/form_template/mixins/list.js +689 -22
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +140 -75
- package/src/views/bd/setting/form_template/{list2.vue → wf_list.vue} +25 -35
- package/src/views/bd/setting/logic_param/edit.vue +146 -0
- package/src/views/bd/setting/logic_param/edit1.vue +106 -0
- package/src/views/bd/setting/logic_param/edit2.vue +122 -0
- package/src/views/bd/setting/logic_param/list.vue +74 -0
- package/src/views/bd/setting/logic_param/list1.vue +12 -0
- package/src/views/bd/setting/logic_param/list2.vue +12 -0
- package/src/views/bd/setting/logic_param/mixins/edit.js +93 -0
- package/src/views/bd/setting/logic_param/mixins/list.js +358 -0
- package/src/views/bd/setting/menu_kind/list.vue +4 -0
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +300 -7
- package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
- package/src/views/bd/setting/push_data/edit.vue +139 -0
- package/src/views/bd/setting/push_data/list.vue +283 -0
- package/src/views/bd/setting/push_data_h/edit.vue +153 -0
- package/src/views/bd/setting/push_data_h/list.vue +293 -0
- package/src/views/bd/setting/request_async_setting/edit.vue +320 -0
- package/src/views/bd/setting/request_async_setting/list.vue +372 -0
- package/src/views/bd/setting/request_setting/edit.vue +300 -0
- package/src/views/bd/setting/request_setting/list.vue +311 -0
- package/src/views/bd/setting/table_model/edit.vue +875 -426
- package/src/views/bd/setting/table_model/list.vue +4 -4
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +1202 -13
- package/src/views/bd/setting/table_model/mixins/list.js +440 -14
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/user/area/dialog.vue +21 -9
- package/src/views/user/bill_setting/edit.vue +1 -1
- package/src/views/user/bill_setting/list.vue +1 -1
- package/src/views/user/common_attribute/itemEdit.vue +2 -2
- package/src/views/user/common_attribute/list.vue +1 -1
- package/src/views/user/common_script/edit.vue +1 -1
- package/src/views/user/common_script/list.vue +1 -1
- package/src/views/user/company_info/dialog.vue +164 -154
- package/src/views/user/company_info/edit.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +1 -0
- package/src/views/user/extend_datasource/edit.vue +3 -0
- package/src/views/user/extend_datasource/list.vue +2 -1
- package/src/views/user/fieldTranslation/editDialog.vue +7 -7
- package/src/views/user/fieldTranslation/list.vue +32 -32
- package/src/views/user/form/vform/designer.vue +775 -749
- package/src/views/user/form/vform/out_render.vue +1 -1
- package/src/views/user/form/vform/render.vue +8 -4
- package/src/views/user/form/view/edit.vue +38 -37
- package/src/views/user/form/view/list.vue +68 -15
- package/src/views/user/groups/edit.vue +2 -0
- package/src/views/user/groups/list.vue +1 -0
- package/src/views/user/home/default.vue +1025 -979
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +16 -6
- package/src/views/user/home/taili/index.vue +1034 -0
- package/src/views/user/login/default.vue +32 -3
- package/src/views/user/login/indexMixin.js +117 -3
- package/src/views/user/notify_message/dialog.vue +39 -18
- package/src/views/user/notify_template/edit.vue +188 -187
- package/src/views/user/notify_template/edit2.vue +176 -0
- package/src/views/user/notify_template/list.vue +4 -1
- package/src/views/user/notify_template/list2.vue +190 -0
- package/src/views/user/outLink/form_view.vue +211 -184
- package/src/views/user/outLink/index.vue +17 -0
- package/src/views/user/outLink/view.vue +28 -23
- package/src/views/user/position/edit.vue +116 -83
- package/src/views/user/position/list.vue +118 -86
- package/src/views/user/project_tag/dialog.vue +9 -4
- package/src/views/user/project_tag/edit.vue +2 -2
- package/src/views/user/project_tag/list.vue +9 -4
- package/src/views/user/push_setting/list.vue +2 -2
- package/src/views/user/request_setting/edit.vue +258 -0
- package/src/views/user/request_setting/list.vue +248 -0
- package/src/views/user/role/dialog.vue +1 -1
- package/src/views/user/role/list.vue +4 -4
- package/src/views/user/sale_org/dialog.vue +1 -1
- package/src/views/user/sale_org/list.vue +4 -1
- package/src/views/user/user/dialog.vue +46 -23
- package/src/views/user/user/edit.vue +1059 -1021
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/form_edit.vue +9 -0
- package/src/views/user/user/form_info.vue +210 -0
- package/src/views/user/user/form_list.vue +1 -0
- package/src/views/user/user/list.vue +647 -563
- package/src/views/user/wf/wfReport/index.vue +448 -0
- package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
- package/src/views/user/wf/wf_manage/list.vue +371 -249
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +25 -1
- package/src/views/user/wf/wf_obj_config/list.vue +114 -9
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
- package/src/views/user/wf/wf_transfer_setting/edit.vue +229 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +308 -0
- package/src/views/bd/setting/form_template/mixins/list2.js +0 -12
package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
:display-style="field.options.displayStyle"
|
5
5
|
:parent-widget="parentWidget" :parent-list="parentList"
|
6
6
|
:index-of-parent-list="indexOfParentList">
|
7
|
-
<el-button type="
|
8
|
-
:disabled="field.options.disabled">{{
|
7
|
+
<el-button :type="field.options.type" class="button-sty" size="mini" icon="el-icon-download" @click="importHandle"
|
8
|
+
:disabled="field.options.disabled">{{ getI18nLabel(field.options.label)}}
|
9
9
|
</el-button>
|
10
10
|
</static-content-wrapper>
|
11
11
|
|
@@ -61,14 +61,16 @@ export default {
|
|
61
61
|
|
62
62
|
methods: {
|
63
63
|
importHandle() {
|
64
|
-
let
|
65
|
-
let
|
66
|
-
let importAttachCode = this.field.options.importAttachCode;
|
67
|
-
// let importCodes = this.field.options.importCodes;
|
64
|
+
let multi = this.field.options.importMultiple || false;
|
65
|
+
let multiSize = this.field.options.importMultiSize || 1;
|
68
66
|
this.getFormRef().openImportDialog({
|
67
|
+
target: this,
|
69
68
|
importOption: this.field.options,
|
70
|
-
|
71
|
-
|
69
|
+
importFrontOnly: false,
|
70
|
+
multi,
|
71
|
+
multiSize,
|
72
|
+
callback: (resultData, file, done) => {
|
73
|
+
|
72
74
|
}
|
73
75
|
});
|
74
76
|
}
|
@@ -0,0 +1,81 @@
|
|
1
|
+
<template>
|
2
|
+
<static-content-wrapper
|
3
|
+
:designer="designer" :field="field" :design-state="designState"
|
4
|
+
:display-style="field.options.displayStyle"
|
5
|
+
:parent-widget="parentWidget" :parent-list="parentList"
|
6
|
+
:index-of-parent-list="indexOfParentList">
|
7
|
+
<el-button :type="field.options.type" class="button-sty" size="mini" icon="el-icon-download" @click="importHandle"
|
8
|
+
:disabled="field.options.disabled">{{ getI18nLabel(field.options.label)}}
|
9
|
+
</el-button>
|
10
|
+
</static-content-wrapper>
|
11
|
+
|
12
|
+
</template>
|
13
|
+
<script>
|
14
|
+
import emitter from '../../../../../components/xform/utils/emitter'
|
15
|
+
import i18n from "../../../../../components/xform/utils/i18n";
|
16
|
+
import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
|
17
|
+
import StaticContentWrapper
|
18
|
+
from "../../../../../components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue";
|
19
|
+
|
20
|
+
export default {
|
21
|
+
name: "import2-button-widget",
|
22
|
+
components: {StaticContentWrapper},
|
23
|
+
componentName: 'FieldWidget', //必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
24
|
+
mixins: [emitter, fieldMixin, i18n],
|
25
|
+
props: {
|
26
|
+
field: Object,
|
27
|
+
parentWidget: Object,
|
28
|
+
parentList: Array,
|
29
|
+
indexOfParentList: Number,
|
30
|
+
designer: Object,
|
31
|
+
designState: {
|
32
|
+
type: Boolean,
|
33
|
+
default: false
|
34
|
+
}
|
35
|
+
},
|
36
|
+
data() {
|
37
|
+
return {
|
38
|
+
exportOption: {}
|
39
|
+
}
|
40
|
+
},
|
41
|
+
beforeCreate() {
|
42
|
+
/* 这里不能访问方法和属性!! */
|
43
|
+
},
|
44
|
+
created() {
|
45
|
+
|
46
|
+
/* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
|
47
|
+
需要在父组件created中初始化!! */
|
48
|
+
this.registerToRefList()
|
49
|
+
this.initEventHandler()
|
50
|
+
|
51
|
+
this.handleOnCreated()
|
52
|
+
},
|
53
|
+
|
54
|
+
mounted() {
|
55
|
+
this.handleOnMounted()
|
56
|
+
},
|
57
|
+
|
58
|
+
beforeDestroy() {
|
59
|
+
this.unregisterFromRefList()
|
60
|
+
},
|
61
|
+
|
62
|
+
methods: {
|
63
|
+
importHandle() {
|
64
|
+
this.getFormRef().openImportDialog({
|
65
|
+
target: this,
|
66
|
+
importOption: this.field.options,
|
67
|
+
importFrontOnly: true,
|
68
|
+
callback: (resultData, file, done) => {
|
69
|
+
|
70
|
+
}
|
71
|
+
});
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
}
|
76
|
+
</script>
|
77
|
+
|
78
|
+
<style lang="scss" scoped>
|
79
|
+
@import "~@/styles/global.scss"; //* static-content-wrapper已引入,还需要重复引入吗? *//
|
80
|
+
|
81
|
+
</style>
|
package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js
CHANGED
@@ -3,7 +3,7 @@ import i18n from '../../../../../../components/xform/utils/i18n';
|
|
3
3
|
import fieldMixin from '../../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin';
|
4
4
|
|
5
5
|
import {deepClone} from '../../../../../../components/xform/utils/util';
|
6
|
-
|
6
|
+
import {extendDeeply} from "@base/utils/index.js";
|
7
7
|
import {use} from 'echarts/core';
|
8
8
|
import {CanvasRenderer} from 'echarts/renderers';
|
9
9
|
import {BarChart} from 'echarts/charts';
|
@@ -53,7 +53,6 @@ modules = {
|
|
53
53
|
serieClone: {},
|
54
54
|
showChart: true,
|
55
55
|
colors: [
|
56
|
-
|
57
56
|
{
|
58
57
|
type: 'linear',
|
59
58
|
x: 0.5,
|
@@ -206,6 +205,9 @@ modules = {
|
|
206
205
|
delete chartOptions.yAxis.data;
|
207
206
|
}
|
208
207
|
}
|
208
|
+
},
|
209
|
+
chartOption() {
|
210
|
+
return this.field.options.echarBarOption
|
209
211
|
}
|
210
212
|
},
|
211
213
|
beforeCreate() {
|
@@ -220,6 +222,7 @@ modules = {
|
|
220
222
|
this.initEventHandler();
|
221
223
|
|
222
224
|
this.handleOnCreated();
|
225
|
+
this.initOption();
|
223
226
|
this.serieClone = deepClone(this.field.options.echarBarOption.series[0]);
|
224
227
|
},
|
225
228
|
|
@@ -232,6 +235,37 @@ modules = {
|
|
232
235
|
},
|
233
236
|
|
234
237
|
methods: {
|
238
|
+
reflush(){
|
239
|
+
this.showChart = false;
|
240
|
+
this.$nextTick(()=>{
|
241
|
+
this.showChart = true
|
242
|
+
})
|
243
|
+
},
|
244
|
+
getColors(){
|
245
|
+
let chartColors = this.field.options.echarBarOption.colors || [];
|
246
|
+
let colors = [...chartColors, ...this.colors];
|
247
|
+
return colors
|
248
|
+
},
|
249
|
+
adjustColor() {
|
250
|
+
let colors = this.getColors();
|
251
|
+
let colorsSize = colors.length;
|
252
|
+
this.field.options.echarBarOption.series.forEach((serie, index) => {
|
253
|
+
if (colorsSize > index) {
|
254
|
+
if (serie.itemStyle) {
|
255
|
+
serie.itemStyle.color = colors[index]
|
256
|
+
} else {
|
257
|
+
serie.itemStyle = {
|
258
|
+
color: colors[index]
|
259
|
+
}
|
260
|
+
}
|
261
|
+
}
|
262
|
+
})
|
263
|
+
},
|
264
|
+
initOption() {
|
265
|
+
let echartConfig = this.handleCustomEvent(this.field.options.echartConfig) || {};
|
266
|
+
this.field.options.echarBarOption = extendDeeply(this.field.options.echarBarOption, echartConfig);
|
267
|
+
this.adjustColor();
|
268
|
+
},
|
235
269
|
/*async loadData() {
|
236
270
|
if (this.designState) {
|
237
271
|
this.showChart = true;
|
@@ -364,7 +398,7 @@ modules = {
|
|
364
398
|
});
|
365
399
|
},
|
366
400
|
setValue(rows) {
|
367
|
-
this.showChart
|
401
|
+
this.showChart = false;
|
368
402
|
let serieClone = this.serieClone;
|
369
403
|
let resDatas = rows || [];
|
370
404
|
let axisDatas = [];
|
@@ -383,14 +417,18 @@ modules = {
|
|
383
417
|
nameDatas.push(resData.name);
|
384
418
|
}
|
385
419
|
});
|
386
|
-
let colors = this.
|
420
|
+
let colors = this.getColors();
|
387
421
|
let colorsSize = colors.length;
|
388
422
|
nameDatas.forEach((nameItem, index) => {
|
389
423
|
let serie = deepClone(serieClone);
|
390
424
|
serie.name = nameItem;
|
391
|
-
if (
|
392
|
-
if (
|
425
|
+
if (colorsSize > index) {
|
426
|
+
if (serie.itemStyle) {
|
393
427
|
serie.itemStyle.color = colors[index]
|
428
|
+
} else {
|
429
|
+
serie.itemStyle = {
|
430
|
+
color: colors[index]
|
431
|
+
}
|
394
432
|
}
|
395
433
|
}
|
396
434
|
let serieDatas = [];
|
@@ -409,9 +447,12 @@ modules = {
|
|
409
447
|
let chartOptions = this.field.options.echarBarOption;
|
410
448
|
chartOptions[this.alignField].data = axisDatas;
|
411
449
|
chartOptions.series = newSeries;
|
412
|
-
this.$nextTick(()=>{
|
413
|
-
this.showChart
|
450
|
+
this.$nextTick(() => {
|
451
|
+
this.showChart = true;
|
414
452
|
})
|
453
|
+
},
|
454
|
+
getChart() {
|
455
|
+
return this.$refs.chart;
|
415
456
|
}
|
416
457
|
}
|
417
458
|
};
|
package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js
CHANGED
@@ -9,6 +9,7 @@ import {CanvasRenderer} from 'echarts/renderers';
|
|
9
9
|
import {LineChart} from 'echarts/charts';
|
10
10
|
import {TitleComponent, TooltipComponent, LegendComponent} from 'echarts/components';
|
11
11
|
import {THEME_KEY} from 'vue-echarts';
|
12
|
+
import {extendDeeply} from "@base/utils/index.js";
|
12
13
|
|
13
14
|
use([CanvasRenderer, LineChart, TitleComponent, TooltipComponent, LegendComponent]);
|
14
15
|
let modules = {};
|
@@ -52,87 +53,8 @@ modules = {
|
|
52
53
|
requestAccesses: [],
|
53
54
|
requestAccess: null,
|
54
55
|
serieClone: {},
|
55
|
-
showChart:true,
|
56
|
-
colors: [
|
57
|
-
|
58
|
-
{
|
59
|
-
type: 'linear',
|
60
|
-
x: 0.5,
|
61
|
-
y: 0.9,
|
62
|
-
r: 0.2,
|
63
|
-
colorStops: [{
|
64
|
-
offset: 1, color: '#08C084' // 0% 处的颜色
|
65
|
-
}, {
|
66
|
-
offset: 0, color: '#97EACE' // 100% 处的颜色
|
67
|
-
}],
|
68
|
-
},
|
69
|
-
{
|
70
|
-
type: 'linear',
|
71
|
-
x: 0.5,
|
72
|
-
y: 0.9,
|
73
|
-
r: 0.2,
|
74
|
-
colorStops: [{
|
75
|
-
offset: 1, color: '#29ABE3' // 0% 处的颜色
|
76
|
-
}, {
|
77
|
-
offset: 0, color: '#AADEF4' // 100% 处的颜色
|
78
|
-
}],
|
79
|
-
},
|
80
|
-
{
|
81
|
-
type: 'linear',
|
82
|
-
x: 0.5,
|
83
|
-
y: 0.9,
|
84
|
-
r: 0.2,
|
85
|
-
colorStops: [{
|
86
|
-
offset: 1, color: '#0044FE' // 0% 处的颜色
|
87
|
-
}, {
|
88
|
-
offset: 0, color: '#97B3FF' // 100% 处的颜色
|
89
|
-
}],
|
90
|
-
},
|
91
|
-
{
|
92
|
-
type: 'linear',
|
93
|
-
x: 0.5,
|
94
|
-
y: 0.9,
|
95
|
-
r: 0.2,
|
96
|
-
colorStops: [{
|
97
|
-
offset: 1, color: '#75018A' // 0% 处的颜色
|
98
|
-
}, {
|
99
|
-
offset: 0, color: '#C492CD' // 100% 处的颜色
|
100
|
-
}],
|
101
|
-
},
|
102
|
-
{
|
103
|
-
type: 'linear',
|
104
|
-
x: 0.5,
|
105
|
-
y: 0.9,
|
106
|
-
r: 0.2,
|
107
|
-
colorStops: [{
|
108
|
-
offset: 1, color: '#BF0104' // 0% 处的颜色
|
109
|
-
}, {
|
110
|
-
offset: 0, color: '#E59697' // 100% 处的颜色
|
111
|
-
}],
|
112
|
-
},
|
113
|
-
{
|
114
|
-
type: 'linear',
|
115
|
-
x: 0.5,
|
116
|
-
y: 0.9,
|
117
|
-
r: 0.2,
|
118
|
-
colorStops: [{
|
119
|
-
offset: 1, color: '#FF8B01' // 0% 处的颜色
|
120
|
-
}, {
|
121
|
-
offset: 0, color: '#FFCF95' // 100% 处的颜色
|
122
|
-
}],
|
123
|
-
},
|
124
|
-
{
|
125
|
-
type: 'linear',
|
126
|
-
x: 0.5,
|
127
|
-
y: 0.9,
|
128
|
-
r: 0.2,
|
129
|
-
colorStops: [{
|
130
|
-
offset: 1, color: '#FAFE09' // 0% 处的颜色
|
131
|
-
}, {
|
132
|
-
offset: 0, color: '#FCFFAF' // 100% 处的颜色
|
133
|
-
}],
|
134
|
-
}
|
135
|
-
]
|
56
|
+
showChart: true,
|
57
|
+
colors: []
|
136
58
|
};
|
137
59
|
},
|
138
60
|
computed: {
|
@@ -157,6 +79,9 @@ modules = {
|
|
157
79
|
return height;
|
158
80
|
}
|
159
81
|
return '';
|
82
|
+
},
|
83
|
+
chartOption() {
|
84
|
+
return this.field.options.echarCategoryOption
|
160
85
|
}
|
161
86
|
},
|
162
87
|
beforeCreate() {
|
@@ -171,6 +96,7 @@ modules = {
|
|
171
96
|
this.initEventHandler();
|
172
97
|
|
173
98
|
this.handleOnCreated();
|
99
|
+
this.initOption();
|
174
100
|
this.serieClone = deepClone(this.field.options.echarCategoryOption.series[0]);
|
175
101
|
// this.loadData();
|
176
102
|
},
|
@@ -184,6 +110,38 @@ modules = {
|
|
184
110
|
},
|
185
111
|
|
186
112
|
methods: {
|
113
|
+
getColors() {
|
114
|
+
let chartColors = this.field.options.echarCategoryOption.colors || [];
|
115
|
+
let colors = [...chartColors, ...this.colors];
|
116
|
+
return colors
|
117
|
+
},
|
118
|
+
adjustColor() {
|
119
|
+
let colors = this.getColors();
|
120
|
+
let colorsSize = colors.length;
|
121
|
+
this.field.options.echarCategoryOption.series.forEach((serie, index) => {
|
122
|
+
if (colorsSize > index) {
|
123
|
+
if (serie.lineStyle) {
|
124
|
+
serie.lineStyle.color = colors[index]
|
125
|
+
} else {
|
126
|
+
serie.lineStyle = {
|
127
|
+
color: colors[index]
|
128
|
+
}
|
129
|
+
}
|
130
|
+
if (serie.itemStyle) {
|
131
|
+
serie.itemStyle.color = colors[index]
|
132
|
+
} else {
|
133
|
+
serie.itemStyle = {
|
134
|
+
color: colors[index]
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
})
|
139
|
+
},
|
140
|
+
initOption() {
|
141
|
+
let echartConfig = this.handleCustomEvent(this.field.options.echartConfig) || {};
|
142
|
+
this.field.options.echarCategoryOption = extendDeeply(this.field.options.echarCategoryOption, echartConfig);
|
143
|
+
this.adjustColor();
|
144
|
+
},
|
187
145
|
/*async loadData() {
|
188
146
|
if (this.designState) {
|
189
147
|
return;
|
@@ -312,7 +270,7 @@ modules = {
|
|
312
270
|
});
|
313
271
|
},
|
314
272
|
setValue(rows) {
|
315
|
-
this.showChart
|
273
|
+
this.showChart = false;
|
316
274
|
let serieClone = this.serieClone;
|
317
275
|
let resDatas = rows || [];
|
318
276
|
let axisDatas = [];
|
@@ -331,16 +289,28 @@ modules = {
|
|
331
289
|
nameDatas.push(resData.name);
|
332
290
|
}
|
333
291
|
});
|
334
|
-
let colors = this.
|
292
|
+
let colors = this.getColors();
|
335
293
|
let colorsSize = colors.length;
|
336
294
|
nameDatas.forEach((nameItem, index) => {
|
337
295
|
let serie = deepClone(serieClone);
|
338
296
|
serie.name = nameItem;
|
339
|
-
|
340
|
-
if (
|
297
|
+
if (colorsSize > index) {
|
298
|
+
if (serie.lineStyle) {
|
341
299
|
serie.lineStyle.color = colors[index]
|
300
|
+
} else {
|
301
|
+
serie.lineStyle = {
|
302
|
+
color: colors[index]
|
303
|
+
}
|
304
|
+
}
|
305
|
+
if (serie.itemStyle) {
|
306
|
+
serie.itemStyle.color = colors[index]
|
307
|
+
} else {
|
308
|
+
serie.itemStyle = {
|
309
|
+
color: colors[index]
|
310
|
+
}
|
342
311
|
}
|
343
|
-
}
|
312
|
+
}
|
313
|
+
|
344
314
|
delete serie.lineStyle
|
345
315
|
|
346
316
|
let serieDatas = [];
|
@@ -360,9 +330,12 @@ modules = {
|
|
360
330
|
chartOptions.xAxis.data = axisDatas;
|
361
331
|
chartOptions.series = newSeries;
|
362
332
|
|
363
|
-
this.$nextTick(()=>{
|
364
|
-
this.showChart
|
333
|
+
this.$nextTick(() => {
|
334
|
+
this.showChart = true;
|
365
335
|
})
|
336
|
+
},
|
337
|
+
getChart() {
|
338
|
+
return this.$refs.chart;
|
366
339
|
}
|
367
340
|
}
|
368
341
|
};
|
package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js
CHANGED
@@ -9,6 +9,7 @@ import {CanvasRenderer} from 'echarts/renderers';
|
|
9
9
|
import {PieChart} from 'echarts/charts';
|
10
10
|
import {TitleComponent, TooltipComponent, LegendComponent} from 'echarts/components';
|
11
11
|
import {THEME_KEY} from 'vue-echarts';
|
12
|
+
import {extendDeeply} from "@base/utils/index.js";
|
12
13
|
|
13
14
|
use([CanvasRenderer, PieChart, TitleComponent, TooltipComponent, LegendComponent]);
|
14
15
|
|
@@ -53,6 +54,7 @@ modules = {
|
|
53
54
|
requestAccess: null,
|
54
55
|
serieClone: {},
|
55
56
|
showChart: true,
|
57
|
+
colors:[]
|
56
58
|
};
|
57
59
|
},
|
58
60
|
computed: {
|
@@ -77,6 +79,9 @@ modules = {
|
|
77
79
|
return height;
|
78
80
|
}
|
79
81
|
return '';
|
82
|
+
},
|
83
|
+
chartOption() {
|
84
|
+
return this.field.options.echarPieOption
|
80
85
|
}
|
81
86
|
},
|
82
87
|
beforeCreate() {
|
@@ -91,6 +96,7 @@ modules = {
|
|
91
96
|
this.initEventHandler();
|
92
97
|
|
93
98
|
this.handleOnCreated();
|
99
|
+
this.initOption();
|
94
100
|
this.serieClone = deepClone(this.field.options.echarPieOption.series[0]);
|
95
101
|
// this.loadData();
|
96
102
|
},
|
@@ -104,6 +110,10 @@ modules = {
|
|
104
110
|
},
|
105
111
|
|
106
112
|
methods: {
|
113
|
+
initOption() {
|
114
|
+
let echartConfig = this.handleCustomEvent(this.field.options.echartConfig) || {};
|
115
|
+
this.field.options.echarPieOption = extendDeeply(this.field.options.echarPieOption, echartConfig);
|
116
|
+
},
|
107
117
|
/*async loadData() {
|
108
118
|
if (this.designState) {
|
109
119
|
return;
|
@@ -188,6 +198,9 @@ modules = {
|
|
188
198
|
this.$nextTick(() => {
|
189
199
|
this.showChart = true;
|
190
200
|
})
|
201
|
+
},
|
202
|
+
getChart() {
|
203
|
+
return this.$refs.chart;
|
191
204
|
}
|
192
205
|
}
|
193
206
|
};
|
@@ -0,0 +1,176 @@
|
|
1
|
+
import FormItemWrapper from '@base/components/xform/form-designer/form-widget/field-widget/form-item-wrapper'
|
2
|
+
import emitter from '@base/components/xform/utils/emitter'
|
3
|
+
import i18n from "@base/components/xform/utils/i18n";
|
4
|
+
import {deepClone} from "@base/components/xform/utils/util";
|
5
|
+
import fieldMixin from "@base/components/xform/form-designer/form-widget/field-widget/fieldMixin";
|
6
|
+
|
7
|
+
export default {
|
8
|
+
mixins: [emitter, fieldMixin, i18n],
|
9
|
+
props: {
|
10
|
+
field: Object,
|
11
|
+
parentWidget: Object,
|
12
|
+
parentList: Array,
|
13
|
+
indexOfParentList: Number,
|
14
|
+
designer: Object,
|
15
|
+
|
16
|
+
designState: {
|
17
|
+
type: Boolean,
|
18
|
+
default: false
|
19
|
+
},
|
20
|
+
columnConfig: {
|
21
|
+
type: Object,
|
22
|
+
default: null
|
23
|
+
},
|
24
|
+
subFormRowIndex: { /* 子表单组件行索引,从0开始计数 */
|
25
|
+
type: Number,
|
26
|
+
default: -1
|
27
|
+
},
|
28
|
+
subFormColIndex: { /* 子表单组件列索引,从0开始计数 */
|
29
|
+
type: Number,
|
30
|
+
default: -1
|
31
|
+
},
|
32
|
+
subFormRowId: { /* 子表单组件行Id,唯一id且不可变 */
|
33
|
+
type: String,
|
34
|
+
default: ''
|
35
|
+
}
|
36
|
+
},
|
37
|
+
components: {
|
38
|
+
FormItemWrapper
|
39
|
+
},
|
40
|
+
data() {
|
41
|
+
let multipleChoices = this.field.options.multipleChoices || false;
|
42
|
+
let defaultValue = !multipleChoices ? null : [];
|
43
|
+
return {
|
44
|
+
oldFieldValue: defaultValue, //field组件change之前的值
|
45
|
+
fieldModel: defaultValue,
|
46
|
+
showValue2: null,
|
47
|
+
rules: [],
|
48
|
+
showSearchialog: false,
|
49
|
+
dialogContent: null,
|
50
|
+
showSysSearchialog: false,
|
51
|
+
systemDialogParam: {},
|
52
|
+
showVformDialog: false,
|
53
|
+
code: null,
|
54
|
+
formDialogOption: {}
|
55
|
+
}
|
56
|
+
},
|
57
|
+
watch: {
|
58
|
+
fieldModel(val) {
|
59
|
+
this.handleChangeEvent(val);
|
60
|
+
},
|
61
|
+
showValue(val) {
|
62
|
+
this.setShowValue(val);
|
63
|
+
}
|
64
|
+
},
|
65
|
+
computed: {
|
66
|
+
showValue() {
|
67
|
+
let currentData = this.currentData;
|
68
|
+
let fieldKeyName = this.fieldKeyName;
|
69
|
+
let vabSearchName = this.field.options.vabSearchName;
|
70
|
+
let multipleChoices = this.field.options.multipleChoices || false;
|
71
|
+
let labelField = this.field.options.vabSearchName || fieldKeyName;
|
72
|
+
let value = null;
|
73
|
+
if (!multipleChoices) {
|
74
|
+
value = currentData[labelField] ?? null;
|
75
|
+
} else {
|
76
|
+
if (this.fieldModel) {
|
77
|
+
value = this.fieldModel.map(item => item[labelField]).join(",");
|
78
|
+
}
|
79
|
+
}
|
80
|
+
this.showValue2 = value;
|
81
|
+
return value
|
82
|
+
},
|
83
|
+
tableRow() {
|
84
|
+
let tableParam = this.tableParam;
|
85
|
+
return tableParam && tableParam.row ? tableParam.row : null;
|
86
|
+
},
|
87
|
+
currentData() {
|
88
|
+
let tableParam = this.tableParam;
|
89
|
+
return tableParam && tableParam.row ? tableParam.row : this.formModel;
|
90
|
+
}
|
91
|
+
},
|
92
|
+
beforeCreate() {
|
93
|
+
/* 这里不能访问方法和属性!! */
|
94
|
+
},
|
95
|
+
|
96
|
+
created() {
|
97
|
+
/* 注意:子组件mounted在父组件created之后、父组件mounted之前触发,故子组件mounted需要用到的prop
|
98
|
+
需要在父组件created中初始化!! */
|
99
|
+
if (this.field.options.readonly == undefined) {
|
100
|
+
this.$set(this.field.options, "readonly", true);
|
101
|
+
}
|
102
|
+
this.initFieldModel()
|
103
|
+
this.registerToRefList()
|
104
|
+
this.initEventHandler()
|
105
|
+
this.buildFieldRules()
|
106
|
+
|
107
|
+
this.handleOnCreated()
|
108
|
+
// this.initValue();
|
109
|
+
},
|
110
|
+
|
111
|
+
mounted() {
|
112
|
+
this.handleOnMounted()
|
113
|
+
|
114
|
+
},
|
115
|
+
|
116
|
+
beforeDestroy() {
|
117
|
+
this.unregisterFromRefList()
|
118
|
+
},
|
119
|
+
methods: {
|
120
|
+
setShowValue(val = null) {
|
121
|
+
let multipleChoices = this.field.options.multipleChoices || false;
|
122
|
+
if (!multipleChoices) {
|
123
|
+
let fieldKeyName = this.fieldKeyName;
|
124
|
+
let labelField = this.field.options.vabSearchName || fieldKeyName;
|
125
|
+
// this.$set(this.currentData, labelField, val)
|
126
|
+
|
127
|
+
this.currentData[labelField] = val
|
128
|
+
this.showValue2 = val;
|
129
|
+
}
|
130
|
+
},
|
131
|
+
setValue: function (e) {
|
132
|
+
if (this.field.formItemFlag) {
|
133
|
+
let data = this.tableRow || this.formModel;
|
134
|
+
var t = deepClone(this.fieldModel);
|
135
|
+
this.fieldModel = e,
|
136
|
+
this.initFileList(),
|
137
|
+
this.syncUpdateFormModel(e),
|
138
|
+
this.emitFieldDataChange(e, t);
|
139
|
+
}
|
140
|
+
},
|
141
|
+
clearHandle() {
|
142
|
+
let multipleChoices = this.field.options.multipleChoices || false;
|
143
|
+
let defaultValue = !multipleChoices ? null : [];
|
144
|
+
this.setShowValue(null)
|
145
|
+
this.setValue(defaultValue)
|
146
|
+
if (this.field.options.onSearchClear) {
|
147
|
+
let tableParam = this.tableParam;
|
148
|
+
let eventParamNames = [];
|
149
|
+
let eventParamValues = [];
|
150
|
+
if (tableParam) {
|
151
|
+
eventParamNames = ['rowData', 'rowIndex'];
|
152
|
+
eventParamValues = [tableParam.row, tableParam.rowIndex];
|
153
|
+
}
|
154
|
+
this.handleCustomEvent(this.field.options.onSearchClear, eventParamNames, eventParamValues)
|
155
|
+
|
156
|
+
/* var e = new Function(this.field.options.onSearchClear);
|
157
|
+
e.call(this);*/
|
158
|
+
}
|
159
|
+
this.handleClearSearchDialog();
|
160
|
+
},
|
161
|
+
changeShowValue2(val) {
|
162
|
+
if (this.field.options.readonly === false) {
|
163
|
+
let multipleChoices = this.field.options.multipleChoices || false;
|
164
|
+
if (!multipleChoices) {
|
165
|
+
let fieldKeyName = this.fieldKeyName;
|
166
|
+
let vabSearchName = this.field.options.vabSearchName;
|
167
|
+
let labelField = this.field.options.vabSearchName || fieldKeyName;
|
168
|
+
this.currentData[labelField] = val;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
},
|
172
|
+
fieldModelLabel() {
|
173
|
+
return this.showValue;
|
174
|
+
},
|
175
|
+
}
|
176
|
+
}
|