vue2-client 1.12.2 → 1.12.3-9.alpha

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 (418) hide show
  1. package/.cursorrules +19 -19
  2. package/.env +19 -19
  3. package/.env.gaslink +19 -19
  4. package/.env.his +19 -19
  5. package/.env.iot +19 -0
  6. package/.env.liuli +19 -19
  7. package/.env.revenue +19 -19
  8. package/.env.scada +19 -19
  9. package/.eslintrc.js +90 -90
  10. package/CHANGELOG.md +824 -824
  11. package/Components.md +60 -60
  12. package/babel.config.js +4 -1
  13. package/docs/Logic/345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +45 -45
  14. package/docs/LowCode/lowcode.md +155 -155
  15. package/docs/LowCode/lowcodeForDeveloper.md +230 -230
  16. package/docs/index.md +30 -30
  17. package/docs//345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +175 -174
  18. package/index.js +31 -31
  19. package/jest-transform-stub.js +8 -8
  20. package/jest.config.js +22 -22
  21. package/jest.setup.js +7 -7
  22. package/jsconfig.json +19 -19
  23. package/package.json +108 -108
  24. package/public/his/editor/editor.html +51 -51
  25. package/public/his/editor/mock/bind_data.html +779 -779
  26. package/public/his/editor/mock/data_table.html +40 -40
  27. package/public/his/editor/mock/sign.html +75 -75
  28. package/public/his/editor/vender/JsBarcode.all.js +3669 -3669
  29. package/public/his/editor/vender/date97/My97DatePicker.htm +65 -65
  30. package/public/his/editor/vender/date97/WdatePicker.js +677 -677
  31. package/public/his/editor/vender/date97/calendar.js +4 -4
  32. package/public/his/editor/vender/date97/lang/en.js +13 -13
  33. package/public/his/editor/vender/date97/lang/zh-cn.js +13 -13
  34. package/public/his/editor/vender/date97/lang/zh-tw.js +13 -13
  35. package/public/his/editor/vender/date97/skin/WdatePicker.css +10 -10
  36. package/public/his/editor/vender/date97/skin/default/datepicker.css +328 -328
  37. package/public/his/editor/vender/date97/skin/ext/datepicker.css +308 -308
  38. package/public/his/editor/vender/date97/skin/whyGreen/datepicker.css +255 -255
  39. package/public/his/editor/vender/diff.js +1627 -1627
  40. package/public/his/editor/vender/editor.js +1 -1
  41. package/public/his/editor/vender/fabric.js +31187 -31187
  42. package/public/his/editor/vender/jquery/jquery.base64.js +190 -190
  43. package/public/his/editor/vender/jquery/jquery.js +10872 -10872
  44. package/public/his/editor/vender/jquery/jquery.print.js +255 -255
  45. package/public/his/editor/vender/jquery/zTreeStyle/zTreeStyle.css +96 -96
  46. package/public/his/editor/vender/mui/mui.min.css +4 -4
  47. package/public/his/editor/vender/mui/mui.min.js +5 -5
  48. package/public/his/editor/vender/mui/mui.picker.min.css +6 -6
  49. package/public/his/editor/vender/mui/mui.picker.min.js +6 -6
  50. package/public/his/editor/vender/qrcode.js +7 -7
  51. package/public/his/editor/vender/requirejs/require.js +2145 -2145
  52. package/public/his/editor/vender/signature/jSignature.CompressorSVG.js +518 -518
  53. package/public/his/editor/vender/signature/jSignature.UndoButton.js +164 -164
  54. package/public/his/editor/vender/signature/jSignature.js +1486 -1486
  55. package/public/his/editor/vender/validator.js +5094 -5094
  56. package/public/his/editor/vender/weui/weui.css +5659 -5659
  57. package/public/his/editor/vender/weui/weui.min.css +4 -4
  58. package/public/his/editor/vender/weui/weui.min.js +11 -11
  59. package/public/index.html +27 -27
  60. package/src/ReportView.js +19 -19
  61. package/src/assets/img/querySlotDemo.svg +15 -15
  62. package/src/assets/svg/badtwo.svg +1 -1
  63. package/src/assets/svg/goodtwo.svg +1 -1
  64. package/src/base-client/components/AI/AskAiBtn.vue +136 -136
  65. package/src/base-client/components/AI/demo.vue +31 -31
  66. package/src/base-client/components/common/AMisRender/index.js +3 -3
  67. package/src/base-client/components/common/AMisRender/index.vue +263 -263
  68. package/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox.vue +470 -470
  69. package/src/base-client/components/common/AddressSearchCombobox/IcMapIcon.vue +16 -16
  70. package/src/base-client/components/common/AddressSearchCombobox/demo.vue +36 -36
  71. package/src/base-client/components/common/AddressSearchCombobox/ic_map.svg +6 -6
  72. package/src/base-client/components/common/AmapMarker/AmapPointRendering.vue +120 -120
  73. package/src/base-client/components/common/CitySelect/index.js +3 -3
  74. package/src/base-client/components/common/CitySelect/index.md +109 -109
  75. package/src/base-client/components/common/CreateQuery/CreateQuery.vue +669 -669
  76. package/src/base-client/components/common/CreateQuery/CreateQueryItem.vue +1014 -1014
  77. package/src/base-client/components/common/CreateQuery/index.js +3 -3
  78. package/src/base-client/components/common/CreateQuery/index.md +42 -42
  79. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQuery.vue +452 -452
  80. package/src/base-client/components/common/CreateSimpleFormQuery/CreateSimpleFormQueryItem.vue +511 -511
  81. package/src/base-client/components/common/CreateSimpleFormQuery/index.js +3 -3
  82. package/src/base-client/components/common/CreateSimpleFormQuery/index.md +42 -42
  83. package/src/base-client/components/common/FormGroupEdit/FormGroupEdit.vue +149 -149
  84. package/src/base-client/components/common/FormGroupEdit/index.js +3 -3
  85. package/src/base-client/components/common/FormGroupEdit/index.md +43 -43
  86. package/src/base-client/components/common/FormGroupQuery/FormGroupQuery.vue +166 -166
  87. package/src/base-client/components/common/FormGroupQuery/index.js +3 -3
  88. package/src/base-client/components/common/FormGroupQuery/index.md +43 -43
  89. package/src/base-client/components/common/JSONToTree/jsontotree.vue +271 -271
  90. package/src/base-client/components/common/LowCodeComponent/LowCodeEditorModal.vue +108 -108
  91. package/src/base-client/components/common/LowCodeComponent/LowCodeEditorPanel.vue +413 -413
  92. package/src/base-client/components/common/LowCodeComponent/LowCodePageOrganization.vue +502 -502
  93. package/src/base-client/components/common/LowCodeComponent/LowCodeRender.vue +728 -728
  94. package/src/base-client/components/common/LowCodeComponent/LowCodeRenderEnter.vue +29 -29
  95. package/src/base-client/components/common/LowCodeComponent/LowCodeUIStore.vue +219 -219
  96. package/src/base-client/components/common/LowCodeComponent/modal/lowCodeAddPageModal.vue +117 -117
  97. package/src/base-client/components/common/LowCodeComponent/modal/lowCodeCustomJSModal.vue +80 -80
  98. package/src/base-client/components/common/LowCodeComponent/modal/lowCodeEventEditorModal.vue +398 -398
  99. package/src/base-client/components/common/LowCodeComponent/modal/lowCodeLifeCycleModal.vue +65 -65
  100. package/src/base-client/components/common/LowCodeComponent/modal/lowCodeLogicCallbackModal.vue +64 -64
  101. package/src/base-client/components/common/LowCodeComponent/modal/lowCodeLogicParamModal.vue +73 -73
  102. package/src/base-client/components/common/LowCodeComponent/modal/lowCodeRunFunctionParamModal.vue +76 -76
  103. package/src/base-client/components/common/PersonSetting/PersonSetting.vue +208 -208
  104. package/src/base-client/components/common/PersonSetting/index.js +3 -3
  105. package/src/base-client/components/common/Recording/Recording.vue +243 -243
  106. package/src/base-client/components/common/Recording/index.js +3 -3
  107. package/src/base-client/components/common/Tree/Tree.vue +149 -149
  108. package/src/base-client/components/common/Tree/index.js +2 -2
  109. package/src/base-client/components/common/Upload/index.js +3 -3
  110. package/src/base-client/components/common/XAddForm/XAddForm.vue +113 -113
  111. package/src/base-client/components/common/XAddNativeForm/XAddNativeForm.vue +1146 -1146
  112. package/src/base-client/components/common/XAddNativeForm/index.md +146 -146
  113. package/src/base-client/components/common/XAddNativeFormOA/XAddNativeFormOA.vue +303 -303
  114. package/src/base-client/components/common/XAddNativeFormOA/index.js +3 -3
  115. package/src/base-client/components/common/XAddNativeFormOA/index.md +146 -146
  116. package/src/base-client/components/common/XAddReport/index.js +3 -3
  117. package/src/base-client/components/common/XAddReport/index.md +56 -56
  118. package/src/base-client/components/common/XBadge/XBadge.vue +94 -94
  119. package/src/base-client/components/common/XButtons/XButtonDemo.vue +28 -28
  120. package/src/base-client/components/common/XButtons/XButtons.vue +71 -71
  121. package/src/base-client/components/common/XButtons/index.js +3 -3
  122. package/src/base-client/components/common/XButtons/index.md +61 -61
  123. package/src/base-client/components/common/XCard/XCard.vue +64 -64
  124. package/src/base-client/components/common/XCardSet/XCardSet.vue +300 -0
  125. package/src/base-client/components/common/XCheckList/XCheckList.vue +106 -106
  126. package/src/base-client/components/common/XCheckList/XCheckListDemo.vue +41 -41
  127. package/src/base-client/components/common/XCollapse/XCollapse.vue +154 -0
  128. package/src/base-client/components/common/XConversation/XConversation.vue +87 -2
  129. package/src/base-client/components/common/XConversation/XConversationDemo.vue +28 -28
  130. package/src/base-client/components/common/XDataCard/XDataCard.vue +47 -21
  131. package/src/base-client/components/common/XDataCard/index.js +3 -3
  132. package/src/base-client/components/common/XDataCard/index.md +1 -1
  133. package/src/base-client/components/common/XDataDrawer/XDataDrawer.vue +180 -180
  134. package/src/base-client/components/common/XDataDrawer/index.js +3 -3
  135. package/src/base-client/components/common/XDataDrawer/index.md +41 -41
  136. package/src/base-client/components/common/XDatePicker/demo.vue +153 -153
  137. package/src/base-client/components/common/XDatePicker/index.vue +269 -259
  138. package/src/base-client/components/common/XDescriptions/XDescriptions.vue +169 -169
  139. package/src/base-client/components/common/XDescriptions/index.js +3 -3
  140. package/src/base-client/components/common/XDescriptions/index.md +83 -83
  141. package/src/base-client/components/common/XDetailsView/XDetailsView.vue +238 -238
  142. package/src/base-client/components/common/XDetailsView/index.js +3 -3
  143. package/src/base-client/components/common/XForm/XForm.vue +1 -1
  144. package/src/base-client/components/common/XForm/XFormItem.vue +1264 -1254
  145. package/src/base-client/components/common/XForm/XStatusButton.vue +54 -54
  146. package/src/base-client/components/common/XForm/XTreeSelect.vue +1 -2
  147. package/src/base-client/components/common/XForm/demo.vue +105 -0
  148. package/src/base-client/components/common/XForm/index.md +178 -178
  149. package/src/base-client/components/common/XForm/itemComponent/XClickChangeBtn/index.vue +49 -49
  150. package/src/base-client/components/common/XFormGroup/index.js +3 -3
  151. package/src/base-client/components/common/XFormGroup/index.md +38 -38
  152. package/src/base-client/components/common/XFormGroupDetails/XFormGroupDetails.vue +72 -72
  153. package/src/base-client/components/common/XFormGroupDetails/index.js +3 -3
  154. package/src/base-client/components/common/XFormTable/demo.vue +11 -3
  155. package/src/base-client/components/common/XFormTable/index.md +92 -92
  156. package/src/base-client/components/common/XImportExcel/XImportExcel.vue +167 -167
  157. package/src/base-client/components/common/XLabelSelect/XLabelSelect.vue +110 -110
  158. package/src/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue +35 -35
  159. package/src/base-client/components/common/XLicensePlate/XLicensePlate.vue +193 -193
  160. package/src/base-client/components/common/XLicensePlate/XLicensePlateDemo.vue +48 -48
  161. package/src/base-client/components/common/XPrint/Demo.vue +41 -41
  162. package/src/base-client/components/common/XPrint/OpenInvoice.vue +21 -21
  163. package/src/base-client/components/common/XPrint/PrintBill.vue +302 -302
  164. package/src/base-client/components/common/XPrint/PrintHtml.js +98 -98
  165. package/src/base-client/components/common/XPrint/css/hiPrintCss.js +359 -359
  166. package/src/base-client/components/common/XPrint/css/lodopCss.js +26 -26
  167. package/src/base-client/components/common/XPrint/css/print-lock.css +351 -351
  168. package/src/base-client/components/common/XPrint/index.vue +97 -97
  169. package/src/base-client/components/common/XRate/demo.vue +102 -0
  170. package/src/base-client/components/common/XRate/index.vue +136 -0
  171. package/src/base-client/components/common/XReport/XReport.vue +892 -892
  172. package/src/base-client/components/common/XReport/XReportDesign.vue +463 -463
  173. package/src/base-client/components/common/XReport/XReportJsonRender.vue +381 -381
  174. package/src/base-client/components/common/XReport/index.js +3 -3
  175. package/src/base-client/components/common/XReport/index.md +44 -44
  176. package/src/base-client/components/common/XReport/print.js +186 -186
  177. package/src/base-client/components/common/XReportDrawer/index.js +3 -3
  178. package/src/base-client/components/common/XReportGrid/XReport.vue +240 -305
  179. package/src/base-client/components/common/XReportGrid/XReportDemo.vue +0 -2
  180. package/src/base-client/components/common/XReportGrid/XReportDesign.vue +115 -345
  181. package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +100 -723
  182. package/src/base-client/components/common/XReportGrid/index.js +3 -3
  183. package/src/base-client/components/common/XReportGrid/index.md +44 -44
  184. package/src/base-client/components/common/XReportSlot/XReportSlot.vue +110 -110
  185. package/src/base-client/components/common/XReportSlot/index.js +3 -3
  186. package/src/base-client/components/common/XReportSlot/index.md +48 -48
  187. package/src/base-client/components/common/XSimpleDescriptions/XSimpleDescriptions.vue +166 -166
  188. package/src/base-client/components/common/XSimpleDescriptions/index.js +3 -3
  189. package/src/base-client/components/common/XSimpleDescriptions/index.md +7 -7
  190. package/src/base-client/components/common/XStepView/XStepView.vue +252 -252
  191. package/src/base-client/components/common/XStepView/index.js +3 -3
  192. package/src/base-client/components/common/XStepView/index.md +31 -31
  193. package/src/base-client/components/common/XTab/XTabDemo.vue +22 -22
  194. package/src/base-client/components/common/XTab/index.js +3 -3
  195. package/src/base-client/components/common/XTable/CustomFuncCel.vue +51 -51
  196. package/src/base-client/components/common/XTable/TableCellRenderer.vue +161 -161
  197. package/src/base-client/components/common/XTable/XTable.vue +3 -0
  198. package/src/base-client/components/common/XTable/XTableWrapper.vue +244 -240
  199. package/src/base-client/components/common/XTable/index.md +255 -255
  200. package/src/base-client/components/common/XTagGroup/index.vue +52 -52
  201. package/src/base-client/components/common/XTree/XTree.vue +424 -424
  202. package/src/base-client/components/common/XTree/index.js +3 -3
  203. package/src/base-client/components/common/XTree/index.md +36 -36
  204. package/src/base-client/components/common/XTreeOne/XTreeOne.vue +113 -113
  205. package/src/base-client/components/common/XTreeOne/XTreeOnePro.vue +128 -128
  206. package/src/base-client/components/common/richTextModal/index.vue +56 -56
  207. package/src/base-client/components/common/richTextModal/richDemo.vue +48 -48
  208. package/src/base-client/components/his/XHDescriptions/XHDescriptions.vue +172 -0
  209. package/src/base-client/components/his/XHisEditor/XHisEditor.vue +360 -359
  210. package/src/base-client/components/his/XHisEditor/index.js +3 -3
  211. package/src/base-client/components/index.js +51 -51
  212. package/src/base-client/components/layout/XPageView/XErrorView.vue +11 -11
  213. package/src/base-client/components/layout/XPageView/XPageView.vue +155 -155
  214. package/src/base-client/components/layout/XPageView/index.js +3 -3
  215. package/src/base-client/components/layout/XPageView/index.md +38 -38
  216. package/src/base-client/components/layout/XTreeView/XTreeView.vue +130 -130
  217. package/src/base-client/components/layout/XTreeView/index.js +3 -3
  218. package/src/base-client/components/layout/XTreeView/index.md +46 -46
  219. package/src/base-client/components/system/DictionaryDetailsView/DictionaryDetailsView.vue +232 -232
  220. package/src/base-client/components/system/QueryParamsDetailsView/QueryParamsDetailsView.vue +281 -281
  221. package/src/base-client/plugins/AppData.js +121 -121
  222. package/src/base-client/plugins/Config.js +19 -19
  223. package/src/base-client/plugins/GetLoginInfoService.js +183 -183
  224. package/src/base-client/plugins/Recording.js +258 -258
  225. package/src/base-client/plugins/index.js +23 -23
  226. package/src/base-client/plugins/tabs-page-plugin.js +39 -39
  227. package/src/bootstrap.js +42 -42
  228. package/src/components/Charts/Bar.vue +62 -62
  229. package/src/components/Charts/ChartCard.vue +134 -134
  230. package/src/components/Charts/Liquid.vue +67 -67
  231. package/src/components/Charts/MiniArea.vue +39 -39
  232. package/src/components/Charts/MiniBar.vue +39 -39
  233. package/src/components/Charts/MiniProgress.vue +75 -75
  234. package/src/components/Charts/MiniSmoothArea.vue +40 -40
  235. package/src/components/Charts/Radar.vue +68 -68
  236. package/src/components/Charts/RankList.vue +77 -77
  237. package/src/components/Charts/TagCloud.vue +113 -113
  238. package/src/components/Charts/TransferBar.vue +64 -64
  239. package/src/components/Charts/Trend.vue +82 -82
  240. package/src/components/Charts/chart.less +12 -12
  241. package/src/components/Charts/smooth.area.less +13 -13
  242. package/src/components/CodeMirror/inedx.vue +118 -118
  243. package/src/components/CodeMirror/setting.js +40 -40
  244. package/src/components/FilePreview/FilePreview.vue +166 -166
  245. package/src/components/HeightScanner/index.vue +571 -571
  246. package/src/components/NumberInfo/NumberInfo.vue +54 -54
  247. package/src/components/NumberInfo/index.js +3 -3
  248. package/src/components/NumberInfo/index.less +54 -54
  249. package/src/components/NumberInfo/index.md +43 -43
  250. package/src/components/card/ChartCard.vue +79 -79
  251. package/src/components/chart/Bar.vue +60 -60
  252. package/src/components/chart/MiniArea.vue +67 -67
  253. package/src/components/chart/MiniBar.vue +59 -59
  254. package/src/components/chart/MiniProgress.vue +57 -57
  255. package/src/components/chart/Radar.vue +80 -80
  256. package/src/components/chart/RankingList.vue +60 -60
  257. package/src/components/chart/Trend.vue +79 -79
  258. package/src/components/chart/index.less +9 -9
  259. package/src/components/checkbox/ColorCheckbox.vue +157 -157
  260. package/src/components/checkbox/ImgCheckbox.vue +117 -117
  261. package/src/components/checkbox/ImgCheckboxGroup.vue +76 -76
  262. package/src/components/checkbox/index.js +9 -9
  263. package/src/components/exception/ExceptionPage.vue +70 -70
  264. package/src/components/g2Charts/constants.js +202 -202
  265. package/src/components/g2Charts/demo.vue +808 -808
  266. package/src/components/g2Charts/designer.vue +228 -228
  267. package/src/components/g2Charts/designerBaseConfig.vue +61 -61
  268. package/src/components/g2Charts/designerDataConfig.vue +259 -259
  269. package/src/components/g2Charts/designerStyleConfig.vue +16 -16
  270. package/src/components/g2Charts/index.vue +397 -397
  271. package/src/components/index.js +36 -36
  272. package/src/components/input/IInput.vue +66 -66
  273. package/src/components/menu/SideMenu.vue +75 -75
  274. package/src/components/menu/menu.js +273 -273
  275. package/src/components/setting/Setting.vue +234 -234
  276. package/src/components/tool/AStepItem.vue +60 -60
  277. package/src/config/CreateQueryConfig.js +325 -325
  278. package/src/config/default/antd.config.js +89 -89
  279. package/src/config/default/setting.config.js +55 -55
  280. package/src/font-style/font.css +4 -4
  281. package/src/layouts/CommonLayout.vue +56 -56
  282. package/src/layouts/GridView.vue +43 -45
  283. package/src/layouts/PageLayout.vue +151 -151
  284. package/src/layouts/SinglePageView.vue +136 -136
  285. package/src/layouts/header/AdminHeader.vue +132 -132
  286. package/src/layouts/header/HeaderNotice.vue +177 -177
  287. package/src/layouts/header/InstitutionDetail.vue +181 -181
  288. package/src/layouts/tabs/TabsHead.vue +189 -189
  289. package/src/layouts/tabs/TabsView.vue +389 -389
  290. package/src/lib.js +1 -1
  291. package/src/logic/plugins/common/DateTools.js +3 -0
  292. package/src/logic/plugins/common/VueTools.js +30 -0
  293. package/src/logic/plugins/index.js +3 -1
  294. package/src/main.js +34 -34
  295. package/src/mock/extend/index.js +84 -84
  296. package/src/mock/goods/index.js +108 -108
  297. package/src/pages/AMisDemo/AMisDemo.vue +325 -325
  298. package/src/pages/AMisDemo/AMisDemo2.vue +74 -74
  299. package/src/pages/DefaultExample/index.vue +77 -77
  300. package/src/pages/DynamicStatistics/ChartSelector.vue +331 -331
  301. package/src/pages/DynamicStatistics/DataTabs.vue +83 -83
  302. package/src/pages/DynamicStatistics/DynamicTable.vue +128 -128
  303. package/src/pages/DynamicStatistics/EvaluationArea.vue +69 -69
  304. package/src/pages/DynamicStatistics/FavoriteList.vue +50 -50
  305. package/src/pages/DynamicStatistics/QuestionHistoryAndFavorites.vue +591 -591
  306. package/src/pages/DynamicStatistics/SearchBar.vue +192 -192
  307. package/src/pages/DynamicStatistics/index.vue +282 -282
  308. package/src/pages/Example/childIndex.vue +15 -15
  309. package/src/pages/Example/index.vue +30 -30
  310. package/src/pages/LogicCallExample/index.vue +10 -0
  311. package/src/pages/NewDynamicStatistics/ChartSelector.vue +331 -331
  312. package/src/pages/NewDynamicStatistics/DataTabs.vue +122 -122
  313. package/src/pages/NewDynamicStatistics/DynamicTable.vue +128 -128
  314. package/src/pages/NewDynamicStatistics/EvaluationArea.vue +69 -69
  315. package/src/pages/NewDynamicStatistics/FavoriteList.vue +50 -50
  316. package/src/pages/NewDynamicStatistics/QuestionHistoryAndFavorites.vue +289 -289
  317. package/src/pages/NewDynamicStatistics/SearchBar.vue +193 -193
  318. package/src/pages/NewDynamicStatistics/index.vue +258 -258
  319. package/src/pages/Recording/index.vue +77 -77
  320. package/src/pages/ServiceReview/index.vue +284 -284
  321. package/src/pages/SubExample/index.vue +26 -26
  322. package/src/pages/WorkflowDetail/WorkFlowDemo.vue +47 -32
  323. package/src/pages/WorkflowDetail/WorkflowDetail.vue +235 -230
  324. package/src/pages/WorkflowDetail/WorkflowPageDetail/LeaveMessage.vue +131 -131
  325. package/src/pages/WorkflowDetail/WorkflowPageDetail/TrimTextTail.vue +23 -23
  326. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformation.vue +302 -302
  327. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformationDetails.vue +276 -276
  328. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +876 -864
  329. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandleReso.vue +997 -997
  330. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowTimeline.vue +222 -222
  331. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkOrderParentDetails.vue +233 -233
  332. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkflowDetailResso.vue +261 -261
  333. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkflowListResolution.vue +248 -248
  334. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkflowLog.vue +73 -73
  335. package/src/pages/XPageViewExample/index.vue +38 -38
  336. package/src/pages/XReportView/index.vue +64 -64
  337. package/src/pages/XTreeOneProExample/index.vue +67 -67
  338. package/src/pages/dashboard/workplace/WorkPlace.vue +141 -141
  339. package/src/pages/login/Login.vue +378 -378
  340. package/src/pages/login/LoginV3.vue +389 -389
  341. package/src/pages/lowCode/lowCodeEditor.vue +1219 -1219
  342. package/src/pages/lowCode/lowCodeRenderPage.vue +43 -43
  343. package/src/pages/report/ReportTable.js +124 -124
  344. package/src/pages/resourceManage/orgListManage.vue +98 -98
  345. package/src/pages/system/dictionary/index.vue +44 -44
  346. package/src/pages/system/monitor/loginInfor/index.vue +37 -37
  347. package/src/pages/system/monitor/operLog/index.vue +37 -37
  348. package/src/pages/system/settings/modifyPassword.vue +117 -117
  349. package/src/pages/system/ticket/index.vue +480 -480
  350. package/src/pages/system/ticket/submitTicketSuccess.vue +484 -484
  351. package/src/pages/userInfoDetailManage/ChangeMeterRecordQuery/index.vue +64 -64
  352. package/src/pages/userInfoDetailManage/FillCardRecordQuery/index.vue +76 -76
  353. package/src/pages/userInfoDetailManage/FillGasRecordQuery/index.vue +74 -74
  354. package/src/pages/userInfoDetailManage/InfoChangeRecordQuery/index.vue +64 -64
  355. package/src/pages/userInfoDetailManage/InstructRecordQuery/index.vue +64 -64
  356. package/src/pages/userInfoDetailManage/MachineRecordQuery/index.vue +74 -74
  357. package/src/pages/userInfoDetailManage/MeterParamRecordQuery/index.vue +64 -64
  358. package/src/pages/userInfoDetailManage/OtherChargeRecordQuery/index.vue +74 -74
  359. package/src/pages/userInfoDetailManage/TransferRecordQuery/index.vue +66 -66
  360. package/src/pages/userInfoDetailManage/UserChargeRecordQuery/index.vue +92 -92
  361. package/src/pages/userInfoDetailManage/UserHandRecordQuery/index.vue +86 -86
  362. package/src/pages/userInfoDetailManage/UserRecordQuery/index.vue +73 -73
  363. package/src/pages/userInfoDetailManage/WatchCollectionRecordQuery/index.vue +64 -64
  364. package/src/pages/userInfoDetailManage/index.vue +82 -82
  365. package/src/pages/userInfoDetailManage/userInfoDetailQueryTabs.vue +132 -132
  366. package/src/plugins/EventLogPlugin.js +33 -33
  367. package/src/plugins/FindParentsData.js +17 -17
  368. package/src/plugins/HiPrintPlugin.js +164 -124
  369. package/src/router/async/config.async.js +35 -35
  370. package/src/router/async/router.map.js +117 -116
  371. package/src/router.js +19 -19
  372. package/src/services/DataModel.js +30 -30
  373. package/src/services/LodopFuncs.js +137 -137
  374. package/src/services/api/TicketDetailsViewApi.js +46 -46
  375. package/src/services/api/cas.js +79 -79
  376. package/src/services/api/common.js +346 -346
  377. package/src/services/api/entity.js +18 -18
  378. package/src/services/api/index.js +17 -17
  379. package/src/services/api/restTools.js +145 -145
  380. package/src/services/api/workFlow.js +63 -63
  381. package/src/services/apiService.js +16 -16
  382. package/src/services/v3Api.js +116 -116
  383. package/src/store/modules/account.js +115 -115
  384. package/src/store/modules/index.js +5 -5
  385. package/src/store/modules/lowCode.js +33 -33
  386. package/src/store/modules/setting.js +119 -119
  387. package/src/theme/default/style.less +58 -58
  388. package/src/theme/global.less +159 -159
  389. package/src/utils/EncryptUtil.js +6 -7
  390. package/src/utils/authority-utils.js +85 -85
  391. package/src/utils/errorCode.js +6 -6
  392. package/src/utils/formatter.js +74 -74
  393. package/src/utils/htmlToPDF.js +108 -108
  394. package/src/utils/htmlToPDFApi.js +5 -5
  395. package/src/utils/indexedDB.js +3 -1
  396. package/src/utils/login.js +188 -188
  397. package/src/utils/lowcode/lowcodeComponentMixin.js +120 -120
  398. package/src/utils/lowcode/lowcodeLog.js +29 -29
  399. package/src/utils/lowcode/lowcodeUtils.js +373 -373
  400. package/src/utils/lowcode/registerComponentForEditor.js +1 -1
  401. package/src/utils/lowcode/registerComponentForRender.js +11 -11
  402. package/src/utils/map-utils.js +47 -47
  403. package/src/utils/reg.js +95 -95
  404. package/src/utils/request.js +4 -8
  405. package/src/utils/routerUtil.js +17 -0
  406. package/src/utils/runEvalFunction.js +14 -14
  407. package/src/utils/theme-color-replacer-extend.js +92 -92
  408. package/src/utils/util.js +329 -329
  409. package/src/utils/waterMark.js +31 -31
  410. package/test/Amis.spec.js +164 -164
  411. package/test/Tree.spec.js +168 -168
  412. package/test/myDialog.spec.js +47 -47
  413. package/test/request.test.js +17 -17
  414. package/test/util.test.js +53 -53
  415. package/test/v3Api.test.js +1984 -1984
  416. package//350/277/201/347/247/273/346/227/245/345/277/227.md +15 -15
  417. package/.babelrc +0 -3
  418. package/src/base-client/components/common/XReportGrid/XReportJsonRender.vue +0 -380
@@ -2,85 +2,37 @@
2
2
  <div>
3
3
  <!-- 骨架屏 -->
4
4
  <a-card v-if="showSkeleton">
5
- <a-skeleton active/>
5
+ <a-skeleton active />
6
6
  </a-card>
7
- <template v-if="noPadding">
8
- <!-- 主体表格 -->
9
- <XReportDesign
10
- @updateImg="updateImg"
11
- @selectRow="selectRow"
12
- @slotRendered="slotRendered"
13
- v-if="scanFinish"
14
- :show-img-in-cell="showImgInCell"
15
- :img-prefix="imgPrefix"
16
- :use-oss-for-img="useOssForImg"
17
- :display-only="displayOnly"
18
- :config="type === 'display' ? originalConfig : activeConfig"
19
- :slot-config-name="type === 'display' ? undefined : activatedSlotName"
20
- :for-display="type === 'display'"
21
- ref="XReportDesign"
22
- :server-name="serverName"
23
- :env="env"
24
- :show-title="showTitle"
25
- :no-padding="noPadding"
26
- :no-top-border="noTopBorder"
27
- :show-images="hasImages"
28
- :image-list="imageList">
29
- </XReportDesign>
30
-
31
- <a-row type="flex" justify="end" v-if="showSaveButton">
32
- <a-space>
33
- <a-button @click="saveConfig">
34
- 提交
35
- </a-button>
36
- <a-button @click="cancelConfig">
37
- 取消
38
- </a-button>
39
- </a-space>
40
- </a-row>
41
-
42
- </template>
43
- <template v-else>
44
- <!-- 用以包裹整个页面 -->
45
- <div v-if="!showSkeleton">
46
- <!-- 切换菜单 -->
47
- <a-radio-group
48
- v-model="type"
49
- default-value="a"
50
- button-style="solid"
51
- @change="tabChanged"
52
- v-show="!onlyDisplay && editMode">
53
- <a-radio-button value="design" v-if="!onlyDisplay">
54
- 设计
55
- </a-radio-button>
56
- <a-radio-button value="display" style="border-radius: 0">
57
- 预览
58
- </a-radio-button>
59
- </a-radio-group>
60
- <!-- 主体表格 -->
61
- <XReportDesign
62
- v-if="scanFinish"
63
- @updateImg="updateImg"
64
- @selectRow="selectRow"
65
- @slotRendered="slotRendered"
66
- :show-img-in-cell="showImgInCell"
67
- :img-prefix="imgPrefix"
68
- :use-oss-for-img="useOssForImg"
69
- :display-only="displayOnly"
70
- :config="type === 'display' ? originalConfig : activeConfig"
71
- :slot-config-name="type === 'display' ? undefined : activatedSlotName"
72
- :for-display="type === 'display'"
73
- :no-padding="noPadding"
74
- :no-top-border="noTopBorder"
75
- :show-title="showTitle"
76
- ref="XReportDesign"
77
- :server-name="serverName"
78
- :env="env"
79
- :show-images="hasImages"
80
- :image-list="imageList">
81
- </XReportDesign>
82
- </div>
83
- </template>
7
+ <!-- 主体表格 -->
8
+ <XReportDesign
9
+ @selectRow="selectRow"
10
+ @slotRendered="slotRendered"
11
+ v-if="scanFinish"
12
+ :display-only="displayOnly"
13
+ :config="originalConfig"
14
+ :slot-config-name="undefined"
15
+ :for-display="true"
16
+ ref="XReportDesign"
17
+ :server-name="serverName"
18
+ :env="env"
19
+ :show-title="showTitle"
20
+ >
21
+ </XReportDesign>
22
+ <a-row
23
+ type="flex"
24
+ justify="end"
25
+ v-if="showSaveButton"
26
+ >
27
+ <a-space>
28
+ <a-button @click="saveConfig">
29
+ 提交
30
+ </a-button>
31
+ <a-button @click="cancelConfig">
32
+ 取消
33
+ </a-button>
34
+ </a-space>
35
+ </a-row>
84
36
  <!-- 弹出框 -->
85
37
  <x-add-report
86
38
  :env="env"
@@ -96,11 +48,9 @@
96
48
 
97
49
  <script>
98
50
  // 转PDF用
99
- import HtmlToPdf from '@vue2-client/utils/htmlToPDF'
100
51
  import { mapState } from 'vuex'
101
52
  import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
102
53
  import XReportDesign from './XReportDesign.vue'
103
- import { printElement } from './print'
104
54
  import { executeStrFunctionByContext } from '@vue2-client/utils/runEvalFunction'
105
55
 
106
56
  // import XAddReport from '@vue2-client/base-client/components/common/XAddReport'
@@ -112,107 +62,109 @@ export default {
112
62
  type: Array,
113
63
  default: () => {
114
64
  return []
115
- }
65
+ },
116
66
  },
117
67
  // 控制用户权限,user和admin
118
68
  authority: {
119
69
  type: String,
120
- default: 'user'
70
+ default: 'user',
121
71
  },
122
72
  // 是否为编辑模式
123
73
  editMode: {
124
74
  type: Boolean,
125
- default: true
75
+ default: true,
126
76
  },
127
77
  // 配置名
128
78
  configName: {
129
79
  type: String,
130
- required: true
80
+ required: true,
131
81
  },
132
82
  // 插槽名
133
83
  activatedSlotName: {
134
84
  type: String,
135
- default: undefined
85
+ default: undefined,
136
86
  },
137
87
  // 本地配��,调试用
138
88
  localConfig: {
139
89
  type: Object,
140
- default: undefined
90
+ default: undefined,
141
91
  },
142
92
  // 兼容老版本配置
143
93
  dontFormat: {
144
94
  type: Boolean,
145
- default: true
95
+ default: true,
146
96
  },
147
97
  showImgInCell: {
148
98
  type: Boolean,
149
- default: false
99
+ default: false,
150
100
  },
151
101
  // 数据
152
102
  configData: {
153
103
  type: Object,
154
- default: undefined
104
+ default: undefined,
155
105
  },
156
106
  // 命名空间
157
107
  serverName: {
158
108
  type: String,
159
- default: process.env.VUE_APP_SYSTEM_NAME
109
+ default: process.env.VUE_APP_SYSTEM_NAME,
160
110
  },
161
111
  // 环境
162
112
  env: {
163
113
  type: String,
164
- default: 'prod'
114
+ default: 'prod',
165
115
  },
166
116
  // 只做展示
167
117
  displayOnly: {
168
118
  type: Boolean,
169
- default: true
119
+ default: true,
170
120
  },
171
121
  // 表格没有边距
172
122
  noPadding: {
173
123
  type: Boolean,
174
- default: true
124
+ default: true,
175
125
  },
176
126
  // 表格没有上边框,与noPadding搭配可以实现连续表格
177
127
  noTopBorder: {
178
128
  type: Boolean,
179
- default: false
129
+ default: false,
180
130
  },
181
131
  // 是否展示标题
182
132
  showTitle: {
183
133
  type: Boolean,
184
- default: true
134
+ default: true,
185
135
  },
186
136
  // 是否展示保存按钮
187
137
  showSaveButton: {
188
138
  type: Boolean,
189
- default: false
139
+ default: false,
190
140
  },
191
141
  // 是否将组件注册到外层提供的容器中,方便外侧统一保存
192
142
  registerMap: {
193
143
  type: Array,
194
- default: undefined
144
+ default: undefined,
195
145
  },
196
146
  // 是否小插件模式,小插件模式不会有各种边境
197
147
  isWidget: {
198
148
  type: Boolean,
199
- default: false
149
+ default: false,
200
150
  },
201
151
  // 图片是否使用OSS来保存
202
152
  useOssForImg: {
203
153
  type: Boolean,
204
- default: true
154
+ default: true,
205
155
  },
206
156
  // 图片上传后添加前缀
207
157
  imgPrefix: {
208
158
  type: String,
209
- default: undefined
210
- }
159
+ default: undefined,
160
+ },
211
161
  },
212
162
  components: {
213
- XAddReport: () => import('@vue2-client/base-client/components/common/XAddReport'),
214
- XReportDrawer: () => import('@vue2-client/base-client/components/common/XReportDrawer'),
215
- XReportDesign
163
+ XAddReport: () =>
164
+ import('@vue2-client/base-client/components/common/XAddReport'),
165
+ XReportDrawer: () =>
166
+ import('@vue2-client/base-client/components/common/XReportDrawer'),
167
+ XReportDesign,
216
168
  },
217
169
  data () {
218
170
  return {
@@ -245,7 +197,7 @@ export default {
245
197
  dataCache: undefined,
246
198
  // 判断哪些数据被更改了,存储对应的key
247
199
  diff: [],
248
- globalData: {}
200
+ globalData: {},
249
201
  }
250
202
  },
251
203
  beforeDestroy () {
@@ -255,10 +207,15 @@ export default {
255
207
  // 如果配置名更改了,重新获取配置
256
208
  configName (val) {
257
209
  if (val) {
258
- getConfigByName(this.configName, undefined, res => {
259
- this.config = res
260
- this.configInit()
261
- }, this.env === 'dev')
210
+ getConfigByName(
211
+ this.configName,
212
+ undefined,
213
+ (res) => {
214
+ this.config = res
215
+ this.configInit()
216
+ },
217
+ this.env === 'dev'
218
+ )
262
219
  }
263
220
  },
264
221
  // 如果本地配置更改了,重新初始化
@@ -270,13 +227,14 @@ export default {
270
227
  this.config = val
271
228
  this.configInit()
272
229
  }
273
- }
230
+ },
274
231
  },
275
232
  },
276
233
  provide () {
277
234
  return {
278
235
  runLogic: runLogic,
279
236
  openDialog: this.openDialog,
237
+ openDrawer: this.openDrawer,
280
238
  registerComponent: this.registerComponent,
281
239
  getComponentByName: this.getComponentByName,
282
240
  getParentComponentByName: this.getComponentByName,
@@ -311,12 +269,20 @@ export default {
311
269
  const outputList = []
312
270
  for (const lst of inputList) {
313
271
  // 如果列表为空或只有一个元素,则所有元素相等。比较列表中每个元素是否与第一个元素相等
314
- if (lst.length >= 1 && !lst.every(x => Array.isArray(x) || Array.isArray(lst[0]) || x.rowSpan === lst[0].rowSpan)) {
315
- operationList = lst
316
- break // 使用 break 退出整个循环
272
+ if (
273
+ lst.length >= 1 &&
274
+ !lst.every(
275
+ (x) =>
276
+ Array.isArray(x) ||
277
+ Array.isArray(lst[0]) ||
278
+ x.rowSpan === lst[0].rowSpan
279
+ )
280
+ ) {
281
+ operationList = lst
282
+ break // 使用 break 退出整个循环
317
283
  } else {
318
- // 被操作的行
319
- operationIndex += 1
284
+ // 被操作的行
285
+ operationIndex += 1
320
286
  }
321
287
  }
322
288
 
@@ -324,62 +290,61 @@ export default {
324
290
 
325
291
  // 没有需要合并的行,直接返回
326
292
  if (operationList.length === 0) {
327
- return inputList
293
+ return inputList
328
294
  } else {
329
- // 当前行的最大值
330
- const maxRow = Math.max(...operationList.map(item => item.rowSpan))
331
- let mergeIndexCol = 0
332
- for (let index = 0; index < operationList.length; index++) {
333
- const row = operationList[index]
334
- let rowSpan = row.rowSpan
335
- // 需要合并的行
336
- let mergeIndexRow = operationIndex + 1
337
- // 存放合并后的行
338
- const rows = []
339
- // 添加当前行
340
- if (rowSpan < maxRow && mergeIndexRow < inputList.length) {
341
- rows.push([row])
342
- }
343
- // 当前需要被操作并且操作行没有超出列表的高度
344
- while (rowSpan < maxRow && mergeIndexRow < inputList.length) {
345
- rowSpan += inputList[mergeIndexRow][mergeIndexCol].rowSpan
346
- // 放一行到合并结果
347
- rows.push([inputList[mergeIndexRow][mergeIndexCol]])
348
- if (mergeIndexRow > maxMergeRow) {
349
- // 记录最多操作到了哪行
350
- maxMergeRow = mergeIndexRow
351
- }
352
- mergeIndexRow++
353
- }
354
- // operation_list赋值, 没有变化的,不处理
355
- if (rows.length !== 0) {
356
- operationList[index] = rows
357
- }
358
- if (row.rowSpan !== maxRow) {
359
- mergeIndexCol++ // 操作列转为下一列
360
- }
295
+ // 当前行的最大值
296
+ const maxRow = Math.max(...operationList.map((item) => item.rowSpan))
297
+ let mergeIndexCol = 0
298
+ for (let index = 0; index < operationList.length; index++) {
299
+ const row = operationList[index]
300
+ let rowSpan = row.rowSpan
301
+ // 需要合并的行
302
+ let mergeIndexRow = operationIndex + 1
303
+ // 存放合并后的行
304
+ const rows = []
305
+ // 添加当前行
306
+ if (rowSpan < maxRow && mergeIndexRow < inputList.length) {
307
+ rows.push([row])
308
+ }
309
+ // 当前需要被操作并且操作行没有超出列表的高度
310
+ while (rowSpan < maxRow && mergeIndexRow < inputList.length) {
311
+ rowSpan += inputList[mergeIndexRow][mergeIndexCol].rowSpan
312
+ // 放一行到合并结果
313
+ rows.push([inputList[mergeIndexRow][mergeIndexCol]])
314
+ if (mergeIndexRow > maxMergeRow) {
315
+ // 记录最多操作到了哪行
316
+ maxMergeRow = mergeIndexRow
317
+ }
318
+ mergeIndexRow++
319
+ }
320
+ // operation_list赋值, 没有变化的,不处理
321
+ if (rows.length !== 0) {
322
+ operationList[index] = rows
361
323
  }
324
+ if (row.rowSpan !== maxRow) {
325
+ mergeIndexCol++ // 操作列转为下一列
326
+ }
327
+ }
362
328
  }
363
329
 
364
330
  // 组成outputlist, operation_list前部填入
365
331
  let putindex = 0
366
332
  while (operationIndex > 0) {
367
- outputList.push(inputList[putindex])
368
- putindex++
369
- operationIndex -= 1
333
+ outputList.push(inputList[putindex])
334
+ putindex++
335
+ operationIndex -= 1
370
336
  }
371
337
 
372
338
  outputList.push(operationList)
373
339
 
374
340
  // 组成outputlist, operation_list后部填入
375
341
  while (maxMergeRow < inputList.length - 1) {
376
- outputList.push(inputList[maxMergeRow + 1])
377
- maxMergeRow += 1
342
+ outputList.push(inputList[maxMergeRow + 1])
343
+ maxMergeRow += 1
378
344
  }
379
345
 
380
346
  return this.transformArray(outputList)
381
347
  },
382
-
383
348
  // 根据名字从注册到组件中获取组件
384
349
  getComponentByName (componentName) {
385
350
  console.log('内部取组件', this.$options.name, componentName)
@@ -406,7 +371,7 @@ export default {
406
371
  selectedId: selectedId,
407
372
  mixinData: mixinData,
408
373
  outEnv: outEnv,
409
- attr
374
+ attr,
410
375
  })
411
376
  },
412
377
  openDrawer (configName, selectedId, mixinData, outEnv = {}, attr = {}) {
@@ -416,7 +381,7 @@ export default {
416
381
  selectedId,
417
382
  mixinData,
418
383
  outEnv,
419
- attr
384
+ attr,
420
385
  })
421
386
  },
422
387
  // 向外暴露图片修改后的数据,某些外部需要自己管理图片的保存与修改
@@ -431,15 +396,19 @@ export default {
431
396
  tempData = this.originalConfig.data
432
397
  } else {
433
398
  const tempDataKeys = Object.keys(this.activeConfig.tempData)
434
- tempDataKeys.forEach(key => {
435
- this.changeDeepObject(this.activeConfig.data, key, this.activeConfig.tempData[key])
399
+ tempDataKeys.forEach((key) => {
400
+ this.changeDeepObject(
401
+ this.activeConfig.data,
402
+ key,
403
+ this.activeConfig.tempData[key]
404
+ )
436
405
  })
437
406
  tempData = this.activeConfig.data
438
407
  }
439
408
  // 对比数据的差异
440
409
  this.diff = []
441
410
  this.compareProps(tempData, this.dataCache)
442
- this.diff.forEach(eachDiff => {
411
+ this.diff.forEach((eachDiff) => {
443
412
  const arr = eachDiff.split('.')
444
413
  let targetData = tempData[arr[0]]
445
414
  if (arr.length !== 1) {
@@ -465,7 +434,10 @@ export default {
465
434
  this.diff.push(path + key)
466
435
  }
467
436
  // 如果都是对象,并且存在同样的key,递归子key
468
- } else if (typeof obj1[key] === 'object' && typeof obj2[key] === 'object') {
437
+ } else if (
438
+ typeof obj1[key] === 'object' &&
439
+ typeof obj2[key] === 'object'
440
+ ) {
469
441
  this.compareProps(obj1[key], obj2[key], path + key + '.')
470
442
  // 如果不是obj,对比其数据
471
443
  } else if (obj1[key] !== obj2[key]) {
@@ -520,9 +492,9 @@ export default {
520
492
  const slotsDeclare = config.slotsDeclare
521
493
  const total = slotsDeclare.length
522
494
  let count = 0
523
- slotsDeclare.forEach(declare => {
524
- config.columns.forEach(row => {
525
- row.forEach(cell => {
495
+ slotsDeclare.forEach((declare) => {
496
+ config.columns.forEach((row) => {
497
+ row.forEach((cell) => {
526
498
  if (cell.slotConfig === declare) {
527
499
  count++
528
500
  }
@@ -532,66 +504,15 @@ export default {
532
504
 
533
505
  return count === total
534
506
  },
535
- // 切换了标签页
536
- tabChanged (key) {
537
- this.scanFinish = false
538
- this.originalConfig.data = { ...this.originalConfig.data, ...this.config.data }
539
- this.config.data = this.originalConfig.data
540
- if (this.type === 'display') {
541
- const tempDataKeys = Object.keys(this.activeConfig.tempData)
542
- tempDataKeys.forEach(key => {
543
- this.changeDeepObject(this.activeConfig.data, key, this.activeConfig.tempData[key])
544
- })
545
- let count = 0
546
- this.imageList = []
547
- const keys = Object.keys(this.config.data.images)
548
- keys.forEach(key => {
549
- if (this.config.data.images[key].length > 0) {
550
- this.imageList = [...this.imageList, ...this.config.data.images[key]]
551
- count++
552
- }
553
- })
554
- this.hasImages = count > 0
555
- } else {
556
- this.hasImages = false
557
- }
558
- this.$nextTick(() => {
559
- this.scanFinish = true
560
- })
561
- },
562
- // 获取当前日期,为保存文件命名用
563
- getDate () {
564
- const currentDate = new Date()
565
-
566
- const year = currentDate.getFullYear()
567
- const month = String(currentDate.getMonth() + 1).padStart(2, '0')
568
- const day = String(currentDate.getDate()).padStart(2, '0')
569
-
570
- const formattedDate = `${year}_${month}_${day}`
571
-
572
- return formattedDate
573
- },
574
- // 打印
575
- printDocument () {
576
- // x-report
577
- const printContent = window.rawDocument.getElementById('printReady')
578
- printElement(printContent)
579
- this.$message.success('操作成功!')
580
- },
581
- // 导出PDF
582
- exportPDF () {
583
- const date = this.getDate()
584
- let title = this.config.title
585
- title = title.replace(/<[^>]+>/g, '')
586
- const fileName = date + '' + title
587
- HtmlToPdf.getPdf(fileName, '#printReady')
588
- },
589
507
  // 用于分割配置中的colums,将需要处理的数组提取出来
590
508
  formatConfigRow () {
591
509
  for (let i = 0; i < this.config.columns.length; i++) {
592
510
  // 对原始数组进行递归,依次将该位置拆分为三个部分,当前处理位置之前的,当前处理位置,当前处理位置之后的
593
511
  const before = this.config.columns.slice(0, i)
594
- const after = this.config.columns.slice(i + 1, this.config.columns.length)
512
+ const after = this.config.columns.slice(
513
+ i + 1,
514
+ this.config.columns.length
515
+ )
595
516
 
596
517
  // 将当前处理的数组交给处理的方法
597
518
  const x = this.checkRow(this.config.columns[i])
@@ -601,7 +522,7 @@ export default {
601
522
  // 拼接之前的数组
602
523
  if (before.length > 0) {
603
524
  if (before.length >= 1) {
604
- before.forEach(item => {
525
+ before.forEach((item) => {
605
526
  newArr.push(item)
606
527
  })
607
528
  } else {
@@ -625,7 +546,7 @@ export default {
625
546
  // 拼接之后的数组
626
547
  if (after.length > 0) {
627
548
  if (after.length >= 1) {
628
- after.forEach(item => {
549
+ after.forEach((item) => {
629
550
  newArr.push(item)
630
551
  })
631
552
  } else {
@@ -675,21 +596,22 @@ export default {
675
596
  let forEachCount = 0
676
597
 
677
598
  // 标记所有数据
678
- rowArr.forEach(cell => {
599
+ rowArr.forEach((cell) => {
679
600
  forEachCount++
680
601
  // 如果该行没有rowspan则默认其为1,不要影响统计结果
681
602
  if (!cell.rowSpan) {
682
603
  cell.rowSpan = 0
683
604
  }
684
605
 
685
- if (cell.text && total !== 0) { // 如果遇到了下一个声明行,证明rowspan少了一行,需要补充一个占位格
606
+ if (cell.text && total !== 0) {
607
+ // 如果遇到了下一个声明行,证明rowspan少了一行,需要补充一个占位格
686
608
  const nullObj = {
687
609
  type: 'placeHolderColumn',
688
610
  order: subRowIndex,
689
611
  noBoarder: true,
690
612
  needSplit: true,
691
613
  colSpan: preColSpan,
692
- dontShowRow: true
614
+ dontShowRow: true,
693
615
  }
694
616
  subRowIndex++
695
617
  waitForAddArr.push(nullObj)
@@ -697,7 +619,10 @@ export default {
697
619
  count = 0
698
620
  titleCellFlag = false
699
621
  firstSubLine = false
700
- } else if ((total !== count + cell.rowSpan) && forEachCount === rowArr.length) {
622
+ } else if (
623
+ total !== count + cell.rowSpan &&
624
+ forEachCount === rowArr.length
625
+ ) {
701
626
  // 如果没有遇到了下一个声明行,但已经是当前行最后一个数据,也证明rowspan少了一行,需要补充一个占位格
702
627
  const nullObj = {
703
628
  type: 'placeHolderColumn',
@@ -705,7 +630,7 @@ export default {
705
630
  noBoarder: true,
706
631
  needSplit: true,
707
632
  colSpan: preColSpan,
708
- dontShowRow: true
633
+ dontShowRow: true,
709
634
  }
710
635
  subRowIndex++
711
636
  waitForAddArr.push(nullObj)
@@ -724,13 +649,15 @@ export default {
724
649
  subRowIndex = 1
725
650
  cell.show = true
726
651
  cell.showRowSpan = total
727
- } else if (cell.rowSpan > 0 && !titleCellFlag && firstSubLine) { // 判断是否为声明行后首行,因为首行不需要移动
652
+ } else if (cell.rowSpan > 0 && !titleCellFlag && firstSubLine) {
653
+ // 判断是否为声明行后首行,因为首行不需要移动
728
654
  count += cell.rowSpan
729
655
  firstSubLine = false
730
656
  cell.noBoarder = true
731
657
  cell.show = true
732
658
  cell.showRowSpan = total
733
- } else if (cell.rowSpan > 0 && !titleCellFlag && !firstSubLine) { // 既非声明行,也非首行,需要移动
659
+ } else if (cell.rowSpan > 0 && !titleCellFlag && !firstSubLine) {
660
+ // 既非声明行,也非首行,需要移动
734
661
  count += cell.rowSpan
735
662
  // cell.type = 'notShow'
736
663
  cell.needSplit = true
@@ -739,7 +666,10 @@ export default {
739
666
  subRowIndex++
740
667
 
741
668
  // 如果之前添加过空行补充位置,刚好最后一位还有内容,将其互换
742
- if (forEachCount === rowArr.length && !waitForAddArr[waitForAddArr.length - 1].dataIndex) {
669
+ if (
670
+ forEachCount === rowArr.length &&
671
+ !waitForAddArr[waitForAddArr.length - 1].dataIndex
672
+ ) {
743
673
  waitForAddArr[waitForAddArr.length - 1].order += 1
744
674
  cell.order -= 1
745
675
  waitForAddArr.push(cell)
@@ -760,14 +690,14 @@ export default {
760
690
  })
761
691
 
762
692
  // 将所有不需要移动的放入original
763
- rowArr.forEach(cell => {
693
+ rowArr.forEach((cell) => {
764
694
  if (cell.needSplit !== true) {
765
695
  original.push(cell)
766
696
  }
767
697
  })
768
698
 
769
699
  // 增加新的数组
770
- waitForAddArr.forEach(cell => {
700
+ waitForAddArr.forEach((cell) => {
771
701
  const target = cell.order
772
702
  // if (cell.type === 'notShow') {
773
703
  // cell.type = 'inputs'
@@ -784,7 +714,7 @@ export default {
784
714
 
785
715
  // 如果没有新增,将单元格边框设置为显示
786
716
  if (addArr.length < 1) {
787
- original.forEach(cell => {
717
+ original.forEach((cell) => {
788
718
  if (cell.type === 'input' || cell.type === 'inputs') {
789
719
  cell.noBoarder = false
790
720
  }
@@ -793,7 +723,7 @@ export default {
793
723
 
794
724
  return {
795
725
  old: original,
796
- add: addArr
726
+ add: addArr,
797
727
  }
798
728
  },
799
729
  // 扫描配置,如果有插槽则拼接插槽
@@ -805,7 +735,10 @@ export default {
805
735
  if (columnsArr[i][j].type === 'slot') {
806
736
  const targetName = columnsArr[i][j].slotConfig
807
737
  // 找不到目标插槽配置
808
- if (!this.configFromWeb[targetName] || !this.configFromWeb[targetName].columns) {
738
+ if (
739
+ !this.configFromWeb[targetName] ||
740
+ !this.configFromWeb[targetName].columns
741
+ ) {
809
742
  console.error('无法找到目标插槽的配置!')
810
743
  return
811
744
  }
@@ -816,9 +749,13 @@ export default {
816
749
  let after = config.columns.slice(i + 1, config.columns.length)
817
750
 
818
751
  const addArr = []
819
- for (let k = 0; k < this.configFromWeb[targetName].columns.length; k++) {
752
+ for (
753
+ let k = 0;
754
+ k < this.configFromWeb[targetName].columns.length;
755
+ k++
756
+ ) {
820
757
  const temp = []
821
- this.configFromWeb[targetName].columns[k].forEach(cell => {
758
+ this.configFromWeb[targetName].columns[k].forEach((cell) => {
822
759
  temp.push(cell)
823
760
  })
824
761
  addArr.push(temp)
@@ -828,7 +765,7 @@ export default {
828
765
  // 拼接之前的数组
829
766
  if (before.length > 0) {
830
767
  if (before.length >= 1) {
831
- before.forEach(item => {
768
+ before.forEach((item) => {
832
769
  newArr.push(item)
833
770
  })
834
771
  } else {
@@ -836,7 +773,7 @@ export default {
836
773
  }
837
774
  }
838
775
 
839
- addArr.forEach(arr => {
776
+ addArr.forEach((arr) => {
840
777
  newArr.push(arr)
841
778
  })
842
779
 
@@ -848,7 +785,7 @@ export default {
848
785
  }
849
786
  if (after.length > 0) {
850
787
  if (after.length >= 1) {
851
- after.forEach(item => {
788
+ after.forEach((item) => {
852
789
  newArr.push(item)
853
790
  })
854
791
  } else {
@@ -863,11 +800,20 @@ export default {
863
800
  config.slotsDeclare = []
864
801
  }
865
802
 
866
- if (config.data.images && this.configFromWeb[targetName].data.images) {
867
- config.data.images = { ...config.data.images, ...this.configFromWeb[targetName].data.images }
803
+ if (
804
+ config.data.images &&
805
+ this.configFromWeb[targetName].data.images
806
+ ) {
807
+ config.data.images = {
808
+ ...config.data.images,
809
+ ...this.configFromWeb[targetName].data.images,
810
+ }
868
811
  delete this.configFromWeb[targetName].data.images
869
812
  }
870
- config.data = { ...config.data, ...this.configFromWeb[targetName].data }
813
+ config.data = {
814
+ ...config.data,
815
+ ...this.configFromWeb[targetName].data,
816
+ }
871
817
  }
872
818
  }
873
819
  }
@@ -876,7 +822,7 @@ export default {
876
822
  // 扫描所有插槽名
877
823
  scanConfigName (config, resut) {
878
824
  if (config.slotsDeclare) {
879
- config.slotsDeclare.forEach(name => {
825
+ config.slotsDeclare.forEach((name) => {
880
826
  resut.push(name)
881
827
  })
882
828
  }
@@ -894,11 +840,16 @@ export default {
894
840
  let count = 0
895
841
 
896
842
  // 挨个获取插槽
897
- waitForDownloadSlotName.forEach(configName => {
898
- getConfigByName(configName, this.serverName, res => {
899
- this.configFromWeb[configName] = res
900
- count++
901
- }, this.env === 'dev')
843
+ waitForDownloadSlotName.forEach((configName) => {
844
+ getConfigByName(
845
+ configName,
846
+ this.serverName,
847
+ (res) => {
848
+ this.configFromWeb[configName] = res
849
+ count++
850
+ },
851
+ this.env === 'dev'
852
+ )
902
853
  })
903
854
 
904
855
  // 使用定时器循环判断锁状态,用于多个插槽,要等待统一获取完成之后,再进行下一步初始化
@@ -938,20 +889,26 @@ export default {
938
889
  this.activeConfig = this.config
939
890
  this.showSkeleton = false
940
891
  // 判断是否有动态Index
941
- this.activeConfig.columns.forEach(row => {
942
- row.forEach(cell => {
892
+ this.activeConfig.columns.forEach((row) => {
893
+ row.forEach((cell) => {
943
894
  if (cell.dynamicDataIndex === true) {
944
895
  // 如果有动态index,取其函数,运行函数得到真实index保存
945
896
  // eslint-disable-next-line no-eval
946
- const func = eval('(' + cell.customFunctionForDynamicDataIndex + ')')
897
+ const func = eval(
898
+ '(' + cell.customFunctionForDynamicDataIndex + ')'
899
+ )
947
900
  cell.dataIndex = func(this.config)
948
901
  }
949
902
  // 处理 自定义函数的旧逻辑
950
- if (['action', 'click'].includes(cell.eventType) && cell.customFunction && !cell.events) {
903
+ if (
904
+ ['action', 'click'].includes(cell.eventType) &&
905
+ cell.customFunction &&
906
+ !cell.events
907
+ ) {
951
908
  cell.events = []
952
909
  cell.events.push({
953
910
  type: cell.eventType,
954
- customFunction: cell.customFunction
911
+ customFunction: cell.customFunction,
955
912
  })
956
913
  }
957
914
  })
@@ -959,43 +916,32 @@ export default {
959
916
  // 将数据复制到临时数据中,带有@@@的数据,我们将其整体作为一个key保存,当编辑完成后,再将其解析,回填到需要的数据中
960
917
  this.activeConfig.tempData = {}
961
918
  // 是否有@@@深层引用
962
- this.activeConfig.columns.forEach(row => {
963
- row.forEach(cell => {
919
+ this.activeConfig.columns.forEach((row) => {
920
+ row.forEach((cell) => {
964
921
  // 将@@@解析
965
- if (cell.dataIndex !== undefined && cell.dataIndex.indexOf('@@@') !== -1) {
966
- this.activeConfig.tempData[cell.dataIndex] = this.getDeepObject(this.activeConfig.data, cell.dataIndex)
922
+ if (
923
+ cell.dataIndex !== undefined &&
924
+ cell.dataIndex.indexOf('@@@') !== -1
925
+ ) {
926
+ this.activeConfig.tempData[cell.dataIndex] = this.getDeepObject(
927
+ this.activeConfig.data,
928
+ cell.dataIndex
929
+ )
967
930
  }
968
931
  })
969
932
  })
970
933
 
971
934
  // 对配置进行转换
972
935
  console.log('转换前配置', this.config)
973
- this.originalConfig.columns = this.transformArray(JSON.parse(JSON.stringify(this.config.columns)))
936
+ this.originalConfig.columns = this.transformArray(
937
+ JSON.parse(JSON.stringify(this.config.columns))
938
+ )
974
939
  console.log('转换后的列描述', this.originalConfig.columns)
975
940
 
976
941
  this.$nextTick(() => {
977
942
  this.scanFinish = true
978
943
  })
979
944
  },
980
- // 初始化JSON配置
981
- jsonConfigInit () {
982
- if (this.configData === undefined) {
983
- console.error('未找到数据!')
984
- } else {
985
- this.originalConfig = Object.assign({}, this.config)
986
- this.originalConfig.data = JSON.parse(JSON.stringify(this.configData))
987
- this.type = 'display'
988
- // this.onlyDisplay = true
989
- this.showSkeleton = false
990
- this.$nextTick(() => {
991
- this.scanFinish = true
992
- })
993
- }
994
- },
995
- onSubmit () {
996
- console.log('this.table_selectedRowKeys', this.table_selectedRowKeys)
997
- console.log('this.table_selectedRows', this.table_selectedRows)
998
- },
999
945
  },
1000
946
  beforeMount () {
1001
947
  // 如果只是展示
@@ -1005,34 +951,22 @@ export default {
1005
951
  }
1006
952
  // 如果有本地配置,优先使用本地配置
1007
953
  if (this.localConfig) {
1008
- // 如果配置是json渲染器
1009
- if (this.localConfig.designMode === 'json') {
1010
- this.config = this.localConfig
1011
- if (this.configData !== undefined) {
1012
- this.config.data = this.configData
1013
- }
1014
- this.jsonConfigInit()
1015
- } else {
1016
- // 如果配置是普通渲染器
1017
- this.config = this.localConfig
1018
- if (this.configData !== undefined) {
1019
- this.config.data = this.configData
1020
- }
1021
- if (this.config.data.images === undefined) {
1022
- this.config.data.images = {}
1023
- }
1024
- this.configInit()
954
+ // 如果配置是普通渲染器
955
+ this.config = this.localConfig
956
+ if (this.configData !== undefined) {
957
+ this.config.data = this.configData
1025
958
  }
959
+ if (this.config.data.images === undefined) {
960
+ this.config.data.images = {}
961
+ }
962
+ this.configInit()
1026
963
  } else {
1027
964
  // 如果本地配置没有值,则从琉璃中获取
1028
- getConfigByName(this.configName, this.serverName, res => {
1029
- this.config = JSON.parse(JSON.stringify(res))
1030
- if (this.config.designMode === 'json') {
1031
- if (this.configData !== undefined) {
1032
- this.config.data = this.configData
1033
- }
1034
- this.jsonConfigInit()
1035
- } else {
965
+ getConfigByName(
966
+ this.configName,
967
+ this.serverName,
968
+ (res) => {
969
+ this.config = JSON.parse(JSON.stringify(res))
1036
970
  if (this.configData !== undefined) {
1037
971
  this.config.data = this.configData
1038
972
  }
@@ -1040,15 +974,16 @@ export default {
1040
974
  this.config.data.images = {}
1041
975
  }
1042
976
  this.configInit()
1043
- }
1044
- }, this.env === 'dev')
977
+ },
978
+ this.env === 'dev'
979
+ )
1045
980
  }
1046
981
  },
1047
982
  computed: {
1048
983
  ...mapState('account', { currUser: 'user' }),
1049
984
  widget () {
1050
985
  return this.isWidget // 返回isWidget的值
1051
- }
986
+ },
1052
987
  },
1053
988
  mounted () {
1054
989
  // 如果外界传来了registerMap,我们将本VM对象注册到map中
@@ -1063,7 +998,7 @@ export default {
1063
998
  this.dataCache = JSON.parse(JSON.stringify(this.config.data))
1064
999
  }
1065
1000
  }
1066
- }
1001
+ },
1067
1002
  }
1068
1003
  </script>
1069
1004