cloud-web-corejs 1.0.54-dev.29 → 1.0.54-dev.291

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 (317) hide show
  1. package/package.json +8 -3
  2. package/src/components/Qrcode/fileParse.vue +0 -1
  3. package/src/components/VabUpload/index.vue +2 -1
  4. package/src/components/VabUpload/mixins.js +1 -1
  5. package/src/components/VabUpload/propertiesDialog.vue +1 -1
  6. package/src/components/VabUpload/view.vue +135 -119
  7. package/src/components/advancedSearchDialog/mixins.js +1 -1
  8. package/src/components/baseAttachment/index.vue +49 -40
  9. package/src/components/baseAttachment/mixins.js +1 -1
  10. package/src/components/excelExport/button.vue +54 -4
  11. package/src/components/excelExport/exportFieldDialog.vue +16 -6
  12. package/src/components/excelExport/index.js +48 -5
  13. package/src/components/excelExport/index.vue +64 -8
  14. package/src/components/excelExport/mixins.js +937 -2
  15. package/src/components/fileLibrary/fileObjAuthDialog.vue +1 -1
  16. package/src/components/fileLibrary/fileObjAuthEditDialog.vue +7 -1
  17. package/src/components/fileLibrary/fileObjNotifyEdit.vue +90 -68
  18. package/src/components/fileLibrary/filterDialog.vue +383 -0
  19. package/src/components/fileLibrary/index.vue +23 -24
  20. package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
  21. package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
  22. package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
  23. package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +337 -207
  24. package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +33 -26
  25. package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +5 -5
  26. package/src/components/fileLibrary/mixins/indexMixins.js +77 -27
  27. package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
  28. package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
  29. package/src/components/fileLibrary/propertiesDialog.vue +18 -0
  30. package/src/components/fileLibrary/shareDialog.vue +1 -1
  31. package/src/components/formOplog/mixins.js +77 -1
  32. package/src/components/jsonImport/index.js +1 -1
  33. package/src/components/jsonImport/mixins.js +1 -1
  34. package/src/components/onlineTalk/mixins.js +1 -1
  35. package/src/components/statusTag/mixins.js +66 -1
  36. package/src/components/table/CellSlot.vue +1 -0
  37. package/src/components/table/index.js +12 -10
  38. package/src/components/table/tableForm.vue +99 -63
  39. package/src/components/table/tableFormMixin.js +1 -1
  40. package/src/components/table/util/index.js +328 -0
  41. package/src/components/table/vxeFilter/mixin.js +6 -6
  42. package/src/components/vb-tabs/x-tabs.vue +3 -2
  43. package/src/components/wf/content.vue +123 -27
  44. package/src/components/wf/setCandidateDialog.vue +1 -0
  45. package/src/components/wf/wf.js +2004 -1
  46. package/src/components/wf/wfStartDialog.vue +1 -1
  47. package/src/components/wf/wfUtil.js +1 -1
  48. package/src/components/xform/form-designer/designer.js +1542 -2
  49. package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +2 -1
  50. package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
  51. package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
  52. package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
  53. package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +16 -4
  54. package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
  55. package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
  56. package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
  57. package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +26 -7
  58. package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
  59. package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
  60. package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
  61. package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
  62. package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
  63. package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
  64. package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
  65. package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +21 -2
  66. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
  67. package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
  68. package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
  69. package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
  70. package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
  71. package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1520 -16
  72. package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +632 -379
  73. package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +6 -8
  74. package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -0
  75. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
  76. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
  77. package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
  78. package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +176 -0
  79. package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
  80. package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +2 -2
  81. package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -3
  82. package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +21 -5
  83. package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +2 -2
  84. package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
  85. package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +17 -5
  86. package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
  87. package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +22 -17
  88. package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
  89. package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +99 -0
  90. package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
  91. package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
  92. package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +2 -170
  93. package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +88 -8
  94. package/src/components/xform/form-designer/indexMixin.js +1 -1
  95. package/src/components/xform/form-designer/setting-panel/form-setting.vue +873 -158
  96. package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
  97. package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
  98. package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +71 -7
  99. package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +4 -4
  100. package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
  101. package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
  102. package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
  103. package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
  104. package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
  105. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +126 -0
  106. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1077 -1042
  107. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
  108. package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1183 -500
  109. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
  110. package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
  111. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
  112. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
  113. package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
  114. package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
  115. package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
  116. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
  117. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
  118. package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
  119. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
  120. package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +64 -5
  121. package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
  122. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
  123. package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
  124. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
  125. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
  126. package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
  127. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +26 -10
  128. package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -0
  129. package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
  130. package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +47 -28
  131. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
  132. package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
  133. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
  134. package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
  135. package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +46 -4
  136. package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
  137. package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
  138. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
  139. package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
  140. package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
  141. package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
  142. package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
  143. package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
  144. package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
  145. package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
  146. package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +318 -0
  147. package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +10 -6
  148. package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
  149. package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
  150. package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +305 -19
  151. package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
  152. package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
  153. package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +384 -53
  154. package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +263 -0
  155. package/src/components/xform/form-designer/setting-panel/propertyRegister.js +24 -10
  156. package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
  157. package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
  158. package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
  159. package/src/components/xform/form-designer/widget-panel/indexMixin.js +3 -2
  160. package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1405 -865
  161. package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
  162. package/src/components/xform/form-render/container-item/data-table-item.vue +86 -42
  163. package/src/components/xform/form-render/container-item/data-table-mixin.js +21 -18
  164. package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
  165. package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
  166. package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
  167. package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
  168. package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
  169. package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
  170. package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
  171. package/src/components/xform/form-render/container-item/table-item.vue +4 -2
  172. package/src/components/xform/form-render/index.vue +4 -1
  173. package/src/components/xform/form-render/indexMixin.js +3018 -3
  174. package/src/components/xform/lang/zh-CN.js +16 -3
  175. package/src/components/xform/mixins/defaultHandle.js +330 -1
  176. package/src/components/xform/mixins/scriptHttp.js +174 -1
  177. package/src/components/xform/utils/emitter.js +4 -4
  178. package/src/components/xform/utils/format.js +21 -30
  179. package/src/components/xform/utils/formula-util.js +669 -0
  180. package/src/components/xform/utils/util.js +1449 -1
  181. package/src/components/xform/utils/validators.js +1 -5
  182. package/src/index.js +2 -2
  183. package/src/layout/components/AppMain.vue +5 -1
  184. package/src/layout/components/Sidebar/default.vue +50 -6
  185. package/src/layout/components/TagsView/index.vue +37 -12
  186. package/src/layout/components/extractedCode/createDialog.vue +92 -0
  187. package/src/layout/components/extractedCode/queryDialog.vue +96 -0
  188. package/src/layout/components/extractedCode/viewDialog.vue +193 -0
  189. package/src/layout/components/watermark/index.vue +83 -0
  190. package/src/layout/defaultLayout.vue +1 -1
  191. package/src/mixins/selectDialog/index.js +1 -1
  192. package/src/mixins/tableTree/index.js +1 -1
  193. package/src/router/modules/customer.js +61 -8
  194. package/src/store/config/index.js +1 -1
  195. package/src/store/modules/permission.js +1 -1
  196. package/src/store/modules/settings.js +1 -1
  197. package/src/store/modules/tagsView.js +1 -14
  198. package/src/store/modules/user.js +1 -1
  199. package/src/utils/index.js +4 -2
  200. package/src/utils/pddLog.js +103 -0
  201. package/src/utils/pdfUtil.js +71 -0
  202. package/src/utils/request.js +351 -357
  203. package/src/utils/vab.js +19 -27
  204. package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
  205. package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
  206. package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
  207. package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
  208. package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
  209. package/src/views/bd/setting/bd_company_env/edit.vue +163 -0
  210. package/src/views/bd/setting/bd_company_env/list.vue +175 -0
  211. package/src/views/bd/setting/config_manage/list.vue +51 -0
  212. package/src/views/bd/setting/form_import_log/edit.vue +127 -0
  213. package/src/views/bd/setting/form_import_log/list.vue +206 -0
  214. package/src/views/bd/setting/form_script/edit.vue +9 -0
  215. package/src/views/bd/setting/form_script/edit1.vue +36 -3
  216. package/src/views/bd/setting/form_script/form_list.vue +1 -1
  217. package/src/views/bd/setting/form_script/list1.vue +4 -4
  218. package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
  219. package/src/views/bd/setting/form_script/mixins/edit.js +201 -1
  220. package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
  221. package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
  222. package/src/views/bd/setting/form_script/mixins/list.js +236 -1
  223. package/src/views/bd/setting/form_script/mixins/list1.js +422 -14
  224. package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
  225. package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
  226. package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
  227. package/src/views/bd/setting/form_template/edit.vue +22 -1
  228. package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
  229. package/src/views/bd/setting/form_template/list.vue +5 -5
  230. package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
  231. package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
  232. package/src/views/bd/setting/form_template/mixins/list.js +688 -22
  233. package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
  234. package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
  235. package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
  236. package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
  237. package/src/views/bd/setting/form_template/wf_list.vue +127 -0
  238. package/src/views/bd/setting/menu_kind/list.vue +4 -0
  239. package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
  240. package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
  241. package/src/views/bd/setting/push_data/edit.vue +139 -0
  242. package/src/views/bd/setting/push_data/list.vue +283 -0
  243. package/src/views/bd/setting/push_data_h/edit.vue +153 -0
  244. package/src/views/bd/setting/push_data_h/list.vue +293 -0
  245. package/src/views/bd/setting/request_async_setting/edit.vue +279 -0
  246. package/src/views/bd/setting/request_async_setting/list.vue +297 -0
  247. package/src/views/bd/setting/request_setting/edit.vue +258 -0
  248. package/src/views/bd/setting/request_setting/list.vue +248 -0
  249. package/src/views/bd/setting/table_model/edit.vue +875 -426
  250. package/src/views/bd/setting/table_model/list.vue +4 -4
  251. package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
  252. package/src/views/bd/setting/table_model/mixins/edit.js +1202 -13
  253. package/src/views/bd/setting/table_model/mixins/list.js +439 -14
  254. package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
  255. package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
  256. package/src/views/user/area/dialog.vue +21 -9
  257. package/src/views/user/bill_setting/edit.vue +1 -1
  258. package/src/views/user/bill_setting/list.vue +1 -1
  259. package/src/views/user/common_attribute/itemEdit.vue +2 -2
  260. package/src/views/user/common_attribute/list.vue +1 -1
  261. package/src/views/user/common_script/edit.vue +1 -1
  262. package/src/views/user/common_script/list.vue +1 -1
  263. package/src/views/user/company_info/dialog.vue +164 -154
  264. package/src/views/user/company_info/edit.vue +1 -1
  265. package/src/views/user/extend_datasource/dialog.vue +1 -0
  266. package/src/views/user/extend_datasource/edit.vue +3 -0
  267. package/src/views/user/extend_datasource/list.vue +2 -1
  268. package/src/views/user/fieldTranslation/editDialog.vue +7 -7
  269. package/src/views/user/fieldTranslation/list.vue +32 -32
  270. package/src/views/user/file_type/edit.vue +30 -1
  271. package/src/views/user/file_type/list.vue +28 -0
  272. package/src/views/user/form/vform/designer.vue +775 -749
  273. package/src/views/user/form/vform/out_render.vue +1 -1
  274. package/src/views/user/form/vform/render.vue +8 -4
  275. package/src/views/user/form/view/edit.vue +38 -37
  276. package/src/views/user/form/view/list.vue +68 -15
  277. package/src/views/user/groups/edit.vue +2 -0
  278. package/src/views/user/groups/list.vue +1 -0
  279. package/src/views/user/home/default.vue +1024 -979
  280. package/src/views/user/home/dev.vue +29 -0
  281. package/src/views/user/home/index.vue +16 -6
  282. package/src/views/user/login/default.vue +36 -5
  283. package/src/views/user/login/indexMixin.js +117 -3
  284. package/src/views/user/notify_message/dialog.vue +1 -1
  285. package/src/views/user/notify_template/edit.vue +188 -187
  286. package/src/views/user/notify_template/edit2.vue +176 -0
  287. package/src/views/user/notify_template/list.vue +4 -1
  288. package/src/views/user/notify_template/list2.vue +190 -0
  289. package/src/views/user/outLink/form_view.vue +39 -12
  290. package/src/views/user/outLink/index.vue +17 -0
  291. package/src/views/user/outLink/view.vue +28 -23
  292. package/src/views/user/position/edit.vue +55 -54
  293. package/src/views/user/position/list.vue +4 -4
  294. package/src/views/user/project_tag/dialog.vue +9 -4
  295. package/src/views/user/project_tag/edit.vue +2 -2
  296. package/src/views/user/project_tag/list.vue +9 -4
  297. package/src/views/user/push_setting/list.vue +2 -2
  298. package/src/views/user/request_setting/edit.vue +258 -0
  299. package/src/views/user/request_setting/list.vue +248 -0
  300. package/src/views/user/role/dialog.vue +1 -1
  301. package/src/views/user/role/list.vue +4 -4
  302. package/src/views/user/sale_org/dialog.vue +1 -1
  303. package/src/views/user/sale_org/list.vue +4 -1
  304. package/src/views/user/user/dialog.vue +46 -23
  305. package/src/views/user/user/edit.vue +35 -15
  306. package/src/views/user/user/form_dialog.vue +158 -0
  307. package/src/views/user/user/form_edit.vue +63 -2
  308. package/src/views/user/user/form_info.vue +210 -0
  309. package/src/views/user/user/form_list.vue +1 -0
  310. package/src/views/user/user/list.vue +4 -20
  311. package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
  312. package/src/views/user/wf/wf_manage/list.vue +30 -1
  313. package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
  314. package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
  315. package/src/views/user/wf/wf_obj_config/itemEdit.vue +25 -1
  316. package/src/views/user/wf/wf_obj_config/list.vue +115 -10
  317. package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
@@ -1,357 +1,351 @@
1
- /**version-1.0*/
2
- import Vue from 'vue'
3
- import axios from 'axios'
4
- import qs from 'qs'
5
- import store from '../store/index.js'
6
- import {
7
- getToken
8
- } from './auth.js'
9
- import ErroreBox from '../components/errorMsg/index.js'
10
- import PopupManager from 'element-ui/src/utils/popup/popup-manager.js'
11
- import settingConfig from "@/settings.js";
12
- import {encode} from "js-base64";
13
- import {encrypt} from "@base/utils/aes";
14
-
15
- let configUtil = {
16
- baseUrl: process.env.VUE_APP_BASE_API,
17
- logout: function () {
18
- store.dispatch("user/resetToken").then(() => {
19
- let redirect = window.$vueRoot && window.$vueRoot.$router & window.$vueRoot.$router.fullPath ? window.$vueRoot.$router.fullPath : null;
20
- let path = redirect ? `/login?redirect=${redirect}` : `/login`;
21
- window.location.hash = path;
22
- location.reload(true);
23
- });
24
- }
25
- };
26
- let service;
27
-
28
- // create an axios instance
29
- service = axios.create({
30
- baseURL: configUtil.baseUrl, // url = base url + request url
31
- // withCredentials: true, // send cookies when cross-domain requests
32
- //timeout: 5000 // request timeout
33
- });
34
-
35
- // request interceptor
36
- service.interceptors.request.use(
37
- config => {
38
-
39
- if (config.useToken !== false) {
40
- let token = getToken();
41
- if (token) {
42
- config.headers['X-Token'] = token;
43
- config.headers['Authorization'] = 'Bearer ' + token;
44
- }
45
- }
46
- /* if (!config.headers['Content-Type']) {
47
- config.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
48
- } */
49
- if (!config.filterConfig || config.filterConfig.enabled !== false && window.commonDataUtil) {
50
- config.data = window.commonDataUtil.handleForm(config.data, config.filterConfig);
51
- }
52
- if (
53
- (config.headers['Content-Type'] == "application/x-www-form-urlencoded" ||
54
- config.headers['Content-Type'] == "application/x-www-form-urlencoded;charset=UTF-8") &&
55
- typeof (config.data) !== 'string' && config.data) {
56
- config.data = qs.stringify(config.data);
57
- } else if (settingConfig.base64Urls && settingConfig.base64Urls.includes(config.url)) {
58
- config.data = {"_baenboda": encode(JSON.stringify(config.data))};
59
- } else if (config.aes) {
60
- config.data = {"_aeenboda": encrypt(JSON.stringify(config.data))};
61
- }
62
-
63
- if (config.modal !== false && config.loadingTarget) {
64
- let zIndex = PopupManager.nextZIndex();
65
- let pd = document.createElement('div');
66
- pd.className = "el-loading-mask AjaxOverlay";
67
- pd.style = "display: block !important;background-color: unset;z-index:" + zIndex + ";";
68
- config.loadingTarget.append(pd);
69
- config.ajaxOverlay = pd;
70
- }
71
-
72
- if (config.isLoading) {
73
- let vueTarget = config.vueTarget || window;
74
- let _ajaxLoadingNum = vueTarget._ajaxLoadingNum || 0;
75
- if (!vueTarget._ajaxLoadingNum && !vueTarget._loadingInstance) {
76
- vueTarget._ajaxLoadingNum = _ajaxLoadingNum + 1;
77
- let loadingInstance = Vue.prototype.$baseLoading({
78
- target: config.loadingTarget || document.body,
79
- background: 'unset'
80
- });
81
- vueTarget._loadingInstance = loadingInstance;
82
- }
83
-
84
- }
85
- return config;
86
- },
87
- error => {
88
- // do something with request error
89
- console.error(error); // for debug
90
- return Promise.reject(error);
91
- }
92
- );
93
-
94
- function removeModel(config) {
95
- if (config) {
96
- if (config.modal !== false && config.ajaxOverlay) {
97
- config.ajaxOverlay.remove();
98
- }
99
- let vueTarget = config.vueTarget || window;
100
- if (!!vueTarget) {
101
- setTimeout(function () {
102
- let _ajaxLoadingNum = vueTarget._ajaxLoadingNum || 0;
103
- if (config.isLoading && _ajaxLoadingNum) {
104
- _ajaxLoadingNum = _ajaxLoadingNum - 1;
105
- vueTarget._ajaxLoadingNum = _ajaxLoadingNum;
106
- }
107
- if(!vueTarget._ajaxLoadingNum){
108
- vueTarget._loadingInstance && vueTarget._loadingInstance.close();
109
- vueTarget._loadingInstance = null;
110
- }
111
- }, 200);
112
- }
113
- }
114
- }
115
-
116
- async function handleNickName(vueTarget, res, callback) {
117
- if (res.type != "success" || !res.objx) {
118
- callback && callback(res)
119
- return
120
- }
121
- let data = res.objx;
122
- if (Array.isArray(data) || data.hasOwnProperty("records")) {
123
- await handleNickName2(vueTarget, res, callback)
124
- return;
125
- }
126
-
127
- let createBy = getCreateBy(data);
128
- let modifyBy = getModifyBy(data);
129
- let requestData = [];
130
- if (createBy) {
131
- requestData.push(createBy)
132
- }
133
- if (modifyBy && !requestData.includes(modifyBy)) {
134
- requestData.push(modifyBy)
135
- }
136
- if (!requestData.length) {
137
- callback && callback(res)
138
- return
139
- }
140
- if (!vueTarget) vueTarget = window.$vueRoot
141
-
142
-
143
- return vueTarget.$http({
144
- url: USER_PREFIX + `/userb/getUserBasicInfos`,
145
- method: `post`,
146
- data: requestData,
147
- success: res2 => {
148
- let arr = res2.objx || [];
149
- if (createBy) {
150
- let obj = arr.find(item => item.loginAccount == createBy);
151
- if (obj && obj.nickName) {
152
- res.objx._createNickName = obj.nickName;
153
- res.objx._createMobile = obj.mobile;
154
- }
155
- }
156
- if (modifyBy) {
157
- let obj = arr.find(item => item.loginAccount == modifyBy);
158
- if (obj && obj.nickName) {
159
- res.objx._modifyNickName = obj.nickName;
160
- res.objx._modifyMobile = obj.mobile;
161
- }
162
- }
163
-
164
- }
165
- });
166
- }
167
-
168
- function handleCreateInfo(config, res) {
169
- if (!config.addCreateInfo) return
170
- let queryCreateInfo = config.queryCreateInfo || "0";
171
- let toDo = (row) => {
172
- if (!row) {
173
- return;
174
- }
175
- let _createBy = null;
176
- let _modifyBy = null;
177
- if (row._createNickName) {
178
- if (queryCreateInfo == "1") {
179
- _createBy = getCreateBy(row) + "(" + row._createNickName + ")";
180
- } else if (queryCreateInfo == "2") {
181
- _createBy = row._createNickName;
182
- }
183
- }
184
- if (row._modifyNickName) {
185
- if (queryCreateInfo == "1") {
186
- _modifyBy = getModifyBy(row) + "(" + row._modifyNickName + ")";
187
- } else if (queryCreateInfo == "2") {
188
- _modifyBy = row._modifyNickName;
189
- }
190
- }
191
- row._createBy = _createBy || getCreateBy(row) || null;
192
- row._modifyBy = _modifyBy || getCreateBy(row) || null;
193
- }
194
- let data = res.objx;
195
- if (typeof res.objx == "object") {
196
- if (Array.isArray(data)) {
197
- res.objx.forEach(item => {
198
- toDo(item);
199
- })
200
- } else if (data && res.objx.hasOwnProperty("records")) {
201
- let records = res.objx.records || [];
202
- records.forEach(item => {
203
- toDo(item);
204
- })
205
- } else {
206
- toDo(res.objx);
207
- }
208
- }
209
- }
210
-
211
- function getCreateBy(row) {
212
- let result = null;
213
- if (row) {
214
- if (row.hasOwnProperty("createBy")) {
215
- result = row.createBy;
216
- } else if (row.hasOwnProperty("create_by")) {
217
- result = row.create_by;
218
- }
219
- }
220
- return result;
221
- }
222
-
223
- function getModifyBy(row) {
224
- let result = null;
225
- if (row) {
226
- if (row.hasOwnProperty("modifyBy")) {
227
- result = row.modifyBy;
228
- } else if (row.hasOwnProperty("modify_by")) {
229
- result = row.modify_by;
230
- }
231
- }
232
- return result;
233
- }
234
-
235
- async function handleNickName2(vueTarget, res, callback) {
236
- if (res.type != "success" || !res.objx) {
237
- callback && callback(res)
238
- return
239
- }
240
- let data = res.objx;
241
- if (!Array.isArray(data)) {
242
- data = res.objx.records;
243
- }
244
- let requestData = [];
245
- data.forEach(item => {
246
- let createBy = getCreateBy(item);
247
- let modifyBy = getModifyBy(item);
248
-
249
- if (createBy && !requestData.includes(createBy)) {
250
- requestData.push(createBy)
251
- }
252
- if (modifyBy && !requestData.includes(modifyBy)) {
253
- requestData.push(modifyBy)
254
- }
255
- })
256
- if (!requestData.length) {
257
- callback && callback(res)
258
- return
259
- }
260
- if (!vueTarget) vueTarget = window.$vueRoot
261
-
262
-
263
- return vueTarget.$http({
264
- url: USER_PREFIX + `/userb/getUserBasicInfos`,
265
- method: `post`,
266
- data: requestData,
267
- success: res2 => {
268
- let arr = res2.objx || [];
269
- data.forEach(item => {
270
- let createBy = getCreateBy(item);
271
- let modifyBy = getModifyBy(item);
272
- if (createBy) {
273
- let obj = arr.find(item => item.loginAccount == createBy);
274
- if (obj && obj.nickName) {
275
- item._createNickName = obj.nickName;
276
- item._createMobile = obj.mobile;
277
- }
278
- }
279
- if (modifyBy) {
280
- let obj = arr.find(item => item.loginAccount == modifyBy);
281
- if (obj && obj.nickName) {
282
- item._modifyNickName = obj.nickName;
283
- item._modifyMobile = obj.mobile;
284
- }
285
- }
286
- })
287
- }
288
- });
289
- }
290
-
291
- // response interceptor
292
- service.interceptors.response.use(
293
- async response => {
294
- const res = response.data;
295
- const config = response.config;
296
- if (config.resultType == "other") {
297
- config.callback && config.callback(res, response);
298
- removeModel(config);
299
- return res;
300
- } else if (res.type) {
301
- if (res.type == "success") {
302
- if (settingConfig.queryCreateInfo !== false && config.queryCreateInfo && config.queryCreateInfo != "0") {
303
- await handleNickName(config.vueTarget, res);
304
- }
305
- if (config.addCreateInfo) {
306
- handleCreateInfo(config, res);
307
- }
308
-
309
- config.success && config.success(res, response);
310
- config.callback && config.callback(res, response);
311
- removeModel(config);
312
- return res;
313
- } else {
314
- if (res.rmid == "999999999") {
315
- removeModel(config);
316
- configUtil.logout();
317
- } else {
318
- config.fail && config.fail(res, response);
319
- config.callback && config.callback(res, response);
320
- if (config.modalStrictly !== true) {
321
- removeModel(config);
322
- }
323
- if (config.resultType != "special" && config.failMsg !== false) {
324
- ErroreBox.msg(res);
325
- }
326
- }
327
- return res;
328
- }
329
- } else {
330
- if (config.modalStrictly !== true) {
331
- removeModel(config);
332
- }
333
- return res;
334
- }
335
- },
336
- error => {
337
- let config = error.config;
338
- if (error.response && error.response.data && error.response.data.rmid == "999999999") {
339
- removeModel(config);
340
- configUtil.logout();
341
- } else {
342
- config.error && config.error(error);
343
- if (config.modalStrictly !== true) {
344
- removeModel(config);
345
- }
346
- if (config.errorMsg !== false) {
347
- ErroreBox.msg({
348
- content: error.message,
349
- type: 'error',
350
- });
351
- }
352
- }
353
- return Promise.reject(error);
354
- }
355
- );
356
-
357
- export default service;
1
+ /**version-1.0*/
2
+ import Vue from 'vue'
3
+ import axios from 'axios'
4
+ import qs from 'qs'
5
+ import store from '../store/index.js'
6
+ import {
7
+ getToken
8
+ } from './auth.js'
9
+ import ErroreBox from '../components/errorMsg/index.js'
10
+ import PopupManager from 'element-ui/src/utils/popup/popup-manager.js'
11
+ import settingConfig from "@/settings.js";
12
+ import {encode} from "js-base64";
13
+ import {encrypt} from "@base/utils/aes";
14
+
15
+ let configUtil = {
16
+ baseUrl: process.env.VUE_APP_BASE_API,
17
+ logout: function () {
18
+ store.dispatch("user/resetToken").then(() => {
19
+ let redirect = window.$vueRoot && window.$vueRoot.$router & window.$vueRoot.$router.fullPath ? window.$vueRoot.$router.fullPath : null;
20
+ let path = redirect ? `/login?redirect=${redirect}` : `/login`;
21
+ window.location.hash = path;
22
+ location.reload(true);
23
+ });
24
+ }
25
+ };
26
+ let service;
27
+
28
+ // create an axios instance
29
+ service = axios.create({
30
+ baseURL: configUtil.baseUrl, // url = base url + request url
31
+ // withCredentials: true, // send cookies when cross-domain requests
32
+ //timeout: 5000 // request timeout
33
+ });
34
+
35
+ // request interceptor
36
+ service.interceptors.request.use(
37
+ config => {
38
+
39
+ if (config.useToken !== false) {
40
+ let token = getToken();
41
+ if (token) {
42
+ config.headers['X-Token'] = token;
43
+ config.headers['Authorization'] = 'Bearer ' + token;
44
+ }
45
+ }
46
+ /* if (!config.headers['Content-Type']) {
47
+ config.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8';
48
+ } */
49
+ if (!config.filterConfig || config.filterConfig.enabled !== false && window.commonDataUtil) {
50
+ config.data = window.commonDataUtil.handleForm(config.data, config.filterConfig);
51
+ }
52
+ if (
53
+ (config.headers['Content-Type'] == "application/x-www-form-urlencoded" ||
54
+ config.headers['Content-Type'] == "application/x-www-form-urlencoded;charset=UTF-8") &&
55
+ typeof (config.data) !== 'string' && config.data) {
56
+ config.data = qs.stringify(config.data);
57
+ } else if (settingConfig.base64Urls && settingConfig.base64Urls.includes(config.url)) {
58
+ config.data = {"_baenboda": encode(JSON.stringify(config.data))};
59
+ } else if (config.aes) {
60
+ config.data = {"_aeenboda": encrypt(JSON.stringify(config.data))};
61
+ }
62
+
63
+ if (config.modal !== false && config.loadingTarget) {
64
+ let zIndex = PopupManager.nextZIndex();
65
+ let pd = document.createElement('div');
66
+ pd.className = "el-loading-mask AjaxOverlay";
67
+ pd.style = "display: block !important;background-color: unset;z-index:" + zIndex + ";";
68
+ config.loadingTarget.append(pd);
69
+ config.ajaxOverlay = pd;
70
+ }
71
+
72
+ if (config.isLoading) {
73
+ config.loadingInstance = Vue.prototype.$baseLoading({
74
+ target: config.loadingTarget || document.body,
75
+ background: 'unset'
76
+ });
77
+ }
78
+ return config;
79
+ },
80
+ error => {
81
+ // do something with request error
82
+ console.error(error); // for debug
83
+ return Promise.reject(error);
84
+ }
85
+ );
86
+
87
+ function removeModel(config) {
88
+ if (config) {
89
+ if (config.modal !== false && config.ajaxOverlay) {
90
+ config.ajaxOverlay.remove();
91
+ }
92
+ if (config.loadingInstance) {
93
+ setTimeout(function () {
94
+ config.loadingInstance.close();
95
+ config.loadingInstance = null;
96
+ }, 200);
97
+ }
98
+ }
99
+ }
100
+
101
+ async function handleNickName(option) {
102
+ let {vueTarget, res, callback, config} = option;
103
+ if (res.type != "success" || !res.objx) {
104
+ callback && callback(res)
105
+ return
106
+ }
107
+ let data = res.objx;
108
+ if (Array.isArray(data) || data.hasOwnProperty("records")) {
109
+ await handleNickName2(option)
110
+ return;
111
+ }
112
+
113
+ let createBy = getCreateBy(data);
114
+ let modifyBy = getModifyBy(data);
115
+ let requestData = [];
116
+ if (createBy) {
117
+ requestData.push(createBy)
118
+ }
119
+ if (modifyBy && !requestData.includes(modifyBy)) {
120
+ requestData.push(modifyBy)
121
+ }
122
+ if (!requestData.length) {
123
+ callback && callback(res)
124
+ return
125
+ }
126
+ if (!vueTarget) vueTarget = window.$vueRoot
127
+ let modal = config.modal ?? true;
128
+ let isLoading = config.isLoading || false;
129
+ return vueTarget.$http({
130
+ url: USER_PREFIX + `/userb/getUserBasicInfos`,
131
+ method: `post`,
132
+ data: requestData,
133
+ modal: modal,
134
+ isLoading: isLoading,
135
+ success: res2 => {
136
+ let arr = res2.objx || [];
137
+ if (createBy) {
138
+ let obj = arr.find(item => item.loginAccount == createBy);
139
+ if (obj && obj.nickName) {
140
+ res.objx._createNickName = obj.nickName;
141
+ res.objx._createMobile = obj.mobile;
142
+ }
143
+ }
144
+ if (modifyBy) {
145
+ let obj = arr.find(item => item.loginAccount == modifyBy);
146
+ if (obj && obj.nickName) {
147
+ res.objx._modifyNickName = obj.nickName;
148
+ res.objx._modifyMobile = obj.mobile;
149
+ }
150
+ }
151
+
152
+ }
153
+ });
154
+ }
155
+
156
+ function handleCreateInfo(config, res) {
157
+ if (!config.addCreateInfo) return
158
+ let queryCreateInfo = config.queryCreateInfo || "0";
159
+ let toDo = (row) => {
160
+ if (!row) {
161
+ return;
162
+ }
163
+ let _createBy = null;
164
+ let _modifyBy = null;
165
+ if (row._createNickName) {
166
+ if (queryCreateInfo == "1") {
167
+ _createBy = getCreateBy(row) + "(" + row._createNickName + ")";
168
+ } else if (queryCreateInfo == "2") {
169
+ _createBy = row._createNickName;
170
+ }
171
+ }
172
+ if (row._modifyNickName) {
173
+ if (queryCreateInfo == "1") {
174
+ _modifyBy = getModifyBy(row) + "(" + row._modifyNickName + ")";
175
+ } else if (queryCreateInfo == "2") {
176
+ _modifyBy = row._modifyNickName;
177
+ }
178
+ }
179
+ row._createBy = _createBy || getCreateBy(row) || null;
180
+ row._modifyBy = _modifyBy || getCreateBy(row) || null;
181
+ }
182
+ let data = res.objx;
183
+ if (typeof res.objx == "object") {
184
+ if (Array.isArray(data)) {
185
+ res.objx.forEach(item => {
186
+ toDo(item);
187
+ })
188
+ } else if (data && res.objx.hasOwnProperty("records")) {
189
+ let records = res.objx.records || [];
190
+ records.forEach(item => {
191
+ toDo(item);
192
+ })
193
+ } else {
194
+ toDo(res.objx);
195
+ }
196
+ }
197
+ }
198
+
199
+ function getCreateBy(row) {
200
+ let result = null;
201
+ if (row) {
202
+ if (row.hasOwnProperty("createBy")) {
203
+ result = row.createBy;
204
+ } else if (row.hasOwnProperty("create_by")) {
205
+ result = row.create_by;
206
+ }
207
+ }
208
+ return result;
209
+ }
210
+
211
+ function getModifyBy(row) {
212
+ let result = null;
213
+ if (row) {
214
+ if (row.hasOwnProperty("modifyBy")) {
215
+ result = row.modifyBy;
216
+ } else if (row.hasOwnProperty("modify_by")) {
217
+ result = row.modify_by;
218
+ }
219
+ }
220
+ return result;
221
+ }
222
+
223
+ async function handleNickName2(option) {
224
+ let {vueTarget, res, callback, config} = option;
225
+ if (res.type != "success" || !res.objx) {
226
+ callback && callback(res)
227
+ return
228
+ }
229
+ let data = res.objx;
230
+ if (!Array.isArray(data)) {
231
+ data = res.objx.records;
232
+ }
233
+ let requestData = [];
234
+ data.forEach(item => {
235
+ let createBy = getCreateBy(item);
236
+ let modifyBy = getModifyBy(item);
237
+
238
+ if (createBy && !requestData.includes(createBy)) {
239
+ requestData.push(createBy)
240
+ }
241
+ if (modifyBy && !requestData.includes(modifyBy)) {
242
+ requestData.push(modifyBy)
243
+ }
244
+ })
245
+ if (!requestData.length) {
246
+ callback && callback(res)
247
+ return
248
+ }
249
+ if (!vueTarget) vueTarget = window.$vueRoot
250
+
251
+ let modal = config.modal ?? true;
252
+ let isLoading = config.isLoading || false;
253
+
254
+ return vueTarget.$http({
255
+ url: USER_PREFIX + `/userb/getUserBasicInfos`,
256
+ method: `post`,
257
+ data: requestData,
258
+ modal: modal,
259
+ isLoading: isLoading,
260
+ success: res2 => {
261
+ let arr = res2.objx || [];
262
+ data.forEach(item => {
263
+ let createBy = getCreateBy(item);
264
+ let modifyBy = getModifyBy(item);
265
+ if (createBy) {
266
+ let obj = arr.find(item => item.loginAccount == createBy);
267
+ if (obj && obj.nickName) {
268
+ item._createNickName = obj.nickName;
269
+ item._createMobile = obj.mobile;
270
+ }
271
+ }
272
+ if (modifyBy) {
273
+ let obj = arr.find(item => item.loginAccount == modifyBy);
274
+ if (obj && obj.nickName) {
275
+ item._modifyNickName = obj.nickName;
276
+ item._modifyMobile = obj.mobile;
277
+ }
278
+ }
279
+ })
280
+ }
281
+ });
282
+ }
283
+
284
+ // response interceptor
285
+ service.interceptors.response.use(
286
+ async response => {
287
+ const res = response.data;
288
+ const config = response.config;
289
+ if (config.resultType == "other") {
290
+ config.callback && config.callback(res, response);
291
+ removeModel(config);
292
+ return res;
293
+ } else if (res.type) {
294
+ if (res.type == "success") {
295
+ if (settingConfig.queryCreateInfo !== false && config.queryCreateInfo && config.queryCreateInfo != "0") {
296
+ let vueTarget = config.vueTarget;
297
+ await handleNickName({vueTarget, res, config});
298
+ }
299
+ if (config.addCreateInfo) {
300
+ handleCreateInfo(config, res);
301
+ }
302
+
303
+ config.success && config.success(res, response);
304
+ config.callback && config.callback(res, response);
305
+ removeModel(config);
306
+ return res;
307
+ } else {
308
+ if (res.rmid == "999999999") {
309
+ removeModel(config);
310
+ configUtil.logout();
311
+ } else {
312
+ config.fail && config.fail(res, response);
313
+ config.callback && config.callback(res, response);
314
+ if (config.modalStrictly !== true) {
315
+ removeModel(config);
316
+ }
317
+ if (config.resultType != "special" && config.failMsg !== false) {
318
+ ErroreBox.msg(res);
319
+ }
320
+ }
321
+ return res;
322
+ }
323
+ } else {
324
+ if (config.modalStrictly !== true) {
325
+ removeModel(config);
326
+ }
327
+ return res;
328
+ }
329
+ },
330
+ error => {
331
+ let config = error.config;
332
+ if (error.response && error.response.data && error.response.data.rmid == "999999999") {
333
+ removeModel(config);
334
+ configUtil.logout();
335
+ } else {
336
+ config.error && config.error(error);
337
+ if (config.modalStrictly !== true) {
338
+ removeModel(config);
339
+ }
340
+ if (config.errorMsg !== false) {
341
+ ErroreBox.msg({
342
+ content: error.message,
343
+ type: 'error',
344
+ });
345
+ }
346
+ }
347
+ return Promise.reject(error);
348
+ }
349
+ );
350
+
351
+ export default service;