cloud-web-corejs 1.1.0-dev.74 → 1.1.0-dev.75

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.
Files changed (250) hide show
  1. package/package.json +1 -1
  2. package/src/components/Qrcode/fileParse.vue +4 -4
  3. package/src/components/Tinymce/dynamicLoadScript.js +4 -4
  4. package/src/components/Tinymce/index.vue +1 -1
  5. package/src/components/VabUpload/fileLibraryDialog.vue +18 -18
  6. package/src/components/VabUpload/image-viewer.vue +2 -2
  7. package/src/components/VabUpload/mixins/fileLibraryDialog.js +12 -12
  8. package/src/components/VabUpload/mixins.js +1 -3
  9. package/src/components/VabUpload/privateProfileDialog.vue +18 -18
  10. package/src/components/VabUpload/privateProfileDialogMixins.js +12 -12
  11. package/src/components/VabUpload/view.vue +1 -1
  12. package/src/components/base-textarea/index.vue +2 -4
  13. package/src/components/baseArea/index.vue +8 -8
  14. package/src/components/baseAutocomplete/index.vue +1 -1
  15. package/src/components/bizTab/BizTabListPage.vue +69 -71
  16. package/src/components/code-editor/async.js +3 -1
  17. package/src/components/excelExport/mixins.js +1 -1
  18. package/src/components/extendedProperties/view.vue +4 -5
  19. package/src/components/fileLibrary/fileObjAuthEdit.vue +1 -1
  20. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +3 -5
  21. package/src/components/fileLibrary/filterDialog.vue +2 -2
  22. package/src/components/fileLibrary/index.vue +13 -13
  23. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +2 -2
  24. package/src/components/fileLibrary/mixins/indexMixins.js +4 -4
  25. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
  26. package/src/components/fileLibrary/propertiesDialog.vue +1 -1
  27. package/src/components/fileLibrary/recycleBinDialog.vue +2 -2
  28. package/src/components/fileLibrary/recycleBinPropertiesDialog.vue +1 -2
  29. package/src/components/formDialog/index.vue +1 -1
  30. package/src/components/formDrawer/drawer.vue +1 -1
  31. package/src/components/hiprint/etypes/default-etyps-provider.js +22 -22
  32. package/src/components/hiprint/hiprint.config.js +29 -29
  33. package/src/components/hiprint/view/design/dialog.vue +3 -4
  34. package/src/components/hiprint/view/design/font-size.js +2 -2
  35. package/src/components/hiprint/view/design/index.vue +27 -29
  36. package/src/components/hiprint/view/design/mixins.js +22 -22
  37. package/src/components/hiprint/view/design/preview.vue +9 -10
  38. package/src/components/hiprint/view/design/scale.js +1 -1
  39. package/src/components/hiprint/view/json-view.vue +6 -6
  40. package/src/components/jsonImport/exportDialog.vue +2 -2
  41. package/src/components/langImport/index.vue +1 -2
  42. package/src/components/luckysheet/dialog.vue +1 -1
  43. package/src/components/luckysheet/loadResources.js +5 -5
  44. package/src/components/luckysheet/view.vue +3 -3
  45. package/src/components/mobile/buttonGroup/index.vue +3 -4
  46. package/src/components/mobile/file/index.vue +7 -7
  47. package/src/components/mobile/oplogTable/index.vue +4 -4
  48. package/src/components/mobile/searchDialog/index.vue +3 -4
  49. package/src/components/mobile/wf/addTaskUserdialog.vue +18 -19
  50. package/src/components/mobile/wf/content.vue +14 -14
  51. package/src/components/mobile/wf/deleteTaskUserDialog.vue +5 -5
  52. package/src/components/mobile/wf/mixins/wfStartDialogMixin.js +1 -1
  53. package/src/components/mobile/wf/selectUserDialog.vue +13 -13
  54. package/src/components/mobile/wf/setCandidateDialog.vue +5 -6
  55. package/src/components/mobile/wf/urgingDialog.vue +4 -4
  56. package/src/components/mobile/wf/wfStartDialog.vue +2 -2
  57. package/src/components/obsUpload/mixins.js +7 -9
  58. package/src/components/onlineTalk/index.vue +21 -24
  59. package/src/components/onlineTalk/mixins.js +3 -3
  60. package/src/components/table/vxeFilter/FilterComplex.vue +6 -6
  61. package/src/components/table/vxeFilter/FilterInput.vue +1 -1
  62. package/src/components/wf/addTaskUserdialog.vue +1 -1
  63. package/src/components/wf/content.vue +8 -10
  64. package/src/components/wf/content2.vue +58 -77
  65. package/src/components/wf/formIframeDialog.vue +1 -1
  66. package/src/components/wf/index.vue +1 -1
  67. package/src/components/wf/wf.js +18 -5
  68. package/src/components/xform/form-designer/designer.js +20 -20
  69. package/src/components/xform/form-designer/form-widget/components/gantt/index.vue +74 -76
  70. package/src/components/xform/form-designer/form-widget/container-widget/data-table-widget.vue +2 -2
  71. package/src/components/xform/form-designer/form-widget/container-widget/detail-temp-widget.vue +1 -1
  72. package/src/components/xform/form-designer/form-widget/container-widget/list-h5-widget.vue +6 -6
  73. package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog copy.vue +1 -1
  74. package/src/components/xform/form-designer/form-widget/dialog/baseFormulaDialog.vue +1 -1
  75. package/src/components/xform/form-designer/form-widget/dialog/formFieldDialog.vue +5 -5
  76. package/src/components/xform/form-designer/form-widget/dialog/formulaDialog.vue +2 -2
  77. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +2 -2
  78. package/src/components/xform/form-designer/form-widget/dialog/treeMoveDialog.vue +4 -6
  79. package/src/components/xform/form-designer/form-widget/dialog/vabSearchDialog.vue +3 -3
  80. package/src/components/xform/form-designer/form-widget/field-widget/area-select-widget.vue +2 -2
  81. package/src/components/xform/form-designer/form-widget/field-widget/autocomplete-widget.vue +1 -1
  82. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +1 -1
  83. package/src/components/xform/form-designer/form-widget/field-widget/cascader-widget.vue +155 -9
  84. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +1 -1
  85. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +2 -2
  86. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +1 -1
  87. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +6 -0
  88. package/src/components/xform/form-designer/form-widget/field-widget/gantt-widget.vue +176 -176
  89. package/src/components/xform/form-designer/form-widget/field-widget/mixins/date-limit-mixin.js +3 -3
  90. package/src/components/xform/form-designer/form-widget/field-widget/mixins/relativeDateUtil.js +4 -4
  91. package/src/components/xform/form-designer/form-widget/field-widget/mixins/time-limit-mixin.js +1 -1
  92. package/src/components/xform/form-designer/form-widget/field-widget/print-button-widget.vue +2 -2
  93. package/src/components/xform/form-designer/form-widget/field-widget/print-detail-button-widget.vue +2 -2
  94. package/src/components/xform/form-designer/form-widget/field-widget/row-col-select-widget.vue +4 -4
  95. package/src/components/xform/form-designer/form-widget/field-widget/script-input-widget.vue +1 -1
  96. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +1 -1
  97. package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +1 -1
  98. package/src/components/xform/form-designer/form-widget/field-widget/time-widget.vue +1 -1
  99. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload2-widget.vue +8 -8
  100. package/src/components/xform/form-designer/form-widget/field-widget/vue-page-widget.vue +2 -2
  101. package/src/components/xform/form-designer/setting-panel/action-button-config-dialog.vue +21 -21
  102. package/src/components/xform/form-designer/setting-panel/dataSource-setting.vue +46 -46
  103. package/src/components/xform/form-designer/setting-panel/form-dynamicField-setting.vue +62 -66
  104. package/src/components/xform/form-designer/setting-panel/form-setting.vue +53 -61
  105. package/src/components/xform/form-designer/setting-panel/indexMixin.js +30 -0
  106. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +9 -9
  107. package/src/components/xform/form-designer/setting-panel/property-editor/censusItems-editor.vue +6 -6
  108. package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +4 -4
  109. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/condition-editor.vue +1 -1
  110. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +99 -116
  111. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/edit-tree-button-group-config-dialog.vue +17 -17
  112. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/exportItemColumns-dialog.vue +14 -14
  113. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +80 -80
  114. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +1 -2
  115. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-plain/detail-plain-editor.vue +1 -2
  116. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +14 -16
  117. package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-dynamicField-editor.vue +39 -56
  118. package/src/components/xform/form-designer/setting-panel/property-editor/container-table/table-fullWidth-editor.vue +1 -1
  119. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree/tree-customClass-editor.vue +6 -6
  120. package/src/components/xform/form-designer/setting-panel/property-editor/container-tree-pane/tree-pane-editor.vue +1 -1
  121. package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +1 -1
  122. package/src/components/xform/form-designer/setting-panel/property-editor/descriptionsItems-editor.vue +8 -8
  123. package/src/components/xform/form-designer/setting-panel/property-editor/downloadButtonFlag-editor.vue +4 -4
  124. package/src/components/xform/form-designer/setting-panel/property-editor/dropdownFlag-editor.vue +11 -12
  125. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onLazyLoad-editor.vue +34 -0
  126. package/src/components/xform/form-designer/setting-panel/property-editor/field-accessUrl/accessUrl-editor.vue +7 -7
  127. package/src/components/xform/form-designer/setting-panel/property-editor/field-autocomplete/autocomplete-vabSearchName-editor.vue +22 -22
  128. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/addTableData-event-editor.vue +2 -2
  129. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindActions.js +1 -1
  130. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +3 -3
  131. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/form-host-event-editor.vue +40 -40
  132. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +24 -24
  133. package/src/components/xform/form-designer/setting-panel/property-editor/field-cascader/cascader-lazy-editor.vue +37 -0
  134. package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyName-editor.vue +6 -6
  135. package/src/components/xform/form-designer/setting-panel/property-editor/field-common/keyNameEnabled-editor.vue +1 -1
  136. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-dateLimit-editor.vue +11 -11
  137. package/src/components/xform/form-designer/setting-panel/property-editor/field-date/date-format-editor.vue +2 -2
  138. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-format-editor.vue +2 -2
  139. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +15 -15
  140. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +15 -15
  141. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +25 -25
  142. package/src/components/xform/form-designer/setting-panel/property-editor/field-gantt/gantt-editor.vue +1 -1
  143. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +28 -31
  144. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +41 -50
  145. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-button-editor.vue +4 -5
  146. package/src/components/xform/form-designer/setting-panel/property-editor/field-print-button/print-detail-button-editor.vue +4 -5
  147. package/src/components/xform/form-designer/setting-panel/property-editor/field-script/script-editor.vue +24 -24
  148. package/src/components/xform/form-designer/setting-panel/property-editor/field-script-input/script-input-editor.vue +7 -7
  149. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +24 -24
  150. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +4 -4
  151. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-item-button-editor.vue +19 -21
  152. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +13 -14
  153. package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-format-editor.vue +1 -1
  154. package/src/components/xform/form-designer/setting-panel/property-editor/field-time/time-timeLimit-editor.vue +3 -3
  155. package/src/components/xform/form-designer/setting-panel/property-editor/field-time-range/time-range-format-editor.vue +1 -1
  156. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchField-editor.vue +1 -1
  157. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +6 -6
  158. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabsearchConfigDialog.vue +9 -9
  159. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +1 -1
  160. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload2/field-vabUpload2-editor.vue +5 -5
  161. package/src/components/xform/form-designer/setting-panel/property-editor/field-vue-page/vue-page-editor.vue +5 -5
  162. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +6 -6
  163. package/src/components/xform/form-designer/setting-panel/property-editor/formatType-editor.vue +9 -9
  164. package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +1 -1
  165. package/src/components/xform/form-designer/setting-panel/property-editor/iconClass-editor.vue +8 -8
  166. package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +5 -5
  167. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +2 -2
  168. package/src/components/xform/form-designer/setting-panel/property-editor/listItems-editor.vue +3 -3
  169. package/src/components/xform/form-designer/setting-panel/property-editor/name-editor.vue +2 -2
  170. package/src/components/xform/form-designer/setting-panel/property-editor/oplog-editor.vue +2 -2
  171. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +25 -25
  172. package/src/components/xform/form-designer/setting-panel/property-editor/relative-default-block.vue +14 -15
  173. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +5 -5
  174. package/src/components/xform/form-designer/setting-panel/property-editor/showText-editor.vue +1 -1
  175. package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +2 -2
  176. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +11 -11
  177. package/src/components/xform/form-designer/setting-panel/property-editor/urlValueEnabled-editor.vue +2 -3
  178. package/src/components/xform/form-designer/setting-panel/property-editor/utcTransformEnabled-editor.vue +1 -1
  179. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +23 -23
  180. package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +9 -9
  181. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +2 -0
  182. package/src/components/xform/form-designer/setting-panel/wfObjConfigDialog.vue +1 -1
  183. package/src/components/xform/form-designer/toolbar-panel/index.vue +3 -4
  184. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +2 -0
  185. package/src/components/xform/form-render/container-item/data-table-item.vue +10 -10
  186. package/src/components/xform/form-render/container-item/data-table-mixin.js +34 -34
  187. package/src/components/xform/form-render/container-item/detail-item.vue +2 -2
  188. package/src/components/xform/form-render/container-item/detail-temp-item.vue +1 -1
  189. package/src/components/xform/form-render/container-item/list-h5-item.vue +13 -13
  190. package/src/components/xform/form-render/fieldControlEngine.js +17 -17
  191. package/src/components/xform/form-render/fieldControlMixin.js +14 -14
  192. package/src/components/xform/form-render/index.vue +2 -2
  193. package/src/components/xform/form-render/indexMixin.js +21 -21
  194. package/src/components/xform/mixins/defaultHandle.js +1 -1
  195. package/src/components/xform/mixins/scriptHttp.js +1 -1
  196. package/src/components/xform/utils/dynamicSchemaUtil.js +1 -1
  197. package/src/components/xform/utils/formHttp.js +1 -1
  198. package/src/components/xform/utils/treeTableUtil.js +44 -44
  199. package/src/layout/components/createCompany/createCompanyDialog.vue +2 -2
  200. package/src/layout/components/extractedCode/createDialog.vue +1 -1
  201. package/src/layout/components/langTool.vue +1 -1
  202. package/src/utils/vab.js +4 -0
  203. package/src/views/user/api_request/list.vue +6 -6
  204. package/src/views/user/area/dialog.vue +1 -1
  205. package/src/views/user/area/list.vue +1 -1
  206. package/src/views/user/bill_setting/render.vue +2 -2
  207. package/src/views/user/error-page/401.vue +9 -9
  208. package/src/views/user/form/form_ins_list/edit.vue +17 -17
  209. package/src/views/user/form/form_template/dialog.vue +12 -12
  210. package/src/views/user/form/form_template/edit.vue +10 -10
  211. package/src/views/user/form/form_template/itemEdit.vue +18 -18
  212. package/src/views/user/form/form_template/itemList.vue +13 -13
  213. package/src/views/user/form/form_template/list.vue +25 -25
  214. package/src/views/user/form/form_template_field/dialog.vue +3 -3
  215. package/src/views/user/form/form_type/dialog.vue +5 -5
  216. package/src/views/user/form/form_type/edit.vue +2 -2
  217. package/src/views/user/form/form_type/editDialog.vue +3 -3
  218. package/src/views/user/form/form_type/list.vue +5 -5
  219. package/src/views/user/form/report_requestaccess/dialog.vue +12 -12
  220. package/src/views/user/form/report_requestaccess/edit.vue +54 -54
  221. package/src/views/user/form/report_requestaccess/list.vue +15 -15
  222. package/src/views/user/form/vform/designer.vue +37 -37
  223. package/src/views/user/form/vform/render.vue +1 -1
  224. package/src/views/user/form/view/list.vue +4 -4
  225. package/src/views/user/home/wjl/content.vue +2 -2
  226. package/src/views/user/login/default.vue +1 -1
  227. package/src/views/user/login/indexMixin.js +1 -1
  228. package/src/views/user/outLink/form_view.vue +1 -1
  229. package/src/views/user/outLink/index.vue +1 -1
  230. package/src/views/user/outLink/view.vue +1 -1
  231. package/src/views/user/push_setting/list.vue +20 -20
  232. package/src/views/user/request_setting/list.vue +18 -18
  233. package/src/views/user/sale_org/list.vue +1 -1
  234. package/src/views/user/sale_org/moveDialog.vue +8 -8
  235. package/src/views/user/user/edit.vue +3 -3
  236. package/src/views/user/user/form_list.vue +6 -6
  237. package/src/views/user/user/info.vue +2 -2
  238. package/src/views/user/user/infoEdit.vue +1 -1
  239. package/src/views/user/user/list.vue +1 -1
  240. package/src/views/user/wf/iframe/index.vue +1 -1
  241. package/src/views/user/wf/iframe/index2.vue +1 -1
  242. package/src/views/user/wf/wfReport/index.vue +18 -18
  243. package/src/views/user/wf/wf_manage/list.vue +1 -1
  244. package/src/views/user/wf/wf_manage/list2.vue +1 -1
  245. package/src/views/user/wf/wf_manage/wfContentDialog.vue +93 -93
  246. package/src/views/user/wf/wf_obj_config/dialog.vue +1 -1
  247. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +4 -4
  248. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +3 -3
  249. package/src/views/user/wf/wf_work_calendar/components/calendar.vue +2 -8
  250. package/src/views/user/wf/wf_work_calendar/components/calendar2.vue +2 -8
@@ -11,9 +11,9 @@
11
11
  <template>
12
12
  <div>
13
13
  <el-alert v-if="fieldControlError" :title="fieldControlError" type="error" :closable="false" show-icon>
14
- <el-button type="text" @click="retryFieldControl">重新计算字段规则</el-button>
14
+ <el-button type="text" @click="retryFieldControl">{{ $t1('重新计算字段规则') }}</el-button>
15
15
  </el-alert>
16
- <div v-if="fieldControlBlocked" role="status">正在准备表单,请稍候…</div>
16
+ <div v-if="fieldControlBlocked" role="status">{{ $t1('正在准备表单,请稍候…') }}</div>
17
17
  <el-form
18
18
  :label-position="labelPosition"
19
19
  :size="size"
@@ -674,14 +674,14 @@ modules = {
674
674
  if (formatS === "editButton") {
675
675
  fieldWidget.options.prefixIcon =
676
676
  fieldWidget.options.prefixIcon || "el-icon-edit";
677
- fieldWidget.options.label = fieldWidget.options.label || "查看";
677
+ fieldWidget.options.label = fieldWidget.options.label || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('查看') : '查看');
678
678
  if (fieldWidget.options.labelHidden === undefined) {
679
679
  fieldWidget.options.labelHidden = true;
680
680
  }
681
681
  } else if (formatS === "editDelete") {
682
682
  fieldWidget.options.prefixIcon =
683
683
  fieldWidget.options.prefixIcon || "el-icon-delete";
684
- fieldWidget.options.label = fieldWidget.options.label || "删除";
684
+ fieldWidget.options.label = fieldWidget.options.label || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('删除') : '删除');
685
685
  if (fieldWidget.options.labelHidden === undefined) {
686
686
  fieldWidget.options.labelHidden = true;
687
687
  }
@@ -2963,7 +2963,7 @@ modules = {
2963
2963
  let sourceId = self.formDataModel[cfg.sourceIdField];
2964
2964
  if (sourceId == null || sourceId === "") {
2965
2965
  if (self.$message) {
2966
- self.$message.error("请先选择" + (cfg.sourceLabel || "原单"));
2966
+ self.$message.error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('请先选择') : '请先选择') + (cfg.sourceLabel || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('原单') : '原单')));
2967
2967
  }
2968
2968
  return;
2969
2969
  }
@@ -4314,16 +4314,16 @@ modules = {
4314
4314
  || typeof $grid.setTreeExpand !== "function"
4315
4315
  ) {
4316
4316
  throw new Error(
4317
- `[${formTemplateTableDTO.tableAlias}]无法读取树节点加载状态`
4317
+ (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('[{p0}]无法读取树节点加载状态', { p0: formTemplateTableDTO.tableAlias }) : '[{p0}]无法读取树节点加载状态')
4318
4318
  );
4319
4319
  }
4320
4320
 
4321
4321
  let unloadedRows = this.getTreeUnloadedRows($grid, treeConfig);
4322
4322
  if (!unloadedRows.length) return;
4323
4323
  if (strategy !== "loadAll") {
4324
- let action = operation === "copy" ? "复制" : "保存";
4324
+ let action = operation === "copy" ? (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('复制') : '复制') : (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('保存') : '保存');
4325
4325
  throw new Error(
4326
- `[${formTemplateTableDTO.tableAlias}]存在尚未加载的树节点,请先展开后再${action}`
4326
+ (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('[{p0}]存在尚未加载的树节点,请先展开后再{p1}', { p0: formTemplateTableDTO.tableAlias, p1: action }) : '[{p0}]存在尚未加载的树节点,请先展开后再{p1}')
4327
4327
  );
4328
4328
  }
4329
4329
 
@@ -4331,7 +4331,7 @@ modules = {
4331
4331
  while (unloadedRows.length) {
4332
4332
  if (loopCount++ > 100) {
4333
4333
  throw new Error(
4334
- `[${formTemplateTableDTO.tableAlias}]树节点层级过深,无法完成加载`
4334
+ (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('[{p0}]树节点层级过深,无法完成加载', { p0: formTemplateTableDTO.tableAlias }) : '[{p0}]树节点层级过深,无法完成加载')
4335
4335
  );
4336
4336
  }
4337
4337
  let currentRows = unloadedRows;
@@ -4344,7 +4344,7 @@ modules = {
4344
4344
  && unloadedRows.every((row) => currentRows.includes(row))
4345
4345
  ) {
4346
4346
  throw new Error(
4347
- `[${formTemplateTableDTO.tableAlias}]树节点加载未完成,已停止保存`
4347
+ (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('[{p0}]树节点加载未完成,已停止保存', { p0: formTemplateTableDTO.tableAlias }) : '[{p0}]树节点加载未完成,已停止保存')
4348
4348
  );
4349
4349
  }
4350
4350
  }
@@ -4700,7 +4700,7 @@ modules = {
4700
4700
  data: realFormData,
4701
4701
  };
4702
4702
 
4703
- this.$baseConfirm("您确定要保存吗?").then(async () => {
4703
+ this.$baseConfirm((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('您确定要保存吗?') : '您确定要保存吗?')).then(async () => {
4704
4704
  try {
4705
4705
  await this.assertFieldControlSubmission(fieldControlSnapshot);
4706
4706
  } catch (error) {
@@ -4734,7 +4734,7 @@ modules = {
4734
4734
  let reportTemplate = this.reportTemplate || {};
4735
4735
  let insUuid = reportTemplate.insUuid;
4736
4736
  if (insUuid) {
4737
- this.$baseConfirm("您确定要提交吗?").then(() => {
4737
+ this.$baseConfirm((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('您确定要提交吗?') : '您确定要提交吗?')).then(() => {
4738
4738
  this.$http({
4739
4739
  url: USER_PREFIX + `/form_ins/submit`,
4740
4740
  method: `post`,
@@ -4878,42 +4878,42 @@ modules = {
4878
4878
 
4879
4879
  if ("editDelete" === formatS) {
4880
4880
  columnSelectedWidget.options.prefixIcon = "el-icon-delete";
4881
- columnSelectedWidget.options.label = "删除";
4881
+ columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('删除') : '删除');
4882
4882
  columnSelectedWidget.options.labelHidden = true;
4883
4883
  columnSelectedWidget.options.hiddenByWf = true;
4884
4884
  columnSelectedWidget.options.onClick =
4885
4885
  "let tableParam = this.tableParam;\nlet tableRef = this.getWidgetRef(this.parentWidget.options.name);\ntableRef.deleteRow(tableParam.row,tableParam.rowIndex);";
4886
4886
  } else if ("editButton" === formatS) {
4887
4887
  columnSelectedWidget.options.prefixIcon = "el-icon-edit";
4888
- columnSelectedWidget.options.label = "查看";
4888
+ columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('查看') : '查看');
4889
4889
  columnSelectedWidget.options.labelHidden = true;
4890
4890
  columnSelectedWidget.options.onClick =
4891
4891
  "let tableParam = this.tableParam;\nlet tableRef = this.getWidgetRef(this.parentWidget.options.name);\ntableRef.openEditDialog(tableParam.row)";
4892
4892
  } else if ("addSiblingEditRow" === formatS) {
4893
4893
  columnSelectedWidget.options.prefixIcon = "el-icon-plus";
4894
- columnSelectedWidget.options.label = "新增兄弟节点";
4894
+ columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('新增兄弟节点') : '新增兄弟节点');
4895
4895
  columnSelectedWidget.options.labelHidden = false;
4896
4896
  columnSelectedWidget.options.onClick =
4897
4897
  "let tableParam = this.tableParam;\nthis.getParentTarget().addSiblingTreeRow(null,tableParam);";
4898
4898
  } else if ("addChildTreeRow" === formatS) {
4899
4899
  columnSelectedWidget.options.prefixIcon = "el-icon-plus";
4900
- columnSelectedWidget.options.label = "新增子节点";
4900
+ columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('新增子节点') : '新增子节点');
4901
4901
  columnSelectedWidget.options.labelHidden = false;
4902
4902
  columnSelectedWidget.options.onClick =
4903
4903
  "let tableParam = this.tableParam;\nthis.getParentTarget().addChildTreeRow(null,tableParam);";
4904
4904
  } else if ("moveUpRow" === formatS) {
4905
- columnSelectedWidget.options.label = "↑上移";
4905
+ columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('↑上移') : '↑上移');
4906
4906
  columnSelectedWidget.options.labelHidden = false;
4907
4907
  columnSelectedWidget.options.onClick =
4908
4908
  "let tableParam = this.tableParam;\nthis.getParentTarget().moveUpRow(tableParam);";
4909
4909
  } else if ("moveDownRow" === formatS) {
4910
- columnSelectedWidget.options.label = "↓下移";
4910
+ columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('↓下移') : '↓下移');
4911
4911
  columnSelectedWidget.options.labelHidden = false;
4912
4912
  columnSelectedWidget.options.onClick =
4913
4913
  "let tableParam = this.tableParam;\nthis.getParentTarget().moveDownRow(tableParam);";
4914
4914
  } else if ("removeTreeRow" === formatS) {
4915
4915
  columnSelectedWidget.options.prefixIcon = "el-icon-delete";
4916
- columnSelectedWidget.options.label = "删除";
4916
+ columnSelectedWidget.options.label = (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('删除') : '删除');
4917
4917
  columnSelectedWidget.options.labelHidden = true;
4918
4918
  columnSelectedWidget.options.onClick =
4919
4919
  "let tableParam = this.tableParam;\nthis.getParentTarget().removeTreeRow(tableParam);";
@@ -5139,14 +5139,14 @@ modules = {
5139
5139
  let gridRef = this.getWidgetRef(widgetName);
5140
5140
  let $grid = gridRef?.getGridTable?.();
5141
5141
  if (!$grid) {
5142
- throw new Error(`[${widgetName}]树表尚未初始化`);
5142
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('[{p0}]树表尚未初始化', { p0: widgetName }) : '[{p0}]树表尚未初始化'));
5143
5143
  }
5144
5144
  if (
5145
5145
  $grid.treeConfig?.lazy
5146
5146
  && this.getTreeUnloadedRows($grid, $grid.treeConfig).length
5147
5147
  ) {
5148
5148
  throw new Error(
5149
- `[${widgetName}]存在尚未加载的树节点,无法复制不完整子树`
5149
+ (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('[{p0}]存在尚未加载的树节点,无法复制不完整子树', { p0: widgetName }) : '[{p0}]存在尚未加载的树节点,无法复制不完整子树')
5150
5150
  );
5151
5151
  }
5152
5152
 
@@ -5258,7 +5258,7 @@ modules = {
5258
5258
  this.$emit("openCopyEditTab", formData);
5259
5259
  return true;
5260
5260
  } catch (error) {
5261
- this.$message.error(error?.message || "树表数据尚未准备完成");
5261
+ this.$message.error(error?.message || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树表数据尚未准备完成') : '树表数据尚未准备完成'));
5262
5262
  return false;
5263
5263
  }
5264
5264
  },
@@ -5428,7 +5428,7 @@ modules = {
5428
5428
  },
5429
5429
  openComponentDialog(option = {}) {
5430
5430
  return mountComponentDialog(option, this).catch((error) => {
5431
- this.$message.error(error.message || "组件弹框打开失败");
5431
+ this.$message.error(error.message || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('组件弹框打开失败') : '组件弹框打开失败'));
5432
5432
  return null;
5433
5433
  });
5434
5434
  },
@@ -130,7 +130,7 @@ modules = {
130
130
  let isAdd = !formRef.dataId;
131
131
  let formName = reportTemplate?.formName;
132
132
  let formCode = reportTemplate?.formCode;
133
- let action = isAdd ? "新增成功" : "更新成功";
133
+ let action = isAdd ? (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('新增成功') : '新增成功') : (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('更新成功') : '更新成功');
134
134
  let content = `${formName}(${formCode}),${action}`;
135
135
  let path = responseConfig.url.replace(responseConfig.baseURL, "");
136
136
  saveUserLog({
@@ -91,7 +91,7 @@ modules = {
91
91
  if (serviceName) {
92
92
  callback(serviceName);
93
93
  } else {
94
- this.$baseAlert("服务名不存在");
94
+ this.$baseAlert((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('服务名不存在') : '服务名不存在'));
95
95
  }
96
96
  },
97
97
  () => {
@@ -135,7 +135,7 @@ export function buildDropdownWidgetFromDef(def, index = 0) {
135
135
  type: "dropdown",
136
136
  id: `dropdown_${ts}`,
137
137
  options: {
138
- label: def.label || "操作",
138
+ label: def.label || (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('操作') : '操作'),
139
139
  dropdownType: options?.dropdownType || "link",
140
140
  dropdownTrigger: options?.dropdownTrigger || "hover",
141
141
  dropdownFlag: 1,
@@ -93,7 +93,7 @@ modules = {
93
93
  let url = `/${searviceName}/bd_api/${formCode}/${scriptCode}`;
94
94
  callback(url)
95
95
  } else {
96
- this.$baseAlert("服务名不存在")
96
+ this.$baseAlert((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('服务名不存在') : '服务名不存在'))
97
97
  }
98
98
  }
99
99
  });
@@ -52,7 +52,7 @@ const registryHas = (registry, value) => {
52
52
 
53
53
  const assertSyncResult = (value, name) => {
54
54
  if (value && typeof value.then === "function") {
55
- throw new Error(`${name} 必须同步返回,不能返回 Promise`);
55
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('{p0} 必须同步返回,不能返回 Promise', { p0: name }) : '{p0} 必须同步返回,不能返回 Promise'));
56
56
  }
57
57
  return value;
58
58
  };
@@ -64,7 +64,7 @@ const callExternalParentValidator = (validator, value, row, operation) => {
64
64
  "validateExternalParentKey"
65
65
  );
66
66
  if (typeof result !== "boolean") {
67
- throw new Error("validateExternalParentKey 必须返回 boolean");
67
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('validateExternalParentKey 必须返回 boolean') : 'validateExternalParentKey 必须返回 boolean'));
68
68
  }
69
69
  return result;
70
70
  };
@@ -82,7 +82,7 @@ const stableSerialize = (value, seen = new WeakSet()) => {
82
82
  if (valueType === "boolean") return `boolean:${value}`;
83
83
  if (valueType === "bigint") return `bigint:${value.toString()}`;
84
84
  if (valueType === "function" || valueType === "symbol") {
85
- throw new Error(`树节点包含无法比较的 ${valueType} 字段`);
85
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点包含无法比较的 {p0} 字段', { p0: valueType }) : '树节点包含无法比较的 {p0} 字段'));
86
86
  }
87
87
  if (value instanceof Date) {
88
88
  return `date:${value.toISOString()}`;
@@ -91,7 +91,7 @@ const stableSerialize = (value, seen = new WeakSet()) => {
91
91
  return `regexp:${value.toString()}`;
92
92
  }
93
93
  if (seen.has(value)) {
94
- throw new Error("树节点业务字段存在循环引用,无法校验多实例一致性");
94
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点业务字段存在循环引用,无法校验多实例一致性') : '树节点业务字段存在循环引用,无法校验多实例一致性'));
95
95
  }
96
96
  seen.add(value);
97
97
  let result;
@@ -138,7 +138,7 @@ const validateFieldNames = (fields, identityConfig) => {
138
138
  ];
139
139
  let relationSet = new Set(relationFields);
140
140
  if (relationSet.size !== relationFields.length) {
141
- throw new Error(`树表字段不能重复:${relationFields.join(", ")}`);
141
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树表字段不能重复:{p0}', { p0: relationFields.join(", ") }) : '树表字段不能重复:{p0}'));
142
142
  }
143
143
  [
144
144
  fields.rowField,
@@ -147,7 +147,7 @@ const validateFieldNames = (fields, identityConfig) => {
147
147
  fields.hasChildField,
148
148
  ].forEach((field) => {
149
149
  if (INTERNAL_TREE_FIELDS.has(field)) {
150
- throw new Error(`树表业务字段不能使用内部字段名:${field}`);
150
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树表业务字段不能使用内部字段名:{p0}', { p0: field }) : '树表业务字段不能使用内部字段名:{p0}'));
151
151
  }
152
152
  });
153
153
  if (
@@ -155,7 +155,7 @@ const validateFieldNames = (fields, identityConfig) => {
155
155
  && fields.mapChildrenField !== DEFAULT_MAP_CHILDREN_FIELD
156
156
  ) {
157
157
  throw new Error(
158
- `mapChildren 不能使用内部字段名:${fields.mapChildrenField}`
158
+ (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('mapChildren 不能使用内部字段名:{p0}', { p0: fields.mapChildrenField }) : 'mapChildren 不能使用内部字段名:{p0}')
159
159
  );
160
160
  }
161
161
  if (!identityConfig) return;
@@ -165,11 +165,11 @@ const validateFieldNames = (fields, identityConfig) => {
165
165
  && relationSet.has(physicalIdField)
166
166
  ) {
167
167
  throw new Error(
168
- `physicalIdField 只能与 rowField 相同,不能使用:${physicalIdField}`
168
+ (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('physicalIdField 只能与 rowField 相同,不能使用:{p0}', { p0: physicalIdField }) : 'physicalIdField 只能与 rowField 相同,不能使用:{p0}')
169
169
  );
170
170
  }
171
171
  if (INTERNAL_TREE_FIELDS.has(physicalIdField)) {
172
- throw new Error(`physicalIdField 不能使用内部字段名:${physicalIdField}`);
172
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('physicalIdField 不能使用内部字段名:{p0}', { p0: physicalIdField }) : 'physicalIdField 不能使用内部字段名:{p0}'));
173
173
  }
174
174
  };
175
175
 
@@ -223,11 +223,11 @@ export const resolveTreeFields = (
223
223
  "hasChildField",
224
224
  ].forEach((key) => {
225
225
  if (!fields[key] || typeof fields[key] !== "string") {
226
- throw new Error(`treeConfig.${key} 不能为空`);
226
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('treeConfig.{p0} 不能为空', { p0: key }) : 'treeConfig.{p0} 不能为空'));
227
227
  }
228
228
  });
229
229
  if (treeConfig.transform === false) {
230
- throw new Error("xform 树表必须启用 treeConfig.transform");
230
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('xform 树表必须启用 treeConfig.transform') : 'xform 树表必须启用 treeConfig.transform'));
231
231
  }
232
232
  validateFieldNames(fields);
233
233
  }
@@ -257,14 +257,14 @@ export const resolveTreeIdentityConfig = (
257
257
  };
258
258
  if (!isRootParent(identityConfig.rootParentValue)) {
259
259
  throw new Error(
260
- `rootParentValue 不是有效根值:${identityConfig.rootParentValue}`
260
+ (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('rootParentValue 不是有效根值:{p0}', { p0: identityConfig.rootParentValue }) : 'rootParentValue 不是有效根值:{p0}')
261
261
  );
262
262
  }
263
263
  if (
264
264
  !identityConfig.physicalIdField
265
265
  || typeof identityConfig.physicalIdField !== "string"
266
266
  ) {
267
- throw new Error("physicalIdField 不能为空");
267
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('physicalIdField 不能为空') : 'physicalIdField 不能为空'));
268
268
  }
269
269
  if (
270
270
  fields.rowField === "id"
@@ -279,7 +279,7 @@ export const resolveTreeIdentityConfig = (
279
279
  identityConfig.persistedRowFieldChangeStrategy
280
280
  )
281
281
  ) {
282
- throw new Error("persistedRowFieldChangeStrategy 配置无效");
282
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('persistedRowFieldChangeStrategy 配置无效') : 'persistedRowFieldChangeStrategy 配置无效'));
283
283
  }
284
284
  if (
285
285
  identityConfig.persistedRowFieldChangeStrategy === "transactional"
@@ -304,7 +304,7 @@ export const resolveTreeCopyConfig = (
304
304
  ? "regenerate"
305
305
  : "preserve");
306
306
  if (!["preserve", "regenerate", "custom"].includes(rowFieldStrategy)) {
307
- throw new Error(`rowFieldStrategy 配置无效:${rowFieldStrategy}`);
307
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('rowFieldStrategy 配置无效:{p0}', { p0: rowFieldStrategy }) : 'rowFieldStrategy 配置无效:{p0}'));
308
308
  }
309
309
  if (
310
310
  fields.rowField === identityConfig.physicalIdField
@@ -326,19 +326,19 @@ export const resolveTreeCopyConfig = (
326
326
  config.orphanParentStrategy
327
327
  && !["detach", "preserve"].includes(config.orphanParentStrategy)
328
328
  ) {
329
- throw new Error("treeCopyConfig.orphanParentStrategy 配置无效");
329
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('treeCopyConfig.orphanParentStrategy 配置无效') : 'treeCopyConfig.orphanParentStrategy 配置无效'));
330
330
  }
331
331
  if (
332
332
  config.lazyStrategy
333
333
  && !["reject", "loadAll"].includes(config.lazyStrategy)
334
334
  ) {
335
- throw new Error("treeCopyConfig.lazyStrategy 配置无效");
335
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('treeCopyConfig.lazyStrategy 配置无效') : 'treeCopyConfig.lazyStrategy 配置无效'));
336
336
  }
337
337
  if (
338
338
  rowFieldStrategy === "custom"
339
339
  && typeof config.generateRowField !== "function"
340
340
  ) {
341
- throw new Error("custom 复制策略必须配置 generateRowField");
341
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('custom 复制策略必须配置 generateRowField') : 'custom 复制策略必须配置 generateRowField'));
342
342
  }
343
343
  if (
344
344
  rowFieldStrategy === "regenerate"
@@ -366,17 +366,17 @@ export const resolveTreeSubmitConfig = (config = {}) => {
366
366
  config.successReconcileStrategy || "reload",
367
367
  };
368
368
  if (!["preserve", "reject"].includes(result.orphanParentStrategy)) {
369
- throw new Error("treeSubmitConfig.orphanParentStrategy 配置无效");
369
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('treeSubmitConfig.orphanParentStrategy 配置无效') : 'treeSubmitConfig.orphanParentStrategy 配置无效'));
370
370
  }
371
371
  if (
372
372
  !["reject", "loadAll", "omit"].includes(
373
373
  result.unloadedChildrenStrategy
374
374
  )
375
375
  ) {
376
- throw new Error("treeSubmitConfig.unloadedChildrenStrategy 配置无效");
376
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('treeSubmitConfig.unloadedChildrenStrategy 配置无效') : 'treeSubmitConfig.unloadedChildrenStrategy 配置无效'));
377
377
  }
378
378
  if (result.successReconcileStrategy !== "reload") {
379
- throw new Error("当前仅支持 successReconcileStrategy: reload");
379
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('当前仅支持 successReconcileStrategy: reload') : '当前仅支持 successReconcileStrategy: reload'));
380
380
  }
381
381
  return result;
382
382
  };
@@ -487,7 +487,7 @@ export const collectTreeNodes = (
487
487
  let normalized = normalizeTreeKey(value);
488
488
  let previousRowKey = index.get(normalized);
489
489
  if (previousRowKey && previousRowKey !== rowKey) {
490
- throw new Error(`${label} ${value} 同时指向多个树节点`);
490
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('{p0} {p1} 同时指向多个树节点', { p0: label, p1: value }) : '{p0} {p1} 同时指向多个树节点'));
491
491
  }
492
492
  index.set(normalized, rowKey);
493
493
  };
@@ -499,7 +499,7 @@ export const collectTreeNodes = (
499
499
  let rowValue = node[resolvedFields.rowField];
500
500
  if (isRootParent(rowValue)) {
501
501
  throw new Error(
502
- `树节点 ${resolvedFields.rowField} 不能为空或根哨兵`
502
+ (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点 {p0} 不能为空或根哨兵', { p0: resolvedFields.rowField }) : '树节点 {p0} 不能为空或根哨兵')
503
503
  );
504
504
  }
505
505
  let key = normalizeTreeKey(rowValue);
@@ -533,7 +533,7 @@ export const collectTreeNodes = (
533
533
  && previousPhysicalId !== normalizedPhysicalId
534
534
  ) {
535
535
  throw new Error(
536
- `树节点 ${rowValue} 存在冲突的物理 ID`
536
+ (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点 {p0} 存在冲突的物理 ID', { p0: rowValue }) : '树节点 {p0} 存在冲突的物理 ID')
537
537
  );
538
538
  }
539
539
  physicalIdByRowKey.set(key, normalizedPhysicalId);
@@ -572,7 +572,7 @@ export const collectTreeNodes = (
572
572
  let nextSnapshot = getComparableSnapshot(node, resolvedFields);
573
573
  if (currentMeta.snapshot !== nextSnapshot) {
574
574
  throw new Error(
575
- `树节点 ${rowValue} 存在内容冲突的多个对象实例`
575
+ (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点 {p0} 存在内容冲突的多个对象实例', { p0: rowValue }) : '树节点 {p0} 存在内容冲突的多个对象实例')
576
576
  );
577
577
  }
578
578
  if (
@@ -580,7 +580,7 @@ export const collectTreeNodes = (
580
580
  && temporaryMarker !== null
581
581
  && currentMeta.temporaryMarker !== temporaryMarker
582
582
  ) {
583
- throw new Error(`树节点 ${rowValue} 存在冲突的临时标记`);
583
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点 {p0} 存在冲突的临时标记', { p0: rowValue }) : '树节点 {p0} 存在冲突的临时标记'));
584
584
  }
585
585
  if (
586
586
  currentMeta.temporaryMarker === null
@@ -639,7 +639,7 @@ export const validateTreeGraph = (
639
639
  let value = node[resolvedFields.rowField];
640
640
  let key = normalizeTreeKey(value);
641
641
  if (nodeByKey.has(key) && nodeByKey.get(key) !== node) {
642
- throw new Error(`树键重复:${value}`);
642
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树键重复:{p0}', { p0: value }) : '树键重复:{p0}'));
643
643
  }
644
644
  nodeByKey.set(key, node);
645
645
  valueByKey.set(key, value);
@@ -650,11 +650,11 @@ export const validateTreeGraph = (
650
650
  let parentKey = normalizeTreeKey(edge.parentKey);
651
651
  let childKey = normalizeTreeKey(edge.childKey);
652
652
  if (parentKey === childKey) {
653
- throw new Error(`树节点不能指向自身:${edge.childKey}`);
653
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点不能指向自身:{p0}', { p0: edge.childKey }) : '树节点不能指向自身:{p0}'));
654
654
  }
655
655
  let previous = nestedParents.get(childKey);
656
656
  if (previous && previous !== parentKey) {
657
- throw new Error(`树节点存在多个父节点:${edge.childKey}`);
657
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点存在多个父节点:{p0}', { p0: edge.childKey }) : '树节点存在多个父节点:{p0}'));
658
658
  }
659
659
  nestedParents.set(childKey, parentKey);
660
660
  });
@@ -670,7 +670,7 @@ export const validateTreeGraph = (
670
670
  if (ownsParent) {
671
671
  if (isRootParent(parentValue)) {
672
672
  if (nestedParentKey) {
673
- throw new Error(`根节点嵌套在其他父节点下:${childValue}`);
673
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('根节点嵌套在其他父节点下:{p0}', { p0: childValue }) : '根节点嵌套在其他父节点下:{p0}'));
674
674
  }
675
675
  parentKeyByChild.set(childKey, null);
676
676
  return;
@@ -680,10 +680,10 @@ export const validateTreeGraph = (
680
680
  nestedParentKey
681
681
  && explicitParentKey !== nestedParentKey
682
682
  ) {
683
- throw new Error(`父字段与嵌套位置冲突:${childValue}`);
683
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('父字段与嵌套位置冲突:{p0}', { p0: childValue }) : '父字段与嵌套位置冲突:{p0}'));
684
684
  }
685
685
  if (explicitParentKey === childKey) {
686
- throw new Error(`树节点不能指向自身:${childValue}`);
686
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树节点不能指向自身:{p0}', { p0: childValue }) : '树节点不能指向自身:{p0}'));
687
687
  }
688
688
  parentKeyByChild.set(childKey, explicitParentKey);
689
689
  return;
@@ -696,7 +696,7 @@ export const validateTreeGraph = (
696
696
  let visit = (key) => {
697
697
  let state = visitState.get(key);
698
698
  if (state === 1) {
699
- throw new Error(`树结构存在环:${valueByKey.get(key) || key}`);
699
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树结构存在环:{p0}', { p0: valueByKey.get(key) || key }) : '树结构存在环:{p0}'));
700
700
  }
701
701
  if (state === 2) return;
702
702
  visitState.set(key, 1);
@@ -788,7 +788,7 @@ export const canonicalizeTreeInput = (
788
788
  let key = normalizeTreeKey(clone[resolvedFields.rowField]);
789
789
  if (normalizedKeys.has(key)) {
790
790
  throw new Error(
791
- `树键归一后冲突:${clone[resolvedFields.rowField]}`
791
+ (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树键归一后冲突:{p0}', { p0: clone[resolvedFields.rowField] }) : '树键归一后冲突:{p0}')
792
792
  );
793
793
  }
794
794
  normalizedKeys.add(key);
@@ -876,7 +876,7 @@ const getTopologicalOrder = (nodes, graph, fields) => {
876
876
  });
877
877
  }
878
878
  if (result.length !== nodes.length) {
879
- throw new Error("树结构存在环,无法生成复制顺序");
879
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('树结构存在环,无法生成复制顺序') : '树结构存在环,无法生成复制顺序'));
880
880
  }
881
881
  return result;
882
882
  };
@@ -977,7 +977,7 @@ export const copyTreeData = (
977
977
  registryHas(temporaryKeyRegistry, oldParentValue)
978
978
  || registryHas(targetTemporaryKeys, oldParentValue)
979
979
  ) {
980
- throw new Error(`外部父键仍为临时值:${oldParentValue}`);
980
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('外部父键仍为临时值:{p0}', { p0: oldParentValue }) : '外部父键仍为临时值:{p0}'));
981
981
  }
982
982
  let isFormal
983
983
  = registryHas(knownFormalKeyRegistry, oldParentValue)
@@ -988,7 +988,7 @@ export const copyTreeData = (
988
988
  "copy"
989
989
  );
990
990
  if (!isFormal) {
991
- throw new Error(`无法确认外部父键:${oldParentValue}`);
991
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('无法确认外部父键:{p0}', { p0: oldParentValue }) : '无法确认外部父键:{p0}'));
992
992
  }
993
993
  newParentValue = oldParentValue;
994
994
  }
@@ -1004,7 +1004,7 @@ export const copyTreeData = (
1004
1004
  )
1005
1005
  || registryHas(temporaryKeyRegistry, oldValue)
1006
1006
  ) {
1007
- throw new Error(`不能保留临时树键:${oldValue}`);
1007
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('不能保留临时树键:{p0}', { p0: oldValue }) : '不能保留临时树键:{p0}'));
1008
1008
  }
1009
1009
  generated = {
1010
1010
  value: oldValue,
@@ -1032,7 +1032,7 @@ export const copyTreeData = (
1032
1032
  };
1033
1033
  }
1034
1034
  if (isRootParent(generated.value)) {
1035
- throw new Error(`复制生成的树键无效:${generated.value}`);
1035
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('复制生成的树键无效:{p0}', { p0: generated.value }) : '复制生成的树键无效:{p0}'));
1036
1036
  }
1037
1037
  if (
1038
1038
  resolvedFields.rowField === resolvedIdentity.physicalIdField
@@ -1045,7 +1045,7 @@ export const copyTreeData = (
1045
1045
 
1046
1046
  let newKey = normalizeTreeKey(generated.value);
1047
1047
  if (usedNewKeys.has(newKey) || targetKeys.has(newKey)) {
1048
- throw new Error(`复制生成的树键冲突:${generated.value}`);
1048
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('复制生成的树键冲突:{p0}', { p0: generated.value }) : '复制生成的树键冲突:{p0}'));
1049
1049
  }
1050
1050
  usedNewKeys.add(newKey);
1051
1051
 
@@ -1142,7 +1142,7 @@ export const sanitizeTreeRow = (
1142
1142
  result[resolvedFields.rowField] = null;
1143
1143
  } else if (!allowUnresolvedTemporary) {
1144
1144
  throw new Error(
1145
- `${resolvedFields.rowField} 仍是临时值,不能提交`
1145
+ (window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('{p0} 仍是临时值,不能提交', { p0: resolvedFields.rowField }) : '{p0} 仍是临时值,不能提交')
1146
1146
  );
1147
1147
  }
1148
1148
  }
@@ -1259,10 +1259,10 @@ export const buildTreeSubmitData = (
1259
1259
  }
1260
1260
 
1261
1261
  if (registryHas(tempKeys, parentValue)) {
1262
- throw new Error(`父键仍指向未提交的临时节点:${parentValue}`);
1262
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('父键仍指向未提交的临时节点:{p0}', { p0: parentValue }) : '父键仍指向未提交的临时节点:{p0}'));
1263
1263
  }
1264
1264
  if (resolvedSubmit.orphanParentStrategy === "reject") {
1265
- throw new Error(`父节点不在提交集合中:${parentValue}`);
1265
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('父节点不在提交集合中:{p0}', { p0: parentValue }) : '父节点不在提交集合中:{p0}'));
1266
1266
  }
1267
1267
  let formal
1268
1268
  = !strict
@@ -1274,7 +1274,7 @@ export const buildTreeSubmitData = (
1274
1274
  "submit"
1275
1275
  );
1276
1276
  if (!formal) {
1277
- throw new Error(`无法确认外部父键:${parentValue}`);
1277
+ throw new Error((window.$vueRoot && window.$vueRoot.$t1 ? window.$vueRoot.$t1('无法确认外部父键:{p0}', { p0: parentValue }) : '无法确认外部父键:{p0}'));
1278
1278
  }
1279
1279
  roots.push(clone);
1280
1280
  });
@@ -47,7 +47,7 @@
47
47
  </span>
48
48
  </el-dialog>
49
49
  <el-dialog
50
- title="新建企业JSON维护"
50
+ :title="$t1('新建企业JSON维护')"
51
51
  :append-to-body="true"
52
52
  :modal-append-to-body="true"
53
53
  :close-on-click-modal="false"
@@ -103,7 +103,7 @@ export default {
103
103
  dialogConfirm() {
104
104
  this.extractedCode = null;
105
105
  if (!this.formData.sid) {
106
- this.$baseAlert("唯一标识不能为空");
106
+ this.$baseAlert(this.$t1("唯一标识不能为空"));
107
107
  return;
108
108
  }
109
109
  this.$http({
@@ -58,7 +58,7 @@ export default {
58
58
  dialogConfirm() {
59
59
  this.extractedCode = null;
60
60
  if (!this.formData.sid) {
61
- this.$baseAlert("唯一标识不能为空");
61
+ this.$baseAlert(this.$t1("唯一标识不能为空"));
62
62
  return
63
63
  }
64
64
  this.$http({
@@ -54,7 +54,7 @@ export default {
54
54
  success: (res) => {
55
55
  this.$i18n.locale = command; // 设置给本地的i18n插件
56
56
  localStorage.setItem("i18n-lang", command);
57
- this.$message.success("切换多语言成功");
57
+ this.$message.success(this.$t1("切换多语言成功"));
58
58
  // qiankun 子应用形态(自治嵌入壳可见时才有本入口):reload 会刷新宿主整页,
59
59
  // 降级为仅切换本应用词条;存量页面快照词条需刷新后完全生效
60
60
  if (this.$store.state.micro && this.$store.state.micro.isMicro) {
package/src/utils/vab.js CHANGED
@@ -11,6 +11,7 @@ import { getToken } from "./auth";
11
11
  import XEUtils from "xe-utils";
12
12
 
13
13
  import prefixConfig from "@/prefixConfig.js";
14
+ import settingConfig from "@/settings.js";
14
15
  import moment from "moment";
15
16
  import { openView } from "./repeatOpen";
16
17
  import { assetUrl } from "./assetUrl";
@@ -1269,6 +1270,9 @@ install = (Vue, opts = {}) => {
1269
1270
  };
1270
1271
 
1271
1272
  Vue.prototype.$t2 = function (defaultValue, path, values) {
1273
+ if (settingConfig.t2ToT1Enabled === true) {
1274
+ return Vue.prototype.$t1.call(this, defaultValue, values);
1275
+ }
1272
1276
  let that = window.$vueRoot;
1273
1277
  if (!that.hasOwnProperty("_i18n")) {
1274
1278
  return defaultValue;