cloud-web-corejs 1.1.0-dev.74 → 1.1.0-dev.76
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 +1 -1
- package/src/components/Qrcode/fileParse.vue +4 -4
- package/src/components/Tinymce/dynamicLoadScript.js +4 -4
- package/src/components/Tinymce/index.vue +1 -1
- package/src/components/VabUpload/fileLibraryDialog.vue +18 -18
- package/src/components/VabUpload/image-viewer.vue +2 -2
- package/src/components/VabUpload/mixins/fileLibraryDialog.js +12 -12
- package/src/components/VabUpload/mixins.js +1 -3
- package/src/components/VabUpload/privateProfileDialog.vue +18 -18
- package/src/components/VabUpload/privateProfileDialogMixins.js +12 -12
- package/src/components/VabUpload/view.vue +1 -1
- package/src/components/base-textarea/index.vue +2 -4
- package/src/components/baseArea/index.vue +8 -8
- package/src/components/baseAutocomplete/index.vue +1 -1
- package/src/components/bizTab/BizTabListPage.vue +69 -71
- package/src/components/code-editor/async.js +3 -1
- package/src/components/excelExport/mixins.js +1 -1
- package/src/components/extendedProperties/view.vue +4 -5
- package/src/components/fileLibrary/fileObjAuthEdit.vue +1 -1
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +3 -5
- package/src/components/fileLibrary/filterDialog.vue +2 -2
- package/src/components/fileLibrary/index.vue +13 -13
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +2 -2
- package/src/components/fileLibrary/mixins/indexMixins.js +4 -4
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
- package/src/components/fileLibrary/propertiesDialog.vue +1 -1
- package/src/components/fileLibrary/recycleBinDialog.vue +2 -2
- package/src/components/fileLibrary/recycleBinPropertiesDialog.vue +1 -2
- package/src/components/formDialog/index.vue +1 -1
- package/src/components/formDrawer/drawer.vue +1 -1
- package/src/components/hiprint/etypes/default-etyps-provider.js +22 -22
- package/src/components/hiprint/hiprint.config.js +29 -29
- package/src/components/hiprint/view/design/dialog.vue +3 -4
- package/src/components/hiprint/view/design/font-size.js +2 -2
- package/src/components/hiprint/view/design/index.vue +27 -29
- package/src/components/hiprint/view/design/mixins.js +22 -22
- package/src/components/hiprint/view/design/preview.vue +9 -10
- package/src/components/hiprint/view/design/scale.js +1 -1
- package/src/components/hiprint/view/json-view.vue +6 -6
- package/src/components/jsonImport/exportDialog.vue +2 -2
- package/src/components/langImport/index.vue +1 -2
- package/src/components/luckysheet/dialog.vue +1 -1
- package/src/components/luckysheet/loadResources.js +5 -5
- package/src/components/luckysheet/view.vue +3 -3
- package/src/components/mobile/buttonGroup/index.vue +3 -4
- package/src/components/mobile/file/index.vue +7 -7
- package/src/components/mobile/oplogTable/index.vue +4 -4
- package/src/components/mobile/searchDialog/index.vue +3 -4
- package/src/components/mobile/wf/addTaskUserdialog.vue +18 -19
- package/src/components/mobile/wf/content.vue +14 -14
- package/src/components/mobile/wf/deleteTaskUserDialog.vue +5 -5
- package/src/components/mobile/wf/mixins/wfStartDialogMixin.js +1 -1
- package/src/components/mobile/wf/selectUserDialog.vue +13 -13
- package/src/components/mobile/wf/setCandidateDialog.vue +5 -6
- package/src/components/mobile/wf/urgingDialog.vue +4 -4
- package/src/components/mobile/wf/wfStartDialog.vue +2 -2
- package/src/components/obsUpload/mixins.js +7 -9
- package/src/components/onlineTalk/index.vue +21 -24
- package/src/components/onlineTalk/mixins.js +3 -3
- package/src/components/table/vxeFilter/FilterComplex.vue +6 -6
- package/src/components/table/vxeFilter/FilterInput.vue +1 -1
- package/src/components/wf/addTaskUserdialog.vue +1 -1
- package/src/components/wf/content.vue +8 -10
- package/src/components/wf/content2.vue +58 -77
- package/src/components/wf/formIframeDialog.vue +1 -1
- package/src/components/wf/index.vue +1 -1
- package/src/components/wf/wf.js +18 -5
- package/src/components/xform/docs//345/270/270/347/224/250/350/204/232/346/234/254/350/260/203/347/224/250.md +209 -0
- package/src/components/xform/docs//347/272/247/350/201/224/351/200/211/346/213/251/346/207/222/345/212/240/350/275/275/344/275/277/347/224/250/350/257/264/346/230/216.md +177 -0
- package/src/components/xform/form-designer/designer.js +20 -20
- package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +74 -76
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/container-widget/detail-temp-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/container-widget/list-h5-widget.vue +6 -6
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +1 -1
- package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +5 -5
- package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +2 -2
- package/src/components/xform/form-designer/form-widget/dialog/treeMoveDialog.vue +4 -6
- package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +3 -3
- package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/autocomplete-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +349 -10
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +6 -0
- package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +176 -176
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +3 -3
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/relativeDateUtil.js +4 -4
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/row-col-select-widget.vue +4 -4
- package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +8 -8
- package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/action-button-config-dialog.vue +21 -21
- package/src/components/xform/form-designer/setting-panel/dataSource-setting.vue +46 -46
- package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +62 -66
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +53 -61
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +50 -0
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +9 -9
- package/src/components/xform/form-designer/setting-panel/property-editor/censusItems-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/condition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +99 -116
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/edit-tree-button-group-config-dialog.vue +17 -17
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +14 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +80 -80
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +1 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-plain/detail-plain-editor.vue +1 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +14 -16
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +39 -56
- package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-fullWidth-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/container-tree-pane/tree-pane-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/descriptionsItems-editor.vue +8 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +11 -12
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClear-editor.vue +30 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onLazyLoad-editor.vue +34 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-accessUrl/accessUrl-editor.vue +7 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-autocomplete/autocomplete-vabSearchName-editor.vue +22 -22
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/addTableData-event-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindActions.js +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/form-host-event-editor.vue +40 -40
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +24 -24
- package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/cascader-lazy-editor.vue +99 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyName-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyNameEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-dateLimit-editor.vue +11 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-format-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-format-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +15 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +15 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +25 -25
- package/src/components/xform/form-designer/setting-panel/property-editor/field-gantt/gantt-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +28 -31
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +41 -50
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +4 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +4 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script/script-editor.vue +24 -24
- package/src/components/xform/form-designer/setting-panel/property-editor/field-script-input/script-input-editor.vue +7 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +24 -24
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +19 -21
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +13 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-timeLimit-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-format-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchField-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabsearchConfigDialog.vue +9 -9
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +5 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +5 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +6 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +9 -9
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/iconClass-editor.vue +8 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +5 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/listItems-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +25 -25
- package/src/components/xform/form-designer/setting-panel/property-editor/relative-default-block.vue +14 -15
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +5 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/showText-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +11 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/urlValueEnabled-editor.vue +2 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/utcTransformEnabled-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +23 -23
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +9 -9
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +3 -0
- package/src/components/xform/form-designer/setting-panel/wfObjConfigDialog.vue +1 -1
- package/src/components/xform/form-designer/toolbar-panel/index.vue +3 -4
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +7 -0
- package/src/components/xform/form-render/container-item/data-table-item.vue +10 -10
- package/src/components/xform/form-render/container-item/data-table-mixin.js +34 -34
- package/src/components/xform/form-render/container-item/detail-item.vue +2 -2
- package/src/components/xform/form-render/container-item/detail-temp-item.vue +1 -1
- package/src/components/xform/form-render/container-item/list-h5-item.vue +13 -13
- package/src/components/xform/form-render/fieldControlEngine.js +17 -17
- package/src/components/xform/form-render/fieldControlMixin.js +14 -14
- package/src/components/xform/form-render/index.vue +2 -2
- package/src/components/xform/form-render/indexMixin.js +21 -21
- package/src/components/xform/mixins/defaultHandle.js +1 -1
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/components/xform/utils/dynamicSchemaUtil.js +1 -1
- package/src/components/xform/utils/formHttp.js +1 -1
- package/src/components/xform/utils/treeTableUtil.js +44 -44
- package/src/layout/components/createCompany/createCompanyDialog.vue +2 -2
- package/src/layout/components/extractedCode/createDialog.vue +1 -1
- package/src/layout/components/langTool.vue +1 -1
- package/src/utils/vab.js +4 -0
- package/src/views/user/api_request/list.vue +6 -6
- package/src/views/user/area/dialog.vue +1 -1
- package/src/views/user/area/list.vue +1 -1
- package/src/views/user/bill_setting/render.vue +2 -2
- package/src/views/user/error-page/401.vue +9 -9
- package/src/views/user/form/form_ins_list/edit.vue +17 -17
- package/src/views/user/form/form_template/dialog.vue +12 -12
- package/src/views/user/form/form_template/edit.vue +10 -10
- package/src/views/user/form/form_template/itemEdit.vue +18 -18
- package/src/views/user/form/form_template/itemList.vue +13 -13
- package/src/views/user/form/form_template/list.vue +25 -25
- package/src/views/user/form/form_template_field/dialog.vue +3 -3
- package/src/views/user/form/form_type/dialog.vue +5 -5
- package/src/views/user/form/form_type/edit.vue +2 -2
- package/src/views/user/form/form_type/editDialog.vue +3 -3
- package/src/views/user/form/form_type/list.vue +5 -5
- package/src/views/user/form/report_requestaccess/dialog.vue +12 -12
- package/src/views/user/form/report_requestaccess/edit.vue +54 -54
- package/src/views/user/form/report_requestaccess/list.vue +15 -15
- package/src/views/user/form/vform/designer.vue +37 -37
- package/src/views/user/form/vform/render.vue +1 -1
- package/src/views/user/form/view/list.vue +4 -4
- package/src/views/user/home/wjl/content.vue +2 -2
- package/src/views/user/login/default.vue +1 -1
- package/src/views/user/login/indexMixin.js +1 -1
- package/src/views/user/outLink/form_view.vue +1 -1
- package/src/views/user/outLink/index.vue +1 -1
- package/src/views/user/outLink/view.vue +1 -1
- package/src/views/user/push_setting/list.vue +20 -20
- package/src/views/user/request_setting/list.vue +18 -18
- package/src/views/user/sale_org/list.vue +1 -1
- package/src/views/user/sale_org/moveDialog.vue +8 -8
- package/src/views/user/user/edit.vue +3 -3
- package/src/views/user/user/form_list.vue +6 -6
- package/src/views/user/user/info.vue +2 -2
- package/src/views/user/user/infoEdit.vue +1 -1
- package/src/views/user/user/list.vue +1 -1
- package/src/views/user/wf/iframe/index.vue +1 -1
- package/src/views/user/wf/iframe/index2.vue +1 -1
- package/src/views/user/wf/wfReport/index.vue +18 -18
- package/src/views/user/wf/wf_manage/list.vue +1 -1
- package/src/views/user/wf/wf_manage/list2.vue +1 -1
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +93 -93
- package/src/views/user/wf/wf_obj_config/dialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +4 -4
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +3 -3
- package/src/views/user/wf/wf_work_calendar/components/calendar.vue +2 -8
- package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +2 -8
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# 级联选择懒加载
|
|
2
|
+
|
|
3
|
+
级联选择开启懒加载后,展开每一级才请求下一级数据,走字段上的「请求访问」,脚本用 list,不走分页,也不走 condition。
|
|
4
|
+
|
|
5
|
+
未开启懒加载时,仍使用选项里配好的整棵树。
|
|
6
|
+
|
|
7
|
+
## 配置过程
|
|
8
|
+
|
|
9
|
+
在表单设计器里拖入「级联选择」,点中该组件,在右侧属性面板按下面的顺序配置。
|
|
10
|
+
|
|
11
|
+
### 1. 确定字段键名
|
|
12
|
+
|
|
13
|
+
请求里的 `taBm` 用的是这个字段本身。
|
|
14
|
+
|
|
15
|
+
- 要用数据属性名称时,打开「数据属性名称」,填写 `keyName`,例如 `cf_kehu2_item`。
|
|
16
|
+
- 不打开时,`taBm` 就是组件名。
|
|
17
|
+
|
|
18
|
+
### 2. 打开懒加载
|
|
19
|
+
|
|
20
|
+
在常用设置里打开「懒加载」。打开后下面出现三项:
|
|
21
|
+
|
|
22
|
+
1. **父级字段**
|
|
23
|
+
传到后台的参数名,和数据集里的父级字段一致。可以留空,留空时请求使用 `f_parent`。输入框里不会自动填上 `f_parent`。父级值取的是当前节点的「关联字段」,可以是 ID,也可以是编码。
|
|
24
|
+
2. **有子节点标识**
|
|
25
|
+
返回行里表示是否还有下级的字段。可以留空,留空时按 `f_has_child` 判断。`true`、`1` 可以继续展开,`false`、`0` 是末级。
|
|
26
|
+
3. **传参脚本**
|
|
27
|
+
需要把选中行上的其他字段一并传给后台时再写。点编辑图标,脚本签名是 `lazyParamScript(dataId, formCode, row)`。`row` 是当前选中行,第一次展开根节点时是 `null`。返回对象会并入 `data`。不写就只传父级字段。
|
|
28
|
+
|
|
29
|
+
这项不使用「请求访问设置」里的查询参数。查询参数保持原样,懒加载不会读它。
|
|
30
|
+
|
|
31
|
+
### 3. 打开请求访问
|
|
32
|
+
|
|
33
|
+
往下找到「请求访问设置」:
|
|
34
|
+
|
|
35
|
+
1. 打开「启用请求后台脚本」。不打开的话,懒加载不会按本文的 list 请求发数据。
|
|
36
|
+
2. 填写「表单脚本编码」。留空时使用 `getList`。脚本要返回数组,不要走分页,也不要走 condition。
|
|
37
|
+
3. 「请求去掉 data 层」默认不勾。勾上之后,父级参数会平铺到外层,不再包在 `data` 里。
|
|
38
|
+
4. 返回结果需要过滤时,再写「查询回调」。返回数组就用这份数组作为本级节点。
|
|
39
|
+
|
|
40
|
+
查询参数不用改。
|
|
41
|
+
|
|
42
|
+
### 4. 对齐返回列
|
|
43
|
+
|
|
44
|
+
启用请求后台脚本之后,选项设置里的「显示字段」「关联字段」才能改。
|
|
45
|
+
|
|
46
|
+
1. **显示字段**:节点上显示的文字,默认 `label`。改成数据集里的名称列,例如 `f_name`。
|
|
47
|
+
2. **关联字段**:选中后保存的值,也是下一级 `f_parent` 带上的值,默认 `value`。改成数据集里的主键或编码列,例如 `id` 或 `f_code`。
|
|
48
|
+
|
|
49
|
+
### 5. 保存并展开验证
|
|
50
|
+
|
|
51
|
+
保存表单后预览。第一次点开级联,请求体里父级值是 `null`。再点开某一行,父级值变成该行的关联字段值。有子节点标识为末级的行不再出现展开箭头。
|
|
52
|
+
|
|
53
|
+
## 选中回写
|
|
54
|
+
|
|
55
|
+
地区全称不入库,每次打开保持空白,不用在 `onMounted` 里回显。省、市、区、镇的名称和 ID 在选中时写入,清空时单独处理。
|
|
56
|
+
|
|
57
|
+
级联有 `onSelect`,只在用户选中时触发,清空不进这个事件。参数是 `value`、`oldValue`、`item`。`item.level` 是当前选到的级别:`0` 省、`1` 市、`2` 区、`3` 镇。各级 ID 在选中行的 `tree_path` 里,各级名称在 `tree_path_name` 里,都以英文逗号分隔。例如 `tree_path` 为 `44,4401,440106,440106001`,`tree_path_name` 为 `广东省,广州市,天河区,石牌街道`。
|
|
58
|
+
|
|
59
|
+
在地区全称 `a1` 的 `onSelect` 里按级别回写,没选到的级别写成空:
|
|
60
|
+
|
|
61
|
+
```js
|
|
62
|
+
let level = item ? item.level : -1;
|
|
63
|
+
let data = item && item.data ? item.data : {};
|
|
64
|
+
let ids = data.tree_path ? String(data.tree_path).split(",") : [];
|
|
65
|
+
let names = data.tree_path_name ? String(data.tree_path_name).split(",") : [];
|
|
66
|
+
this.getWidgetRef("a2").setValue(level >= 0 ? names[0] || null : null);
|
|
67
|
+
this.getWidgetRef("a3").setValue(level >= 0 ? ids[0] || null : null);
|
|
68
|
+
this.getWidgetRef("a4").setValue(level >= 1 ? names[1] || null : null);
|
|
69
|
+
this.getWidgetRef("a5").setValue(level >= 1 ? ids[1] || null : null);
|
|
70
|
+
this.getWidgetRef("a6").setValue(level >= 2 ? names[2] || null : null);
|
|
71
|
+
this.getWidgetRef("a7").setValue(level >= 2 ? ids[2] || null : null);
|
|
72
|
+
this.getWidgetRef("a8").setValue(level >= 3 ? names[3] || null : null);
|
|
73
|
+
this.getWidgetRef("a9").setValue(level >= 3 ? ids[3] || null : null);
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
某一级没有选到时,对应字段写成空。`a1` 不要开「数据属性名称」。
|
|
77
|
+
|
|
78
|
+
清空走 `onClear`,不进 `onSelect`。在 `a1` 的 `onClear` 里把省市区镇清空:
|
|
79
|
+
|
|
80
|
+
```js
|
|
81
|
+
this.getWidgetRef("a2").setValue(null);
|
|
82
|
+
this.getWidgetRef("a3").setValue(null);
|
|
83
|
+
this.getWidgetRef("a4").setValue(null);
|
|
84
|
+
this.getWidgetRef("a5").setValue(null);
|
|
85
|
+
this.getWidgetRef("a6").setValue(null);
|
|
86
|
+
this.getWidgetRef("a7").setValue(null);
|
|
87
|
+
this.getWidgetRef("a8").setValue(null);
|
|
88
|
+
this.getWidgetRef("a9").setValue(null);
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## 请求
|
|
92
|
+
|
|
93
|
+
脚本编码走地址 `/{服务名}/bd_api/{formCode}/{scriptCode}`,不放进 body。展开节点时的请求体是:
|
|
94
|
+
|
|
95
|
+
```js
|
|
96
|
+
{
|
|
97
|
+
fixeData: {},
|
|
98
|
+
formCode: "kehu3_detail",
|
|
99
|
+
formVersion: 39,
|
|
100
|
+
taBm: "cf_kehu2_item",
|
|
101
|
+
data: {
|
|
102
|
+
f_parent: 64
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
`fixeData` 由 `formHttp` 补上,来自当前报表的全局参数,没有时是 `{}`。`taBm` 是字段本身。`data` 里是父级参数和传参脚本返回的字段,没有 `current`、`size`、`condition`。请求访问里的查询参数不参与这次请求。
|
|
108
|
+
|
|
109
|
+
`f_parent` 的值取当前节点的「关联字段」。这一列可以是 ID,也可以是编码。根节点是 `null`。上面例子里关联字段的值是 `64`,所以 `f_parent` 就是 `64`。
|
|
110
|
+
|
|
111
|
+
传参脚本可以带上选中行的其他字段。父级字段仍以「父级字段」的配置为准。
|
|
112
|
+
|
|
113
|
+
```js
|
|
114
|
+
// lazyParamScript(dataId, formCode, row)
|
|
115
|
+
// row 为当前选中行,根节点为 null
|
|
116
|
+
if (!row) return {};
|
|
117
|
+
return {
|
|
118
|
+
f_code: row.f_code,
|
|
119
|
+
f_name: row.f_name
|
|
120
|
+
};
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
展开编码 `A01`、同时带上该行 `f_code` 时,请求体是:
|
|
124
|
+
|
|
125
|
+
```js
|
|
126
|
+
{
|
|
127
|
+
fixeData: {},
|
|
128
|
+
formCode: "kehu3_detail",
|
|
129
|
+
formVersion: 39,
|
|
130
|
+
taBm: "cf_kehu2_item",
|
|
131
|
+
data: {
|
|
132
|
+
f_parent: 64,
|
|
133
|
+
f_code: "A01",
|
|
134
|
+
f_name: "华东"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
`node.level === 0` 是根节点。下一级时 `node.value` 就是当前节点的关联字段值,`row` 是这一行的原始数据。
|
|
140
|
+
|
|
141
|
+
## 返回
|
|
142
|
+
|
|
143
|
+
`objx` 必须是数组。每一行至少包含显示字段、关联字段,以及有子节点标识:
|
|
144
|
+
|
|
145
|
+
```js
|
|
146
|
+
[
|
|
147
|
+
{ label: "华东", value: "EAST", f_has_child: true },
|
|
148
|
+
{ label: "上海", value: "SH", f_has_child: false }
|
|
149
|
+
]
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
`f_has_child` 为 true、1 时可以继续展开,为 false、0 时视为末级。字段名在「有子节点标识」里改。这一列没有值、但行上带了 `leaf` 时,仍按 `leaf` 判断。未标记的节点会一直显示展开箭头。
|
|
153
|
+
|
|
154
|
+
查询回调可以改本级数据,返回数组即可:
|
|
155
|
+
|
|
156
|
+
```js
|
|
157
|
+
// formScriptSuccess(dataId, formCode, res, rows)
|
|
158
|
+
return rows.filter(item => item.enabled !== false);
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
## 保存与回显
|
|
162
|
+
|
|
163
|
+
选中值按各级关联字段组成数组保存,例如 `["EAST", "SH"]`。多选时是多条路径。
|
|
164
|
+
|
|
165
|
+
只读展示依赖已经加载过的节点名称。还没展开过的路径,只能显示原始值。
|
|
166
|
+
|
|
167
|
+
## 自定义请求
|
|
168
|
+
|
|
169
|
+
未启用「请求后台脚本」时,才走事件 `onLazyLoad(node, resolve)`。脚本里必须调用 `resolve(节点数组)`。末级节点同样按有子节点标识返回,默认字段名是 `f_has_child`。
|
|
170
|
+
|
|
171
|
+
启用了请求访问之后,不会再执行 `onLazyLoad`。
|
|
172
|
+
|
|
173
|
+
上级条件变化后需要重载时,取到级联组件再调用:
|
|
174
|
+
|
|
175
|
+
```js
|
|
176
|
+
this.getFormRef().getWidgetRef("级联字段名").reloadLazyNodes();
|
|
177
|
+
```
|
|
@@ -1295,11 +1295,11 @@ let chartContainers = [],
|
|
|
1295
1295
|
let dropdownItem1 = this.copyNewFieldWidget(
|
|
1296
1296
|
this.getFieldWidgetByType("dropdown-item")
|
|
1297
1297
|
);
|
|
1298
|
-
dropdownItem1.options.label =
|
|
1298
|
+
dropdownItem1.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('下拉按钮1') : '下拉按钮1');
|
|
1299
1299
|
let dropdownItem2 = this.copyNewFieldWidget(
|
|
1300
1300
|
this.getFieldWidgetByType("dropdown-item")
|
|
1301
1301
|
);
|
|
1302
|
-
dropdownItem2.options.label =
|
|
1302
|
+
dropdownItem2.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('下拉按钮2') : '下拉按钮2');
|
|
1303
1303
|
newWidget.widgetList.push(dropdownItem1);
|
|
1304
1304
|
newWidget.widgetList.push(dropdownItem2);
|
|
1305
1305
|
}
|
|
@@ -1431,7 +1431,7 @@ let chartContainers = [],
|
|
|
1431
1431
|
let buttonCon2 = this.copyNewFieldWidget(
|
|
1432
1432
|
this.getFieldWidgetByType("save_button")
|
|
1433
1433
|
);
|
|
1434
|
-
buttonCon2.options.label =
|
|
1434
|
+
buttonCon2.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('保存') : '保存');
|
|
1435
1435
|
|
|
1436
1436
|
newCon.widgetList.push(buttonCon1);
|
|
1437
1437
|
newCon.widgetList.push(buttonCon2);
|
|
@@ -1443,7 +1443,7 @@ let chartContainers = [],
|
|
|
1443
1443
|
let tmpId = baseRefUtil.generateId();
|
|
1444
1444
|
newCol.id = "detail-pane-" + tmpId;
|
|
1445
1445
|
newCol.options.name = "detailPane" + tmpId;
|
|
1446
|
-
newCol.options.label =
|
|
1446
|
+
newCol.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('隐藏信息') : '隐藏信息');
|
|
1447
1447
|
newCol.options.hidden = true;
|
|
1448
1448
|
|
|
1449
1449
|
let tableCon = this.copyNewContainerWidget(
|
|
@@ -1458,7 +1458,7 @@ let chartContainers = [],
|
|
|
1458
1458
|
tmpId = baseRefUtil.generateId();
|
|
1459
1459
|
newCol.id = "detail-pane-" + tmpId;
|
|
1460
1460
|
newCol.options.name = "detailPane" + tmpId;
|
|
1461
|
-
newCol.options.label =
|
|
1461
|
+
newCol.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('基础信息') : '基础信息');
|
|
1462
1462
|
|
|
1463
1463
|
tableCon = this.copyNewContainerWidget(
|
|
1464
1464
|
this.getContainerByType("table")
|
|
@@ -1472,7 +1472,7 @@ let chartContainers = [],
|
|
|
1472
1472
|
tmpId = baseRefUtil.generateId();
|
|
1473
1473
|
newCol.id = "detail-pane-" + tmpId;
|
|
1474
1474
|
newCol.options.name = "detailPane" + tmpId;
|
|
1475
|
-
newCol.options.label =
|
|
1475
|
+
newCol.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('明细信息') : '明细信息');
|
|
1476
1476
|
newCol.options.tableRef = tableCon.id;
|
|
1477
1477
|
let dataTableCon = this.copyNewContainerWidget(
|
|
1478
1478
|
this.getContainerByType("data-table")
|
|
@@ -1483,7 +1483,7 @@ let chartContainers = [],
|
|
|
1483
1483
|
let buttonCon3 = this.copyNewFieldWidget(
|
|
1484
1484
|
this.getFieldWidgetByType("button")
|
|
1485
1485
|
);
|
|
1486
|
-
buttonCon3.options.label =
|
|
1486
|
+
buttonCon3.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('新增') : '新增');
|
|
1487
1487
|
buttonCon3.options.icon = "el-icon-search";
|
|
1488
1488
|
// buttonCon3.options.onClick = "this.getWidgetRef('" + dataTableCon.options.name + "').addTableData();"
|
|
1489
1489
|
buttonCon3.options.clickBindEvent = CLICK_BIND.ADD_TABLE_DATA;
|
|
@@ -1500,7 +1500,7 @@ let chartContainers = [],
|
|
|
1500
1500
|
tmpId = baseRefUtil.generateId();
|
|
1501
1501
|
newCol.id = "detail-pane-" + tmpId;
|
|
1502
1502
|
newCol.options.name = "detailPane" + tmpId;
|
|
1503
|
-
newCol.options.label =
|
|
1503
|
+
newCol.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('附件信息') : '附件信息');
|
|
1504
1504
|
let vabUploadCon = this.copyNewFieldWidget(
|
|
1505
1505
|
this.getFieldWidgetByType("vabUpload")
|
|
1506
1506
|
); //vabUpload
|
|
@@ -1548,7 +1548,7 @@ let chartContainers = [],
|
|
|
1548
1548
|
let tmpId = baseRefUtil.generateId();
|
|
1549
1549
|
newCol.id = "h5-card-pane-" + tmpId;
|
|
1550
1550
|
newCol.options.name = "h5CardPane" + tmpId;
|
|
1551
|
-
newCol.options.label =
|
|
1551
|
+
newCol.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('基本信息') : '基本信息');
|
|
1552
1552
|
newCon.panes.push(newCol);
|
|
1553
1553
|
} else if (newCon.type === "detail-h5") {
|
|
1554
1554
|
// 一张 h5-card:基础信息 / 明细信息 / 附件信息
|
|
@@ -1560,7 +1560,7 @@ let chartContainers = [],
|
|
|
1560
1560
|
// 基础信息:默认放 h5 表格(一行两列),对齐 PC 详情的「基础信息 + 表格」
|
|
1561
1561
|
let basicPane = newCard.panes[0];
|
|
1562
1562
|
if (basicPane) {
|
|
1563
|
-
basicPane.options.label =
|
|
1563
|
+
basicPane.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('基础信息') : '基础信息');
|
|
1564
1564
|
let h5Table = this.copyNewContainerWidget(
|
|
1565
1565
|
this.getContainerByType("h5-table")
|
|
1566
1566
|
);
|
|
@@ -1571,7 +1571,7 @@ let chartContainers = [],
|
|
|
1571
1571
|
let newCardPane = this.copyNewContainerWidget(
|
|
1572
1572
|
this.getContainerByType("h5-card-pane")
|
|
1573
1573
|
);
|
|
1574
|
-
newCardPane.options.label =
|
|
1574
|
+
newCardPane.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('明细信息') : '明细信息');
|
|
1575
1575
|
newCard.panes.push(newCardPane);
|
|
1576
1576
|
|
|
1577
1577
|
let listH5 = this.copyNewContainerWidget(
|
|
@@ -1583,7 +1583,7 @@ let chartContainers = [],
|
|
|
1583
1583
|
newCardPane = this.copyNewContainerWidget(
|
|
1584
1584
|
this.getContainerByType("h5-card-pane")
|
|
1585
1585
|
);
|
|
1586
|
-
newCardPane.options.label =
|
|
1586
|
+
newCardPane.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('附件信息') : '附件信息');
|
|
1587
1587
|
newCard.panes.push(newCardPane);
|
|
1588
1588
|
|
|
1589
1589
|
let vabUploadCon = this.copyNewFieldWidget(
|
|
@@ -1663,7 +1663,7 @@ let chartContainers = [],
|
|
|
1663
1663
|
searchIdInput.options.disabled = true;
|
|
1664
1664
|
searchIdInput.options.hidden = true;
|
|
1665
1665
|
searchIdInput.options.fixedQuery = true;
|
|
1666
|
-
searchIdInput.options.label =
|
|
1666
|
+
searchIdInput.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('隐藏{p0}ID', { p0: newCon.options.treeLabel }) : '隐藏{p0}ID');
|
|
1667
1667
|
dataTableCon.widgetList.push(searchIdInput);
|
|
1668
1668
|
|
|
1669
1669
|
// 存量表单没有 fixedQuery 开关,仍靠 ignoreFields 兜底刷新按钮;
|
|
@@ -2066,42 +2066,42 @@ let chartContainers = [],
|
|
|
2066
2066
|
|
|
2067
2067
|
if ("editDelete" === formatS) {
|
|
2068
2068
|
columnSelectedWidget.options.prefixIcon = "el-icon-delete";
|
|
2069
|
-
columnSelectedWidget.options.label =
|
|
2069
|
+
columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('删除') : '删除');
|
|
2070
2070
|
columnSelectedWidget.options.labelHidden = true;
|
|
2071
2071
|
columnSelectedWidget.options.hiddenByWf = true;
|
|
2072
2072
|
columnSelectedWidget.options.onClick =
|
|
2073
2073
|
"let tableParam = this.tableParam;\nlet tableRef = this.getWidgetRef(this.parentWidget.options.name);\ntableRef.deleteRow(tableParam.row,tableParam.rowIndex);";
|
|
2074
2074
|
} else if ("editButton" === formatS) {
|
|
2075
2075
|
columnSelectedWidget.options.prefixIcon = "el-icon-edit";
|
|
2076
|
-
columnSelectedWidget.options.label =
|
|
2076
|
+
columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('查看') : '查看');
|
|
2077
2077
|
columnSelectedWidget.options.labelHidden = true;
|
|
2078
2078
|
columnSelectedWidget.options.onClick =
|
|
2079
2079
|
"let tableParam = this.tableParam;\nlet tableRef = this.getWidgetRef(this.parentWidget.options.name);\ntableRef.openEditDialog(tableParam.row)";
|
|
2080
2080
|
} else if ("addSiblingEditRow" === formatS) {
|
|
2081
2081
|
columnSelectedWidget.options.prefixIcon = "el-icon-plus";
|
|
2082
|
-
columnSelectedWidget.options.label =
|
|
2082
|
+
columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('新增兄弟节点') : '新增兄弟节点');
|
|
2083
2083
|
columnSelectedWidget.options.labelHidden = false;
|
|
2084
2084
|
columnSelectedWidget.options.onClick =
|
|
2085
2085
|
"let tableParam = this.tableParam;\nthis.getParentTarget().addSiblingTreeRow(null,tableParam);";
|
|
2086
2086
|
} else if ("addChildTreeRow" === formatS) {
|
|
2087
2087
|
columnSelectedWidget.options.prefixIcon = "el-icon-plus";
|
|
2088
|
-
columnSelectedWidget.options.label =
|
|
2088
|
+
columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('新增子节点') : '新增子节点');
|
|
2089
2089
|
columnSelectedWidget.options.labelHidden = false;
|
|
2090
2090
|
columnSelectedWidget.options.onClick =
|
|
2091
2091
|
"let tableParam = this.tableParam;\nthis.getParentTarget().addChildTreeRow(null,tableParam);";
|
|
2092
2092
|
} else if ("moveUpRow" === formatS) {
|
|
2093
|
-
columnSelectedWidget.options.label =
|
|
2093
|
+
columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('↑上移') : '↑上移');
|
|
2094
2094
|
columnSelectedWidget.options.labelHidden = false;
|
|
2095
2095
|
columnSelectedWidget.options.onClick =
|
|
2096
2096
|
"let tableParam = this.tableParam;\nthis.getParentTarget().moveUpRow(tableParam);";
|
|
2097
2097
|
} else if ("moveDownRow" === formatS) {
|
|
2098
|
-
columnSelectedWidget.options.label =
|
|
2098
|
+
columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('↓下移') : '↓下移');
|
|
2099
2099
|
columnSelectedWidget.options.labelHidden = false;
|
|
2100
2100
|
columnSelectedWidget.options.onClick =
|
|
2101
2101
|
"let tableParam = this.tableParam;\nthis.getParentTarget().moveDownRow(tableParam);";
|
|
2102
2102
|
} else if ("removeTreeRow" === formatS) {
|
|
2103
2103
|
columnSelectedWidget.options.prefixIcon = "el-icon-delete";
|
|
2104
|
-
columnSelectedWidget.options.label =
|
|
2104
|
+
columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('删除') : '删除');
|
|
2105
2105
|
columnSelectedWidget.options.labelHidden = true;
|
|
2106
2106
|
columnSelectedWidget.options.onClick =
|
|
2107
2107
|
"let tableParam = this.tableParam;\nthis.getParentTarget().removeTreeRow(tableParam);";
|
|
@@ -117,90 +117,90 @@ export default {
|
|
|
117
117
|
// 格式化日期
|
|
118
118
|
gantt.locale.date = {
|
|
119
119
|
month_full: [
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
120
|
+
this.$t1('1月'),
|
|
121
|
+
this.$t1('2月'),
|
|
122
|
+
this.$t1('3月'),
|
|
123
|
+
this.$t1('4月'),
|
|
124
|
+
this.$t1('5月'),
|
|
125
|
+
this.$t1('6月'),
|
|
126
|
+
this.$t1('7月'),
|
|
127
|
+
this.$t1('8月'),
|
|
128
|
+
this.$t1('9月'),
|
|
129
|
+
this.$t1('10月'),
|
|
130
|
+
this.$t1('11月'),
|
|
131
|
+
this.$t1('12月'),
|
|
132
132
|
],
|
|
133
133
|
month_short: [
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
134
|
+
this.$t1('1月'),
|
|
135
|
+
this.$t1('2月'),
|
|
136
|
+
this.$t1('3月'),
|
|
137
|
+
this.$t1('4月'),
|
|
138
|
+
this.$t1('5月'),
|
|
139
|
+
this.$t1('6月'),
|
|
140
|
+
this.$t1('7月'),
|
|
141
|
+
this.$t1('8月'),
|
|
142
|
+
this.$t1('9月'),
|
|
143
|
+
this.$t1('10月'),
|
|
144
|
+
this.$t1('11月'),
|
|
145
|
+
this.$t1('12月'),
|
|
146
146
|
],
|
|
147
|
-
day_full: [
|
|
148
|
-
day_short: [
|
|
147
|
+
day_full: [this.$t1('星期日'), this.$t1('星期一'), this.$t1('星期二'), this.$t1('星期三'), this.$t1('星期四'), this.$t1('星期五'), this.$t1('星期六')],
|
|
148
|
+
day_short: [this.$t1('星期日'), this.$t1('星期一'), this.$t1('星期二'), this.$t1('星期三'), this.$t1('星期四'), this.$t1('星期五'), this.$t1('星期六')],
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
gantt.locale.labels = {
|
|
152
|
-
dhx_cal_today_button:
|
|
153
|
-
day_tab:
|
|
154
|
-
week_tab:
|
|
155
|
-
month_tab:
|
|
156
|
-
new_event:
|
|
157
|
-
icon_save:
|
|
158
|
-
icon_cancel:
|
|
159
|
-
icon_details:
|
|
160
|
-
icon_edit:
|
|
161
|
-
icon_delete:
|
|
162
|
-
confirm_closing:
|
|
163
|
-
confirm_deleting:
|
|
164
|
-
section_description:
|
|
165
|
-
section_time:
|
|
166
|
-
section_type:
|
|
167
|
-
section_text:
|
|
168
|
-
section_test:
|
|
169
|
-
section_projectClass:
|
|
170
|
-
taskProjectType_0:
|
|
171
|
-
taskProjectType_1:
|
|
172
|
-
section_head:
|
|
173
|
-
section_priority:
|
|
174
|
-
taskProgress:
|
|
175
|
-
taskProgress_0:
|
|
176
|
-
taskProgress_1:
|
|
177
|
-
taskProgress_2:
|
|
178
|
-
taskProgress_3:
|
|
179
|
-
taskProgress_4:
|
|
152
|
+
dhx_cal_today_button: this.$t1('今天'),
|
|
153
|
+
day_tab: this.$t1('日'),
|
|
154
|
+
week_tab: this.$t1('周'),
|
|
155
|
+
month_tab: this.$t1('月'),
|
|
156
|
+
new_event: this.$t1('新建日程'),
|
|
157
|
+
icon_save: this.$t1('保存'),
|
|
158
|
+
icon_cancel: this.$t1('关闭'),
|
|
159
|
+
icon_details: this.$t1('详细'),
|
|
160
|
+
icon_edit: this.$t1('编辑'),
|
|
161
|
+
icon_delete: this.$t1('删除'),
|
|
162
|
+
confirm_closing: this.$t1('请确认是否撤销修改!'), //Your changes will be lost, are your sure?
|
|
163
|
+
confirm_deleting: this.$t1('是否删除计划?'),
|
|
164
|
+
section_description: this.$t1('描述:'),
|
|
165
|
+
section_time: this.$t1('时间范围:'),
|
|
166
|
+
section_type: this.$t1('类型:'),
|
|
167
|
+
section_text: this.$t1('计划名称:'),
|
|
168
|
+
section_test: this.$t1('测试:'),
|
|
169
|
+
section_projectClass: this.$t1('项目类型:'),
|
|
170
|
+
taskProjectType_0: this.$t1('项目任务'),
|
|
171
|
+
taskProjectType_1: this.$t1('普通任务'),
|
|
172
|
+
section_head: this.$t1('负责人:'),
|
|
173
|
+
section_priority: this.$t1('优先级:'),
|
|
174
|
+
taskProgress: this.$t1('任务状态'),
|
|
175
|
+
taskProgress_0: this.$t1('未开始'),
|
|
176
|
+
taskProgress_1: this.$t1('进行中'),
|
|
177
|
+
taskProgress_2: this.$t1('已完成'),
|
|
178
|
+
taskProgress_3: this.$t1('已延期'),
|
|
179
|
+
taskProgress_4: this.$t1('搁置中'),
|
|
180
180
|
section_template: "Details",
|
|
181
181
|
/* grid columns */
|
|
182
|
-
column_text:
|
|
183
|
-
column_start_date:
|
|
184
|
-
column_duration:
|
|
182
|
+
column_text: this.$t1('计划名称'),
|
|
183
|
+
column_start_date: this.$t1('开始时间'),
|
|
184
|
+
column_duration: this.$t1('持续时间'),
|
|
185
185
|
column_add: "",
|
|
186
|
-
column_priority:
|
|
186
|
+
column_priority: this.$t1('难度'),
|
|
187
187
|
/* link confirmation */
|
|
188
|
-
link:
|
|
189
|
-
confirm_link_deleting:
|
|
190
|
-
message_ok:
|
|
191
|
-
message_cancel:
|
|
192
|
-
link_start:
|
|
193
|
-
link_end:
|
|
188
|
+
link: this.$t1('关联'),
|
|
189
|
+
confirm_link_deleting: this.$t1('将被删除'),
|
|
190
|
+
message_ok: this.$t1('确定'),
|
|
191
|
+
message_cancel: this.$t1('取消'),
|
|
192
|
+
link_start: this.$t1(' (开始)'),
|
|
193
|
+
link_end: this.$t1(' (结束)'),
|
|
194
194
|
|
|
195
|
-
type_task:
|
|
196
|
-
type_project:
|
|
197
|
-
type_milestone:
|
|
198
|
-
minutes:
|
|
199
|
-
hours:
|
|
200
|
-
days:
|
|
201
|
-
weeks:
|
|
202
|
-
months:
|
|
203
|
-
years:
|
|
195
|
+
type_task: this.$t1('任务'),
|
|
196
|
+
type_project: this.$t1('项目'),
|
|
197
|
+
type_milestone: this.$t1('里程碑'),
|
|
198
|
+
minutes: this.$t1('分钟'),
|
|
199
|
+
hours: this.$t1('小时'),
|
|
200
|
+
days: this.$t1('天'),
|
|
201
|
+
weeks: this.$t1('周'),
|
|
202
|
+
months: this.$t1('月'),
|
|
203
|
+
years: this.$t1('年'),
|
|
204
204
|
};
|
|
205
205
|
|
|
206
206
|
//自适应甘特图的尺寸大小, 使得在不出现滚动条的情况下, 显示全部任务
|
|
@@ -330,9 +330,7 @@ export default {
|
|
|
330
330
|
|
|
331
331
|
// 配置工具提示模板
|
|
332
332
|
gantt.templates.tooltip_text = function (start, end, task) {
|
|
333
|
-
return
|
|
334
|
-
<b>开始时间:</b> ${gantt.templates.tooltip_date_format(start)}<br/>
|
|
335
|
-
<b>结束时间:</b> ${gantt.templates.tooltip_date_format(end)}`;
|
|
333
|
+
return '<b>' + this.$t1('任务名称:') + '</b> ${task.text}<br/>\n <b>' + this.$t1('开始时间:') + '</b> ${gantt.templates.tooltip_date_format(start)}<br/>\n <b>' + this.$t1('结束时间:') + '</b> ${gantt.templates.tooltip_date_format(end)}';
|
|
336
334
|
};
|
|
337
335
|
|
|
338
336
|
this.ganttInstance = gantt.init(this.$refs.gantt);
|
package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue
CHANGED
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
<div class="fr">
|
|
67
67
|
<!-- <vxe-button icon="el-icon-view" class="button-sty" @click="searchEvent">显示总记录数</vxe-button> -->
|
|
68
68
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
69
|
-
plain
|
|
69
|
+
plain>{{ $t1('刷新') }}
|
|
70
70
|
</vxe-button>
|
|
71
71
|
|
|
72
|
-
<vxe-button v-if="!widget.options.isNotShowQueryButton" status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent"
|
|
72
|
+
<vxe-button v-if="!widget.options.isNotShowQueryButton" status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}
|
|
73
73
|
</vxe-button>
|
|
74
74
|
</div>
|
|
75
75
|
</div>
|
package/src/components/xform/form-designer/form-widget/container-widget/detail-temp-widget.vue
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
<div class="detail-temp-box" :class="widget.options.styleTempClass" v-for="(paneWidget, index) in widget.panes" :key="paneWidget.id">
|
|
18
18
|
<div class="detail-temp-header">
|
|
19
|
-
<span class="detail-temp-label">{{ paneWidget.options.label || '模块' }}</span>
|
|
19
|
+
<span class="detail-temp-label">{{ paneWidget.options.label || $t1('模块') }}</span>
|
|
20
20
|
</div>
|
|
21
21
|
<div class="detail-temp-body">
|
|
22
22
|
<draggable
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
<div class="h5-header">{{ widget.options.label }}</div>
|
|
17
17
|
<div class="h5-search-box" v-if="widget.options.isQueryTable">
|
|
18
18
|
<el-input
|
|
19
|
-
placeholder="请选择" class="txt">
|
|
19
|
+
:placeholder="$t1('请选择')" class="txt">
|
|
20
20
|
<i slot="suffix" class="el-input__icon el-icon-search"></i>
|
|
21
|
-
<el-button slot="append" class="btn"
|
|
21
|
+
<el-button slot="append" class="btn">{{ $t1('搜索') }}</el-button>
|
|
22
22
|
</el-input>
|
|
23
|
-
<div class="icon-screen"><i class="iconfont icon-chaxuntiaojianshezhi"></i
|
|
23
|
+
<div class="icon-screen"><i class="iconfont icon-chaxuntiaojianshezhi"></i>{{ $t1('筛选') }}</div>
|
|
24
24
|
</div>
|
|
25
25
|
<div class="h5-list-box">
|
|
26
26
|
<div class="item">
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
</div>
|
|
54
54
|
<div v-if="widget.options.isQueryTable" class="h5-oper-btns" title-width="92px" title-align="right"
|
|
55
55
|
@click.stop="selectWidget(widget)">
|
|
56
|
-
<div class="tit"
|
|
56
|
+
<div class="tit">{{ $t1('操作按钮区域') }}</div>
|
|
57
57
|
<el-form label-position="top">
|
|
58
58
|
<draggable
|
|
59
59
|
:list="widget.buttons"
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
</div>
|
|
98
98
|
<div class="h5-oper-btns" title-width="92px" title-align="right"
|
|
99
99
|
@click.stop="selectWidget(widget)">
|
|
100
|
-
<div class="tit"
|
|
100
|
+
<div class="tit">{{ $t1('行操作按钮区域') }}</div>
|
|
101
101
|
<el-form label-position="top">
|
|
102
102
|
<draggable
|
|
103
103
|
:list="widget.lineButtons"
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
</div>
|
|
142
142
|
<div v-if="widget.options.isQueryTable" class="h5-oper-btns" title-width="92px" title-align="right"
|
|
143
143
|
@click.stop="selectWidget(widget)">
|
|
144
|
-
<div class="tit"
|
|
144
|
+
<div class="tit">{{ $t1('筛选字段区域') }}</div>
|
|
145
145
|
<draggable
|
|
146
146
|
:list="widget.widgetList"
|
|
147
147
|
v-bind="{ group: 'dragGroup', ghostClass: 'ghost', animation: 200 }"
|
|
@@ -691,7 +691,7 @@ export default {
|
|
|
691
691
|
content:
|
|
692
692
|
'<span class="cg">' +
|
|
693
693
|
this.i18nt("designer.hint.formulaSample") +
|
|
694
|
-
':</span><span class="fname">SUM</span><span class="cg">(</span><span class="cs"
|
|
694
|
+
':</span><span class="fname">SUM</span><span class="cg">(</span><span class="cs">' + this.$t1('参数1') + '</span><span class="cg">,</span><span class="cs">' + this.$t1('参数2') + '</span><span class="cg">)</span>',
|
|
695
695
|
};
|
|
696
696
|
},
|
|
697
697
|
|
|
@@ -691,7 +691,7 @@ export default {
|
|
|
691
691
|
content:
|
|
692
692
|
'<span class="cg">' +
|
|
693
693
|
this.i18nt("designer.hint.formulaSample") +
|
|
694
|
-
':</span><span class="fname">SUM</span><span class="cg">(</span><span class="cs"
|
|
694
|
+
':</span><span class="fname">SUM</span><span class="cg">(</span><span class="cs">' + this.$t1('参数1') + '</span><span class="cg">,</span><span class="cs">' + this.$t1('参数2') + '</span><span class="cg">)</span>',
|
|
695
695
|
};
|
|
696
696
|
},
|
|
697
697
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-dialog
|
|
3
|
-
title="表单字段列表"
|
|
3
|
+
:title="$t1('表单字段列表')"
|
|
4
4
|
:append-to-body="true"
|
|
5
5
|
:modal-append-to-body="true"
|
|
6
6
|
:close-on-click-modal="falseValue"
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
<div class="clearfix screen-btns">
|
|
28
28
|
<div class="fr">
|
|
29
29
|
<vxe-button icon="el-icon-brush" class="button-sty" @click="resetEvent" type="text" status="primary"
|
|
30
|
-
plain
|
|
30
|
+
plain>{{ $t1('刷新') }}
|
|
31
31
|
</vxe-button>
|
|
32
|
-
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent"
|
|
32
|
+
<vxe-button status="warning" icon="el-icon-search" class="button-sty" @click="searchEvent">{{ $t1('搜索') }}</vxe-button>
|
|
33
33
|
</div>
|
|
34
34
|
</div>
|
|
35
35
|
<!-- <vxe-form class="screen-box" title-width="92px" title-align="right" :data="formData" @submit="searchEvent"
|
|
@@ -118,13 +118,13 @@ export default {
|
|
|
118
118
|
columns: [
|
|
119
119
|
{type: 'checkbox', fixed: 'left', width: 48, resizable: false},
|
|
120
120
|
{
|
|
121
|
-
title:
|
|
121
|
+
title: this.$t1('字段描述'),
|
|
122
122
|
field: "fieldDesc",
|
|
123
123
|
width: 150,
|
|
124
124
|
fixed: 'left'
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
|
-
title:
|
|
127
|
+
title: this.$t1('字段key'),
|
|
128
128
|
field: "fieldName",
|
|
129
129
|
width: 150
|
|
130
130
|
},
|