cloud-web-corejs 1.0.54-dev.65 → 1.0.54-dev.650
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 +22 -14
- package/src/App.vue +30 -34
- package/src/api/user.js +64 -40
- 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 +49 -1
- package/src/components/VabUpload/mixins.js +1822 -2
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +209 -120
- package/src/components/advancedSearchDialog/mixins.js +28 -1
- package/src/components/base-textarea/index.vue +104 -0
- package/src/components/baseAlert/index.js +44 -1
- package/src/components/baseAlert/index.vue +24 -20
- package/src/components/baseAlert/mixins.js +61 -1
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/install.js +21 -5
- package/src/components/baseAttachment/mixins.js +310 -1
- package/src/components/baseInputBatch/mixins.js +58 -1
- package/src/components/baseInputExport/index.vue +21 -14
- package/src/components/baseInputExport/mixins.js +391 -1
- package/src/components/baseTabs/index.vue +16 -8
- package/src/components/baseTabs/mixins.js +166 -1
- package/src/components/cnPrint/index.js +44 -1
- package/src/components/cnPrint/mixins.js +189 -1
- package/src/components/code-editor/index.vue +102 -63
- package/src/components/confirmDialog/index.js +41 -1
- package/src/components/confirmDialog/index.vue +24 -17
- package/src/components/confirmDialog/mixins.js +31 -1
- package/src/components/errorMsg/index.js +1 -1
- package/src/components/errorMsg/index.vue +78 -70
- package/src/components/errorMsg/mixins.js +6 -5
- package/src/components/excelExport/button.vue +86 -24
- package/src/components/excelExport/exportFieldDialog.vue +215 -81
- package/src/components/excelExport/index.js +6 -6
- package/src/components/excelExport/index.vue +108 -26
- package/src/components/excelExport/mixins.js +2 -2
- package/src/components/excelImport/index.js +13 -13
- 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 +605 -262
- 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 +85 -4
- package/src/components/hiprint/css/bootstrap.min.css +6 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.eot +0 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.svg +288 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.woff +0 -0
- package/src/components/hiprint/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/src/components/hiprint/hiprint.bundle.js +15 -3
- package/src/components/hiprint/view/design/index.vue +140 -47
- package/src/components/hiprint/view/design/mixins.js +611 -1
- package/src/components/hiprint/view/design/preview.vue +75 -52
- package/src/components/hiprint/view/json-view.vue +31 -31
- package/src/components/jdPrint/index.js +44 -1
- package/src/components/jdPrint/mixins.js +208 -1
- package/src/components/jsonImport/index.js +187 -17
- package/src/components/jsonImport/mixins.js +333 -1
- package/src/components/langImport/index.js +80 -1
- package/src/components/langImport/mixins.js +500 -16
- package/src/components/langTag/mixins/addButton.js +51 -5
- package/src/components/langTag/mixins/deleteButton.js +55 -5
- package/src/components/langTag/mixins/view.js +47 -5
- package/src/components/luckysheet/dialog.vue +159 -0
- package/src/components/luckysheet/export.js +595 -0
- package/src/components/luckysheet/fileUtils.js +147 -0
- package/src/components/luckysheet/index.js +72 -0
- package/src/components/luckysheet/templateJson.js +12078 -0
- package/src/components/luckysheet/view.vue +210 -0
- package/src/components/obsUpload/index.js +34 -0
- package/src/components/obsUpload/index.vue +231 -0
- package/src/components/obsUpload/mixins.js +1476 -0
- package/src/components/onlineTalk/index.vue +1 -1
- package/src/components/onlineTalk/mixins.js +852 -1
- package/src/components/onlineTalk/talkUserDialog.vue +280 -0
- package/src/components/oplogTable/mixins.js +83 -4
- package/src/components/pddPrint/index.js +44 -1
- package/src/components/pddPrint/mixins.js +252 -1
- package/src/components/projectTag/mixins/addButton.js +52 -1
- package/src/components/projectTag/mixins/deleteButton.js +52 -1
- package/src/components/projectTag/mixins/view.js +43 -1
- package/src/components/scriptDescription/button.vue +12 -4
- package/src/components/scriptDescription/mixins.js +30 -1
- package/src/components/scriptTest/mixins.js +90 -1
- package/src/components/statusTag/mixins.js +66 -1
- package/src/components/table/CellSlot.vue +1 -0
- package/src/components/table/config.js +1 -1
- 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 +339 -0
- package/src/components/table/vxeFilter/index.js +2 -1
- package/src/components/table/vxeFilter/mixin.js +8 -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/vipPrint/index.js +44 -1
- package/src/components/vipPrint/mixins.js +268 -1
- package/src/components/wf/addOpinionButton.vue +57 -0
- package/src/components/wf/content.vue +834 -362
- package/src/components/wf/mixins/addOpinionButton.js +53 -0
- package/src/components/wf/mixins/setCandidateButton.js +161 -0
- package/src/components/wf/mixins/setCandidateDialog.js +213 -1
- package/src/components/wf/mixins/setCandidateDialog2.js +252 -0
- package/src/components/wf/mixins/wfFlowEleScriptDialog.js +131 -0
- package/src/components/wf/mixins/wfTaskUserRangeDialog.js +69 -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 +1995 -9
- 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 +1 -1
- 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-pane-widget.vue +3 -2
- 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 +85 -48
- 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 +30 -7
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +1762 -9
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +222 -75
- 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 +32 -4
- 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 +95 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +13 -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 +86 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-widget.vue +170 -0
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1654 -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 +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +3 -2
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +1 -1
- 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 +55 -28
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +119 -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-export-item-button-widget.vue +92 -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/static-text-widget.vue +8 -3
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +82 -49
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +38 -38
- 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 +191 -66
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +753 -0
- package/src/components/xform/form-designer/form-widget/indexMixin.js +1 -1
- package/src/components/xform/form-designer/indexMixin.js +3 -2
- package/src/components/xform/form-designer/refMixinDesign.js +1 -28
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +981 -172
- package/src/components/xform/form-designer/setting-panel/index.vue +41 -32
- 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 +991 -1042
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/edit-tree-button-group-config-dialog.vue +281 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +432 -0
- 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 +1222 -529
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +3 -3
- 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/dropdownFlag-editor.vue +133 -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 +5 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +23 -8
- 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-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-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-static-text/preWrap-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-static-text/textContent-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/select-export-item-button-editor.vue +71 -0
- 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 +126 -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/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/setting-panel/widgetPropertyDialogMixin.js +173 -0
- package/src/components/xform/form-designer/toolbar-panel/index.vue +267 -103
- 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 +1733 -950
- package/src/components/xform/form-render/container-item/containerItemMixin.js +1237 -11
- package/src/components/xform/form-render/container-item/data-table-item.vue +209 -196
- package/src/components/xform/form-render/container-item/data-table-mixin.js +3404 -18
- package/src/components/xform/form-render/container-item/detail-item.vue +72 -48
- 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 +1118 -403
- 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 +182 -91
- package/src/components/xform/form-render/container-item/tree-item.vue +32 -11
- package/src/components/xform/form-render/dynamicDialogRender.js +1 -1
- package/src/components/xform/form-render/index.vue +77 -20
- package/src/components/xform/form-render/indexMixin.js +3719 -12
- package/src/components/xform/form-render/refMixin.js +3 -3
- package/src/components/xform/lang/zh-CN.js +29 -4
- package/src/components/xform/mixins/defaultHandle.js +367 -2
- package/src/components/xform/mixins/scriptHttp.js +3 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/formHttp.js +162 -0
- package/src/components/xform/utils/format.js +41 -34
- package/src/components/xform/utils/formula-util.js +969 -0
- package/src/components/xform/utils/smart-vue-i18n/index.js +2 -1
- package/src/components/xform/utils/util.js +1475 -1
- package/src/components/xform/utils/validators.js +2 -5
- package/src/components/xform/utils/vue2js-generator.js +2 -2
- package/src/components/xhsPrint/index.js +44 -1
- package/src/components/xhsPrint/mixins.js +269 -1
- package/src/directive/LimitNumber/index.js +125 -1
- package/src/directive/el-dialog-center/index.js +34 -1
- package/src/directive/el-drag-dialog/drag.js +86 -1
- package/src/directive/el-readonly/index.js +15 -1
- package/src/directive/permission/hasPermi.js +34 -1
- package/src/index.js +215 -190
- package/src/lang/index.js +56 -51
- package/src/lang/locale/en/login.js +27 -0
- package/src/lang/locale/zh/login.js +26 -0
- package/src/layout/components/AppMain.vue +8 -1
- package/src/layout/components/Sidebar/default.vue +1660 -1222
- package/src/layout/components/Sidebar/index.vue +6 -1
- package/src/layout/components/TagsView/index.vue +43 -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 +103 -0
- package/src/layout/components/extractedCode/viewDialog.vue +207 -0
- package/src/layout/components/langTool.vue +33 -30
- package/src/layout/components/watermark/index.vue +83 -0
- package/src/layout/defaultLayout.vue +17 -9
- package/src/mixins/selectDialog/index.js +266 -1
- package/src/mixins/tableTree/index.js +199 -4
- package/src/mixins/wf/index.js +33 -1
- package/src/permission.js +135 -18
- package/src/resources/js/base/common.js +109 -109
- package/src/router/index.js +4 -7
- package/src/router/modules/customer.js +12 -18
- package/src/router/modules/system.js +4 -0
- package/src/store/config/index.js +83 -14
- package/src/store/getters.js +4 -1
- package/src/store/modules/permission.js +46 -41
- package/src/store/modules/settings.js +1 -1
- package/src/store/modules/tagsView.js +5 -8
- package/src/store/modules/user.js +367 -16
- package/src/utils/aes.js +2 -1
- package/src/utils/auth.js +1 -1
- package/src/utils/global.js +1 -1
- package/src/utils/index.js +2 -3
- package/src/utils/keepAlive.js +1 -1
- package/src/utils/pddLog.js +92 -0
- package/src/utils/pdfUtil.js +71 -0
- package/src/utils/request.js +1 -1
- package/src/utils/vab.js +1283 -27
- package/src/utils/validate.js +1 -1
- package/src/utils/wf.js +4 -4
- 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/dialog.js +84 -1
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +116 -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/formVersion/button.vue +55 -0
- package/src/views/bd/setting/formVersion/compareDialog.vue +287 -0
- package/src/views/bd/setting/formVersion/fieldCompare.vue +54 -0
- package/src/views/bd/setting/formVersion/ftHistoryDialog.vue +400 -0
- package/src/views/bd/setting/formVersion/link.vue +58 -0
- package/src/views/bd/setting/formVersion/preformDialog.vue +86 -0
- package/src/views/bd/setting/formVersion/reverButton.vue +82 -0
- package/src/views/bd/setting/form_import_log/edit.vue +130 -0
- package/src/views/bd/setting/form_import_log/list.vue +211 -0
- package/src/views/bd/setting/form_script/edit.vue +196 -74
- package/src/views/bd/setting/form_script/edit1.vue +410 -187
- package/src/views/bd/setting/form_script/form_list.vue +118 -37
- package/src/views/bd/setting/form_script/list.vue +90 -21
- package/src/views/bd/setting/form_script/list1.vue +200 -118
- package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +265 -7
- package/src/views/bd/setting/form_script/mixins/edit1.js +259 -9
- package/src/views/bd/setting/form_script/mixins/form_list.js +322 -14
- package/src/views/bd/setting/form_script/mixins/list.js +278 -4
- package/src/views/bd/setting/form_script/mixins/list1.js +480 -14
- package/src/views/bd/setting/form_script/mixins/list2.js +10 -1
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
- package/src/views/bd/setting/form_script/mixins/preformDialog.js +34 -1
- 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 +355 -184
- package/src/views/bd/setting/form_template/formDesignerDialog.vue +171 -0
- package/src/views/bd/setting/form_template/list.vue +296 -214
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +279 -1
- package/src/views/bd/setting/form_template/mixins/dialog.js +103 -1
- package/src/views/bd/setting/form_template/mixins/edit.js +277 -9
- package/src/views/bd/setting/form_template/mixins/editWfObjConfigDialog.js +92 -1
- package/src/views/bd/setting/form_template/mixins/ftHistoryDialog.js +91 -1
- package/src/views/bd/setting/form_template/mixins/itemEdit.js +104 -1
- package/src/views/bd/setting/form_template/mixins/itemList.js +234 -1
- package/src/views/bd/setting/form_template/mixins/list.js +672 -22
- package/src/views/bd/setting/form_template/mixins/list2.js +411 -0
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/form_template/mixins/preformDialog.js +28 -3
- package/src/views/bd/setting/form_template/mixins/wf_list.js +421 -3
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/wf_list.vue +161 -127
- 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 +93 -0
- package/src/views/bd/setting/logic_param/mixins/list.js +376 -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/dialog.js +139 -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 +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 +1079 -426
- package/src/views/bd/setting/table_model/list.vue +213 -128
- package/src/views/bd/setting/table_model/mixins/dialog.js +71 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +1309 -13
- package/src/views/bd/setting/table_model/mixins/list.js +429 -2
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
- package/src/views/bd/setting/table_model/mixins/zdDialog.js +114 -3
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/utils/index.js +60 -1
- 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/common_attribute/list.vue +4 -1
- package/src/views/user/company_info/dialog.vue +195 -163
- package/src/views/user/extend_datasource/dialog.vue +3 -0
- package/src/views/user/extend_datasource/edit.vue +2 -1
- package/src/views/user/extend_datasource/list.vue +3 -0
- package/src/views/user/fieldTranslation/editDialog.vue +8 -8
- package/src/views/user/fieldTranslation/list.vue +33 -33
- package/src/views/user/form/vform/designer.vue +790 -749
- package/src/views/user/form/vform/out_render.vue +1 -1
- package/src/views/user/form/vform/render.vue +67 -37
- package/src/views/user/form/view/edit.vue +38 -37
- package/src/views/user/form/view/list.vue +270 -49
- package/src/views/user/home/default.vue +1117 -979
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +18 -7
- 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 +329 -118
- package/src/views/user/menu/list.vue +27 -1
- package/src/views/user/notify_message/dialog.vue +44 -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 -211
- package/src/views/user/outLink/index.vue +67 -11
- package/src/views/user/position/list.vue +112 -72
- 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/request_setting/edit.vue +258 -0
- package/src/views/user/request_setting/list.vue +248 -0
- package/src/views/user/role/authConfig.vue +89 -0
- package/src/views/user/role/dialog.vue +70 -48
- package/src/views/user/role/edit.vue +609 -429
- package/src/views/user/role/list.vue +4 -4
- package/src/views/user/sale_org/dialog.vue +1 -1
- package/src/views/user/sale_org/list.vue +4 -1
- package/src/views/user/system_notice/infoDialog.vue +2 -1
- package/src/views/user/user/dialog.vue +46 -23
- package/src/views/user/user/edit.vue +1391 -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/info.vue +253 -140
- package/src/views/user/user/list.vue +652 -563
- package/src/views/user/user/modifyPasswordDialog.vue +64 -53
- package/src/views/user/wf/wfReport/index.vue +619 -0
- package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
- package/src/views/user/wf/wf_manage/list.vue +379 -250
- package/src/views/user/wf/wf_manage/list2.vue +854 -0
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +25 -22
- 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_transfer_setting/edit.vue +282 -0
- package/src/views/user/wf/wf_transfer_setting/list.vue +319 -0
- package/src/views/user/workbench_menu/list.vue +555 -0
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +0 -1347
|
@@ -1,78 +1,755 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
<container-item-wrapper
|
|
3
|
+
:widget="widget"
|
|
4
|
+
:class="widget.options.isFullscreen ? 'full-height' : ''"
|
|
5
|
+
>
|
|
6
|
+
<div class="h5-header">{{ widget.options.label }}</div>
|
|
7
|
+
<div class="h5-search-box">
|
|
8
|
+
<el-input v-model="keyword" placeholder="请选择" class="txt">
|
|
9
|
+
<i slot="suffix" class="el-input__icon el-icon-search"></i>
|
|
10
|
+
<el-button slot="append" class="btn" @click="searchEvent"
|
|
11
|
+
>搜索</el-button
|
|
12
|
+
>
|
|
13
|
+
</el-input>
|
|
14
|
+
<div class="icon-screen" @click="openAdvancedSearchDialog">
|
|
15
|
+
<i class="iconfont icon-chaxuntiaojianshezhi"></i>筛选
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
<div
|
|
19
|
+
v-if="widget.options.isQueryTable"
|
|
20
|
+
class="h5-fixed-top-btns"
|
|
21
|
+
title-width="92px"
|
|
22
|
+
title-align="right"
|
|
23
|
+
>
|
|
24
|
+
<el-form label-position="top">
|
|
25
|
+
<template v-if="!!widget.buttons && widget.buttons.length > 0">
|
|
26
|
+
<template v-for="(subWidget, swIdx) in widget.buttons">
|
|
27
|
+
<template v-if="'container' === subWidget.category">
|
|
28
|
+
<component
|
|
29
|
+
:is="subWidget.type + '-item'"
|
|
30
|
+
:widget="subWidget"
|
|
31
|
+
:key="swIdx"
|
|
32
|
+
:parent-list="widget.buttons"
|
|
33
|
+
:index-of-parent-list="swIdx"
|
|
34
|
+
:parent-widget="widget"
|
|
35
|
+
>
|
|
36
|
+
<!-- 递归传递插槽!!! -->
|
|
37
|
+
<template
|
|
38
|
+
v-for="slot in Object.keys($scopedSlots)"
|
|
39
|
+
v-slot:[slot]="scope"
|
|
40
|
+
>
|
|
41
|
+
<slot :name="slot" v-bind="scope" />
|
|
42
|
+
</template>
|
|
43
|
+
</component>
|
|
44
|
+
</template>
|
|
45
|
+
<template v-else>
|
|
46
|
+
<component
|
|
47
|
+
:is="subWidget.type + '-widget'"
|
|
48
|
+
:field="subWidget"
|
|
49
|
+
:designer="null"
|
|
50
|
+
:key="swIdx"
|
|
51
|
+
:parent-list="widget.buttons"
|
|
52
|
+
:index-of-parent-list="swIdx"
|
|
53
|
+
:parent-widget="widget"
|
|
54
|
+
>
|
|
55
|
+
<!-- 递归传递插槽!!! -->
|
|
56
|
+
<template
|
|
57
|
+
v-for="slot in Object.keys($scopedSlots)"
|
|
58
|
+
v-slot:[slot]="scope"
|
|
59
|
+
>
|
|
60
|
+
<slot :name="slot" v-bind="scope" />
|
|
61
|
+
</template>
|
|
62
|
+
</component>
|
|
63
|
+
</template>
|
|
64
|
+
</template>
|
|
65
|
+
</template>
|
|
66
|
+
</el-form>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="h5-list-box">
|
|
69
|
+
<div
|
|
70
|
+
v-for="(row, rowIndex) in fieldModel"
|
|
71
|
+
:key="rowIndex"
|
|
72
|
+
class="item"
|
|
73
|
+
@click="itemCheck(row)"
|
|
74
|
+
:class="{ checked: checkItemIds.includes(row.id) }"
|
|
75
|
+
>
|
|
76
|
+
<div
|
|
77
|
+
v-if="!widget.options.isQueryTable"
|
|
78
|
+
class="del-btn"
|
|
79
|
+
@click.stop="deleteRow(row, rowIndex)"
|
|
80
|
+
>
|
|
81
|
+
<i class="el-icon-delete"></i>
|
|
82
|
+
</div>
|
|
83
|
+
<template v-if="vxeOption.columns.length > 0">
|
|
84
|
+
<div class="t1" v-if="widget.options.isQueryTable">
|
|
85
|
+
<template
|
|
86
|
+
v-for="(column, columnIndex) in vxeOption.columns.filter(
|
|
87
|
+
(item, index) => item.isMainFiled
|
|
88
|
+
)"
|
|
89
|
+
>
|
|
90
|
+
<b :key="'1-' + columnIndex">{{ column.title }}:</b>
|
|
91
|
+
<span :key="'2-' + columnIndex">
|
|
92
|
+
<template v-if="!column.params.formatS">
|
|
93
|
+
{{ row[column.field] }}
|
|
94
|
+
</template>
|
|
95
|
+
<template v-else-if="column.params.formatS == 'render'">
|
|
96
|
+
{{
|
|
97
|
+
column.slots.default({
|
|
98
|
+
column: column,
|
|
99
|
+
rowIndex: rowIndex,
|
|
100
|
+
row: row,
|
|
101
|
+
items: fieldModel,
|
|
102
|
+
})
|
|
103
|
+
}}
|
|
104
|
+
</template>
|
|
105
|
+
<template
|
|
106
|
+
v-else-if="column.slots && column.slots.default == 'widget'"
|
|
107
|
+
>
|
|
108
|
+
<component
|
|
109
|
+
:is="getColumnWidgetName(column.params.widget)"
|
|
110
|
+
:field="column.params.widget"
|
|
111
|
+
:form-model="globalModel.formModel"
|
|
112
|
+
:designer="null"
|
|
113
|
+
:key="rowIndex"
|
|
114
|
+
:parent-widget="widget"
|
|
115
|
+
:columnConfig="column.params.columnConfig"
|
|
116
|
+
:subFormRowIndex="rowIndex"
|
|
117
|
+
:formItemProp="
|
|
118
|
+
getColumnProp(widget, {
|
|
119
|
+
column: column,
|
|
120
|
+
rowIndex: rowIndex,
|
|
121
|
+
row: row,
|
|
122
|
+
items: fieldModel,
|
|
123
|
+
})
|
|
124
|
+
"
|
|
125
|
+
:tableParam="{
|
|
126
|
+
column: column,
|
|
127
|
+
rowIndex: rowIndex,
|
|
128
|
+
row: row,
|
|
129
|
+
items: fieldModel,
|
|
130
|
+
}"
|
|
131
|
+
></component>
|
|
132
|
+
</template>
|
|
133
|
+
<template v-else-if="column.params.formatS == 'editDelete'">
|
|
134
|
+
<a
|
|
135
|
+
href="javascript:void(0);"
|
|
136
|
+
class="a-link"
|
|
137
|
+
@click="deleteRow(row, rowIndex)"
|
|
138
|
+
>
|
|
139
|
+
<el-tooltip
|
|
140
|
+
:enterable="false"
|
|
141
|
+
effect="dark"
|
|
142
|
+
content="删除"
|
|
143
|
+
placement="top"
|
|
144
|
+
popper-class="tooltip-skin"
|
|
145
|
+
>
|
|
146
|
+
<i class="el-icon-delete" />
|
|
147
|
+
</el-tooltip>
|
|
148
|
+
</a>
|
|
149
|
+
</template>
|
|
150
|
+
<template v-else-if="column.params.formatS == 'editButton'">
|
|
151
|
+
<a
|
|
152
|
+
href="javascript:void(0);"
|
|
153
|
+
class="a-link"
|
|
154
|
+
@click.stop="openEditDialog(obj.row)"
|
|
155
|
+
>
|
|
156
|
+
<el-tooltip
|
|
157
|
+
:enterable="false"
|
|
158
|
+
effect="dark"
|
|
159
|
+
content="查看"
|
|
160
|
+
placement="top"
|
|
161
|
+
popper-class="tooltip-skin"
|
|
162
|
+
>
|
|
163
|
+
<i class="el-icon-edit" />
|
|
164
|
+
</el-tooltip>
|
|
165
|
+
</a>
|
|
166
|
+
</template>
|
|
167
|
+
<template v-else>
|
|
168
|
+
{{
|
|
169
|
+
column.formatter({
|
|
170
|
+
cellValue: row[column.field],
|
|
171
|
+
column: column,
|
|
172
|
+
rowIndex: rowIndex,
|
|
173
|
+
row: row,
|
|
174
|
+
items: fieldModel,
|
|
175
|
+
})
|
|
176
|
+
}}
|
|
177
|
+
</template>
|
|
178
|
+
</span>
|
|
179
|
+
<!-- <div class="status">未审核</div>-->
|
|
180
|
+
</template>
|
|
12
181
|
</div>
|
|
13
|
-
<div class="
|
|
14
|
-
<
|
|
15
|
-
|
|
182
|
+
<div class="t2">
|
|
183
|
+
<template
|
|
184
|
+
v-if="
|
|
185
|
+
!widget.options.isQueryTable || vxeOption.columns.length > 1
|
|
186
|
+
"
|
|
187
|
+
>
|
|
188
|
+
<template v-for="(column, columnIndex) in vxeOption.columns">
|
|
189
|
+
<template
|
|
190
|
+
v-if="
|
|
191
|
+
(!widget.options.isQueryTable || !column.isMainFiled) &&
|
|
192
|
+
column.showForRow
|
|
193
|
+
"
|
|
194
|
+
>
|
|
195
|
+
<dl :key="columnIndex">
|
|
196
|
+
<div>
|
|
197
|
+
<dt>{{ column.title }}:</dt>
|
|
198
|
+
<dd>
|
|
199
|
+
<template v-if="!column.params.formatS">
|
|
200
|
+
{{ row[column.field] }}
|
|
201
|
+
</template>
|
|
202
|
+
<template v-else-if="column.params.formatS == 'render'">
|
|
203
|
+
{{
|
|
204
|
+
column.slots.default({
|
|
205
|
+
column: column,
|
|
206
|
+
rowIndex: rowIndex,
|
|
207
|
+
row: row,
|
|
208
|
+
items: fieldModel,
|
|
209
|
+
})
|
|
210
|
+
}}
|
|
211
|
+
</template>
|
|
212
|
+
|
|
213
|
+
<template
|
|
214
|
+
v-else-if="
|
|
215
|
+
column.slots && column.slots.default == 'widget'
|
|
216
|
+
"
|
|
217
|
+
>
|
|
218
|
+
<component
|
|
219
|
+
:is="getColumnWidgetName(column.params.widget)"
|
|
220
|
+
:field="column.params.widget"
|
|
221
|
+
:form-model="globalModel.formModel"
|
|
222
|
+
:designer="null"
|
|
223
|
+
:key="rowIndex + '-' + columnIndex"
|
|
224
|
+
:parent-widget="widget"
|
|
225
|
+
:columnConfig="column.params.columnConfig"
|
|
226
|
+
:subFormRowIndex="rowIndex"
|
|
227
|
+
:formItemProp="
|
|
228
|
+
getColumnProp(widget, {
|
|
229
|
+
column: column,
|
|
230
|
+
rowIndex: rowIndex,
|
|
231
|
+
row: row,
|
|
232
|
+
items: fieldModel,
|
|
233
|
+
})
|
|
234
|
+
"
|
|
235
|
+
:tableParam="{
|
|
236
|
+
column: column,
|
|
237
|
+
rowIndex: rowIndex,
|
|
238
|
+
row: row,
|
|
239
|
+
items: fieldModel,
|
|
240
|
+
}"
|
|
241
|
+
></component>
|
|
242
|
+
</template>
|
|
243
|
+
<template
|
|
244
|
+
v-else-if="column.params.formatS == 'editDelete'"
|
|
245
|
+
>
|
|
246
|
+
<a
|
|
247
|
+
href="javascript:void(0);"
|
|
248
|
+
class="a-link"
|
|
249
|
+
@click.stop="deleteRow(row, rowIndex)"
|
|
250
|
+
>
|
|
251
|
+
<el-tooltip
|
|
252
|
+
:enterable="false"
|
|
253
|
+
effect="dark"
|
|
254
|
+
content="删除"
|
|
255
|
+
placement="top"
|
|
256
|
+
popper-class="tooltip-skin"
|
|
257
|
+
>
|
|
258
|
+
<i class="el-icon-delete" />
|
|
259
|
+
</el-tooltip>
|
|
260
|
+
</a>
|
|
261
|
+
</template>
|
|
262
|
+
<template
|
|
263
|
+
v-else-if="column.params.formatS == 'editButton'"
|
|
264
|
+
>
|
|
265
|
+
<a
|
|
266
|
+
href="javascript:void(0);"
|
|
267
|
+
class="a-link"
|
|
268
|
+
@click.stop="openEditDialog(row)"
|
|
269
|
+
>
|
|
270
|
+
<el-tooltip
|
|
271
|
+
:enterable="false"
|
|
272
|
+
effect="dark"
|
|
273
|
+
content="查看"
|
|
274
|
+
placement="top"
|
|
275
|
+
popper-class="tooltip-skin"
|
|
276
|
+
>
|
|
277
|
+
<i class="el-icon-edit" />
|
|
278
|
+
</el-tooltip>
|
|
279
|
+
</a>
|
|
280
|
+
</template>
|
|
281
|
+
<template v-else>
|
|
282
|
+
{{
|
|
283
|
+
column.formatter({
|
|
284
|
+
cellValue: row[column.field],
|
|
285
|
+
column: column,
|
|
286
|
+
rowIndex: rowIndex,
|
|
287
|
+
row: row,
|
|
288
|
+
items: fieldModel,
|
|
289
|
+
})
|
|
290
|
+
}}
|
|
291
|
+
</template>
|
|
292
|
+
</dd>
|
|
293
|
+
</div>
|
|
294
|
+
</dl>
|
|
295
|
+
</template>
|
|
296
|
+
</template>
|
|
297
|
+
</template>
|
|
16
298
|
</div>
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
299
|
+
<div class="btns">
|
|
300
|
+
<!-- <div class="checkbox_fl">
|
|
301
|
+
<el-checkbox></el-checkbox>
|
|
302
|
+
</div> -->
|
|
303
|
+
<!-- <a class="btn"><i class="el-icon-delete"/><span>删除</span></a>
|
|
304
|
+
<a class="btn"><i class="el-icon-edit"/><span>查看</span></a>-->
|
|
305
|
+
<template
|
|
306
|
+
v-if="!!widget.lineButtons && widget.lineButtons.length > 0"
|
|
307
|
+
>
|
|
308
|
+
<template v-for="(subWidget, swIdx) in widget.lineButtons">
|
|
309
|
+
<template v-if="'container' === subWidget.category">
|
|
310
|
+
<component
|
|
311
|
+
:is="subWidget.type + '-item'"
|
|
312
|
+
:widget="subWidget"
|
|
313
|
+
:key="swIdx"
|
|
314
|
+
:parent-list="widget.lineButtons"
|
|
315
|
+
:index-of-parent-list="swIdx"
|
|
316
|
+
:parent-widget="widget"
|
|
317
|
+
:subFormRowIndex="rowIndex"
|
|
318
|
+
:tableParam="{
|
|
319
|
+
rowIndex: rowIndex,
|
|
320
|
+
row: row,
|
|
321
|
+
items: fieldModel,
|
|
322
|
+
}"
|
|
323
|
+
>
|
|
324
|
+
<!-- 递归传递插槽!!! -->
|
|
325
|
+
<template
|
|
326
|
+
v-for="slot in Object.keys($scopedSlots)"
|
|
327
|
+
v-slot:[slot]="scope"
|
|
328
|
+
>
|
|
329
|
+
<slot :name="slot" v-bind="scope" />
|
|
330
|
+
</template>
|
|
331
|
+
</component>
|
|
332
|
+
</template>
|
|
333
|
+
<template v-else>
|
|
334
|
+
<component
|
|
335
|
+
:is="subWidget.type + '-widget'"
|
|
336
|
+
:field="subWidget"
|
|
337
|
+
:designer="null"
|
|
338
|
+
:key="swIdx"
|
|
339
|
+
:parent-list="widget.lineButtons"
|
|
340
|
+
:index-of-parent-list="swIdx"
|
|
341
|
+
:parent-widget="widget"
|
|
342
|
+
:subFormRowIndex="rowIndex"
|
|
343
|
+
:tableParam="{
|
|
344
|
+
rowIndex: rowIndex,
|
|
345
|
+
row: row,
|
|
346
|
+
items: fieldModel,
|
|
347
|
+
}"
|
|
348
|
+
>
|
|
349
|
+
<!-- 递归传递插槽!!! -->
|
|
350
|
+
<template
|
|
351
|
+
v-for="slot in Object.keys($scopedSlots)"
|
|
352
|
+
v-slot:[slot]="scope"
|
|
353
|
+
>
|
|
354
|
+
<slot :name="slot" v-bind="scope" />
|
|
355
|
+
</template>
|
|
356
|
+
</component>
|
|
357
|
+
</template>
|
|
358
|
+
</template>
|
|
359
|
+
</template>
|
|
37
360
|
</div>
|
|
38
|
-
</
|
|
39
|
-
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
361
|
+
</template>
|
|
362
|
+
|
|
363
|
+
<!-- <div class="t1">
|
|
364
|
+
<b>订单号:21533666</b>
|
|
365
|
+
<div class="status">未审核</div>
|
|
366
|
+
</div>
|
|
367
|
+
<div class="t2">
|
|
368
|
+
<p>产地:广东佛山</p>
|
|
369
|
+
<p>产地:广东佛山</p>
|
|
370
|
+
<p>产地:广东佛山</p>
|
|
371
|
+
</div>-->
|
|
372
|
+
</div>
|
|
373
|
+
</div>
|
|
374
|
+
<div class="vxe-grid" v-if="widget.options.isQueryTable">
|
|
375
|
+
<div class="vxe-grid--pager-wrapper">
|
|
376
|
+
<vxe-pager
|
|
377
|
+
class="pages-box"
|
|
378
|
+
:current-page.sync="page.current"
|
|
379
|
+
:page-size.sync="page.size"
|
|
380
|
+
:total="page.total"
|
|
381
|
+
:layouts="['PrevPage', 'Number', 'NextPage']"
|
|
382
|
+
@page-change="changePageNew"
|
|
383
|
+
>
|
|
384
|
+
<template #right>
|
|
385
|
+
<span>
|
|
386
|
+
<span>当前记录</span>
|
|
387
|
+
<span class="f-red"> {{ page.records.length }} </span>
|
|
388
|
+
<span>/</span>
|
|
389
|
+
<span class="f-red"> {{ page.total }}</span>
|
|
390
|
+
</span>
|
|
391
|
+
</template>
|
|
392
|
+
</vxe-pager>
|
|
59
393
|
</div>
|
|
60
394
|
</div>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
395
|
+
|
|
396
|
+
<advancedSearchDialog
|
|
397
|
+
v-if="showAdvancedSearch"
|
|
398
|
+
:visiable.sync="showAdvancedSearch"
|
|
399
|
+
class="adSearchForm_all"
|
|
400
|
+
:formData="advancedFormData"
|
|
401
|
+
@confirm="confirmAdvancedSearchDialog"
|
|
402
|
+
@clear="advancedClear"
|
|
403
|
+
>
|
|
404
|
+
<template #form>
|
|
405
|
+
<vxe-form
|
|
406
|
+
:model="formModel"
|
|
407
|
+
title-width="102px"
|
|
408
|
+
:inline="true"
|
|
409
|
+
class="adSearchForm"
|
|
410
|
+
>
|
|
411
|
+
<template v-for="(searchColumn, index) in vxeOption.searchColumns">
|
|
412
|
+
<vxe-form-item>
|
|
413
|
+
<component
|
|
414
|
+
:is="getColumnWidgetName(searchColumn.widget)"
|
|
415
|
+
:field="searchColumn.widget"
|
|
416
|
+
:form-model="globalModel.formModel"
|
|
417
|
+
:designer="null"
|
|
418
|
+
:key="index"
|
|
419
|
+
:parent-widget="widget"
|
|
420
|
+
></component>
|
|
421
|
+
</vxe-form-item>
|
|
422
|
+
</template>
|
|
423
|
+
</vxe-form>
|
|
424
|
+
</template>
|
|
425
|
+
</advancedSearchDialog>
|
|
426
|
+
<el-dialog
|
|
427
|
+
title="明细详情"
|
|
428
|
+
:modal-append-to-body="false"
|
|
429
|
+
:close-on-click-modal="false"
|
|
430
|
+
:visible.sync="showRowDetailDialog"
|
|
431
|
+
:modal="false"
|
|
432
|
+
custom-class="dialog-style h5view-dialog"
|
|
433
|
+
width="100%"
|
|
434
|
+
top="0px"
|
|
435
|
+
v-el-drag-dialog
|
|
436
|
+
v-el-dialog-center
|
|
437
|
+
:destroy-on-close="true"
|
|
438
|
+
>
|
|
439
|
+
<div class="cont" style="height: calc(100vh - 73px)">
|
|
440
|
+
<div class="h5-list-box">
|
|
441
|
+
<div
|
|
442
|
+
v-for="(row, rowIndex) in [editRow]"
|
|
443
|
+
:key="rowIndex"
|
|
444
|
+
class="item"
|
|
445
|
+
>
|
|
446
|
+
<!-- <div class="del-btn"><i class="el-icon-delete"></i></div>-->
|
|
447
|
+
<template v-if="vxeOption.columns.length > 0">
|
|
448
|
+
<div class="t1" v-if="widget.options.isQueryTable">
|
|
449
|
+
<template
|
|
450
|
+
v-for="(column, columnIndex) in vxeOption.columns.filter(
|
|
451
|
+
(item, index) => item.isMainFiled
|
|
452
|
+
)"
|
|
453
|
+
>
|
|
454
|
+
<b>{{ column.title }}:</b>
|
|
455
|
+
<span>
|
|
456
|
+
<template v-if="!column.params.formatS">
|
|
457
|
+
{{ row[column.field] }}
|
|
458
|
+
</template>
|
|
459
|
+
<template v-else-if="column.params.formatS == 'render'">
|
|
460
|
+
{{
|
|
461
|
+
column.slots.default({
|
|
462
|
+
column: column,
|
|
463
|
+
rowIndex: rowIndex,
|
|
464
|
+
row: row,
|
|
465
|
+
items: fieldModel,
|
|
466
|
+
})
|
|
467
|
+
}}
|
|
468
|
+
</template>
|
|
469
|
+
<template
|
|
470
|
+
v-else-if="
|
|
471
|
+
column.slots && column.slots.default == 'widget'
|
|
472
|
+
"
|
|
473
|
+
>
|
|
474
|
+
<component
|
|
475
|
+
:is="getColumnWidgetName(column.params.widget)"
|
|
476
|
+
:field="column.params.widget"
|
|
477
|
+
:form-model="globalModel.formModel"
|
|
478
|
+
:designer="null"
|
|
479
|
+
:key="rowIndex"
|
|
480
|
+
:parent-widget="widget"
|
|
481
|
+
:columnConfig="column.params.columnConfig"
|
|
482
|
+
:subFormRowIndex="rowIndex"
|
|
483
|
+
:formItemProp="
|
|
484
|
+
getColumnProp(widget, {
|
|
485
|
+
column: column,
|
|
486
|
+
rowIndex: rowIndex,
|
|
487
|
+
row: row,
|
|
488
|
+
items: fieldModel,
|
|
489
|
+
})
|
|
490
|
+
"
|
|
491
|
+
:tableParam="{
|
|
492
|
+
column: column,
|
|
493
|
+
rowIndex: rowIndex,
|
|
494
|
+
row: row,
|
|
495
|
+
items: fieldModel,
|
|
496
|
+
}"
|
|
497
|
+
></component>
|
|
498
|
+
</template>
|
|
499
|
+
<template v-else-if="column.params.formatS == 'editDelete'">
|
|
500
|
+
<a
|
|
501
|
+
href="javascript:void(0);"
|
|
502
|
+
class="a-link"
|
|
503
|
+
@click.stop="deleteRow(row, rowIndex)"
|
|
504
|
+
>
|
|
505
|
+
<el-tooltip
|
|
506
|
+
:enterable="false"
|
|
507
|
+
effect="dark"
|
|
508
|
+
content="删除"
|
|
509
|
+
placement="top"
|
|
510
|
+
popper-class="tooltip-skin"
|
|
511
|
+
>
|
|
512
|
+
<i class="el-icon-delete" />
|
|
513
|
+
</el-tooltip>
|
|
514
|
+
</a>
|
|
515
|
+
</template>
|
|
516
|
+
<template v-else-if="column.params.formatS == 'editButton'">
|
|
517
|
+
<a
|
|
518
|
+
href="javascript:void(0);"
|
|
519
|
+
class="a-link"
|
|
520
|
+
@click.stop="openEditDialog(obj.row)"
|
|
521
|
+
>
|
|
522
|
+
<el-tooltip
|
|
523
|
+
:enterable="false"
|
|
524
|
+
effect="dark"
|
|
525
|
+
content="查看"
|
|
526
|
+
placement="top"
|
|
527
|
+
popper-class="tooltip-skin"
|
|
528
|
+
>
|
|
529
|
+
<i class="el-icon-edit" />
|
|
530
|
+
</el-tooltip>
|
|
531
|
+
</a>
|
|
532
|
+
</template>
|
|
533
|
+
<template v-else>
|
|
534
|
+
{{
|
|
535
|
+
column.formatter({
|
|
536
|
+
cellValue: row[column.field],
|
|
537
|
+
column: column,
|
|
538
|
+
rowIndex: rowIndex,
|
|
539
|
+
row: row,
|
|
540
|
+
items: fieldModel,
|
|
541
|
+
})
|
|
542
|
+
}}
|
|
543
|
+
</template>
|
|
544
|
+
</span>
|
|
545
|
+
<!-- <div class="status">未审核</div>-->
|
|
546
|
+
</template>
|
|
547
|
+
</div>
|
|
548
|
+
<div class="t2">
|
|
549
|
+
<template
|
|
550
|
+
v-if="
|
|
551
|
+
!widget.options.isQueryTable || vxeOption.columns.length > 1
|
|
552
|
+
"
|
|
553
|
+
>
|
|
554
|
+
<template v-for="(column, columnIndex) in vxeOption.columns">
|
|
555
|
+
<template
|
|
556
|
+
v-if="!widget.options.isQueryTable || !column.isMainFiled"
|
|
557
|
+
>
|
|
558
|
+
<dl>
|
|
559
|
+
<div>
|
|
560
|
+
<dt>{{ column.title }}:</dt>
|
|
561
|
+
<dd>
|
|
562
|
+
<template v-if="!column.params.formatS">
|
|
563
|
+
{{ row[column.field] }}
|
|
564
|
+
</template>
|
|
565
|
+
<template
|
|
566
|
+
v-else-if="column.params.formatS == 'render'"
|
|
567
|
+
>
|
|
568
|
+
{{
|
|
569
|
+
column.slots.default({
|
|
570
|
+
column: column,
|
|
571
|
+
rowIndex: rowIndex,
|
|
572
|
+
row: row,
|
|
573
|
+
items: fieldModel,
|
|
574
|
+
})
|
|
575
|
+
}}
|
|
576
|
+
</template>
|
|
577
|
+
|
|
578
|
+
<template
|
|
579
|
+
v-else-if="
|
|
580
|
+
column.slots && column.slots.default == 'widget'
|
|
581
|
+
"
|
|
582
|
+
>
|
|
583
|
+
<component
|
|
584
|
+
:is="getColumnWidgetName(column.params.widget)"
|
|
585
|
+
:field="column.params.widget"
|
|
586
|
+
:form-model="globalModel.formModel"
|
|
587
|
+
:designer="null"
|
|
588
|
+
:key="rowIndex + '-' + columnIndex"
|
|
589
|
+
:parent-widget="widget"
|
|
590
|
+
:columnConfig="column.params.columnConfig"
|
|
591
|
+
:subFormRowIndex="rowIndex"
|
|
592
|
+
:formItemProp="
|
|
593
|
+
getColumnProp(widget, {
|
|
594
|
+
column: column,
|
|
595
|
+
rowIndex: rowIndex,
|
|
596
|
+
row: row,
|
|
597
|
+
items: fieldModel,
|
|
598
|
+
})
|
|
599
|
+
"
|
|
600
|
+
:tableParam="{
|
|
601
|
+
column: column,
|
|
602
|
+
rowIndex: rowIndex,
|
|
603
|
+
row: row,
|
|
604
|
+
items: fieldModel,
|
|
605
|
+
}"
|
|
606
|
+
></component>
|
|
607
|
+
</template>
|
|
608
|
+
<template
|
|
609
|
+
v-else-if="column.params.formatS == 'editDelete'"
|
|
610
|
+
>
|
|
611
|
+
<a
|
|
612
|
+
href="javascript:void(0);"
|
|
613
|
+
class="a-link"
|
|
614
|
+
@click="deleteRow(row, rowIndex)"
|
|
615
|
+
>
|
|
616
|
+
<el-tooltip
|
|
617
|
+
:enterable="false"
|
|
618
|
+
effect="dark"
|
|
619
|
+
content="删除"
|
|
620
|
+
placement="top"
|
|
621
|
+
popper-class="tooltip-skin"
|
|
622
|
+
>
|
|
623
|
+
<i class="el-icon-delete" />
|
|
624
|
+
</el-tooltip>
|
|
625
|
+
</a>
|
|
626
|
+
</template>
|
|
627
|
+
<template
|
|
628
|
+
v-else-if="column.params.formatS == 'editButton'"
|
|
629
|
+
>
|
|
630
|
+
<a
|
|
631
|
+
href="javascript:void(0);"
|
|
632
|
+
class="a-link"
|
|
633
|
+
@click="openEditDialog(obj.row)"
|
|
634
|
+
>
|
|
635
|
+
<el-tooltip
|
|
636
|
+
:enterable="false"
|
|
637
|
+
effect="dark"
|
|
638
|
+
content="查看"
|
|
639
|
+
placement="top"
|
|
640
|
+
popper-class="tooltip-skin"
|
|
641
|
+
>
|
|
642
|
+
<i class="el-icon-edit" />
|
|
643
|
+
</el-tooltip>
|
|
644
|
+
</a>
|
|
645
|
+
</template>
|
|
646
|
+
<template v-else>
|
|
647
|
+
{{
|
|
648
|
+
column.formatter({
|
|
649
|
+
cellValue: row[column.field],
|
|
650
|
+
column: column,
|
|
651
|
+
rowIndex: rowIndex,
|
|
652
|
+
row: row,
|
|
653
|
+
items: fieldModel,
|
|
654
|
+
})
|
|
655
|
+
}}
|
|
656
|
+
</template>
|
|
657
|
+
</dd>
|
|
658
|
+
</div>
|
|
659
|
+
</dl>
|
|
660
|
+
</template>
|
|
661
|
+
</template>
|
|
662
|
+
</template>
|
|
663
|
+
</div>
|
|
664
|
+
<div class="btns">
|
|
665
|
+
<template
|
|
666
|
+
v-if="!!widget.lineButtons && widget.lineButtons.length > 0"
|
|
667
|
+
>
|
|
668
|
+
<template v-for="(subWidget, swIdx) in widget.lineButtons">
|
|
669
|
+
<template v-if="'container' === subWidget.category">
|
|
670
|
+
<component
|
|
671
|
+
:is="subWidget.type + '-item'"
|
|
672
|
+
:widget="subWidget"
|
|
673
|
+
:key="swIdx"
|
|
674
|
+
:parent-list="widget.lineButtons"
|
|
675
|
+
:index-of-parent-list="swIdx"
|
|
676
|
+
:parent-widget="widget"
|
|
677
|
+
:subFormRowIndex="rowIndex"
|
|
678
|
+
:tableParam="{
|
|
679
|
+
rowIndex: rowIndex,
|
|
680
|
+
row: row,
|
|
681
|
+
items: fieldModel,
|
|
682
|
+
}"
|
|
683
|
+
>
|
|
684
|
+
<!-- 递归传递插槽!!! -->
|
|
685
|
+
<template
|
|
686
|
+
v-for="slot in Object.keys($scopedSlots)"
|
|
687
|
+
v-slot:[slot]="scope"
|
|
688
|
+
>
|
|
689
|
+
<slot :name="slot" v-bind="scope" />
|
|
690
|
+
</template>
|
|
691
|
+
</component>
|
|
692
|
+
</template>
|
|
693
|
+
<template v-else>
|
|
694
|
+
<component
|
|
695
|
+
:is="subWidget.type + '-widget'"
|
|
696
|
+
:field="subWidget"
|
|
697
|
+
:designer="null"
|
|
698
|
+
:key="swIdx"
|
|
699
|
+
:parent-list="widget.lineButtons"
|
|
700
|
+
:index-of-parent-list="swIdx"
|
|
701
|
+
:parent-widget="widget"
|
|
702
|
+
:subFormRowIndex="rowIndex"
|
|
703
|
+
:tableParam="{
|
|
704
|
+
rowIndex: rowIndex,
|
|
705
|
+
row: row,
|
|
706
|
+
items: fieldModel,
|
|
707
|
+
}"
|
|
708
|
+
>
|
|
709
|
+
<!-- 递归传递插槽!!! -->
|
|
710
|
+
<template
|
|
711
|
+
v-for="slot in Object.keys($scopedSlots)"
|
|
712
|
+
v-slot:[slot]="scope"
|
|
713
|
+
>
|
|
714
|
+
<slot :name="slot" v-bind="scope" />
|
|
715
|
+
</template>
|
|
716
|
+
</component>
|
|
717
|
+
</template>
|
|
718
|
+
</template>
|
|
719
|
+
</template>
|
|
720
|
+
</div>
|
|
721
|
+
</template>
|
|
722
|
+
|
|
723
|
+
<!-- <div class="t1">
|
|
724
|
+
<b>订单号:21533666</b>
|
|
725
|
+
<div class="status">未审核</div>
|
|
726
|
+
</div>
|
|
727
|
+
<div class="t2">
|
|
728
|
+
<p>产地:广东佛山</p>
|
|
729
|
+
<p>产地:广东佛山</p>
|
|
730
|
+
<p>产地:广东佛山</p>
|
|
731
|
+
</div>-->
|
|
732
|
+
</div>
|
|
733
|
+
</div>
|
|
734
|
+
</div>
|
|
735
|
+
</el-dialog>
|
|
736
|
+
</container-item-wrapper>
|
|
64
737
|
</template>
|
|
65
738
|
|
|
66
739
|
<script>
|
|
67
|
-
import emitter from
|
|
68
|
-
import i18n from
|
|
69
|
-
import refMixin from
|
|
70
|
-
import containerItemMixin from
|
|
71
|
-
import FieldComponents from
|
|
72
|
-
import {
|
|
740
|
+
import emitter from "../../../../components/xform/utils/emitter";
|
|
741
|
+
import i18n from "../../../../components/xform/utils/i18n";
|
|
742
|
+
import refMixin from "../../../../components/xform/form-render/refMixin";
|
|
743
|
+
import containerItemMixin from "./containerItemMixin";
|
|
744
|
+
import FieldComponents from "../../../../components/xform/form-designer/form-widget/field-widget/index";
|
|
745
|
+
import {
|
|
746
|
+
assembleAxiosConfig,
|
|
747
|
+
generateId,
|
|
748
|
+
getReportGlobalMap,
|
|
749
|
+
} from "../../../../components/xform/utils/util";
|
|
73
750
|
import * as formatUtil from "../../../../components/xform/utils/format";
|
|
751
|
+
import { extendDeeply } from "../../../../utils/index.js";
|
|
74
752
|
import render from "../../../../views/user/bill_setting/render.vue";
|
|
75
|
-
import mixin from "../../../../mixins/mobile/list/index";
|
|
76
753
|
|
|
77
754
|
const baseRefUtil = {
|
|
78
755
|
emitter,
|
|
@@ -81,16 +758,17 @@ const baseRefUtil = {
|
|
|
81
758
|
containerItemMixin,
|
|
82
759
|
formatUtil,
|
|
83
760
|
assembleAxiosConfig,
|
|
84
|
-
getReportGlobalMap
|
|
761
|
+
getReportGlobalMap,
|
|
85
762
|
};
|
|
86
763
|
|
|
764
|
+
const defaultPageSize = 2;
|
|
87
765
|
export default {
|
|
88
|
-
name:
|
|
766
|
+
name: "list-h5-item",
|
|
89
767
|
components: {
|
|
90
|
-
...FieldComponents
|
|
768
|
+
...FieldComponents,
|
|
91
769
|
},
|
|
92
|
-
mixins: [emitter, i18n, refMixin, containerItemMixin
|
|
93
|
-
componentName:
|
|
770
|
+
mixins: [emitter, i18n, refMixin, containerItemMixin],
|
|
771
|
+
componentName: "ContainerItem",
|
|
94
772
|
props: {
|
|
95
773
|
widget: Object,
|
|
96
774
|
parentWidget: Object,
|
|
@@ -98,21 +776,27 @@ export default {
|
|
|
98
776
|
indexOfParentList: Number,
|
|
99
777
|
subFormRowIndex: {
|
|
100
778
|
type: Number,
|
|
101
|
-
default: -1
|
|
779
|
+
default: -1,
|
|
102
780
|
},
|
|
103
781
|
subFormColIndex: {
|
|
104
782
|
type: Number,
|
|
105
|
-
default: -1
|
|
783
|
+
default: -1,
|
|
106
784
|
},
|
|
107
785
|
subFormRowId: {
|
|
108
786
|
type: String,
|
|
109
|
-
default:
|
|
110
|
-
}
|
|
787
|
+
default: "",
|
|
788
|
+
},
|
|
111
789
|
},
|
|
112
|
-
inject: [
|
|
790
|
+
inject: [
|
|
791
|
+
"refList",
|
|
792
|
+
"sfRefList",
|
|
793
|
+
"globalModel",
|
|
794
|
+
"getFormConfig",
|
|
795
|
+
"getGlobalDsv",
|
|
796
|
+
],
|
|
113
797
|
data: function () {
|
|
114
798
|
let that = this;
|
|
115
|
-
let pageSize =
|
|
799
|
+
let pageSize = defaultPageSize;
|
|
116
800
|
return {
|
|
117
801
|
showAdvancedSearch: false,
|
|
118
802
|
showRowDetailDialog: false,
|
|
@@ -124,20 +808,20 @@ export default {
|
|
|
124
808
|
currentPage: this.widget.options.pagination.currentPage,
|
|
125
809
|
total: this.widget.options.pagination.total,*/
|
|
126
810
|
formData: {
|
|
127
|
-
saleOrgName:
|
|
128
|
-
loginAccount:
|
|
129
|
-
mobile:
|
|
130
|
-
enabled: 1
|
|
811
|
+
saleOrgName: "",
|
|
812
|
+
loginAccount: "",
|
|
813
|
+
mobile: "",
|
|
814
|
+
enabled: 1,
|
|
131
815
|
},
|
|
132
|
-
vxeOption: {columns: []},
|
|
816
|
+
vxeOption: { columns: [] },
|
|
133
817
|
requestAccess: null,
|
|
134
818
|
columnFormatMap: {
|
|
135
|
-
editInput:
|
|
136
|
-
editNumber:
|
|
137
|
-
editDate:
|
|
138
|
-
editSelect:
|
|
139
|
-
editSearch:
|
|
140
|
-
button:
|
|
819
|
+
editInput: "input",
|
|
820
|
+
editNumber: "number",
|
|
821
|
+
editDate: "date",
|
|
822
|
+
editSelect: "select",
|
|
823
|
+
editSearch: "vabsearch",
|
|
824
|
+
button: "button",
|
|
141
825
|
},
|
|
142
826
|
dataTableConfig: {},
|
|
143
827
|
advancedFormData: {},
|
|
@@ -152,33 +836,33 @@ export default {
|
|
|
152
836
|
keyword: null,
|
|
153
837
|
|
|
154
838
|
checkItemIds: [],
|
|
155
|
-
|
|
156
|
-
dataId: 0,
|
|
157
|
-
showEdit: false,
|
|
158
|
-
showViewDialog: false
|
|
159
839
|
};
|
|
160
840
|
},
|
|
161
841
|
watch: {
|
|
162
842
|
fieldModel(val) {
|
|
163
843
|
this.formModel[this.fieldKeyName] = val || [];
|
|
164
|
-
}
|
|
844
|
+
},
|
|
165
845
|
},
|
|
166
846
|
computed: {
|
|
167
847
|
formConfig: function () {
|
|
168
848
|
return this.getFormConfig();
|
|
169
849
|
},
|
|
170
850
|
paginationLayout: function () {
|
|
171
|
-
return this.widget.options.smallPagination
|
|
851
|
+
return this.widget.options.smallPagination
|
|
852
|
+
? "prev, pager, next"
|
|
853
|
+
: "total, sizes, prev, pager, next, jumper";
|
|
172
854
|
},
|
|
173
855
|
customClass: function () {
|
|
174
|
-
return this.widget.options.customClass ||
|
|
856
|
+
return this.widget.options.customClass || "";
|
|
175
857
|
},
|
|
176
858
|
singleRowSelectFlag: function () {
|
|
177
859
|
return !this.widget.options.showCheckBox;
|
|
178
860
|
},
|
|
179
861
|
buttonsColumnFixed: function () {
|
|
180
|
-
return void 0 === this.widget.options.buttonsColumnFixed
|
|
181
|
-
|
|
862
|
+
return void 0 === this.widget.options.buttonsColumnFixed
|
|
863
|
+
? "right"
|
|
864
|
+
: !!this.widget.options.buttonsColumnFixed &&
|
|
865
|
+
this.widget.options.buttonsColumnFixed;
|
|
182
866
|
},
|
|
183
867
|
columns() {
|
|
184
868
|
let tableColumns = this.widget.options.tableColumns;
|
|
@@ -190,23 +874,25 @@ export default {
|
|
|
190
874
|
fixed: 'left'
|
|
191
875
|
});*/
|
|
192
876
|
|
|
193
|
-
let firstColumn = tableColumns.find(column => {
|
|
877
|
+
let firstColumn = tableColumns.find((column) => {
|
|
194
878
|
return !!column.prop && !!column.showForRow;
|
|
195
879
|
});
|
|
196
880
|
let mainFiled = firstColumn?.prop;
|
|
197
881
|
|
|
198
882
|
let formRef = this.getFormRef();
|
|
199
|
-
let dateConfig = this.$baseLodash.cloneDeep(
|
|
200
|
-
|
|
883
|
+
let dateConfig = this.$baseLodash.cloneDeep(
|
|
884
|
+
formRef.getFieldWidgetByType("date").options
|
|
885
|
+
);
|
|
886
|
+
tableColumns.forEach((t) => {
|
|
201
887
|
let columnOption;
|
|
202
888
|
let widget;
|
|
203
889
|
let columnWidgetConfig = this.getColumnWidgetConfig(t);
|
|
204
|
-
let {columnSelectedWidget, columnEditFields} = columnWidgetConfig;
|
|
890
|
+
let { columnSelectedWidget, columnEditFields } = columnWidgetConfig;
|
|
205
891
|
if (columnSelectedWidget) {
|
|
206
|
-
widget = columnSelectedWidget
|
|
892
|
+
widget = columnSelectedWidget;
|
|
207
893
|
columnOption = widget.options;
|
|
208
894
|
} else {
|
|
209
|
-
columnOption = {}
|
|
895
|
+
columnOption = {};
|
|
210
896
|
}
|
|
211
897
|
|
|
212
898
|
let col = {
|
|
@@ -215,7 +901,7 @@ export default {
|
|
|
215
901
|
title: t.label,
|
|
216
902
|
witdh: t.width,
|
|
217
903
|
sortable: t.sortable,
|
|
218
|
-
align: t.align ? t.align :
|
|
904
|
+
align: t.align ? t.align : "center",
|
|
219
905
|
formatter: this.formatterValue,
|
|
220
906
|
isMainFiled: mainFiled == t.prop,
|
|
221
907
|
showForRow: t.showForRow,
|
|
@@ -224,25 +910,25 @@ export default {
|
|
|
224
910
|
widget: widget,
|
|
225
911
|
formatS: t.formatS,
|
|
226
912
|
required: t.required || false,
|
|
227
|
-
columnConfig: t
|
|
913
|
+
columnConfig: t,
|
|
228
914
|
},
|
|
229
|
-
visible: t.show
|
|
915
|
+
visible: t.show,
|
|
230
916
|
};
|
|
231
917
|
|
|
232
|
-
if (t.formatS ==
|
|
233
|
-
let r = t.render ? new Function(
|
|
918
|
+
if (t.formatS == "render") {
|
|
919
|
+
let r = t.render ? new Function("params", "h", t.render) : null;
|
|
234
920
|
col.slots = {
|
|
235
921
|
default: (params, h) => {
|
|
236
|
-
return r ? r.call(this, params, h) :
|
|
237
|
-
}
|
|
922
|
+
return r ? r.call(this, params, h) : "";
|
|
923
|
+
},
|
|
238
924
|
};
|
|
239
925
|
} else if (columnSelectedWidget) {
|
|
240
926
|
col.slots = {
|
|
241
|
-
default:
|
|
927
|
+
default: "widget",
|
|
242
928
|
};
|
|
243
|
-
} else if ([
|
|
929
|
+
} else if (["editDelete", "editButton"].includes(t.formatS)) {
|
|
244
930
|
col.slots = {
|
|
245
|
-
default: t.formatS
|
|
931
|
+
default: t.formatS,
|
|
246
932
|
};
|
|
247
933
|
}
|
|
248
934
|
|
|
@@ -268,15 +954,16 @@ export default {
|
|
|
268
954
|
cache: !1,
|
|
269
955
|
get: function () {
|
|
270
956
|
return this.globalModel.formModel;
|
|
271
|
-
}
|
|
957
|
+
},
|
|
272
958
|
},
|
|
273
959
|
formDataId() {
|
|
274
960
|
let formRef = this.getFormRef();
|
|
275
961
|
return formRef.dataId;
|
|
276
|
-
}
|
|
962
|
+
},
|
|
277
963
|
},
|
|
278
964
|
created: function () {
|
|
279
|
-
if (!this.formModel[this.fieldKeyName])
|
|
965
|
+
if (!this.formModel[this.fieldKeyName])
|
|
966
|
+
this.formModel[this.fieldKeyName] = [];
|
|
280
967
|
this.initRefList();
|
|
281
968
|
this.handleOnCreated();
|
|
282
969
|
},
|
|
@@ -305,24 +992,24 @@ export default {
|
|
|
305
992
|
confirmAdvancedSearchDialog() {
|
|
306
993
|
let formModel = this.formModel;
|
|
307
994
|
let advancedFormData = this.advancedFormData;
|
|
308
|
-
this.vxeOption.searchColumns.forEach(form1Field => {
|
|
995
|
+
this.vxeOption.searchColumns.forEach((form1Field) => {
|
|
309
996
|
let value = formModel[form1Field.field];
|
|
310
997
|
if (value !== null && value !== undefined) {
|
|
311
|
-
advancedFormData[form1Field.field] = value
|
|
998
|
+
advancedFormData[form1Field.field] = value;
|
|
312
999
|
} else {
|
|
313
|
-
advancedFormData[form1Field.field] = null
|
|
1000
|
+
advancedFormData[form1Field.field] = null;
|
|
314
1001
|
}
|
|
315
1002
|
});
|
|
316
1003
|
this.searchEvent();
|
|
317
1004
|
},
|
|
318
1005
|
advancedClear() {
|
|
319
|
-
this.vxeOption.searchColumns.forEach(form1Field => {
|
|
320
|
-
let widgetRef = this.getWidgetRef(form1Field.widget.options.name)
|
|
1006
|
+
this.vxeOption.searchColumns.forEach((form1Field) => {
|
|
1007
|
+
let widgetRef = this.getWidgetRef(form1Field.widget.options.name);
|
|
321
1008
|
if (widgetRef && widgetRef.setValue) widgetRef.setValue(null);
|
|
322
1009
|
});
|
|
323
1010
|
},
|
|
324
1011
|
setValue(val) {
|
|
325
|
-
let rows = val || []
|
|
1012
|
+
let rows = val || [];
|
|
326
1013
|
this.formModel[this.fieldKeyName] = rows;
|
|
327
1014
|
this.fieldModel = rows;
|
|
328
1015
|
},
|
|
@@ -331,40 +1018,36 @@ export default {
|
|
|
331
1018
|
},
|
|
332
1019
|
getFieldKeyName(widget) {
|
|
333
1020
|
let o = widget.options.name;
|
|
334
|
-
return (
|
|
335
|
-
(widget.options.keyNameEnabled
|
|
336
|
-
&& widget.options.keyName)
|
|
337
|
-
|| o
|
|
338
|
-
);
|
|
1021
|
+
return (widget.options.keyNameEnabled && widget.options.keyName) || o;
|
|
339
1022
|
},
|
|
340
|
-
formatterValue: function ({cellValue, row, column}) {
|
|
1023
|
+
formatterValue: function ({ cellValue, row, column }) {
|
|
341
1024
|
if (cellValue === null || cellValue === undefined) return cellValue;
|
|
342
1025
|
|
|
343
1026
|
if (column.params && column.params.formatS)
|
|
344
1027
|
switch (column.params.formatS) {
|
|
345
|
-
case
|
|
1028
|
+
case "d1":
|
|
346
1029
|
return baseRefUtil.formatUtil.formatDate1(cellValue);
|
|
347
|
-
case
|
|
1030
|
+
case "d2":
|
|
348
1031
|
return baseRefUtil.formatUtil.formatDate2(cellValue);
|
|
349
|
-
case
|
|
1032
|
+
case "d3":
|
|
350
1033
|
return baseRefUtil.formatUtil.formatDate3(cellValue);
|
|
351
|
-
case
|
|
1034
|
+
case "d4":
|
|
352
1035
|
return baseRefUtil.formatUtil.formatDate4(cellValue);
|
|
353
|
-
case
|
|
1036
|
+
case "d5":
|
|
354
1037
|
return baseRefUtil.formatUtil.formatDate4(cellValue);
|
|
355
|
-
case
|
|
1038
|
+
case "n1":
|
|
356
1039
|
return baseRefUtil.formatUtil.formatNumber1(cellValue);
|
|
357
|
-
case
|
|
1040
|
+
case "n2":
|
|
358
1041
|
return baseRefUtil.formatUtil.formatNumber2(cellValue);
|
|
359
|
-
case
|
|
1042
|
+
case "n3":
|
|
360
1043
|
return baseRefUtil.formatUtil.formatNumber3(cellValue);
|
|
361
|
-
case
|
|
1044
|
+
case "n4":
|
|
362
1045
|
return baseRefUtil.formatUtil.formatNumber4(cellValue);
|
|
363
|
-
case
|
|
1046
|
+
case "n5":
|
|
364
1047
|
return baseRefUtil.formatUtil.formatNumber5(cellValue);
|
|
365
|
-
case
|
|
1048
|
+
case "n6":
|
|
366
1049
|
return baseRefUtil.formatUtil.formatNumber6(cellValue);
|
|
367
|
-
case
|
|
1050
|
+
case "n7":
|
|
368
1051
|
return baseRefUtil.formatUtil.formatNumber7(cellValue);
|
|
369
1052
|
}
|
|
370
1053
|
return cellValue;
|
|
@@ -376,73 +1059,60 @@ export default {
|
|
|
376
1059
|
async resetEvent() {
|
|
377
1060
|
let formData = this.formModel;
|
|
378
1061
|
this.keyword = null;
|
|
379
|
-
this.widget.widgetList &&
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
1062
|
+
this.widget.widgetList &&
|
|
1063
|
+
this.widget.widgetList.forEach((subWidget) => {
|
|
1064
|
+
let widgetRef = this.getWidgetRef(subWidget.options.name);
|
|
1065
|
+
let fieldKeyName = this.getFieldKeyName(subWidget);
|
|
1066
|
+
formData[fieldKeyName] = null;
|
|
1067
|
+
this.advancedFormData[fieldKeyName] = null;
|
|
1068
|
+
if (widgetRef && widgetRef.setValue) widgetRef.setValue(null);
|
|
1069
|
+
});
|
|
386
1070
|
// this.getGridTable().commitProxy('reload');
|
|
387
1071
|
this.loadAccessData();
|
|
388
1072
|
},
|
|
389
1073
|
openEditDialog(row) {
|
|
390
1074
|
let formRef = this.getFormRef();
|
|
391
1075
|
let parentTarget = formRef.$attrs["parent-target"];
|
|
392
|
-
parentTarget &&
|
|
1076
|
+
parentTarget &&
|
|
1077
|
+
parentTarget.$attrs.openEditDialog &&
|
|
1078
|
+
parentTarget.$attrs.openEditDialog(row);
|
|
393
1079
|
},
|
|
394
1080
|
initTableList() {
|
|
395
1081
|
let that = this;
|
|
396
1082
|
let path = null;
|
|
397
1083
|
let paramFun = null;
|
|
398
|
-
// let mainDataSetDTO = null;
|
|
399
|
-
let requestAccess = this.requestAccess;
|
|
400
1084
|
let tableRef = this.getTableRef();
|
|
401
|
-
let formDataModel = this.getFormRef().formDataModel;
|
|
402
1085
|
let isQueryTable = this.widget.options.isQueryTable || false;
|
|
403
|
-
let isDataPage = this.widget.options.accessReturnType
|
|
404
|
-
let
|
|
405
|
-
let dataId = this.formDataId;
|
|
406
|
-
let accessScript = this.widget.options.accessScript;
|
|
1086
|
+
let isDataPage = this.widget.options.accessReturnType === "2";
|
|
1087
|
+
let isQueryAllPage = !this.widget.options.isNotQueryAllPage;
|
|
407
1088
|
let searchColumns = null;
|
|
408
1089
|
if (isQueryTable) {
|
|
409
|
-
path =
|
|
1090
|
+
path = "#";
|
|
410
1091
|
paramFun = () => {
|
|
411
|
-
|
|
412
|
-
let conditions = {keyword: this.keyword, ...this.advancedFormData};
|
|
1092
|
+
let conditions = this.getSearchCondition();
|
|
413
1093
|
if (this.widget.options.showPagination) {
|
|
414
1094
|
let searchCount = true;
|
|
415
|
-
|
|
416
|
-
if (isQueryAllPage == false) {
|
|
1095
|
+
if (isQueryAllPage === false) {
|
|
417
1096
|
searchCount = false;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
conditions.size = pager.pageSize;
|
|
423
|
-
conditions.searchCount = searchCount;
|
|
424
|
-
}*/
|
|
1097
|
+
}
|
|
1098
|
+
conditions.current = this.page.current;
|
|
1099
|
+
conditions.size = this.page.size;
|
|
1100
|
+
conditions.searchCount = searchCount;
|
|
425
1101
|
}
|
|
426
|
-
|
|
427
|
-
/*let formData = {
|
|
428
|
-
accessCode: requestAccess.accessCode,
|
|
429
|
-
conditions: conditions
|
|
430
|
-
};*/
|
|
431
|
-
let formData = conditions;
|
|
432
|
-
return formData;
|
|
1102
|
+
return conditions;
|
|
433
1103
|
};
|
|
434
1104
|
|
|
435
1105
|
searchColumns = [];
|
|
436
1106
|
let widgetList = this.widget.widgetList;
|
|
437
1107
|
let typeMap = {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
}
|
|
1108
|
+
input: "input",
|
|
1109
|
+
number: "number",
|
|
1110
|
+
inputBatch: "inputBatch",
|
|
1111
|
+
date: "date",
|
|
1112
|
+
};
|
|
443
1113
|
|
|
444
|
-
widgetList.forEach(widget => {
|
|
445
|
-
if (
|
|
1114
|
+
widgetList.forEach((widget) => {
|
|
1115
|
+
if ("container" !== widget.category) {
|
|
446
1116
|
let options = widget.options;
|
|
447
1117
|
let type = typeMap[widget.type] || null;
|
|
448
1118
|
searchColumns.push({
|
|
@@ -454,14 +1124,14 @@ export default {
|
|
|
454
1124
|
defaultValueEnabled: !!type,
|
|
455
1125
|
slot: options.name,
|
|
456
1126
|
widget: widget,
|
|
457
|
-
formItem: false
|
|
1127
|
+
formItem: false,
|
|
458
1128
|
});
|
|
459
1129
|
}
|
|
460
1130
|
});
|
|
461
1131
|
}
|
|
462
1132
|
|
|
463
1133
|
let formRef = this.getFormRef();
|
|
464
|
-
let dataTableConfig = formRef.$attrs.dataTableOption || {}
|
|
1134
|
+
let dataTableConfig = formRef.$attrs.dataTableOption || {};
|
|
465
1135
|
this.dataTableConfig = dataTableConfig;
|
|
466
1136
|
|
|
467
1137
|
let tableOption = {
|
|
@@ -477,190 +1147,108 @@ export default {
|
|
|
477
1147
|
/*pagerConfig: {
|
|
478
1148
|
autoHidden: !this.widget.options.showPagination
|
|
479
1149
|
},*/
|
|
480
|
-
...dataTableConfig.config
|
|
1150
|
+
...dataTableConfig.config,
|
|
481
1151
|
},
|
|
482
1152
|
exportAjax: (param) => {
|
|
483
1153
|
let $grid = this.getGridTable();
|
|
484
1154
|
let pageSize = param.size;
|
|
485
1155
|
let currentPage = param.current;
|
|
486
|
-
let page = {pageSize, currentPage};
|
|
487
|
-
return this.vxeOption.config.proxyConfig.ajax.query.call(this, {
|
|
488
|
-
|
|
1156
|
+
let page = { pageSize, currentPage };
|
|
1157
|
+
return this.vxeOption.config.proxyConfig.ajax.query.call(this, {
|
|
1158
|
+
page,
|
|
1159
|
+
param,
|
|
1160
|
+
});
|
|
1161
|
+
},
|
|
489
1162
|
};
|
|
490
1163
|
|
|
491
1164
|
if (isQueryTable) {
|
|
492
1165
|
tableOption.path = path;
|
|
493
1166
|
tableOption.config.proxyConfig = {
|
|
494
1167
|
props: {
|
|
495
|
-
result: isDataPage ?
|
|
496
|
-
total: isDataPage ?
|
|
1168
|
+
result: isDataPage ? "objx.records" : "objx", // 配置响应结果列表字段
|
|
1169
|
+
total: isDataPage ? "objx.total" : "objx.length", // 配置响应结果总页数字段
|
|
497
1170
|
},
|
|
498
1171
|
ajax: {
|
|
499
1172
|
// 接收 Promise 对象
|
|
500
|
-
query: ({page, sorts, filters, form, param}) => {
|
|
501
|
-
|
|
502
|
-
return;
|
|
503
|
-
}
|
|
504
|
-
|
|
1173
|
+
query: ({ page, sorts, filters, form, param }) => {
|
|
1174
|
+
let scriptCode = this.getScriptCode();
|
|
505
1175
|
let formData = tableOption.param ? tableOption.param() || {} : {};
|
|
506
1176
|
const queryParams = Object.assign({}, formData);
|
|
507
1177
|
|
|
508
|
-
// 处理排序条件
|
|
509
|
-
if (sorts) {
|
|
510
|
-
const firstSort = sorts[0];
|
|
511
|
-
if (firstSort) {
|
|
512
|
-
queryParams.sort = firstSort.property;
|
|
513
|
-
queryParams.order = firstSort.order;
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
// 处理筛选条件
|
|
518
1178
|
if (filters) {
|
|
519
|
-
filters.forEach(({property, values}) => {
|
|
1179
|
+
filters.forEach(({ property, values }) => {
|
|
520
1180
|
queryParams[property] = values.join(",");
|
|
521
1181
|
});
|
|
522
1182
|
}
|
|
523
1183
|
|
|
524
1184
|
if (page.pageSize !== undefined) {
|
|
525
|
-
queryParams
|
|
526
|
-
queryParams
|
|
1185
|
+
queryParams.size = page.pageSize;
|
|
1186
|
+
queryParams.current = page.currentPage;
|
|
527
1187
|
}
|
|
528
1188
|
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
let pathStr1 = "";
|
|
532
|
-
if (isQueryAllPage === false) {
|
|
533
|
-
queryParams.searchCount = false;
|
|
534
|
-
}*/
|
|
535
|
-
Object.assign(queryParams, param)
|
|
1189
|
+
queryParams.searchCount = isQueryAllPage !== false;
|
|
1190
|
+
Object.assign(queryParams, param);
|
|
536
1191
|
|
|
537
|
-
|
|
1192
|
+
if (that.dataTableConfig.queryParam) {
|
|
1193
|
+
Object.assign(queryParams, that.dataTableConfig.queryParam);
|
|
1194
|
+
}
|
|
538
1195
|
|
|
539
1196
|
return new Promise((resolve, reject) => {
|
|
540
1197
|
let reqData = {
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
this.
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
setTimeout(function () {
|
|
559
|
-
tableOption.callback(rows);
|
|
560
|
-
}, 0);
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
} else {
|
|
564
|
-
this.setValue([]);
|
|
1198
|
+
...queryParams,
|
|
1199
|
+
};
|
|
1200
|
+
if (scriptCode) {
|
|
1201
|
+
let done = (res) => {
|
|
1202
|
+
resolve(res);
|
|
1203
|
+
if (res.type === "success") {
|
|
1204
|
+
let rows = res.objx
|
|
1205
|
+
? res.objx.records || res.objx || []
|
|
1206
|
+
: [];
|
|
1207
|
+
this.setValue(rows);
|
|
1208
|
+
if (res.objx && res.objx.records !== undefined) {
|
|
1209
|
+
this.page = {
|
|
1210
|
+
current: res.objx.current ?? this.page.current,
|
|
1211
|
+
size: res.objx.size ?? this.page.size,
|
|
1212
|
+
total: res.objx.total ?? 0,
|
|
1213
|
+
records: rows,
|
|
1214
|
+
};
|
|
565
1215
|
}
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
1216
|
+
that.$nextTick(() => {
|
|
1217
|
+
setTimeout(function () {
|
|
1218
|
+
dataTableConfig.callback &&
|
|
1219
|
+
dataTableConfig.callback(rows);
|
|
1220
|
+
tableOption.callback && tableOption.callback(rows);
|
|
1221
|
+
that.handleCustomEvent(
|
|
1222
|
+
that.widget.options.formScriptCallback,
|
|
1223
|
+
["rows"],
|
|
1224
|
+
[rows]
|
|
1225
|
+
);
|
|
1226
|
+
}, 0);
|
|
571
1227
|
});
|
|
1228
|
+
} else {
|
|
1229
|
+
this.page = {
|
|
1230
|
+
current: 1,
|
|
1231
|
+
size: this.pageSize,
|
|
1232
|
+
total: 0,
|
|
1233
|
+
records: [],
|
|
1234
|
+
};
|
|
1235
|
+
this.setValue([]);
|
|
572
1236
|
}
|
|
573
1237
|
};
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
index++
|
|
578
|
-
setTimeout(() => {
|
|
579
|
-
loopHandle();
|
|
580
|
-
}, 10)
|
|
581
|
-
} else {
|
|
582
|
-
if ($grid.tableFormStop) $grid.tableFormStop = false;
|
|
583
|
-
toDo();
|
|
584
|
-
}*/
|
|
585
|
-
toDo();
|
|
586
|
-
}
|
|
587
|
-
loopHandle();
|
|
1238
|
+
this.loadDefaultQueryList(reqData, done).catch((error) => {
|
|
1239
|
+
reject(error);
|
|
1240
|
+
});
|
|
588
1241
|
} else {
|
|
589
1242
|
resolve();
|
|
590
1243
|
}
|
|
591
|
-
/*that.scriptHttp({
|
|
592
|
-
options: this.widget.options,
|
|
593
|
-
params: queryParams,
|
|
594
|
-
callback: (res) => {
|
|
595
|
-
resolve(res);
|
|
596
|
-
if (res.type == "success") {
|
|
597
|
-
let rows = res.objx ? res.objx.records || res.objx || [] : [];
|
|
598
|
-
/!*if (tableOption.treeNodeUrl) {
|
|
599
|
-
if (rows.length > 0) {
|
|
600
|
-
let $t = this.$refs[tableRef];
|
|
601
|
-
var treeConditions = $t.originOption.treeConditions || [
|
|
602
|
-
"enabled",
|
|
603
|
-
];
|
|
604
|
-
let treeFiled = Object.keys(formData).some((key) => {
|
|
605
|
-
return (
|
|
606
|
-
!treeConditions.includes(key) && formData[key] != null && formData[key] != ""
|
|
607
|
-
);
|
|
608
|
-
});
|
|
609
|
-
if (treeFiled) {
|
|
610
|
-
that.$nextTick(() => {
|
|
611
|
-
setTimeout(function () {
|
|
612
|
-
let isLazy = $t.treeConfig.lazy;
|
|
613
|
-
$t.treeConfig.lazy = false;
|
|
614
|
-
$t.setAllTreeExpand(true).then(() => {
|
|
615
|
-
let fullAllDataRowMap = $t.$refs.xTable.fullAllDataRowMap;
|
|
616
|
-
let fullData = $t.getTableData().fullData;
|
|
617
|
-
fullData.forEach((lineData) => {
|
|
618
|
-
if (
|
|
619
|
-
$t.$refs.xTable.isTreeExpandByRow(lineData)
|
|
620
|
-
) {
|
|
621
|
-
var rest = fullAllDataRowMap.get(lineData);
|
|
622
|
-
rest.treeLoaded = true;
|
|
623
|
-
}
|
|
624
|
-
});
|
|
625
|
-
$t.treeConfig.lazy = isLazy;
|
|
626
|
-
});
|
|
627
|
-
}, 0);
|
|
628
|
-
});
|
|
629
|
-
} else {
|
|
630
|
-
let row = rows[0];
|
|
631
|
-
if (row[result.treeConfig.hasChild]) {
|
|
632
|
-
that.$nextTick(() => {
|
|
633
|
-
setTimeout(function () {
|
|
634
|
-
$t.setTreeExpand(row, true);
|
|
635
|
-
}, 0);
|
|
636
|
-
});
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
}*!/
|
|
641
|
-
if (tableOption.callback) {
|
|
642
|
-
that.$nextTick(() => {
|
|
643
|
-
setTimeout(function () {
|
|
644
|
-
tableOption.callback(rows);
|
|
645
|
-
}, 0);
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
},
|
|
650
|
-
httpConfig: {
|
|
651
|
-
error: (error) => {
|
|
652
|
-
reject(error);
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
});*/
|
|
656
1244
|
});
|
|
657
|
-
}
|
|
658
|
-
}
|
|
1245
|
+
},
|
|
1246
|
+
},
|
|
659
1247
|
};
|
|
660
1248
|
tableOption.callback = (rows) => {
|
|
661
1249
|
// this.fieldModel = rows;
|
|
662
|
-
this.formModel[this.fieldKeyName] = rows
|
|
663
|
-
}
|
|
1250
|
+
this.formModel[this.fieldKeyName] = rows;
|
|
1251
|
+
};
|
|
664
1252
|
}
|
|
665
1253
|
this.vxeOption = tableOption;
|
|
666
1254
|
this.loadAccessData();
|
|
@@ -677,23 +1265,66 @@ export default {
|
|
|
677
1265
|
this.loadAccessData();
|
|
678
1266
|
}*/
|
|
679
1267
|
},
|
|
1268
|
+
getTableCondition() {
|
|
1269
|
+
if (this.widget.options.tableCondition) {
|
|
1270
|
+
let e = new Function(this.widget.options.tableCondition);
|
|
1271
|
+
return e.call(this);
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
getSearchCondition() {
|
|
1275
|
+
// let extraAccessData = this.extraAccessData || {};
|
|
1276
|
+
let searchFormData = this.getSearchFormData();
|
|
1277
|
+
let conditions = {
|
|
1278
|
+
// ...this.getTableCondition(),
|
|
1279
|
+
...searchFormData,
|
|
1280
|
+
// ...this.advancedFormData,
|
|
1281
|
+
// ...extraAccessData,
|
|
1282
|
+
};
|
|
1283
|
+
if (this.keyword) {
|
|
1284
|
+
conditions.keyword = this.keyword;
|
|
1285
|
+
}
|
|
1286
|
+
return conditions;
|
|
1287
|
+
},
|
|
680
1288
|
getSearchFormData() {
|
|
681
|
-
let map = {};
|
|
1289
|
+
let map = { condition: [] };
|
|
682
1290
|
let formData = this.globalModel.formModel;
|
|
683
1291
|
let widgetList = this.widget.widgetList;
|
|
684
1292
|
if (!!widgetList && widgetList.length > 0) {
|
|
685
1293
|
let loop = (wItem) => {
|
|
686
|
-
if (wItem.category ===
|
|
1294
|
+
if (wItem.category === "container") {
|
|
687
1295
|
loop(wItem);
|
|
688
1296
|
} else {
|
|
689
1297
|
let formField = this.getFieldKeyName(wItem);
|
|
690
1298
|
let vaule = formData[formField];
|
|
691
|
-
if (vaule !== null && vaule !== undefined && vaule !==
|
|
692
|
-
|
|
1299
|
+
if (vaule !== null && vaule !== undefined && vaule !== "") {
|
|
1300
|
+
if (!Array.isArray(vaule) || vaule.length > 0) {
|
|
1301
|
+
let item = {
|
|
1302
|
+
value: vaule,
|
|
1303
|
+
field: formField,
|
|
1304
|
+
filter: null,
|
|
1305
|
+
};
|
|
1306
|
+
let wType = wItem.type;
|
|
1307
|
+
if (["date-range", "time-range"].includes(wType)) {
|
|
1308
|
+
item.filter = "between";
|
|
1309
|
+
} else if (
|
|
1310
|
+
["input-batch", "checkbox"].includes(wType) ||
|
|
1311
|
+
(wType === "select" && wItem.options.multiple)
|
|
1312
|
+
) {
|
|
1313
|
+
item.filter = "in";
|
|
1314
|
+
} else if (
|
|
1315
|
+
["radio", "time", "date"].includes(wType) ||
|
|
1316
|
+
(wType === "select" && !wItem.options.multiple)
|
|
1317
|
+
) {
|
|
1318
|
+
item.filter = "eq";
|
|
1319
|
+
} else {
|
|
1320
|
+
item.filter = "like";
|
|
1321
|
+
}
|
|
1322
|
+
map.condition.push(item);
|
|
1323
|
+
}
|
|
693
1324
|
}
|
|
694
1325
|
}
|
|
695
1326
|
};
|
|
696
|
-
widgetList.forEach(wItem => {
|
|
1327
|
+
widgetList.forEach((wItem) => {
|
|
697
1328
|
loop(wItem);
|
|
698
1329
|
});
|
|
699
1330
|
}
|
|
@@ -706,51 +1337,131 @@ export default {
|
|
|
706
1337
|
param = param || {};
|
|
707
1338
|
let pageSize = param.size || this.pageSize;
|
|
708
1339
|
let currentPage = param.current || 1;
|
|
709
|
-
let page = {pageSize, currentPage};
|
|
710
|
-
return this.vxeOption.config.proxyConfig.ajax.query.call(this, {
|
|
1340
|
+
let page = { pageSize, currentPage };
|
|
1341
|
+
return this.vxeOption.config.proxyConfig.ajax.query.call(this, {
|
|
1342
|
+
page,
|
|
1343
|
+
param,
|
|
1344
|
+
});
|
|
711
1345
|
},
|
|
712
1346
|
loadAccessData() {
|
|
713
1347
|
let isQueryTable = this.widget.options.isQueryTable || false;
|
|
714
1348
|
if (isQueryTable) {
|
|
715
|
-
this.loadTableData({})
|
|
1349
|
+
this.loadTableData({});
|
|
716
1350
|
return;
|
|
717
1351
|
}
|
|
718
1352
|
if (!isQueryTable && !this.formDataId) return;
|
|
719
1353
|
|
|
720
|
-
let
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
1354
|
+
let scriptCode = this.getScriptCode();
|
|
1355
|
+
if (scriptCode) {
|
|
1356
|
+
this.loadDefaultViewList();
|
|
1357
|
+
}
|
|
1358
|
+
},
|
|
1359
|
+
getAccessParam() {
|
|
1360
|
+
if (!this.widget.options.formScriptParam) return;
|
|
1361
|
+
return this.handleCustomEvent(this.widget.options.formScriptParam);
|
|
1362
|
+
},
|
|
1363
|
+
getScriptCode() {
|
|
1364
|
+
let accessReturnType = this.widget.options.accessReturnType;
|
|
1365
|
+
let defaultScriptCode = "getList";
|
|
1366
|
+
if (accessReturnType === "1") {
|
|
1367
|
+
defaultScriptCode = "getList";
|
|
1368
|
+
} else if (accessReturnType === "2") {
|
|
1369
|
+
defaultScriptCode = "getPage";
|
|
1370
|
+
}
|
|
1371
|
+
return this.widget.options.formScriptCode || defaultScriptCode;
|
|
1372
|
+
},
|
|
1373
|
+
getAttachmentType() {
|
|
1374
|
+
let result = [];
|
|
1375
|
+
let tableColumns = this.widget.options.tableColumns || [];
|
|
1376
|
+
tableColumns.forEach((item) => {
|
|
1377
|
+
if (item.prop && item.label && item.formatS === "editAttachment") {
|
|
1378
|
+
result.push(item.prop);
|
|
729
1379
|
}
|
|
730
|
-
|
|
731
|
-
|
|
1380
|
+
});
|
|
1381
|
+
return result;
|
|
1382
|
+
},
|
|
1383
|
+
getHttpConfigForUser() {
|
|
1384
|
+
return {
|
|
1385
|
+
addCreateInfo: true,
|
|
1386
|
+
queryCreateInfo: window.$vueRoot.$store.getters.queryCreateInfo || "0",
|
|
1387
|
+
};
|
|
1388
|
+
},
|
|
1389
|
+
loadDefaultQueryList(reqData, done) {
|
|
1390
|
+
let reportTemplate = this.getFormRef().reportTemplate;
|
|
1391
|
+
let formCode = reportTemplate.formCode;
|
|
1392
|
+
let scriptCode = this.getScriptCode();
|
|
1393
|
+
let accessParam = this.getAccessParam() || {};
|
|
1394
|
+
let otherParam = {};
|
|
1395
|
+
let attachmentType = this.getAttachmentType();
|
|
1396
|
+
if (attachmentType.length) {
|
|
1397
|
+
otherParam.attachmentType = attachmentType;
|
|
732
1398
|
}
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
1399
|
+
let defaultOption = this.getHttpConfigForUser();
|
|
1400
|
+
let requestData = {
|
|
1401
|
+
...reqData,
|
|
1402
|
+
...otherParam,
|
|
1403
|
+
};
|
|
1404
|
+
requestData = extendDeeply(requestData, accessParam);
|
|
1405
|
+
return this.formHttp({
|
|
1406
|
+
scriptCode: scriptCode,
|
|
1407
|
+
data: {
|
|
1408
|
+
formCode: formCode,
|
|
1409
|
+
formVersion: reportTemplate.formVersion,
|
|
1410
|
+
taBm: this.fieldKeyName,
|
|
1411
|
+
data: requestData,
|
|
1412
|
+
},
|
|
1413
|
+
isLoading: false,
|
|
1414
|
+
...defaultOption,
|
|
1415
|
+
callback: (res) => {
|
|
1416
|
+
done(res);
|
|
1417
|
+
},
|
|
1418
|
+
});
|
|
1419
|
+
},
|
|
1420
|
+
loadDefaultViewList() {
|
|
1421
|
+
let dataId = this.formDataId;
|
|
1422
|
+
let reportTemplate = this.getFormRef().reportTemplate;
|
|
1423
|
+
let formCode = reportTemplate.formCode;
|
|
1424
|
+
let accessParam = this.getAccessParam() || {};
|
|
1425
|
+
let otherParam = {};
|
|
1426
|
+
let attachmentType = this.getAttachmentType();
|
|
1427
|
+
if (attachmentType.length) {
|
|
1428
|
+
otherParam.attachmentType = attachmentType;
|
|
1429
|
+
}
|
|
1430
|
+
let scriptCode = this.getScriptCode();
|
|
1431
|
+
return this.formHttp({
|
|
1432
|
+
scriptCode: scriptCode,
|
|
1433
|
+
data: {
|
|
1434
|
+
formCode: formCode,
|
|
1435
|
+
formVersion: reportTemplate.formVersion,
|
|
1436
|
+
taBm: this.fieldKeyName,
|
|
1437
|
+
data: {
|
|
1438
|
+
id: dataId,
|
|
1439
|
+
...otherParam,
|
|
1440
|
+
...accessParam,
|
|
1441
|
+
},
|
|
1442
|
+
},
|
|
1443
|
+
callback: (res) => {
|
|
738
1444
|
let rows = res.objx ? res.objx.records || res.objx || [] : [];
|
|
739
|
-
this.
|
|
740
|
-
|
|
741
|
-
|
|
1445
|
+
this.setValue(rows);
|
|
1446
|
+
this.handleCustomEvent(
|
|
1447
|
+
this.widget.options.formScriptCallback,
|
|
1448
|
+
["rows"],
|
|
1449
|
+
[rows]
|
|
1450
|
+
);
|
|
1451
|
+
},
|
|
1452
|
+
});
|
|
742
1453
|
},
|
|
743
1454
|
getReqParam(item, dataId, billData) {
|
|
744
1455
|
let param = {};
|
|
745
1456
|
if (item.accessParam) {
|
|
746
1457
|
if (typeof item.accessParam === "string") {
|
|
747
|
-
let n = new Function(
|
|
1458
|
+
let n = new Function("billData", item.accessParam);
|
|
748
1459
|
param = n.call(this, billData);
|
|
749
1460
|
} else {
|
|
750
|
-
param = item.accessParam
|
|
1461
|
+
param = item.accessParam;
|
|
751
1462
|
}
|
|
752
1463
|
} else {
|
|
753
|
-
param = {id: dataId}
|
|
1464
|
+
param = { id: dataId };
|
|
754
1465
|
}
|
|
755
1466
|
return param;
|
|
756
1467
|
},
|
|
@@ -758,10 +1469,12 @@ export default {
|
|
|
758
1469
|
this.fieldModel.splice(rowIndex, 1);
|
|
759
1470
|
},
|
|
760
1471
|
createNewTableData() {
|
|
761
|
-
let vailColumns = this.widget.options.tableColumns.filter(
|
|
1472
|
+
let vailColumns = this.widget.options.tableColumns.filter(
|
|
1473
|
+
(item) => item.prop && item.label
|
|
1474
|
+
);
|
|
762
1475
|
let newData = {};
|
|
763
|
-
vailColumns.forEach(item => {
|
|
764
|
-
if (item.formatS ==
|
|
1476
|
+
vailColumns.forEach((item) => {
|
|
1477
|
+
if (item.formatS == "editSearch") {
|
|
765
1478
|
newData[item.prop] = null;
|
|
766
1479
|
let vabSearchName = item?.columnOption?.vabSearchName;
|
|
767
1480
|
if (vabSearchName) newData[vabSearchName] = null;
|
|
@@ -777,11 +1490,11 @@ export default {
|
|
|
777
1490
|
let fullData = this.fieldModel;
|
|
778
1491
|
let items;
|
|
779
1492
|
if (field) {
|
|
780
|
-
let keys = fullData.map(item => {
|
|
1493
|
+
let keys = fullData.map((item) => {
|
|
781
1494
|
return item[field] + "";
|
|
782
1495
|
});
|
|
783
|
-
items = rows.filter(item => {
|
|
784
|
-
let value = item[field] + ""
|
|
1496
|
+
items = rows.filter((item) => {
|
|
1497
|
+
let value = item[field] + "";
|
|
785
1498
|
return !keys.includes(value);
|
|
786
1499
|
});
|
|
787
1500
|
} else {
|
|
@@ -789,12 +1502,12 @@ export default {
|
|
|
789
1502
|
}
|
|
790
1503
|
if (items) {
|
|
791
1504
|
if (items.length) {
|
|
792
|
-
items.forEach(row => {
|
|
1505
|
+
items.forEach((row) => {
|
|
793
1506
|
let newData = this.createNewTableData();
|
|
794
1507
|
Object.assign(newData, row);
|
|
795
1508
|
|
|
796
1509
|
tableRows.push(newData);
|
|
797
|
-
})
|
|
1510
|
+
});
|
|
798
1511
|
}
|
|
799
1512
|
} else {
|
|
800
1513
|
let newData = this.createNewTableData();
|
|
@@ -806,24 +1519,18 @@ export default {
|
|
|
806
1519
|
},
|
|
807
1520
|
getColumnWidgetConfig(row) {
|
|
808
1521
|
let formRef = this.getFormRef();
|
|
809
|
-
let formatS = row.formatS
|
|
1522
|
+
let formatS = row.formatS;
|
|
810
1523
|
let columnSelectedWidget = null;
|
|
811
1524
|
let columnEditFields = null;
|
|
812
1525
|
|
|
813
1526
|
let type = this.columnFormatMap[row.formatS];
|
|
814
|
-
/*if (type == 'date') {
|
|
815
|
-
columnEditFields = ['type', 'format', 'valueFormat']
|
|
816
|
-
} else if (type == 'select') {
|
|
817
|
-
|
|
818
|
-
}
|
|
819
|
-
if (type == 'vabsearch') {
|
|
820
|
-
columnEditFields = ['vabSearchField', 'formCode', 'formVersion', 'required', 'showFormField', 'onSearchConfirm', 'onSearchClear']
|
|
821
|
-
}*/
|
|
822
1527
|
|
|
823
1528
|
if (type) {
|
|
824
|
-
columnSelectedWidget = this.$baseLodash.cloneDeep(
|
|
1529
|
+
columnSelectedWidget = this.$baseLodash.cloneDeep(
|
|
1530
|
+
formRef.getFieldWidgetByType(type)
|
|
1531
|
+
);
|
|
825
1532
|
let tmpId = generateId();
|
|
826
|
-
let idVal = row.prop ? row.prop :
|
|
1533
|
+
let idVal = row.prop ? row.prop : type + tmpId;
|
|
827
1534
|
columnSelectedWidget.id = idVal;
|
|
828
1535
|
columnSelectedWidget.options.name = idVal;
|
|
829
1536
|
if (row.columnOption && Object.keys(row.columnOption).length) {
|
|
@@ -837,24 +1544,42 @@ export default {
|
|
|
837
1544
|
columnSelectedWidget.options.label = row.label;
|
|
838
1545
|
columnSelectedWidget.options.labelHidden = true;
|
|
839
1546
|
}
|
|
840
|
-
return {columnSelectedWidget, columnEditFields};
|
|
1547
|
+
return { columnSelectedWidget, columnEditFields };
|
|
841
1548
|
},
|
|
842
1549
|
getColumnProp(widget, obj) {
|
|
843
1550
|
let isQueryTable = this.widget.options.isQueryTable || false;
|
|
844
1551
|
if (isQueryTable) {
|
|
845
1552
|
return "false";
|
|
846
1553
|
} else {
|
|
847
|
-
let propName =
|
|
848
|
-
|
|
1554
|
+
let propName =
|
|
1555
|
+
this.getFieldKeyName(widget) +
|
|
1556
|
+
"." +
|
|
1557
|
+
obj.rowIndex +
|
|
1558
|
+
"." +
|
|
1559
|
+
obj.column.field;
|
|
1560
|
+
if (this.isVabsearchFlagWidget(widget)) {
|
|
849
1561
|
let vabSearchName = obj.column.params.widget.options.vabSearchName;
|
|
850
|
-
propName =
|
|
1562
|
+
propName =
|
|
1563
|
+
this.getFieldKeyName(widget) +
|
|
1564
|
+
"." +
|
|
1565
|
+
obj.rowIndex +
|
|
1566
|
+
"." +
|
|
1567
|
+
vabSearchName;
|
|
851
1568
|
}
|
|
852
1569
|
return propName;
|
|
853
1570
|
}
|
|
854
1571
|
},
|
|
1572
|
+
isVabsearchFlagWidget(widget) {
|
|
1573
|
+
let type = widget?.type;
|
|
1574
|
+
return (
|
|
1575
|
+
type === "vabsearch" ||
|
|
1576
|
+
type === "singerSearch" ||
|
|
1577
|
+
type === "multiSearch"
|
|
1578
|
+
);
|
|
1579
|
+
},
|
|
855
1580
|
getColumnWidgetName(e) {
|
|
856
1581
|
if (e && e.type) {
|
|
857
|
-
return e.type +
|
|
1582
|
+
return e.type + "-widget";
|
|
858
1583
|
}
|
|
859
1584
|
},
|
|
860
1585
|
getGridTable() {
|
|
@@ -866,8 +1591,8 @@ export default {
|
|
|
866
1591
|
return tableRef;
|
|
867
1592
|
},
|
|
868
1593
|
getUrl() {
|
|
869
|
-
let accessUrl = this.widget.options.accessUrl
|
|
870
|
-
return accessUrl ||
|
|
1594
|
+
let accessUrl = this.widget.options.accessUrl;
|
|
1595
|
+
return accessUrl || USER_PREFIX + `/form_ins/getFormInsData`;
|
|
871
1596
|
},
|
|
872
1597
|
openRowDetailDialog(row) {
|
|
873
1598
|
/*let isQueryTable = this.widget.options.isQueryTable || false;
|
|
@@ -875,17 +1600,17 @@ export default {
|
|
|
875
1600
|
this.editRow = row;
|
|
876
1601
|
this.showRowDetailDialog = true;
|
|
877
1602
|
},
|
|
878
|
-
changePageNew({type, currentPage, pageSize, $event}) {
|
|
1603
|
+
changePageNew({ type, currentPage, pageSize, $event }) {
|
|
879
1604
|
this.loadTableData({
|
|
880
1605
|
size: pageSize + "",
|
|
881
|
-
current: currentPage + ""
|
|
882
|
-
})
|
|
1606
|
+
current: currentPage + "",
|
|
1607
|
+
});
|
|
883
1608
|
},
|
|
884
1609
|
exportData(option) {
|
|
885
1610
|
let tableRef = this.getTableRef();
|
|
886
1611
|
let serverName = this.getFormRef().reportTemplate.serverName;
|
|
887
1612
|
option.prefix = option.prefix || serverName;
|
|
888
|
-
this.$excelExport({targetRef: tableRef, ...option})
|
|
1613
|
+
this.$excelExport({ targetRef: tableRef, ...option });
|
|
889
1614
|
},
|
|
890
1615
|
itemCheck(row) {
|
|
891
1616
|
let dataTableConfig = this.dataTableConfig;
|
|
@@ -897,25 +1622,15 @@ export default {
|
|
|
897
1622
|
checkItemIds.splice(checkItemIds.indexOf(row.id), 1);
|
|
898
1623
|
} else {
|
|
899
1624
|
checked = true;
|
|
900
|
-
checkItemIds.push(row.id)
|
|
1625
|
+
checkItemIds.push(row.id);
|
|
901
1626
|
}
|
|
902
|
-
let param = {row, checked};
|
|
903
|
-
dataTableConfig.onCheckboxChange &&
|
|
1627
|
+
let param = { row, checked };
|
|
1628
|
+
dataTableConfig.onCheckboxChange &&
|
|
1629
|
+
dataTableConfig.onCheckboxChange(param);
|
|
904
1630
|
}
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
}
|
|
1631
|
+
},
|
|
1632
|
+
},
|
|
908
1633
|
};
|
|
909
1634
|
</script>
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
.orderList-box {
|
|
914
|
-
flex: 1;
|
|
915
|
-
overflow-y: auto;
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
.search-H5box {
|
|
919
|
-
margin: 0 0 9px;
|
|
920
|
-
}
|
|
921
|
-
</style>
|
|
1635
|
+
|
|
1636
|
+
<style lang="scss" scoped></style>
|