cloud-web-corejs 1.0.54-dev.50 → 1.0.54-dev.501
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 +13 -3
- package/src/App.vue +29 -33
- package/src/api/user.js +16 -0
- package/src/components/Qrcode/fileParse.vue +0 -1
- package/src/components/Tinymce/index.vue +112 -71
- package/src/components/VabUpload/index.js +49 -1
- package/src/components/VabUpload/mixins.js +2 -2
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +209 -120
- package/src/components/advancedSearchDialog/mixins.js +1 -1
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/mixins.js +295 -1
- package/src/components/baseInputExport/index.vue +19 -12
- package/src/components/baseInputExport/mixins.js +389 -1
- package/src/components/baseTabs/mixins.js +166 -1
- package/src/components/errorMsg/mixins.js +6 -5
- package/src/components/excelExport/button.vue +57 -4
- package/src/components/excelExport/index.js +48 -6
- package/src/components/excelExport/index.vue +56 -2
- package/src/components/excelExport/mixins.js +965 -2
- package/src/components/excelImport/mixins.js +2 -1
- package/src/components/fileLibrary/fileObjAuthDialog.vue +179 -89
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
- package/src/components/fileLibrary/filterDialog.vue +454 -0
- package/src/components/fileLibrary/index.vue +594 -254
- 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 +339 -211
- 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 +220 -101
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +64 -4
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +3 -3
- package/src/components/fileLibrary/propertiesDialog.vue +113 -74
- 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 +2 -1
- package/src/components/langImport/mixins.js +17 -16
- package/src/components/obsUpload/index.js +1 -0
- package/src/components/obsUpload/index.vue +231 -0
- package/src/components/obsUpload/mixins.js +8 -0
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/scriptTest/mixins.js +1 -1
- package/src/components/statusTag/mixins.js +1 -1
- package/src/components/table/CellSlot.vue +1 -0
- package/src/components/table/index.js +12 -11
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.es6.min.js +11028 -0
- package/src/components/table/plugins/extend-cell-area/vxe-table-extend-cell-area.min.css +200 -0
- 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 +76 -55
- package/src/components/tempStorage/tempStorageDialog.vue +179 -54
- package/src/components/vb-tabs/x-tabs.vue +57 -30
- package/src/components/wf/addOpinionButton.vue +57 -0
- package/src/components/wf/content.vue +834 -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 +3 -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 +105 -0
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfFlowEleScriptDialog.vue +89 -0
- package/src/components/wf/wfStartDialog.vue +66 -42
- package/src/components/wf/wfTaskUserRangeDialog.vue +65 -0
- package/src/components/wf/wfUtil.js +279 -1
- package/src/components/xform/form-designer/designer.js +5 -3
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +419 -0
- 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 +9 -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/baseFormulaDialog copy.vue +971 -0
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +971 -0
- 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 +82 -49
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +799 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +38 -7
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin - /345/211/257/346/234/254.js" +1639 -0
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1759 -8
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +120 -72
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +2 -2
- 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/cascader-widget.vue +19 -1
- package/src/components/xform/form-designer/form-widget/field-widget/census-widget.vue +40 -28
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +18 -7
- package/src/components/xform/form-designer/form-widget/field-widget/color-widget.vue +4 -1
- 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 +14 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +30 -4
- package/src/components/xform/form-designer/form-widget/field-widget/download-button-widget.vue +133 -0
- 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 +1650 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +646 -379
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +962 -0
- package/src/components/xform/form-designer/form-widget/field-widget/html-text-widget.vue +6 -2
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +22 -11
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +90 -0
- package/src/components/xform/form-designer/form-widget/field-widget/input-widget.vue +7 -2
- 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 +179 -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 +114 -81
- package/src/components/xform/form-designer/form-widget/field-widget/oplog-widget.vue +186 -0
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +44 -27
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +116 -0
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +154 -47
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +26 -6
- 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 +24 -9
- 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 +12 -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 +7 -2
- 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 +147 -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 +3 -171
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +260 -58
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +753 -0
- package/src/components/xform/form-designer/indexMixin.js +3 -772
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +956 -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 +537 -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 +125 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +946 -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 +1127 -512
- 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/container-tree/tree-customClass-editor.vue +31 -2
- 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/downloadButtonFlag-editor.vue +32 -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 +14 -7
- 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-gantt/gantt-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +77 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +96 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +44 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +115 -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 +33 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +66 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +89 -19
- 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/name-editor.vue +124 -50
- 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 +349 -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 +42 -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 +372 -50
- 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 +32 -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 +1653 -869
- package/src/components/xform/form-render/container-item/containerItemMixin.js +12 -11
- package/src/components/xform/form-render/container-item/data-table-item.vue +194 -199
- 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 +62 -25
- 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/container-item/table2-cell-item.vue +53 -34
- package/src/components/xform/form-render/container-item/table2-item.vue +141 -88
- package/src/components/xform/form-render/container-item/tree-item.vue +32 -11
- package/src/components/xform/form-render/index.vue +69 -20
- package/src/components/xform/form-render/indexMixin.js +22 -12
- package/src/components/xform/lang/zh-CN.js +27 -4
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +174 -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 copy 2.js +945 -0
- package/src/components/xform/utils/formula-util copy.js +860 -0
- package/src/components/xform/utils/formula-util.js +970 -0
- package/src/components/xform/utils/util.js +1 -1
- package/src/components/xform/utils/validators.js +1 -5
- package/src/components/xform/utils/vue2js-generator.js +2 -2
- package/src/index.js +210 -190
- package/src/lang/index.js +56 -51
- package/src/lang/locale/en/login.js +20 -0
- package/src/lang/locale/zh/login.js +20 -0
- package/src/layout/components/AppMain.vue +5 -1
- package/src/layout/components/Sidebar/default.vue +1389 -1222
- package/src/layout/components/TagsView/index.vue +37 -12
- package/src/layout/components/createCompany/createCompanyDialog.vue +157 -0
- 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/layout/index.vue +3 -5
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/mixins/table/index.js +151 -0
- package/src/mixins/tableTree/index.js +1 -1
- package/src/permission.js +1 -18
- package/src/router/modules/customer.js +79 -8
- package/src/store/config/index.js +1 -1
- package/src/store/getters.js +3 -1
- 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 -29
- 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 +1 -1
- package/src/utils/vab.js +19 -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 +83 -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 +99 -37
- package/src/views/bd/setting/form_script/list1.vue +181 -118
- 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 +2 -2
- 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 +326 -214
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +11 -10
- 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 +1 -425
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +4 -4
- package/src/views/bd/setting/form_template/wf_list.vue +1 -1
- 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 +139 -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 +3 -0
- package/src/views/bd/setting/logic_param/mixins/list.js +9 -0
- package/src/views/bd/setting/menu_kind/list.vue +172 -83
- 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 +190 -128
- 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/access_log/list.vue +418 -349
- package/src/views/user/area/dialog.vue +223 -117
- package/src/views/user/area/list.vue +318 -0
- 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 +5 -2
- 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 -163
- package/src/views/user/company_info/edit.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +4 -0
- package/src/views/user/extend_datasource/edit.vue +5 -1
- package/src/views/user/extend_datasource/list.vue +5 -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 +776 -749
- package/src/views/user/form/vform/out_render.vue +1 -1
- package/src/views/user/form/vform/render.vue +59 -37
- package/src/views/user/form/view/edit.vue +38 -37
- package/src/views/user/form/view/list.vue +261 -49
- package/src/views/user/home/bears/index.vue +1032 -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/ledger_library/list.vue +10 -12
- package/src/views/user/login/default.vue +165 -36
- package/src/views/user/login/index.vue +4 -6
- package/src/views/user/login/indexMixin.js +184 -8
- package/src/views/user/menu/list.vue +24 -1
- package/src/views/user/notify_message/dialog.vue +38 -22
- 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 +67 -11
- 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/authConfig.vue +89 -0
- package/src/views/user/role/dialog.vue +70 -48
- package/src/views/user/role/edit.vue +609 -429
- 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/system_notice/edit.vue +232 -186
- 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_info.vue +210 -0
- package/src/views/user/user/list.vue +647 -563
- package/src/views/user/user/modifyPasswordDialog.vue +64 -53
- package/src/views/user/wf/wfReport/index.vue +618 -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 +282 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +319 -0
|
@@ -6,12 +6,24 @@
|
|
|
6
6
|
v-bind="dialogConfig"
|
|
7
7
|
@close="close"
|
|
8
8
|
>
|
|
9
|
-
<div class="cont" style="height:450px" v-bind="bodyConfig">
|
|
10
|
-
<v-form-render
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
<div class="cont" style="height: 450px" v-bind="bodyConfig">
|
|
10
|
+
<v-form-render
|
|
11
|
+
:form-json.sync="formJson"
|
|
12
|
+
:form-data="formData"
|
|
13
|
+
:option-data="optionData"
|
|
14
|
+
ref="vFormRef"
|
|
15
|
+
:reportTemplate.sync="formTemplate"
|
|
16
|
+
:conditionParam.sync="conditionParam"
|
|
17
|
+
:formInsData.sync="formInsData"
|
|
18
|
+
v-if="showRender"
|
|
19
|
+
visible-key="showRender"
|
|
20
|
+
:parent-target="_self"
|
|
21
|
+
@reload="reload"
|
|
22
|
+
:dataTableOption="dataTableOption"
|
|
23
|
+
v-bind="formConfig"
|
|
24
|
+
:param="dialogParam"
|
|
25
|
+
class="data-table_height"
|
|
26
|
+
/>
|
|
15
27
|
</div>
|
|
16
28
|
<label id="labBtn" class="transverse">
|
|
17
29
|
<div class="icon">
|
|
@@ -20,46 +32,54 @@
|
|
|
20
32
|
</div>
|
|
21
33
|
</label>
|
|
22
34
|
<div class="multipleChoice">
|
|
23
|
-
<el-tooltip
|
|
24
|
-
|
|
25
|
-
|
|
35
|
+
<el-tooltip
|
|
36
|
+
:enterable="false"
|
|
37
|
+
effect="dark"
|
|
38
|
+
:content="$t1('全部删除')"
|
|
39
|
+
placement="top"
|
|
40
|
+
><a class="allDel icon-quanbushanchu" @click="clearChecked()"></a>
|
|
26
41
|
</el-tooltip>
|
|
27
42
|
<div class="list">
|
|
28
43
|
<template v-if="showRender">
|
|
29
|
-
<div class="item" v-for="(checkRow, index) in checkRows" :key="'c'+index">
|
|
44
|
+
<div class="item" v-for="(checkRow, index) in checkRows" :key="'c' + index">
|
|
30
45
|
<p>{{ checkRow[showFormField] }}</p>
|
|
31
46
|
<a class="el-icon-close" @click="clearTable1Select(index)"></a>
|
|
32
47
|
</div>
|
|
33
48
|
</template>
|
|
34
49
|
</div>
|
|
35
50
|
</div>
|
|
36
|
-
<span
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
51
|
+
<span
|
|
52
|
+
slot="footer"
|
|
53
|
+
class="dialog-footer"
|
|
54
|
+
v-if="option.showFooter !== false"
|
|
55
|
+
v-bind="option.footerConfig"
|
|
56
|
+
>
|
|
57
|
+
<span class="fl tips" v-if="!selectMulti">{{
|
|
58
|
+
$t1("注:双击确认选择(单选)")
|
|
59
|
+
}}</span>
|
|
60
|
+
<el-button type="primary" plain class="button-sty" @click="close">
|
|
61
|
+
<i class="el-icon-close el-icon"></i>
|
|
62
|
+
{{ $t1("取 消") }}
|
|
63
|
+
</el-button>
|
|
64
|
+
<el-button type="primary" @click="dialogSubmit" class="button-sty">
|
|
65
|
+
<i class="el-icon-check el-icon"></i>
|
|
66
|
+
{{ $t1("确 定") }}
|
|
67
|
+
</el-button>
|
|
68
|
+
</span>
|
|
47
69
|
</el-dialog>
|
|
48
70
|
</template>
|
|
49
71
|
|
|
50
72
|
<script>
|
|
51
|
-
import {selectDialogMixins} from
|
|
73
|
+
import { selectDialogMixins } from "../../../../../mixins/selectDialog/index.js";
|
|
52
74
|
import VFormRender from "../../../../../components/xform/form-render/index.vue";
|
|
53
75
|
|
|
54
76
|
export default {
|
|
55
77
|
// name: "vabSearchDialog",
|
|
56
|
-
components: {VFormRender},
|
|
57
|
-
props: [
|
|
78
|
+
components: { VFormRender },
|
|
79
|
+
props: ["visiable", "multi", "rows", "param", "widget", "option"],
|
|
58
80
|
mixins: [selectDialogMixins],
|
|
59
81
|
inject: ["getFormConfig"],
|
|
60
|
-
mounted() {
|
|
61
|
-
|
|
62
|
-
},
|
|
82
|
+
mounted() {},
|
|
63
83
|
data() {
|
|
64
84
|
var that = this;
|
|
65
85
|
return {
|
|
@@ -93,16 +113,21 @@ export default {
|
|
|
93
113
|
onCellDblclick: (param) => {
|
|
94
114
|
this.checkWithSubmit(param);
|
|
95
115
|
},
|
|
116
|
+
otherConfig: {
|
|
117
|
+
onFilter: () => {
|
|
118
|
+
this.checkRows = [];
|
|
119
|
+
},
|
|
120
|
+
},
|
|
96
121
|
config: {
|
|
97
122
|
checkboxConfig: {
|
|
98
123
|
checkStrictly: true,
|
|
99
124
|
showHeader: true,
|
|
100
|
-
trigger:
|
|
101
|
-
}
|
|
102
|
-
}
|
|
125
|
+
trigger: "row",
|
|
126
|
+
},
|
|
127
|
+
},
|
|
103
128
|
},
|
|
104
129
|
$grid: null,
|
|
105
|
-
currentLayoutType: null
|
|
130
|
+
currentLayoutType: null,
|
|
106
131
|
};
|
|
107
132
|
},
|
|
108
133
|
computed: {
|
|
@@ -118,7 +143,7 @@ export default {
|
|
|
118
143
|
dialogConfig() {
|
|
119
144
|
let customClass = "dialog-style list-dialog dialog-checkbox pd_0";
|
|
120
145
|
if (this.option.dialogConfig?.customClass) {
|
|
121
|
-
customClass = customClass + " " + this.option.dialogConfig.customClass
|
|
146
|
+
customClass = customClass + " " + this.option.dialogConfig.customClass;
|
|
122
147
|
}
|
|
123
148
|
let config = {
|
|
124
149
|
title: this.formTemplate.formName,
|
|
@@ -129,46 +154,54 @@ export default {
|
|
|
129
154
|
width: "1200px",
|
|
130
155
|
fullscreen: this.option.fullscreen,
|
|
131
156
|
};
|
|
132
|
-
config = Object.assign({}, config, this.option.dialogConfig, {customClass});
|
|
157
|
+
config = Object.assign({}, config, this.option.dialogConfig, { customClass });
|
|
133
158
|
config.title = this.$t1(config.title);
|
|
134
159
|
return config;
|
|
135
160
|
},
|
|
136
161
|
bodyConfig() {
|
|
137
162
|
let config = {};
|
|
138
|
-
let classStr = this.currentLayoutType
|
|
163
|
+
let classStr = this.currentLayoutType;
|
|
139
164
|
if (this.option.bodyConfig?.class) {
|
|
140
165
|
classStr = classStr + " " + this.option.bodyConfig.class;
|
|
141
166
|
}
|
|
142
167
|
if (this.option.showFooter == false) {
|
|
143
168
|
classStr = classStr + " nfootBtn";
|
|
144
169
|
}
|
|
145
|
-
config = Object.assign({}, config, this.option.bodyConfig, {class: classStr});
|
|
170
|
+
config = Object.assign({}, config, this.option.bodyConfig, { class: classStr });
|
|
146
171
|
return config;
|
|
147
|
-
}
|
|
172
|
+
},
|
|
148
173
|
},
|
|
149
174
|
created() {
|
|
150
175
|
let currentFormConfig = this.getFormConfig();
|
|
151
|
-
this.currentLayoutType = currentFormConfig.layoutType
|
|
176
|
+
this.currentLayoutType = currentFormConfig.layoutType;
|
|
152
177
|
this.initSetting();
|
|
153
178
|
|
|
154
179
|
if (this.option.rows?.length) {
|
|
155
|
-
this.checkRows.push(...this.$baseLodash.cloneDeep(this.option.rows))
|
|
180
|
+
this.checkRows.push(...this.$baseLodash.cloneDeep(this.option.rows));
|
|
156
181
|
}
|
|
157
182
|
|
|
158
183
|
this.selectMulti = this.option.multiple ?? true;
|
|
184
|
+
this.dataTableOption.config.checkboxConfig.showHeader = this.selectMulti;
|
|
185
|
+
if (this.option.queryParam) {
|
|
186
|
+
this.dataTableOption.queryParam = this.option.queryParam;
|
|
187
|
+
}
|
|
159
188
|
this.getReportTemplate();
|
|
160
189
|
},
|
|
161
190
|
methods: {
|
|
191
|
+
reload() {
|
|
192
|
+
this.showRender = false;
|
|
193
|
+
this.getReportTemplate();
|
|
194
|
+
},
|
|
162
195
|
async getReportTemplate() {
|
|
163
196
|
let param = {
|
|
164
197
|
objTypeCode: this.$attrs.objTypeCode,
|
|
165
198
|
objId: this.$attrs.objId,
|
|
166
|
-
taskId: this.$attrs.taskId
|
|
199
|
+
taskId: this.$attrs.taskId,
|
|
167
200
|
};
|
|
168
201
|
this.conditionParam = param;
|
|
169
202
|
let url, data;
|
|
170
203
|
url = USER_PREFIX + `/formTemplate/getByFormCode`;
|
|
171
|
-
data = {stringOne: this.formCode}
|
|
204
|
+
data = { stringOne: this.formCode };
|
|
172
205
|
|
|
173
206
|
let that = this;
|
|
174
207
|
this.$http({
|
|
@@ -178,33 +211,46 @@ export default {
|
|
|
178
211
|
isLoading: true,
|
|
179
212
|
loadingTarget: document.body,
|
|
180
213
|
modalStrictly: true,
|
|
181
|
-
success: res => {
|
|
214
|
+
success: (res) => {
|
|
182
215
|
let formTemplate = res.objx || {};
|
|
183
216
|
this.formTemplate = formTemplate;
|
|
184
|
-
this.formJson = formTemplate.formViewContent
|
|
185
|
-
|
|
217
|
+
this.formJson = formTemplate.formViewContent
|
|
218
|
+
? JSON.parse(formTemplate.formViewContent)
|
|
219
|
+
: {};
|
|
220
|
+
this.layoutType = this.formJson.formConfig.layoutType;
|
|
186
221
|
let formConfig = this.formJson.formConfig;
|
|
187
222
|
if (formConfig.searchDialogUniqueField) {
|
|
188
223
|
this.fieldKey = formConfig.searchDialogUniqueField;
|
|
189
224
|
}
|
|
190
|
-
this.$nextTick(() => {
|
|
225
|
+
/*this.$nextTick(() => {
|
|
191
226
|
let widgetList = this.formJson.widgetList;
|
|
192
|
-
|
|
193
|
-
|
|
227
|
+
setTimeout(()=>{
|
|
228
|
+
this.$grid = this.$refs.vFormRef.getWidgetRef(widgetList[0].options.name).getGridTable();
|
|
229
|
+
},200)
|
|
230
|
+
})*/
|
|
194
231
|
this.initShowFormField();
|
|
195
232
|
this.showRender = true;
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
}
|
|
233
|
+
},
|
|
199
234
|
});
|
|
200
235
|
},
|
|
236
|
+
getGrid() {
|
|
237
|
+
if (!this.$grid) {
|
|
238
|
+
let widgetList = this.formJson.widgetList;
|
|
239
|
+
this.$grid = this.$refs.vFormRef
|
|
240
|
+
.getWidgetRef(widgetList[0].options.name)
|
|
241
|
+
.getGridTable();
|
|
242
|
+
}
|
|
243
|
+
return this.$grid;
|
|
244
|
+
},
|
|
201
245
|
initShowFormField() {
|
|
202
246
|
let showFormField = this.formJson.formConfig.searchDialogNameField || null;
|
|
203
247
|
if (!showFormField) {
|
|
204
|
-
let widgetList = this.formJson.widgetList
|
|
248
|
+
let widgetList = this.formJson.widgetList;
|
|
205
249
|
let tableColumns = widgetList[0].options.tableColumns;
|
|
206
|
-
let column = tableColumns.find(column => !!column.prop);
|
|
250
|
+
let column = tableColumns.find((column) => !!column.prop);
|
|
207
251
|
this.showFormField = column.prop;
|
|
252
|
+
} else {
|
|
253
|
+
this.showFormField = showFormField;
|
|
208
254
|
}
|
|
209
255
|
},
|
|
210
256
|
async getFormInsData() {
|
|
@@ -217,17 +263,17 @@ export default {
|
|
|
217
263
|
method: `post`,
|
|
218
264
|
data: {
|
|
219
265
|
insUuid: insUuid,
|
|
220
|
-
tableAlias: this.formCode
|
|
266
|
+
tableAlias: this.formCode,
|
|
221
267
|
},
|
|
222
268
|
isLoading: true,
|
|
223
269
|
loadingTarget: document.body,
|
|
224
270
|
modalStrictly: true,
|
|
225
|
-
success: res => {
|
|
271
|
+
success: (res) => {
|
|
226
272
|
let formData = res.objx && res.objx.data ? res.objx.data : {};
|
|
227
273
|
this.formData = formData;
|
|
228
274
|
this.formInsData = res.objx;
|
|
229
275
|
// this.formInsData = formData;
|
|
230
|
-
}
|
|
276
|
+
},
|
|
231
277
|
});
|
|
232
278
|
},
|
|
233
279
|
changeH5Checkbox(obj) {
|
|
@@ -238,7 +284,7 @@ export default {
|
|
|
238
284
|
if (selectMulti) {
|
|
239
285
|
let rows = this.checkRows;
|
|
240
286
|
if (obj.checked) {
|
|
241
|
-
let flag = rows.some(item => {
|
|
287
|
+
let flag = rows.some((item) => {
|
|
242
288
|
return row[fieldKey] == item[fieldKey];
|
|
243
289
|
});
|
|
244
290
|
if (!flag) {
|
|
@@ -269,7 +315,7 @@ export default {
|
|
|
269
315
|
if (selectMulti) {
|
|
270
316
|
let rows = this.checkRows;
|
|
271
317
|
if (obj.checked) {
|
|
272
|
-
let flag = rows.some(item => {
|
|
318
|
+
let flag = rows.some((item) => {
|
|
273
319
|
return row[fieldKey] == item[fieldKey];
|
|
274
320
|
});
|
|
275
321
|
if (!flag) {
|
|
@@ -294,8 +340,9 @@ export default {
|
|
|
294
340
|
}
|
|
295
341
|
|
|
296
342
|
if (obj.checked) {
|
|
297
|
-
let ay = $table1.getTableData().fullData;
|
|
298
|
-
let aRows = this.findAllRows(ay);
|
|
343
|
+
// let ay = $table1.getTableData().fullData;
|
|
344
|
+
// let aRows = this.findAllRows(ay);
|
|
345
|
+
let aRows = $table1.getTableData().visibleData;
|
|
299
346
|
let cRows = $table1.getCheckboxRecords();
|
|
300
347
|
if (aRows.length == cRows.length) {
|
|
301
348
|
$table1.setAllCheckboxRow(true);
|
|
@@ -314,9 +361,10 @@ export default {
|
|
|
314
361
|
let selectMulti = this.selectMulti;
|
|
315
362
|
let row = this.checkRows[index];
|
|
316
363
|
var rowid = row[fieldKey];
|
|
317
|
-
let $grid1 = this
|
|
364
|
+
let $grid1 = this.getGrid();
|
|
318
365
|
|
|
319
|
-
let rows = $grid1.getTableData().fullData;
|
|
366
|
+
// let rows = $grid1.getTableData().fullData;
|
|
367
|
+
let rows = $grid1.getTableData().visibleData;
|
|
320
368
|
let row2 = this.findTreeRowById(rows, rowid);
|
|
321
369
|
if (selectMulti) {
|
|
322
370
|
if (row2) $grid1.setCheckboxRow(row2, false);
|
|
@@ -331,10 +379,12 @@ export default {
|
|
|
331
379
|
if (this.currentLayoutType !== "H5") {
|
|
332
380
|
let fieldKey = this.fieldKey;
|
|
333
381
|
var $grid = res.$grid;
|
|
334
|
-
let tableData = $grid.getTableData().fullData;
|
|
335
|
-
let allRows = this.findAllRows(tableData);
|
|
382
|
+
// let tableData = $grid.getTableData().fullData;
|
|
383
|
+
// let allRows = this.findAllRows(tableData);
|
|
384
|
+
let tableData = $grid.getTableData().visibleData;
|
|
385
|
+
let allRows = $grid.getTableData().visibleData;
|
|
336
386
|
$grid.setCheckboxRow(allRows, res.checked);
|
|
337
|
-
allRows.forEach(lineData => {
|
|
387
|
+
allRows.forEach((lineData) => {
|
|
338
388
|
let rowid = lineData[fieldKey];
|
|
339
389
|
let tableData2 = this.checkRows;
|
|
340
390
|
let row2;
|
|
@@ -361,19 +411,19 @@ export default {
|
|
|
361
411
|
if (delIndex != null) checkRows.splice(delIndex, 1);
|
|
362
412
|
}
|
|
363
413
|
}
|
|
364
|
-
})
|
|
414
|
+
});
|
|
365
415
|
}
|
|
366
416
|
},
|
|
367
417
|
clearChecked() {
|
|
368
418
|
if (this.currentLayoutType !== "H5") {
|
|
369
|
-
let $grid1 = this
|
|
419
|
+
let $grid1 = this.getGrid();
|
|
370
420
|
$grid1.clearCheckboxRow();
|
|
371
421
|
}
|
|
372
422
|
this.checkRows = [];
|
|
373
423
|
},
|
|
374
424
|
checkWithSubmit(obj) {
|
|
375
425
|
if (!this.selectMulti) {
|
|
376
|
-
let $grid1 = this
|
|
426
|
+
let $grid1 = this.getGrid();
|
|
377
427
|
var rows = $grid1.getCheckboxRecords(true);
|
|
378
428
|
if (rows && rows.length) {
|
|
379
429
|
this.dialogSubmit();
|
|
@@ -383,7 +433,7 @@ export default {
|
|
|
383
433
|
close() {
|
|
384
434
|
let formRef = this.$refs.vFormRef;
|
|
385
435
|
this.showDialog = false;
|
|
386
|
-
this.$emit(
|
|
436
|
+
this.$emit("update:visiable", false);
|
|
387
437
|
this.option.close && this.option.close(formRef, this);
|
|
388
438
|
},
|
|
389
439
|
dialogSubmit() {
|
|
@@ -395,11 +445,9 @@ export default {
|
|
|
395
445
|
} else {
|
|
396
446
|
this.close();
|
|
397
447
|
}
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
}
|
|
402
|
-
}
|
|
448
|
+
},
|
|
449
|
+
},
|
|
450
|
+
};
|
|
403
451
|
</script>
|
|
404
452
|
|
|
405
453
|
<style scoped>
|
|
@@ -65,12 +65,12 @@ export default {
|
|
|
65
65
|
return this.field.options.labelHidden? null: this.label;
|
|
66
66
|
},
|
|
67
67
|
label() {
|
|
68
|
-
return this.field.options.isFormLabel ? this.
|
|
68
|
+
return this.field.options.isFormLabel ? this.getCurrentValue() : this.getI18nLabel(this.field.options.label);
|
|
69
69
|
},
|
|
70
70
|
widgetClass() {
|
|
71
71
|
let list = [];
|
|
72
72
|
let optionModel = this.field.options
|
|
73
|
-
if (optionModel.
|
|
73
|
+
if (optionModel.colorClass) list.push(optionModel.colorClass);
|
|
74
74
|
if (optionModel.underline) list.push('underLine');
|
|
75
75
|
if (optionModel.disabled) list.push('is-disabled');
|
|
76
76
|
return list
|
|
@@ -66,7 +66,7 @@ export default {
|
|
|
66
66
|
widgetClass() {
|
|
67
67
|
let list = [];
|
|
68
68
|
let optionModel = this.field.options
|
|
69
|
-
if (optionModel.
|
|
69
|
+
if (optionModel.colorClass) list.push(optionModel.colorClass);
|
|
70
70
|
if (optionModel.underline) list.push('underLine');
|
|
71
71
|
if (optionModel.disabled) list.push('is-disabled');
|
|
72
72
|
return list
|
package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue
CHANGED
|
@@ -55,19 +55,23 @@ export default {
|
|
|
55
55
|
oldFieldValue: [], //field组件change之前的值
|
|
56
56
|
fieldModel: [],
|
|
57
57
|
rules: [],
|
|
58
|
-
isH5: false
|
|
58
|
+
isH5: false,
|
|
59
|
+
option:{}
|
|
59
60
|
}
|
|
60
61
|
},
|
|
61
62
|
watch: {
|
|
62
63
|
fieldModel(val) {
|
|
63
64
|
this.handleChangeEvent(val);
|
|
65
|
+
},
|
|
66
|
+
'option':function(){
|
|
67
|
+
|
|
64
68
|
}
|
|
65
69
|
},
|
|
66
70
|
computed: {
|
|
67
71
|
formDataId() {
|
|
68
72
|
let formRef = this.getFormRef();
|
|
69
73
|
return formRef.dataId;
|
|
70
|
-
}
|
|
74
|
+
}/*,
|
|
71
75
|
option() {
|
|
72
76
|
return {
|
|
73
77
|
title: '附件',
|
|
@@ -79,11 +83,15 @@ export default {
|
|
|
79
83
|
rows: (done) => {
|
|
80
84
|
done(this.fieldModel);
|
|
81
85
|
},
|
|
82
|
-
confirm: (
|
|
83
|
-
this.fieldModel =
|
|
86
|
+
confirm: (rows, fileInfos) => {
|
|
87
|
+
this.fieldModel = rows;
|
|
88
|
+
// this.field.options.onAfterConfirmFile && this.field.options.onAfterConfirmFile(rows, fileInfos);
|
|
89
|
+
let eventParamNames = ['attachments', 'fileInfos'];
|
|
90
|
+
let eventParamValues = [rows, fileInfos];
|
|
91
|
+
this.handleCustomEvent(this.field.options.onAfterConfirmFile, eventParamNames, eventParamValues)
|
|
84
92
|
}
|
|
85
93
|
};
|
|
86
|
-
}
|
|
94
|
+
}*/
|
|
87
95
|
},
|
|
88
96
|
beforeCreate() {
|
|
89
97
|
/* 这里不能访问方法和属性!! */
|
|
@@ -112,6 +120,7 @@ export default {
|
|
|
112
120
|
this.buildFieldRules()
|
|
113
121
|
|
|
114
122
|
this.handleOnCreated()
|
|
123
|
+
this.initOption();
|
|
115
124
|
},
|
|
116
125
|
|
|
117
126
|
mounted() {
|
|
@@ -122,6 +131,26 @@ export default {
|
|
|
122
131
|
this.unregisterFromRefList()
|
|
123
132
|
},
|
|
124
133
|
methods: {
|
|
134
|
+
initOption(){
|
|
135
|
+
this.option = {
|
|
136
|
+
title: '附件',
|
|
137
|
+
edit: !this.field.options.disabled,
|
|
138
|
+
uploadConfig: {
|
|
139
|
+
limit: this.field.options.limit,
|
|
140
|
+
resultType: "Array"
|
|
141
|
+
},
|
|
142
|
+
rows: (done) => {
|
|
143
|
+
done(this.fieldModel);
|
|
144
|
+
},
|
|
145
|
+
confirm: (rows, fileInfos) => {
|
|
146
|
+
this.fieldModel = rows;
|
|
147
|
+
// this.field.options.onAfterConfirmFile && this.field.options.onAfterConfirmFile(rows, fileInfos);
|
|
148
|
+
let eventParamNames = ['attachments', 'fileInfos'];
|
|
149
|
+
let eventParamValues = [rows, fileInfos];
|
|
150
|
+
this.handleCustomEvent(this.field.options.onAfterConfirmFile, eventParamNames, eventParamValues)
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
125
154
|
setValue(val) {
|
|
126
155
|
let data = val || []
|
|
127
156
|
this.fieldModel = data;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<el-button ref="fieldEditor" :type="field.options.type" :size="field.options.size" class="button-sty"
|
|
6
6
|
:plain="field.options.plain" :round="field.options.round"
|
|
7
7
|
:circle="field.options.circle" :icon="field.options.icon"
|
|
8
|
-
:disabled="field.options.disabled"
|
|
8
|
+
:disabled="!designState &&field.options.disabled"
|
|
9
9
|
@click.native="handleButtonWidgetClick">
|
|
10
10
|
{{ getI18nLabel(field.options.label)}}</el-button>
|
|
11
11
|
</static-content-wrapper>
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
<form-item-wrapper :designer="designer" :field="field" :rules="rules" :design-state="designState"
|
|
3
3
|
:parent-widget="parentWidget" :parent-list="parentList" :index-of-parent-list="indexOfParentList"
|
|
4
4
|
:sub-form-row-index="subFormRowIndex" :sub-form-col-index="subFormColIndex" :sub-form-row-id="subFormRowId">
|
|
5
|
-
<el-cascader ref="fieldEditor" :options="field.options.optionItems"
|
|
5
|
+
<el-cascader ref="fieldEditor" :options="field.options.optionItems"
|
|
6
|
+
v-model="fieldModel" class="full-width-input"
|
|
7
|
+
v-show="!isReadMode"
|
|
6
8
|
:disabled="field.options.disabled"
|
|
7
9
|
:size="field.options.size"
|
|
8
10
|
:clearable="field.options.clearable"
|
|
@@ -13,6 +15,9 @@
|
|
|
13
15
|
@focus="handleFocusCustomEvent" @blur="handleBlurCustomEvent"
|
|
14
16
|
@change="handleChangeEvent">
|
|
15
17
|
</el-cascader>
|
|
18
|
+
<template v-if="isReadMode">
|
|
19
|
+
<span class="readonly-mode-field">{{contentForReadMode}}</span>
|
|
20
|
+
</template>
|
|
16
21
|
</form-item-wrapper>
|
|
17
22
|
</template>
|
|
18
23
|
|
|
@@ -101,6 +106,19 @@
|
|
|
101
106
|
})
|
|
102
107
|
}, 100)
|
|
103
108
|
},
|
|
109
|
+
contentForReadMode() {
|
|
110
|
+
if (!!this.field.options.multiple) {
|
|
111
|
+
//console.log('test======', this.$refs.fieldEditor.presentTags)
|
|
112
|
+
const curTags = this.$refs.fieldEditor.presentTags
|
|
113
|
+
if (!curTags || (curTags.length <= 0)) {
|
|
114
|
+
return '--'
|
|
115
|
+
} else {
|
|
116
|
+
return curTags.map(tagItem => tagItem.text).join(', ')
|
|
117
|
+
}
|
|
118
|
+
} else {
|
|
119
|
+
return this.$refs.fieldEditor.presentText || '--'
|
|
120
|
+
}
|
|
121
|
+
},
|
|
104
122
|
|
|
105
123
|
}
|
|
106
124
|
}
|
|
@@ -17,8 +17,13 @@
|
|
|
17
17
|
<b>19850</b>
|
|
18
18
|
</div>
|
|
19
19
|
</div> -->
|
|
20
|
-
<div
|
|
21
|
-
|
|
20
|
+
<div
|
|
21
|
+
class="form-count-item"
|
|
22
|
+
v-for="(item, idx) in field.options.censusItems"
|
|
23
|
+
:key="idx"
|
|
24
|
+
:style="{ marginLeft: field.options.space + 'px' }"
|
|
25
|
+
@click="handleClick(item, idx, $event)"
|
|
26
|
+
>
|
|
22
27
|
<div class="t1">
|
|
23
28
|
<p>{{ item.txt }}</p>
|
|
24
29
|
<b>{{ getRealData(item) }}</b>
|
|
@@ -35,14 +40,14 @@
|
|
|
35
40
|
</template>
|
|
36
41
|
|
|
37
42
|
<script>
|
|
38
|
-
import StaticContentWrapper from
|
|
39
|
-
import emitter from
|
|
40
|
-
import i18n from
|
|
41
|
-
import fieldMixin from
|
|
43
|
+
import StaticContentWrapper from "./static-content-wrapper";
|
|
44
|
+
import emitter from "../../../../../components/xform/utils/emitter";
|
|
45
|
+
import i18n from "../../../../../components/xform/utils/i18n";
|
|
46
|
+
import fieldMixin from "../../../../../components/xform/form-designer/form-widget/field-widget/fieldMixin";
|
|
42
47
|
|
|
43
48
|
export default {
|
|
44
|
-
name:
|
|
45
|
-
componentName:
|
|
49
|
+
name: "census-widget",
|
|
50
|
+
componentName: "FieldWidget", //必须固定为FieldWidget,用于接收父级组件的broadcast事件
|
|
46
51
|
mixins: [emitter, fieldMixin, i18n],
|
|
47
52
|
props: {
|
|
48
53
|
field: Object,
|
|
@@ -53,27 +58,27 @@ export default {
|
|
|
53
58
|
|
|
54
59
|
designState: {
|
|
55
60
|
type: Boolean,
|
|
56
|
-
default: false
|
|
61
|
+
default: false,
|
|
57
62
|
},
|
|
58
63
|
|
|
59
64
|
subFormRowIndex: {
|
|
60
65
|
/* 子表单组件行索引,从0开始计数 */
|
|
61
66
|
type: Number,
|
|
62
|
-
default: -1
|
|
67
|
+
default: -1,
|
|
63
68
|
},
|
|
64
69
|
subFormColIndex: {
|
|
65
70
|
/* 子表单组件列索引,从0开始计数 */
|
|
66
71
|
type: Number,
|
|
67
|
-
default: -1
|
|
72
|
+
default: -1,
|
|
68
73
|
},
|
|
69
74
|
subFormRowId: {
|
|
70
75
|
/* 子表单组件行Id,唯一id且不可变 */
|
|
71
76
|
type: String,
|
|
72
|
-
default:
|
|
73
|
-
}
|
|
77
|
+
default: "",
|
|
78
|
+
},
|
|
74
79
|
},
|
|
75
80
|
components: {
|
|
76
|
-
StaticContentWrapper
|
|
81
|
+
StaticContentWrapper,
|
|
77
82
|
},
|
|
78
83
|
data() {
|
|
79
84
|
return {
|
|
@@ -122,20 +127,18 @@ export default {
|
|
|
122
127
|
return;
|
|
123
128
|
}
|
|
124
129
|
let formScriptEnabled = this.field.options.formScriptEnabled || false;
|
|
125
|
-
let scriptCode = this.field.options.formScriptCode
|
|
130
|
+
let scriptCode = this.field.options.formScriptCode;
|
|
126
131
|
if (!scriptCode) return;
|
|
127
|
-
if (!formScriptEnabled) return
|
|
132
|
+
if (!formScriptEnabled) return;
|
|
128
133
|
this.loadDataDefaultHandle();
|
|
129
134
|
},
|
|
130
135
|
loadDataDefaultHandle() {
|
|
131
136
|
let formScriptEnabled = this.field.options.formScriptEnabled || false;
|
|
132
|
-
let scriptCode = this.field.options.formScriptCode
|
|
137
|
+
let scriptCode = this.field.options.formScriptCode;
|
|
133
138
|
if (!scriptCode) return;
|
|
134
|
-
if (!formScriptEnabled) return
|
|
135
|
-
|
|
136
139
|
let reportTemplate = this.getFormRef().reportTemplate;
|
|
137
140
|
let formCode = reportTemplate.formCode;
|
|
138
|
-
let accessParam = this.handleCustomEvent(this.field.options.formScriptParam)
|
|
141
|
+
let accessParam = this.handleCustomEvent(this.field.options.formScriptParam);
|
|
139
142
|
return this.formHttp({
|
|
140
143
|
scriptCode: scriptCode,
|
|
141
144
|
data: {
|
|
@@ -143,20 +146,29 @@ export default {
|
|
|
143
146
|
formVersion: reportTemplate.formVersion,
|
|
144
147
|
taBm: this.fieldKeyName,
|
|
145
148
|
data: {
|
|
146
|
-
...accessParam
|
|
147
|
-
}
|
|
149
|
+
...accessParam,
|
|
150
|
+
},
|
|
148
151
|
},
|
|
149
|
-
callback: res => {
|
|
152
|
+
callback: (res) => {
|
|
150
153
|
let data = res.objx || {};
|
|
151
|
-
this.fieldModel = data
|
|
152
|
-
}
|
|
154
|
+
this.fieldModel = data;
|
|
155
|
+
},
|
|
153
156
|
});
|
|
154
|
-
|
|
155
157
|
},
|
|
156
|
-
|
|
158
|
+
handleClick(row, rowIndex, event) {
|
|
159
|
+
this.handleCustomEvent(
|
|
160
|
+
this.field.options.onClick,
|
|
161
|
+
["event", "param"],
|
|
162
|
+
[event, { row, rowIndex }]
|
|
163
|
+
);
|
|
164
|
+
},
|
|
165
|
+
},
|
|
157
166
|
};
|
|
158
167
|
</script>
|
|
159
168
|
|
|
160
169
|
<style lang="scss" scoped>
|
|
161
|
-
@import
|
|
170
|
+
@import "~@/styles/global.scss"; //* static-content-wrapper已引入,还需要重复引入吗? *//
|
|
171
|
+
.form-count-item {
|
|
172
|
+
cursor: pointer;
|
|
173
|
+
}
|
|
162
174
|
</style>
|