cloud-web-corejs 1.0.54-dev.33 → 1.0.54-dev.330
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -3
- package/src/components/Qrcode/fileParse.vue +0 -1
- package/src/components/VabUpload/index.vue +2 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +135 -119
- package/src/components/advancedSearchDialog/mixins.js +1 -1
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/mixins.js +1 -1
- package/src/components/baseInputExport/mixins.js +386 -1
- package/src/components/errorMsg/mixins.js +94 -5
- package/src/components/excelExport/button.vue +57 -4
- package/src/components/excelExport/exportFieldDialog.vue +16 -6
- package/src/components/excelExport/index.js +7 -5
- package/src/components/excelExport/index.vue +64 -8
- package/src/components/excelExport/mixins.js +3 -2
- package/src/components/excelImport/mixins.js +750 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
- package/src/components/fileLibrary/filterDialog.vue +383 -0
- package/src/components/fileLibrary/index.vue +23 -24
- package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +335 -212
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +31 -27
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +4 -4
- package/src/components/fileLibrary/mixins/indexMixins.js +69 -26
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
- package/src/components/fileLibrary/propertiesDialog.vue +18 -0
- package/src/components/fileLibrary/shareDialog.vue +1 -1
- package/src/components/formOplog/mixins.js +1 -1
- package/src/components/jsonImport/index.js +1 -1
- package/src/components/jsonImport/mixins.js +333 -1
- package/src/components/langImport/mixins.js +500 -16
- package/src/components/statusTag/mixins.js +1 -1
- package/src/components/table/CellSlot.vue +1 -0
- package/src/components/table/index.js +12 -10
- package/src/components/table/tableForm.vue +99 -63
- package/src/components/table/tableFormMixin.js +1 -1
- package/src/components/table/util/index.js +328 -0
- package/src/components/table/vxeFilter/mixin.js +6 -6
- package/src/components/tempStorage/index.vue +9 -6
- package/src/components/tempStorage/tempStorageDialog.vue +1 -1
- package/src/components/vb-tabs/x-tabs.vue +3 -2
- package/src/components/wf/addOpinionButton.vue +57 -0
- package/src/components/wf/content.vue +138 -28
- 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/wfTaskUserRangeDialog.js +3 -0
- package/src/components/wf/setCandidateButton.vue +40 -0
- package/src/components/wf/setCandidateDialog.vue +10 -0
- package/src/components/wf/setCandidateDialog2.vue +95 -0
- package/src/components/wf/wf.js +1 -1
- package/src/components/wf/wfStartDialog.vue +70 -42
- package/src/components/wf/wfTaskUserRangeDialog.vue +65 -0
- package/src/components/wf/wfUtil.js +1 -1
- package/src/components/xform/form-designer/designer.js +1647 -3
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +289 -8
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +4 -1
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
- package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +16 -4
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1312 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +26 -7
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +21 -2
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1584 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +652 -379
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +6 -8
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +176 -0
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +107 -81
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +108 -0
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -3
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +21 -5
- package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +17 -5
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/singleUpload-widget.vue +145 -0
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +22 -17
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +127 -0
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +2 -170
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +259 -58
- package/src/components/xform/form-designer/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +927 -159
- package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +71 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +126 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1079 -1042
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1160 -511
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +64 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +26 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +8 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +91 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +47 -28
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +46 -4
- 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/placeholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +318 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +10 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +305 -19
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +384 -53
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +263 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +27 -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 +3 -2
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1478 -865
- package/src/components/xform/form-render/container-item/containerItemMixin.js +359 -11
- package/src/components/xform/form-render/container-item/data-table-item.vue +86 -42
- package/src/components/xform/form-render/container-item/data-table-mixin.js +2580 -18
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
- package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
- package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
- package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
- package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
- package/src/components/xform/form-render/container-item/table-item.vue +4 -2
- package/src/components/xform/form-render/index.vue +4 -1
- package/src/components/xform/form-render/indexMixin.js +3129 -4
- package/src/components/xform/lang/zh-CN.js +18 -3
- 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.js +669 -0
- package/src/components/xform/utils/util.js +1451 -1
- package/src/components/xform/utils/validators.js +1 -5
- package/src/index.js +2 -2
- package/src/layout/components/AppMain.vue +5 -1
- package/src/layout/components/Sidebar/default.vue +50 -6
- package/src/layout/components/TagsView/index.vue +37 -12
- package/src/layout/components/extractedCode/createDialog.vue +92 -0
- package/src/layout/components/extractedCode/queryDialog.vue +96 -0
- package/src/layout/components/extractedCode/viewDialog.vue +193 -0
- package/src/layout/components/watermark/index.vue +83 -0
- package/src/layout/defaultLayout.vue +1 -1
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/mixins/tableTree/index.js +1 -1
- package/src/router/modules/customer.js +61 -8
- package/src/store/config/index.js +1 -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 -1
- package/src/utils/index.js +2 -3
- package/src/utils/pddLog.js +103 -0
- package/src/utils/pdfUtil.js +71 -0
- package/src/utils/request.js +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 +163 -0
- package/src/views/bd/setting/bd_company_env/list.vue +175 -0
- package/src/views/bd/setting/config_manage/list.vue +51 -0
- package/src/views/bd/setting/form_import_log/edit.vue +127 -0
- package/src/views/bd/setting/form_import_log/list.vue +206 -0
- package/src/views/bd/setting/form_script/edit.vue +9 -0
- package/src/views/bd/setting/form_script/edit1.vue +36 -3
- package/src/views/bd/setting/form_script/form_list.vue +1 -1
- package/src/views/bd/setting/form_script/list1.vue +4 -4
- package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +201 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
- package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
- package/src/views/bd/setting/form_script/mixins/list.js +236 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +422 -14
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
- package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
- package/src/views/bd/setting/form_template/edit.vue +22 -1
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/list.vue +5 -5
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +282 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
- package/src/views/bd/setting/form_template/mixins/list.js +688 -22
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
- package/src/views/bd/setting/form_template/wf_list.vue +127 -0
- package/src/views/bd/setting/menu_kind/list.vue +4 -0
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
- 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 +317 -0
- package/src/views/bd/setting/request_setting/edit.vue +300 -0
- package/src/views/bd/setting/request_setting/list.vue +268 -0
- package/src/views/bd/setting/table_model/edit.vue +875 -426
- package/src/views/bd/setting/table_model/list.vue +4 -4
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +1202 -13
- package/src/views/bd/setting/table_model/mixins/list.js +439 -14
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/user/area/dialog.vue +21 -9
- package/src/views/user/bill_setting/edit.vue +1 -1
- package/src/views/user/bill_setting/list.vue +1 -1
- package/src/views/user/common_attribute/itemEdit.vue +2 -2
- package/src/views/user/common_attribute/list.vue +1 -1
- package/src/views/user/common_script/edit.vue +1 -1
- package/src/views/user/common_script/list.vue +1 -1
- package/src/views/user/company_info/dialog.vue +164 -154
- package/src/views/user/company_info/edit.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +1 -0
- package/src/views/user/extend_datasource/edit.vue +3 -0
- package/src/views/user/extend_datasource/list.vue +2 -1
- package/src/views/user/fieldTranslation/editDialog.vue +7 -7
- package/src/views/user/fieldTranslation/list.vue +32 -32
- package/src/views/user/form/vform/designer.vue +775 -749
- package/src/views/user/form/vform/out_render.vue +1 -1
- package/src/views/user/form/vform/render.vue +8 -4
- package/src/views/user/form/view/edit.vue +38 -37
- package/src/views/user/form/view/list.vue +68 -15
- package/src/views/user/groups/edit.vue +2 -0
- package/src/views/user/groups/list.vue +1 -0
- package/src/views/user/home/default.vue +1025 -979
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +16 -6
- package/src/views/user/home/taili/index.vue +1034 -0
- package/src/views/user/login/default.vue +32 -3
- package/src/views/user/login/indexMixin.js +117 -3
- package/src/views/user/notify_message/dialog.vue +23 -8
- package/src/views/user/notify_template/edit.vue +188 -187
- package/src/views/user/notify_template/edit2.vue +176 -0
- package/src/views/user/notify_template/list.vue +4 -1
- package/src/views/user/notify_template/list2.vue +190 -0
- package/src/views/user/outLink/form_view.vue +211 -184
- package/src/views/user/outLink/index.vue +17 -0
- package/src/views/user/outLink/view.vue +28 -23
- package/src/views/user/position/edit.vue +55 -54
- 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/dialog.vue +1 -1
- package/src/views/user/role/list.vue +4 -4
- package/src/views/user/sale_org/dialog.vue +1 -1
- package/src/views/user/sale_org/list.vue +4 -1
- package/src/views/user/user/dialog.vue +46 -23
- package/src/views/user/user/edit.vue +1059 -1021
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/form_edit.vue +63 -2
- package/src/views/user/user/form_info.vue +210 -0
- package/src/views/user/user/form_list.vue +1 -0
- package/src/views/user/user/list.vue +22 -3
- package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
- package/src/views/user/wf/wf_manage/list.vue +30 -1
- 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
@@ -0,0 +1,317 @@
|
|
1
|
+
<template>
|
2
|
+
<div id="containt">
|
3
|
+
<el-tabs v-model="activeName" class="tab-box" @tab-click="changeActiveName">
|
4
|
+
<el-tab-pane :label="$t1('常规')" name="first">
|
5
|
+
<component v-if="showEdit" visible-key="showEdit" :is="editComponentName" :_dataId.sync="dataId" :serverName="serverName"
|
6
|
+
:parent-target="_self" @reload="$reloadHandle"></component>
|
7
|
+
</el-tab-pane>
|
8
|
+
<el-tab-pane :label="$t1('异步推送数据设置')" name="second">
|
9
|
+
<div class="grid-height">
|
10
|
+
<vxe-grid ref="table-m1" v-bind="vxeOption" @resizable-change="$vxeTableUtil.onColumnWitchChange"
|
11
|
+
@custom="$vxeTableUtil.customHandle">
|
12
|
+
<template #form>
|
13
|
+
<div class="clearfix screen-btns">
|
14
|
+
<div class="fl">
|
15
|
+
<vxe-button status="primary" class="button-sty" icon="el-icon-plus" @click="openEditDialog">
|
16
|
+
{{ $t1('新增') }}
|
17
|
+
</vxe-button>
|
18
|
+
</div>
|
19
|
+
<div class="fr">
|
20
|
+
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
21
|
+
plain>{{ $t1('重置') }}
|
22
|
+
</vxe-button>
|
23
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">
|
24
|
+
{{ $t1('搜索') }}
|
25
|
+
</vxe-button>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
<vxe-form ref="form" class="screen-box" title-width="92px" title-align="right" :data="formData"
|
29
|
+
@submit="searchEvent" @reset="searchEvent">
|
30
|
+
<vxe-form-item title="推送编码:" field="reqCode">
|
31
|
+
<template v-slot>
|
32
|
+
<el-input v-model="formData.reqCode" size="small" clearable/>
|
33
|
+
</template>
|
34
|
+
</vxe-form-item>
|
35
|
+
<vxe-form-item title="推送名称:" field="reqName">
|
36
|
+
<template v-slot>
|
37
|
+
<el-input v-model="formData.reqName" size="small" clearable/>
|
38
|
+
</template>
|
39
|
+
</vxe-form-item>
|
40
|
+
<vxe-form-item title="是否启用:" field="enabled">
|
41
|
+
<template v-slot>
|
42
|
+
<el-select v-model="formData.enabled" clearable>
|
43
|
+
<el-option :value="true" label="启用"></el-option>
|
44
|
+
<el-option :value="false" label="禁用"></el-option>
|
45
|
+
</el-select>
|
46
|
+
</template>
|
47
|
+
</vxe-form-item>
|
48
|
+
</vxe-form>
|
49
|
+
</template>
|
50
|
+
</vxe-grid>
|
51
|
+
</div>
|
52
|
+
</el-tab-pane>
|
53
|
+
<el-tab-pane :label="$t1('在途推送数据')" name="pushData">
|
54
|
+
<div class="grid-height">
|
55
|
+
<push_data_list @openEditDialog="openPushDataEditView" v-if="showPushDataList"></push_data_list>
|
56
|
+
</div>
|
57
|
+
</el-tab-pane>
|
58
|
+
<el-tab-pane :label="$t1('历史推送数据')" name="pushDataH">
|
59
|
+
<div class="grid-height">
|
60
|
+
<push_data_h_list @openEditDialog="openPushDataHEditView" v-if="showPushDataHList"></push_data_h_list>
|
61
|
+
</div>
|
62
|
+
</el-tab-pane>
|
63
|
+
</el-tabs>
|
64
|
+
</div>
|
65
|
+
</template>
|
66
|
+
|
67
|
+
<script>
|
68
|
+
import editView from './edit.vue';
|
69
|
+
import push_data_edit from "../push_data/edit.vue";
|
70
|
+
import push_data_h_edit from "../push_data_h/edit.vue";
|
71
|
+
import push_data_list from "../push_data/list.vue";
|
72
|
+
import push_data_h_list from "../push_data_h/list.vue";
|
73
|
+
|
74
|
+
|
75
|
+
export default {
|
76
|
+
name: 'request_async_setting:list',
|
77
|
+
components: {editView, push_data_list, push_data_edit, push_data_h_list, push_data_h_edit},
|
78
|
+
data() {
|
79
|
+
return {
|
80
|
+
activeName: 'second',
|
81
|
+
dataId: 0,
|
82
|
+
copyId: 0,
|
83
|
+
showEdit: false,
|
84
|
+
showAdvancedSearch: false,
|
85
|
+
vxeOption: {},
|
86
|
+
formData: {},
|
87
|
+
advancedFormData: {},
|
88
|
+
editComponentName: null,
|
89
|
+
showPushDataList: false,
|
90
|
+
showPushDataHList: false,
|
91
|
+
serverName:null,
|
92
|
+
};
|
93
|
+
},
|
94
|
+
mounted() {
|
95
|
+
this.initTableList();
|
96
|
+
},
|
97
|
+
methods: {
|
98
|
+
searchEvent() {
|
99
|
+
this.$refs['table-m1'].commitProxy('reload');
|
100
|
+
},
|
101
|
+
resetEvent() {
|
102
|
+
this.formData = {};
|
103
|
+
this.advancedFormData = {};
|
104
|
+
this.$refs['table-m1'].commitProxy('reload');
|
105
|
+
},
|
106
|
+
openEditDialog(id) {
|
107
|
+
this.copyId = 0;
|
108
|
+
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
109
|
+
this.editComponentName = "editView"
|
110
|
+
this.serverName = null;
|
111
|
+
this.activeName = 'first';
|
112
|
+
this.$openEditView('showEdit');
|
113
|
+
},
|
114
|
+
openPushDataEditView(id, serverName) {
|
115
|
+
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
116
|
+
this.editComponentName = "push_data_edit"
|
117
|
+
this.serverName = serverName;
|
118
|
+
this.activeName = 'first';
|
119
|
+
this.$openEditView('showEdit');
|
120
|
+
},
|
121
|
+
openPushDataHEditView(id, serverName) {
|
122
|
+
this.dataId = !id || typeof id == 'object' ? 0 : id;
|
123
|
+
this.editComponentName = "push_data_h_edit"
|
124
|
+
this.serverName = serverName;
|
125
|
+
this.activeName = 'first';
|
126
|
+
this.$openEditView('showEdit');
|
127
|
+
},
|
128
|
+
initTableList() {
|
129
|
+
let that = this;
|
130
|
+
let pushTypeMap = {0: '异步推送', 1: '同步调用'};
|
131
|
+
let tableOption = {
|
132
|
+
vue: this,
|
133
|
+
tableRef: 'table-m1',
|
134
|
+
tableName: 'bd_request_async_setting_list-m1',
|
135
|
+
path: USER_PREFIX + '/request_async_setting/listPage',
|
136
|
+
param: () => {
|
137
|
+
return {
|
138
|
+
...this.formData,
|
139
|
+
...this.advancedFormData
|
140
|
+
}
|
141
|
+
},
|
142
|
+
columns: [
|
143
|
+
{type: 'checkbox', width: 48, resizable: false, fixed: 'left'},
|
144
|
+
{
|
145
|
+
title: '推送名称',
|
146
|
+
field: 'reqName',
|
147
|
+
width: 150,
|
148
|
+
fixed: 'left'
|
149
|
+
},
|
150
|
+
{
|
151
|
+
title: '推送编码',
|
152
|
+
field: 'reqCode',
|
153
|
+
width: 150,
|
154
|
+
fixed: 'left'
|
155
|
+
},
|
156
|
+
{
|
157
|
+
title: '请求Url',
|
158
|
+
field: 'url',
|
159
|
+
width: 150
|
160
|
+
},
|
161
|
+
{
|
162
|
+
title: '请求头',
|
163
|
+
field: 'header',
|
164
|
+
width: 150
|
165
|
+
},
|
166
|
+
/*{
|
167
|
+
title: '连接超时',
|
168
|
+
field: 'connectTimeout',
|
169
|
+
width: 150
|
170
|
+
},
|
171
|
+
{
|
172
|
+
title: '读取超时',
|
173
|
+
field: 'readTimeout',
|
174
|
+
width: 150
|
175
|
+
},*/
|
176
|
+
{
|
177
|
+
field: 'enabled',
|
178
|
+
title: this.$t1('是否启用'),
|
179
|
+
width: 150,
|
180
|
+
slots: {
|
181
|
+
default: ({row}) => {
|
182
|
+
if (row.enabled) {
|
183
|
+
return [
|
184
|
+
<div class="txt-status">
|
185
|
+
<span>启用</span>
|
186
|
+
</div>
|
187
|
+
];
|
188
|
+
} else {
|
189
|
+
return [
|
190
|
+
<div class="txt-status disable">
|
191
|
+
<span>禁用</span>
|
192
|
+
</div>
|
193
|
+
];
|
194
|
+
}
|
195
|
+
}
|
196
|
+
}
|
197
|
+
},
|
198
|
+
{
|
199
|
+
title: '调度任务编码',
|
200
|
+
field: 'taskCode',
|
201
|
+
width: 150
|
202
|
+
},
|
203
|
+
{
|
204
|
+
title: '备注',
|
205
|
+
field: 'remark',
|
206
|
+
width: 150
|
207
|
+
},
|
208
|
+
{
|
209
|
+
title: '执行组织编码',
|
210
|
+
field: 'exeCompanyCode',
|
211
|
+
width: 150
|
212
|
+
},
|
213
|
+
{
|
214
|
+
field: 'enabled',
|
215
|
+
title: this.$t1('是否启用'),
|
216
|
+
width: 150,
|
217
|
+
slots: {
|
218
|
+
default: ({row}) => {
|
219
|
+
if (row.enabled) {
|
220
|
+
return [
|
221
|
+
<div class="txt-status">
|
222
|
+
<span>启用</span>
|
223
|
+
</div>
|
224
|
+
];
|
225
|
+
} else {
|
226
|
+
return [
|
227
|
+
<div class="txt-status disable">
|
228
|
+
<span>禁用</span>
|
229
|
+
</div>
|
230
|
+
];
|
231
|
+
}
|
232
|
+
}
|
233
|
+
}
|
234
|
+
},
|
235
|
+
{
|
236
|
+
title: '参数1',
|
237
|
+
field: 'param1',
|
238
|
+
width: 150
|
239
|
+
},
|
240
|
+
{
|
241
|
+
title: '参数2',
|
242
|
+
field: 'param2',
|
243
|
+
width: 150
|
244
|
+
},
|
245
|
+
{
|
246
|
+
title: '参数3',
|
247
|
+
field: 'param3',
|
248
|
+
width: 150
|
249
|
+
},
|
250
|
+
{
|
251
|
+
title: '参数4',
|
252
|
+
field: 'param4',
|
253
|
+
width: 150
|
254
|
+
},
|
255
|
+
{
|
256
|
+
field: 'createBy',
|
257
|
+
title: this.$t1('创建人'),
|
258
|
+
width: 150
|
259
|
+
},
|
260
|
+
{
|
261
|
+
field: 'createDate',
|
262
|
+
title: this.$t1('创建时间'),
|
263
|
+
width: 150
|
264
|
+
},
|
265
|
+
{
|
266
|
+
field: 'modifyBy',
|
267
|
+
title: this.$t1('更新人'),
|
268
|
+
width: 150
|
269
|
+
},
|
270
|
+
{
|
271
|
+
field: 'modifyDate',
|
272
|
+
title: this.$t1('更新时间'),
|
273
|
+
width: 150
|
274
|
+
},
|
275
|
+
{
|
276
|
+
width: 47,
|
277
|
+
fixed: 'right',
|
278
|
+
title: '',
|
279
|
+
sortable: false,
|
280
|
+
slots: {
|
281
|
+
default: ({row}) => {
|
282
|
+
return [
|
283
|
+
<div>
|
284
|
+
<a
|
285
|
+
href="javascript:void(0);"
|
286
|
+
class="a-link"
|
287
|
+
onclick={() => {
|
288
|
+
this.openEditDialog(row.id);
|
289
|
+
}}
|
290
|
+
>
|
291
|
+
<el-tooltip enterable={false} effect="dark" content={this.$t1('查看')} placement="top"
|
292
|
+
popper-class="tooltip-skin">
|
293
|
+
<i class="el-icon-edit"/>
|
294
|
+
</el-tooltip>
|
295
|
+
</a>
|
296
|
+
</div>
|
297
|
+
];
|
298
|
+
}
|
299
|
+
}
|
300
|
+
}
|
301
|
+
]
|
302
|
+
};
|
303
|
+
this.$vxeTableUtil.initVxeTable(tableOption).then(opts => {
|
304
|
+
this.vxeOption = opts;
|
305
|
+
});
|
306
|
+
},
|
307
|
+
changeActiveName() {
|
308
|
+
if (this.activeName == "pushData") {
|
309
|
+
this.showPushDataList = true;
|
310
|
+
}
|
311
|
+
if (this.activeName == "pushDataH") {
|
312
|
+
this.showPushDataHList = true;
|
313
|
+
}
|
314
|
+
}
|
315
|
+
}
|
316
|
+
};
|
317
|
+
</script>
|
@@ -0,0 +1,300 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="detail-wrap">
|
3
|
+
<el-form ref="editForm" :model="requestSetting">
|
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
|
+
<div class="d-cont">
|
18
|
+
<div class="d-item">
|
19
|
+
<div class="title first"><b>{{ $t1('基本信息') }}</b></div>
|
20
|
+
<table class="table-detail">
|
21
|
+
<tbody>
|
22
|
+
<tr>
|
23
|
+
<th>
|
24
|
+
<em class="f-red">*</em>
|
25
|
+
{{ $t1('请求编码') }}
|
26
|
+
</th>
|
27
|
+
<td colspan="5">
|
28
|
+
<el-form-item prop="reqCode" :rules="[{ required: true, trigger: 'blur' }]">
|
29
|
+
<el-input type="text" autocomplete="off" v-model="requestSetting.reqCode" clearable/>
|
30
|
+
</el-form-item>
|
31
|
+
</td>
|
32
|
+
</tr>
|
33
|
+
<tr>
|
34
|
+
<th>
|
35
|
+
<em class="f-red">*</em>
|
36
|
+
{{ $t1('请求名称') }}
|
37
|
+
</th>
|
38
|
+
<td colspan="5">
|
39
|
+
<el-form-item prop="reqName" :rules="[{ required: true, trigger: 'blur' }]">
|
40
|
+
<el-input type="text" autocomplete="off" v-model="requestSetting.reqName" clearable/>
|
41
|
+
</el-form-item>
|
42
|
+
</td>
|
43
|
+
</tr>
|
44
|
+
<tr>
|
45
|
+
<th>
|
46
|
+
<em class="f-red">*</em>
|
47
|
+
{{ $t1('执行组织编码') }}
|
48
|
+
</th>
|
49
|
+
<td colspan="5">
|
50
|
+
<el-form-item prop="exeCompanyCode" :rules="[{ required: true, trigger: 'blur' }]">
|
51
|
+
<el-input type="text" autocomplete="off" v-model="requestSetting.exeCompanyCode" clearable/>
|
52
|
+
</el-form-item>
|
53
|
+
</td>
|
54
|
+
<td colspan="2"><span class="tips_1">{{ $t1('注:多个用逗号","隔开') }}</span></td>
|
55
|
+
</tr>
|
56
|
+
<tr>
|
57
|
+
<th>
|
58
|
+
<em class="f-red">*</em>
|
59
|
+
{{ $t1('请求Url') }}
|
60
|
+
</th>
|
61
|
+
<td colspan="7">
|
62
|
+
<el-form-item prop="url" :rules="[{ required: true, trigger: 'blur' }]">
|
63
|
+
<el-input type="text" autocomplete="off" v-model="requestSetting.url" clearable/>
|
64
|
+
</el-form-item>
|
65
|
+
</td>
|
66
|
+
</tr>
|
67
|
+
<tr>
|
68
|
+
<th>
|
69
|
+
{{ $t1('请求头') }}
|
70
|
+
</th>
|
71
|
+
<td colspan="7">
|
72
|
+
<el-form-item prop="header" :rules="[{ required: false, trigger: 'blur' }]">
|
73
|
+
<el-input type="textarea" :rows="2" :placeholder="$t1('请输入内容')" size="small"
|
74
|
+
v-model="requestSetting.header"
|
75
|
+
clearable></el-input>
|
76
|
+
</el-form-item>
|
77
|
+
</td>
|
78
|
+
</tr>
|
79
|
+
<tr>
|
80
|
+
<th>
|
81
|
+
{{ $t1('连接超时(ms)') }}
|
82
|
+
</th>
|
83
|
+
<td>
|
84
|
+
<el-form-item prop="connectTimeout" :rules="[{ required: false, trigger: 'blur' }]">
|
85
|
+
<base-input-number v-model="requestSetting.connectTimeout" clearable/>
|
86
|
+
</el-form-item>
|
87
|
+
</td>
|
88
|
+
<td colspan="2"><span class="tips_1">{{ $t1('注:不填默认10000毫秒') }}</span></td>
|
89
|
+
<th>
|
90
|
+
{{ $t1('读取超时(ms)') }}
|
91
|
+
</th>
|
92
|
+
<td>
|
93
|
+
<el-form-item prop="readTimeout" :rules="[{ required: false, trigger: 'blur' }]">
|
94
|
+
<base-input-number v-model="requestSetting.readTimeout" clearable/>
|
95
|
+
</el-form-item>
|
96
|
+
</td>
|
97
|
+
<td colspan="2"><span class="tips_1">{{ $t1('注:不填默认60000毫秒') }}</span></td>
|
98
|
+
</tr>
|
99
|
+
<tr>
|
100
|
+
<th>
|
101
|
+
<em class="f-red">*</em>
|
102
|
+
{{ $t1('是否启用') }}
|
103
|
+
</th>
|
104
|
+
<td>
|
105
|
+
<el-form-item prop="enabled" :rules="[{ required: true, trigger: 'blur' }]">
|
106
|
+
<el-radio-group v-model="requestSetting.enabled">
|
107
|
+
<el-radio :label="true">{{ $t1('启用') }}</el-radio>
|
108
|
+
<el-radio :label="false">{{ $t1('禁用') }}</el-radio>
|
109
|
+
</el-radio-group>
|
110
|
+
</el-form-item>
|
111
|
+
</td>
|
112
|
+
</tr>
|
113
|
+
<tr>
|
114
|
+
<th>
|
115
|
+
{{ $t1('备注') }}
|
116
|
+
</th>
|
117
|
+
<td colspan="7">
|
118
|
+
<el-form-item prop="remark" :rules="[{ required: false, trigger: 'blur' }]">
|
119
|
+
<el-input type="textarea" :rows="2" :placeholder="$t1('请输入内容')" size="small"
|
120
|
+
v-model="requestSetting.remark"
|
121
|
+
clearable></el-input>
|
122
|
+
</el-form-item>
|
123
|
+
</td>
|
124
|
+
</tr>
|
125
|
+
<tr>
|
126
|
+
<th>
|
127
|
+
{{ $t1('参数1') }}
|
128
|
+
</th>
|
129
|
+
<td colspan="7">
|
130
|
+
<el-form-item prop="param1" :rules="[{ required: false, trigger: 'blur' }]">
|
131
|
+
<el-input type="text" autocomplete="off" v-model="requestSetting.param1" clearable/>
|
132
|
+
</el-form-item>
|
133
|
+
</td>
|
134
|
+
</tr>
|
135
|
+
<tr>
|
136
|
+
<th>
|
137
|
+
{{ $t1('参数2') }}
|
138
|
+
</th>
|
139
|
+
<td colspan="7">
|
140
|
+
<el-form-item prop="param2" :rules="[{ required: false, trigger: 'blur' }]">
|
141
|
+
<el-input type="text" autocomplete="off" v-model="requestSetting.param2" clearable/>
|
142
|
+
</el-form-item>
|
143
|
+
</td>
|
144
|
+
</tr>
|
145
|
+
<tr>
|
146
|
+
<th>
|
147
|
+
{{ $t1('参数3') }}
|
148
|
+
</th>
|
149
|
+
<td colspan="7">
|
150
|
+
<el-form-item prop="param3" :rules="[{ required: false, trigger: 'blur' }]">
|
151
|
+
<el-input type="text" autocomplete="off" v-model="requestSetting.param3" clearable/>
|
152
|
+
</el-form-item>
|
153
|
+
</td>
|
154
|
+
</tr>
|
155
|
+
<tr>
|
156
|
+
<th>
|
157
|
+
{{ $t1('参数4') }}
|
158
|
+
</th>
|
159
|
+
<td colspan="7">
|
160
|
+
<el-form-item prop="param1" :rules="[{ required: false, trigger: 'blur' }]">
|
161
|
+
<el-input type="text" autocomplete="off" v-model="requestSetting.param4" clearable/>
|
162
|
+
</el-form-item>
|
163
|
+
</td>
|
164
|
+
</tr>
|
165
|
+
<tr>
|
166
|
+
<th>
|
167
|
+
{{ $t1('前置脚本') }}
|
168
|
+
<scriptDescriptionButton path="static/readme/RequestSetting.txt"></scriptDescriptionButton>
|
169
|
+
<scriptTestButton :script.sync="requestSetting.preScript"></scriptTestButton>
|
170
|
+
</th>
|
171
|
+
<td colspan="7">
|
172
|
+
<el-form-item prop="preScript" :rules="[{ required: false, trigger: 'blur' }]">
|
173
|
+
<code-editor mode="java" :readonly="!1" v-model="requestSetting.preScript"
|
174
|
+
v-if="showCodeEditor"></code-editor>
|
175
|
+
</el-form-item>
|
176
|
+
</td>
|
177
|
+
</tr>
|
178
|
+
<tr>
|
179
|
+
<th>
|
180
|
+
{{ $t1('后置脚本') }}
|
181
|
+
<scriptDescriptionButton path="static/readme/RequestSetting.txt"></scriptDescriptionButton>
|
182
|
+
<scriptTestButton :script.sync="requestSetting.postScript"></scriptTestButton>
|
183
|
+
</th>
|
184
|
+
<td colspan="7">
|
185
|
+
<el-form-item prop="postScript" :rules="[{ required: false, trigger: 'blur' }]">
|
186
|
+
<code-editor mode="java" :readonly="!1" v-model="requestSetting.postScript"
|
187
|
+
v-if="showCodeEditor"></code-editor>
|
188
|
+
</el-form-item>
|
189
|
+
</td>
|
190
|
+
</tr>
|
191
|
+
<tr>
|
192
|
+
<th>{{ $t1('创建人') }}</th>
|
193
|
+
<td>{{ requestSetting.createBy }}</td>
|
194
|
+
<th>{{ $t1('创建时间') }}</th>
|
195
|
+
<td>{{ requestSetting.createDate }}</td>
|
196
|
+
<th>{{ $t1('更新人') }}</th>
|
197
|
+
<td>{{ requestSetting.modifyBy }}</td>
|
198
|
+
<th>{{ $t1('更新时间') }}</th>
|
199
|
+
<td>{{ requestSetting.modifyDate }}</td>
|
200
|
+
</tr>
|
201
|
+
</tbody>
|
202
|
+
</table>
|
203
|
+
</div>
|
204
|
+
</div>
|
205
|
+
</el-form>
|
206
|
+
</div>
|
207
|
+
</template>
|
208
|
+
|
209
|
+
<script>
|
210
|
+
export default {
|
211
|
+
name: 'request_setttingEdit',
|
212
|
+
props: {
|
213
|
+
_dataId: [String, Number],
|
214
|
+
copyId: [String, Number]
|
215
|
+
},
|
216
|
+
components: {},
|
217
|
+
data() {
|
218
|
+
return {
|
219
|
+
isEdit: false,
|
220
|
+
tabIndex: 'first',
|
221
|
+
dataId: '',
|
222
|
+
requestSetting: {
|
223
|
+
enabled: true,
|
224
|
+
connectTimeout: 10000,
|
225
|
+
readTimeout: 60000,
|
226
|
+
preScript: null,
|
227
|
+
postScript: null,
|
228
|
+
exeCompanyCode: null
|
229
|
+
},
|
230
|
+
showCodeEditor: false
|
231
|
+
};
|
232
|
+
},
|
233
|
+
created() {
|
234
|
+
if (this._dataId && !isNaN(this._dataId)) this.dataId = this._dataId;
|
235
|
+
},
|
236
|
+
mounted() {
|
237
|
+
this.getData();
|
238
|
+
},
|
239
|
+
methods: {
|
240
|
+
getData() {
|
241
|
+
if (this.copyId) {
|
242
|
+
return;
|
243
|
+
}
|
244
|
+
if (this.dataId && !isNaN(this.dataId)) {
|
245
|
+
this.isEdit = true;
|
246
|
+
this.$commonHttp({
|
247
|
+
url: USER_PREFIX + `/request_setting/get`,
|
248
|
+
method: `post`,
|
249
|
+
data: {
|
250
|
+
id: this.dataId
|
251
|
+
},
|
252
|
+
isLoading: true,
|
253
|
+
modalStrictly: true,
|
254
|
+
success: res => {
|
255
|
+
this.requestSetting = res.objx || {};
|
256
|
+
this.showCodeEditor = true;
|
257
|
+
}
|
258
|
+
});
|
259
|
+
} else {
|
260
|
+
this.showCodeEditor = true;
|
261
|
+
}
|
262
|
+
},
|
263
|
+
saveData() {
|
264
|
+
this.$refs.editForm.$baseValidate(valid => {
|
265
|
+
if (valid) {
|
266
|
+
this.$baseConfirm(this.$t1('您确定要保存吗?')).then(() => {
|
267
|
+
var url = USER_PREFIX + (this.isEdit ? `/request_setting/update` : `/request_setting/save`);
|
268
|
+
this.$http({
|
269
|
+
url: url,
|
270
|
+
method: `post`,
|
271
|
+
data: this.requestSetting,
|
272
|
+
isLoading: true,
|
273
|
+
success: res => {
|
274
|
+
this.$message({
|
275
|
+
message: res.content,
|
276
|
+
type: 'success',
|
277
|
+
duration: 500,
|
278
|
+
onClose: t => {
|
279
|
+
if (this.isEdit) {
|
280
|
+
this.$baseReload();
|
281
|
+
} else {
|
282
|
+
this.$baseReload({
|
283
|
+
updateParam: {
|
284
|
+
_dataId: res.objx,
|
285
|
+
copyId: null
|
286
|
+
}
|
287
|
+
});
|
288
|
+
}
|
289
|
+
}
|
290
|
+
});
|
291
|
+
}
|
292
|
+
});
|
293
|
+
});
|
294
|
+
}
|
295
|
+
});
|
296
|
+
}
|
297
|
+
}
|
298
|
+
};
|
299
|
+
|
300
|
+
</script>
|