cloud-web-corejs 1.0.54-dev.52 → 1.0.54-dev.521
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 +14 -3
- package/src/App.vue +30 -34
- 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/image-viewer.vue +2 -2
- package/src/components/VabUpload/index.js +2 -1
- package/src/components/VabUpload/mixins.js +2 -2
- package/src/components/VabUpload/privateProfileDialogMixins.js +1 -1063
- 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/base-textarea/index.vue +104 -0
- package/src/components/baseAlert/mixins.js +1 -1
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/mixins.js +2 -1
- package/src/components/baseInputExport/index.vue +19 -12
- package/src/components/baseInputExport/mixins.js +1 -1
- package/src/components/baseTabs/mixins.js +1 -1
- package/src/components/code-editor/index.vue +102 -63
- package/src/components/confirmDialog/index.vue +24 -17
- package/src/components/confirmDialog/mixins.js +1 -1
- package/src/components/errorMsg/index.vue +42 -34
- package/src/components/errorMsg/mixins.js +6 -5
- package/src/components/excelExport/button.vue +57 -4
- package/src/components/excelExport/index.js +6 -6
- package/src/components/excelExport/index.vue +56 -2
- package/src/components/excelExport/mixins.js +3 -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 +56 -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 +2156 -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 +434 -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 +9 -8
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +133 -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 +25 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +705 -379
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +964 -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 +106 -33
- 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 +977 -169
- 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/formatType-editor.vue +137 -0
- 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 +33 -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 +1657 -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 +77 -20
- package/src/components/xform/form-render/indexMixin copy.js +3462 -0
- package/src/components/xform/form-render/indexMixin.js +3517 -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 +3 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/format.js +35 -34
- package/src/components/xform/utils/formula-util.js +966 -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 +215 -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 +1423 -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 +89 -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 +1 -7
- 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 -423
- 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/list.vue +4 -4
- 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/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
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
v-if="showWfDialog2"
|
|
8
8
|
:visible.sync="showWfDialog2"
|
|
9
9
|
:modal="false"
|
|
10
|
-
custom-class="dialog-style designer-dialog indexUse"
|
|
10
|
+
custom-class="el-dialog dialog-style designer-dialog indexUse"
|
|
11
11
|
width="100%"
|
|
12
12
|
height="100%"
|
|
13
13
|
top="0px"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
v-if="showWfContent && wfContent"
|
|
21
21
|
:is="wfContent"
|
|
22
22
|
visible-key="showWfContent"
|
|
23
|
-
|
|
23
|
+
v-bind="param"
|
|
24
24
|
:_isNotifyMessage="true"
|
|
25
25
|
:parent-target="_self"
|
|
26
26
|
@reload="$reloadHandle"
|
|
@@ -35,15 +35,18 @@ export default {
|
|
|
35
35
|
data() {
|
|
36
36
|
return {
|
|
37
37
|
showWfDialog2: false,
|
|
38
|
-
wfUrl2:
|
|
38
|
+
wfUrl2: "",
|
|
39
39
|
showWfContent: true,
|
|
40
40
|
wfContent: null,
|
|
41
|
-
wfDataId:
|
|
41
|
+
wfDataId: "",
|
|
42
|
+
param: {},
|
|
42
43
|
};
|
|
43
44
|
},
|
|
44
45
|
methods: {
|
|
45
46
|
getUrlParam(url) {
|
|
46
|
-
var reg = /([^?&=]+)=([^?&=]+)/g,
|
|
47
|
+
var reg = /([^?&=]+)=([^?&=]+)/g,
|
|
48
|
+
obj = {},
|
|
49
|
+
str = url;
|
|
47
50
|
url.replace(reg, function () {
|
|
48
51
|
obj[arguments[1]] = arguments[2];
|
|
49
52
|
});
|
|
@@ -57,9 +60,9 @@ export default {
|
|
|
57
60
|
data: [row.id],
|
|
58
61
|
isLoading: true,
|
|
59
62
|
loadingTarget: document.body,
|
|
60
|
-
success: res => {
|
|
63
|
+
success: (res) => {
|
|
61
64
|
callback && callback();
|
|
62
|
-
}
|
|
65
|
+
},
|
|
63
66
|
});
|
|
64
67
|
} else {
|
|
65
68
|
callback && callback();
|
|
@@ -71,24 +74,37 @@ export default {
|
|
|
71
74
|
let wfUrl = turl.split("?")[0];
|
|
72
75
|
let param = this.getUrlParam(turl);
|
|
73
76
|
let wfDataId = param.dataId;
|
|
77
|
+
if (!wfDataId) {
|
|
78
|
+
wfDataId = 0;
|
|
79
|
+
} else if (!isNaN(wfDataId)) {
|
|
80
|
+
wfDataId = Number(wfDataId);
|
|
81
|
+
}
|
|
74
82
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
83
|
+
if (wfUrl == "form") {
|
|
84
|
+
this.param = Object.assign(param, {
|
|
85
|
+
formCode: param.objTypeCode.substr(9),
|
|
86
|
+
dataId: wfDataId,
|
|
87
|
+
});
|
|
88
|
+
let url = "/user/form/vform/render.vue";
|
|
89
|
+
this.wfContent = require("@base/views" + url).default;
|
|
90
|
+
} else {
|
|
91
|
+
this.param = Object.assign(param, {
|
|
92
|
+
_dataId: wfDataId,
|
|
93
|
+
});
|
|
94
|
+
let url = wfUrl + ".vue";
|
|
95
|
+
let id = wfDataId;
|
|
96
|
+
this.wfDataId = !id || typeof id == "object" ? 0 : id;
|
|
97
|
+
// this.showWfDialog = true;
|
|
98
|
+
this.showWfContent = true;
|
|
99
|
+
this.wfContent = require("@/views" + url).default;
|
|
100
|
+
}
|
|
82
101
|
this.showWfDialog2 = true;
|
|
102
|
+
|
|
83
103
|
callback && callback();
|
|
84
|
-
})
|
|
85
|
-
}
|
|
86
|
-
}
|
|
104
|
+
});
|
|
105
|
+
},
|
|
106
|
+
},
|
|
87
107
|
};
|
|
88
108
|
</script>
|
|
89
109
|
|
|
90
|
-
<style>
|
|
91
|
-
.designer-dialog.indexUse #containt .detail-wrap .d-cont {
|
|
92
|
-
height: calc(100vh - 82px)
|
|
93
|
-
}
|
|
94
|
-
</style>
|
|
110
|
+
<style scoped></style>
|
|
@@ -1,187 +1,188 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="detail-wrap">
|
|
3
|
-
<el-form ref="editForm" :model="notifyTemplate">
|
|
4
|
-
<div class="d-header clearfix">
|
|
5
|
-
<div class="fl">
|
|
6
|
-
<i class="el-icon-info"/>
|
|
7
|
-
{{ dataId ? $t1('查看通知模板') : $t1('新增通知模板') }}
|
|
8
|
-
</div>
|
|
9
|
-
<div class="fr">
|
|
10
|
-
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
|
11
|
-
{{ $t1('重置') }}
|
|
12
|
-
</el-button>
|
|
13
|
-
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
|
|
14
|
-
</el-button>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
<baseTabs>
|
|
18
|
-
<baseTabPane :label="$t1('基本信息')">
|
|
19
|
-
<template #default>
|
|
20
|
-
<table class="table-detail">
|
|
21
|
-
<tbody>
|
|
22
|
-
<tr>
|
|
23
|
-
<th><em class="f-red">*</em>{{ $t1('通知模板编码') }}</th>
|
|
24
|
-
<td>
|
|
25
|
-
<el-form-item prop="notifyType" :rules="[{ required: true, trigger: 'blur' }]">
|
|
26
|
-
<el-input type="text" autocomplete="off" v-model="notifyTemplate.notifyType" clearable/>
|
|
27
|
-
</el-form-item>
|
|
28
|
-
</td>
|
|
29
|
-
<th>
|
|
30
|
-
<em class="f-red">*</em>
|
|
31
|
-
{{ $t1('通知模板名称') }}
|
|
32
|
-
</th>
|
|
33
|
-
<td>
|
|
34
|
-
<el-form-item prop="ntName" :rules="[{ required: true, trigger: 'blur' }]">
|
|
35
|
-
<el-input type="text" autocomplete="off" v-model="notifyTemplate.ntName" clearable/>
|
|
36
|
-
</el-form-item>
|
|
37
|
-
</td>
|
|
38
|
-
<th>{{ $t1('是否启用') }}</th>
|
|
39
|
-
<td>
|
|
40
|
-
<el-form-item prop="enabled" :rules="[{ required: false, trigger: 'blur' }]">
|
|
41
|
-
<el-radio-group v-model="notifyTemplate.enabled">
|
|
42
|
-
<el-radio :label="true">{{ $t1('启用') }}</el-radio>
|
|
43
|
-
<el-radio :label="false">{{ $t1('禁用') }}</el-radio>
|
|
44
|
-
</el-radio-group>
|
|
45
|
-
</el-form-item>
|
|
46
|
-
</td>
|
|
47
|
-
</tr>
|
|
48
|
-
<tr>
|
|
49
|
-
<th><em class="f-red">*</em>{{ $t1('通知内容') }}</th>
|
|
50
|
-
<td colspan="5">
|
|
51
|
-
<el-form-item prop="content" :rules="[{ required: true, trigger: 'blur' }]">
|
|
52
|
-
<el-input type="textarea" :rows="2" size="small"
|
|
53
|
-
v-model="notifyTemplate.content"
|
|
54
|
-
clearable></el-input>
|
|
55
|
-
</el-form-item>
|
|
56
|
-
</td>
|
|
57
|
-
</tr>
|
|
58
|
-
<tr>
|
|
59
|
-
<th>{{ $t1('跳转内容') }}</th>
|
|
60
|
-
<td colspan="5">
|
|
61
|
-
<el-form-item prop="jumpContent" :rules="[{ required: false, trigger: 'blur' }]">
|
|
62
|
-
<el-input type="textarea" :rows="2" size="small"
|
|
63
|
-
v-model="notifyTemplate.jumpContent"
|
|
64
|
-
clearable></el-input>
|
|
65
|
-
</el-form-item>
|
|
66
|
-
</td>
|
|
67
|
-
</tr>
|
|
68
|
-
<tr>
|
|
69
|
-
<th>{{ $t1('备注') }}</th>
|
|
70
|
-
<td colspan="5">
|
|
71
|
-
<el-input type="textarea" :rows="2" size="small" v-model="notifyTemplate.remark"
|
|
72
|
-
clearable></el-input>
|
|
73
|
-
</td>
|
|
74
|
-
</tr>
|
|
75
|
-
<tr>
|
|
76
|
-
<th>
|
|
77
|
-
{{ $t1('脚本(获取通知人)') }}
|
|
78
|
-
<!-- <scriptDescriptionButton path="static/readme/PushSetting.txt"></scriptDescriptionButton>-->
|
|
79
|
-
<scriptTestButton :script.sync="notifyTemplate.script"></scriptTestButton>
|
|
80
|
-
</th>
|
|
81
|
-
<td colspan="7">
|
|
82
|
-
<el-form-item prop="script" :rules="[{ required: false, trigger: 'blur' }]">
|
|
83
|
-
<code-editor mode="java" :readonly="!1" v-model="notifyTemplate.script"
|
|
84
|
-
v-if="showCodeEditor"></code-editor>
|
|
85
|
-
</el-form-item>
|
|
86
|
-
</td>
|
|
87
|
-
</tr>
|
|
88
|
-
<tr>
|
|
89
|
-
<th>{{ $t1('创建人') }}</th>
|
|
90
|
-
<td>{{ notifyTemplate.createBy }}</td>
|
|
91
|
-
<th>{{ $t1('创建时间') }}</th>
|
|
92
|
-
<td>{{ notifyTemplate.createDate }}</td>
|
|
93
|
-
<th>{{ $t1('更新人') }}</th>
|
|
94
|
-
<td>{{ notifyTemplate.modifyBy }}</td>
|
|
95
|
-
<th>{{ $t1('更新时间') }}</th>
|
|
96
|
-
<td>{{ notifyTemplate.modifyDate }}</td>
|
|
97
|
-
</tr>
|
|
98
|
-
</tbody>
|
|
99
|
-
</table>
|
|
100
|
-
</template>
|
|
101
|
-
</baseTabPane>
|
|
102
|
-
</baseTabs>
|
|
103
|
-
</el-form>
|
|
104
|
-
</div>
|
|
105
|
-
</template>
|
|
106
|
-
|
|
107
|
-
<script>
|
|
108
|
-
export default {
|
|
109
|
-
name: 'notify_templateEdit',
|
|
110
|
-
props: {
|
|
111
|
-
_dataId: [String, Number]
|
|
112
|
-
},
|
|
113
|
-
components: {},
|
|
114
|
-
data() {
|
|
115
|
-
return {
|
|
116
|
-
isEdit: false,
|
|
117
|
-
tabIndex: 'first',
|
|
118
|
-
dataId: '',
|
|
119
|
-
notifyTemplate: {
|
|
120
|
-
enabled: true
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
this
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
this.
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
this
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="detail-wrap">
|
|
3
|
+
<el-form ref="editForm" :model="notifyTemplate">
|
|
4
|
+
<div class="d-header clearfix">
|
|
5
|
+
<div class="fl">
|
|
6
|
+
<i class="el-icon-info"/>
|
|
7
|
+
{{ dataId ? $t1('查看通知模板') : $t1('新增通知模板') }}
|
|
8
|
+
</div>
|
|
9
|
+
<div class="fr">
|
|
10
|
+
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
|
11
|
+
{{ $t1('重置') }}
|
|
12
|
+
</el-button>
|
|
13
|
+
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
|
|
14
|
+
</el-button>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<baseTabs>
|
|
18
|
+
<baseTabPane :label="$t1('基本信息')">
|
|
19
|
+
<template #default>
|
|
20
|
+
<table class="table-detail">
|
|
21
|
+
<tbody>
|
|
22
|
+
<tr>
|
|
23
|
+
<th><em class="f-red">*</em>{{ $t1('通知模板编码') }}</th>
|
|
24
|
+
<td>
|
|
25
|
+
<el-form-item prop="notifyType" :rules="[{ required: true, trigger: 'blur' }]">
|
|
26
|
+
<el-input type="text" autocomplete="off" v-model="notifyTemplate.notifyType" clearable/>
|
|
27
|
+
</el-form-item>
|
|
28
|
+
</td>
|
|
29
|
+
<th>
|
|
30
|
+
<em class="f-red">*</em>
|
|
31
|
+
{{ $t1('通知模板名称') }}
|
|
32
|
+
</th>
|
|
33
|
+
<td>
|
|
34
|
+
<el-form-item prop="ntName" :rules="[{ required: true, trigger: 'blur' }]">
|
|
35
|
+
<el-input type="text" autocomplete="off" v-model="notifyTemplate.ntName" clearable/>
|
|
36
|
+
</el-form-item>
|
|
37
|
+
</td>
|
|
38
|
+
<th>{{ $t1('是否启用') }}</th>
|
|
39
|
+
<td>
|
|
40
|
+
<el-form-item prop="enabled" :rules="[{ required: false, trigger: 'blur' }]">
|
|
41
|
+
<el-radio-group v-model="notifyTemplate.enabled">
|
|
42
|
+
<el-radio :label="true">{{ $t1('启用') }}</el-radio>
|
|
43
|
+
<el-radio :label="false">{{ $t1('禁用') }}</el-radio>
|
|
44
|
+
</el-radio-group>
|
|
45
|
+
</el-form-item>
|
|
46
|
+
</td>
|
|
47
|
+
</tr>
|
|
48
|
+
<tr>
|
|
49
|
+
<th><em class="f-red">*</em>{{ $t1('通知内容') }}</th>
|
|
50
|
+
<td colspan="5">
|
|
51
|
+
<el-form-item prop="content" :rules="[{ required: true, trigger: 'blur' }]">
|
|
52
|
+
<el-input type="textarea" :rows="2" size="small"
|
|
53
|
+
v-model="notifyTemplate.content"
|
|
54
|
+
clearable></el-input>
|
|
55
|
+
</el-form-item>
|
|
56
|
+
</td>
|
|
57
|
+
</tr>
|
|
58
|
+
<tr>
|
|
59
|
+
<th>{{ $t1('跳转内容') }}</th>
|
|
60
|
+
<td colspan="5">
|
|
61
|
+
<el-form-item prop="jumpContent" :rules="[{ required: false, trigger: 'blur' }]">
|
|
62
|
+
<el-input type="textarea" :rows="2" size="small"
|
|
63
|
+
v-model="notifyTemplate.jumpContent"
|
|
64
|
+
clearable></el-input>
|
|
65
|
+
</el-form-item>
|
|
66
|
+
</td>
|
|
67
|
+
</tr>
|
|
68
|
+
<tr>
|
|
69
|
+
<th>{{ $t1('备注') }}</th>
|
|
70
|
+
<td colspan="5">
|
|
71
|
+
<el-input type="textarea" :rows="2" size="small" v-model="notifyTemplate.remark"
|
|
72
|
+
clearable></el-input>
|
|
73
|
+
</td>
|
|
74
|
+
</tr>
|
|
75
|
+
<tr>
|
|
76
|
+
<th>
|
|
77
|
+
{{ $t1('脚本(获取通知人)') }}
|
|
78
|
+
<!-- <scriptDescriptionButton path="static/readme/PushSetting.txt"></scriptDescriptionButton>-->
|
|
79
|
+
<scriptTestButton :script.sync="notifyTemplate.script"></scriptTestButton>
|
|
80
|
+
</th>
|
|
81
|
+
<td colspan="7">
|
|
82
|
+
<el-form-item prop="script" :rules="[{ required: false, trigger: 'blur' }]">
|
|
83
|
+
<code-editor mode="java" :readonly="!1" v-model="notifyTemplate.script"
|
|
84
|
+
v-if="showCodeEditor"></code-editor>
|
|
85
|
+
</el-form-item>
|
|
86
|
+
</td>
|
|
87
|
+
</tr>
|
|
88
|
+
<tr>
|
|
89
|
+
<th>{{ $t1('创建人') }}</th>
|
|
90
|
+
<td>{{ notifyTemplate.createBy }}</td>
|
|
91
|
+
<th>{{ $t1('创建时间') }}</th>
|
|
92
|
+
<td>{{ notifyTemplate.createDate }}</td>
|
|
93
|
+
<th>{{ $t1('更新人') }}</th>
|
|
94
|
+
<td>{{ notifyTemplate.modifyBy }}</td>
|
|
95
|
+
<th>{{ $t1('更新时间') }}</th>
|
|
96
|
+
<td>{{ notifyTemplate.modifyDate }}</td>
|
|
97
|
+
</tr>
|
|
98
|
+
</tbody>
|
|
99
|
+
</table>
|
|
100
|
+
</template>
|
|
101
|
+
</baseTabPane>
|
|
102
|
+
</baseTabs>
|
|
103
|
+
</el-form>
|
|
104
|
+
</div>
|
|
105
|
+
</template>
|
|
106
|
+
|
|
107
|
+
<script>
|
|
108
|
+
export default {
|
|
109
|
+
name: 'notify_templateEdit',
|
|
110
|
+
props: {
|
|
111
|
+
_dataId: [String, Number]
|
|
112
|
+
},
|
|
113
|
+
components: {},
|
|
114
|
+
data() {
|
|
115
|
+
return {
|
|
116
|
+
isEdit: false,
|
|
117
|
+
tabIndex: 'first',
|
|
118
|
+
dataId: '',
|
|
119
|
+
notifyTemplate: {
|
|
120
|
+
enabled: true,
|
|
121
|
+
ntType:0
|
|
122
|
+
},
|
|
123
|
+
showCodeEditor: false
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
created() {
|
|
127
|
+
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
|
128
|
+
},
|
|
129
|
+
mounted() {
|
|
130
|
+
this.getData();
|
|
131
|
+
},
|
|
132
|
+
methods: {
|
|
133
|
+
getData() {
|
|
134
|
+
if (this.dataId && !isNaN(this.dataId)) {
|
|
135
|
+
this.isEdit = true;
|
|
136
|
+
this.$commonHttp({
|
|
137
|
+
url: USER_PREFIX + `/notify_template/get`,
|
|
138
|
+
method: `post`,
|
|
139
|
+
data: {
|
|
140
|
+
id: this.dataId
|
|
141
|
+
},
|
|
142
|
+
isLoading: true,
|
|
143
|
+
modalStrictly: true,
|
|
144
|
+
success: res => {
|
|
145
|
+
this.notifyTemplate = res.objx || {};
|
|
146
|
+
this.showCodeEditor = true;
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
} else {
|
|
150
|
+
this.showCodeEditor = true;
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
saveData() {
|
|
154
|
+
this.$refs.editForm.$baseValidate(valid => {
|
|
155
|
+
if (valid) {
|
|
156
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
|
157
|
+
var url = USER_PREFIX + (this.isEdit ? `/notify_template/update` : `/notify_template/save`);
|
|
158
|
+
this.$http({
|
|
159
|
+
url: url,
|
|
160
|
+
method: `post`,
|
|
161
|
+
data: this.notifyTemplate,
|
|
162
|
+
isLoading: true,
|
|
163
|
+
success: res => {
|
|
164
|
+
this.$message({
|
|
165
|
+
message: res.content,
|
|
166
|
+
type: 'success',
|
|
167
|
+
duration: 500,
|
|
168
|
+
onClose: t => {
|
|
169
|
+
if (this.isEdit) {
|
|
170
|
+
this.$baseReload();
|
|
171
|
+
} else {
|
|
172
|
+
this.$baseReload({
|
|
173
|
+
updateParam: {
|
|
174
|
+
_dataId: res.objx
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
</script>
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="detail-wrap">
|
|
3
|
+
<el-form ref="editForm" :model="notifyTemplate">
|
|
4
|
+
<div class="d-header clearfix">
|
|
5
|
+
<div class="fl">
|
|
6
|
+
<i class="el-icon-info"/>
|
|
7
|
+
{{ dataId ? $t1('查看邮件模板') : $t1('新增邮件模板') }}
|
|
8
|
+
</div>
|
|
9
|
+
<div class="fr">
|
|
10
|
+
<el-button type="primary" plain class="button-sty" @click="$baseReload()" icon="el-icon-refresh-right">
|
|
11
|
+
{{ $t1('重置') }}
|
|
12
|
+
</el-button>
|
|
13
|
+
<el-button type="primary" class="button-sty" icon="el-icon-check" @click="saveData">{{ $t1('保存') }}
|
|
14
|
+
</el-button>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<baseTabs>
|
|
18
|
+
<baseTabPane :label="$t1('基本信息')">
|
|
19
|
+
<template #default>
|
|
20
|
+
<table class="table-detail">
|
|
21
|
+
<tbody>
|
|
22
|
+
<tr>
|
|
23
|
+
<th><em class="f-red">*</em>{{ $t1('邮件模板编码') }}</th>
|
|
24
|
+
<td>
|
|
25
|
+
<el-form-item prop="notifyType" :rules="[{ required: true, trigger: 'blur' }]">
|
|
26
|
+
<el-input type="text" autocomplete="off" v-model="notifyTemplate.notifyType" clearable/>
|
|
27
|
+
</el-form-item>
|
|
28
|
+
</td>
|
|
29
|
+
<th>
|
|
30
|
+
<em class="f-red">*</em>
|
|
31
|
+
{{ $t1('主题') }}
|
|
32
|
+
</th>
|
|
33
|
+
<td>
|
|
34
|
+
<el-form-item prop="ntName" :rules="[{ required: true, trigger: 'blur' }]">
|
|
35
|
+
<el-input type="text" autocomplete="off" v-model="notifyTemplate.ntName" clearable/>
|
|
36
|
+
</el-form-item>
|
|
37
|
+
</td>
|
|
38
|
+
<th>{{ $t1('是否启用') }}</th>
|
|
39
|
+
<td>
|
|
40
|
+
<el-form-item prop="enabled" :rules="[{ required: false, trigger: 'blur' }]">
|
|
41
|
+
<el-radio-group v-model="notifyTemplate.enabled">
|
|
42
|
+
<el-radio :label="true">{{ $t1('启用') }}</el-radio>
|
|
43
|
+
<el-radio :label="false">{{ $t1('禁用') }}</el-radio>
|
|
44
|
+
</el-radio-group>
|
|
45
|
+
</el-form-item>
|
|
46
|
+
</td>
|
|
47
|
+
</tr>
|
|
48
|
+
<tr>
|
|
49
|
+
<th>{{ $t1('备注') }}</th>
|
|
50
|
+
<td colspan="7">
|
|
51
|
+
<el-input type="textarea" :rows="2" size="small" v-model="notifyTemplate.remark"
|
|
52
|
+
clearable></el-input>
|
|
53
|
+
</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<th><em class="f-red">*</em>{{ $t1('内容') }}</th>
|
|
57
|
+
<td colspan="7">
|
|
58
|
+
<el-form-item prop="content" :rules="[{ required: true, trigger: 'blur' }]">
|
|
59
|
+
<tinymce v-model="notifyTemplate.content" :language="lan" :height="300"/>
|
|
60
|
+
</el-form-item>
|
|
61
|
+
</td>
|
|
62
|
+
</tr>
|
|
63
|
+
<tr>
|
|
64
|
+
<th>
|
|
65
|
+
{{ $t1('脚本(获取通知人)') }}
|
|
66
|
+
<scriptTestButton :script.sync="notifyTemplate.script"></scriptTestButton>
|
|
67
|
+
</th>
|
|
68
|
+
<td colspan="7">
|
|
69
|
+
<el-form-item prop="script" :rules="[{ required: false, trigger: 'blur' }]">
|
|
70
|
+
<code-editor mode="java" :readonly="!1" v-model="notifyTemplate.script"
|
|
71
|
+
v-if="showCodeEditor"></code-editor>
|
|
72
|
+
</el-form-item>
|
|
73
|
+
</td>
|
|
74
|
+
</tr>
|
|
75
|
+
<tr>
|
|
76
|
+
<th>{{ $t1('创建人') }}</th>
|
|
77
|
+
<td>{{ notifyTemplate.createBy }}</td>
|
|
78
|
+
<th>{{ $t1('创建时间') }}</th>
|
|
79
|
+
<td>{{ notifyTemplate.createDate }}</td>
|
|
80
|
+
<th>{{ $t1('更新人') }}</th>
|
|
81
|
+
<td>{{ notifyTemplate.modifyBy }}</td>
|
|
82
|
+
<th>{{ $t1('更新时间') }}</th>
|
|
83
|
+
<td>{{ notifyTemplate.modifyDate }}</td>
|
|
84
|
+
</tr>
|
|
85
|
+
</tbody>
|
|
86
|
+
</table>
|
|
87
|
+
</template>
|
|
88
|
+
</baseTabPane>
|
|
89
|
+
</baseTabs>
|
|
90
|
+
</el-form>
|
|
91
|
+
</div>
|
|
92
|
+
</template>
|
|
93
|
+
|
|
94
|
+
<script>
|
|
95
|
+
import Tinymce from '@base/components/Tinymce';
|
|
96
|
+
export default {
|
|
97
|
+
name: 'notify_templateEdit',
|
|
98
|
+
props: {
|
|
99
|
+
_dataId: [String, Number]
|
|
100
|
+
},
|
|
101
|
+
components: {Tinymce},
|
|
102
|
+
data() {
|
|
103
|
+
return {
|
|
104
|
+
isEdit: false,
|
|
105
|
+
tabIndex: 'first',
|
|
106
|
+
dataId: '',
|
|
107
|
+
notifyTemplate: {
|
|
108
|
+
enabled: true,
|
|
109
|
+
ntType:1
|
|
110
|
+
},
|
|
111
|
+
showCodeEditor: false
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
created() {
|
|
115
|
+
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
|
116
|
+
},
|
|
117
|
+
mounted() {
|
|
118
|
+
this.getData();
|
|
119
|
+
},
|
|
120
|
+
methods: {
|
|
121
|
+
getData() {
|
|
122
|
+
if (this.dataId && !isNaN(this.dataId)) {
|
|
123
|
+
this.isEdit = true;
|
|
124
|
+
this.$commonHttp({
|
|
125
|
+
url: USER_PREFIX + `/notify_template/get`,
|
|
126
|
+
method: `post`,
|
|
127
|
+
data: {
|
|
128
|
+
id: this.dataId
|
|
129
|
+
},
|
|
130
|
+
isLoading: true,
|
|
131
|
+
modalStrictly: true,
|
|
132
|
+
success: res => {
|
|
133
|
+
this.notifyTemplate = res.objx || {};
|
|
134
|
+
this.showCodeEditor = true;
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
} else {
|
|
138
|
+
this.showCodeEditor = true;
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
saveData() {
|
|
142
|
+
this.$refs.editForm.$baseValidate(valid => {
|
|
143
|
+
if (valid) {
|
|
144
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
|
145
|
+
var url = USER_PREFIX + (this.isEdit ? `/notify_template/update` : `/notify_template/save`);
|
|
146
|
+
this.$http({
|
|
147
|
+
url: url,
|
|
148
|
+
method: `post`,
|
|
149
|
+
data: this.notifyTemplate,
|
|
150
|
+
isLoading: true,
|
|
151
|
+
success: res => {
|
|
152
|
+
this.$message({
|
|
153
|
+
message: res.content,
|
|
154
|
+
type: 'success',
|
|
155
|
+
duration: 500,
|
|
156
|
+
onClose: t => {
|
|
157
|
+
if (this.isEdit) {
|
|
158
|
+
this.$baseReload();
|
|
159
|
+
} else {
|
|
160
|
+
this.$baseReload({
|
|
161
|
+
updateParam: {
|
|
162
|
+
_dataId: res.objx
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
</script>
|