mooho-base-admin-plus 0.1.0

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 (283) hide show
  1. package/.env +5 -0
  2. package/.env.development +0 -0
  3. package/.env.production +0 -0
  4. package/.eslintignore +11 -0
  5. package/.eslintrc.js +47 -0
  6. package/.prettierrc +15 -0
  7. package/README.md +18 -0
  8. package/dist/favicon.ico +0 -0
  9. package/dist/mooho-base-admin-plus.min.esm.js +131746 -0
  10. package/dist/mooho-base-admin-plus.min.js +279 -0
  11. package/dist/setting.js +31 -0
  12. package/dist/static/images/app-barcode.png +0 -0
  13. package/dist/static/images/login/bg.png +0 -0
  14. package/dist/static/images/login/logo.png +0 -0
  15. package/dist/static/images/login/password-active.png +0 -0
  16. package/dist/static/images/login/password-default.png +0 -0
  17. package/dist/static/images/login/signIn-img.png +0 -0
  18. package/dist/static/images/login/user-active.png +0 -0
  19. package/dist/static/images/login/user-default.png +0 -0
  20. package/dist/static/images/logo-dark.png +0 -0
  21. package/dist/static/images/logo-small.png +0 -0
  22. package/dist/static/images/logo.png +0 -0
  23. package/dist/static/images/logo.svg +510 -0
  24. package/dist/static/images/no-image.png +0 -0
  25. package/dist/style.css +4 -0
  26. package/index.html +18 -0
  27. package/other/pda.vue +28 -0
  28. package/package.json +59 -0
  29. package/public/favicon.ico +0 -0
  30. package/public/setting.js +31 -0
  31. package/public/static/images/app-barcode.png +0 -0
  32. package/public/static/images/login/bg.png +0 -0
  33. package/public/static/images/login/logo.png +0 -0
  34. package/public/static/images/login/password-active.png +0 -0
  35. package/public/static/images/login/password-default.png +0 -0
  36. package/public/static/images/login/signIn-img.png +0 -0
  37. package/public/static/images/login/user-active.png +0 -0
  38. package/public/static/images/login/user-default.png +0 -0
  39. package/public/static/images/logo-dark.png +0 -0
  40. package/public/static/images/logo-small.png +0 -0
  41. package/public/static/images/logo.png +0 -0
  42. package/public/static/images/logo.svg +510 -0
  43. package/public/static/images/no-image.png +0 -0
  44. package/src/App.vue +60 -0
  45. package/src/api/application.js +35 -0
  46. package/src/api/customModel.js +187 -0
  47. package/src/api/customPage.js +15 -0
  48. package/src/api/customTable.js +24 -0
  49. package/src/api/dataSource.js +93 -0
  50. package/src/api/dataView.js +199 -0
  51. package/src/api/dictType.js +23 -0
  52. package/src/api/entityView.js +13 -0
  53. package/src/api/enum.js +15 -0
  54. package/src/api/filterColumn.js +16 -0
  55. package/src/api/model.js +244 -0
  56. package/src/api/movePlan.js +29 -0
  57. package/src/api/notification.js +28 -0
  58. package/src/api/openApiPermission.js +25 -0
  59. package/src/api/permission.js +51 -0
  60. package/src/api/planJob.js +15 -0
  61. package/src/api/process.js +23 -0
  62. package/src/api/processDef.js +36 -0
  63. package/src/api/processInst.js +16 -0
  64. package/src/api/rolePermission.js +17 -0
  65. package/src/api/roleProperty.js +36 -0
  66. package/src/api/shortcut.js +20 -0
  67. package/src/api/system.js +23 -0
  68. package/src/api/task.js +56 -0
  69. package/src/api/taskQueue.js +24 -0
  70. package/src/api/user.js +45 -0
  71. package/src/api/viewColumn.js +16 -0
  72. package/src/assets/svg/body.svg +17 -0
  73. package/src/assets/svg/header-theme-dark.svg +40 -0
  74. package/src/assets/svg/header-theme-primary.svg +40 -0
  75. package/src/assets/svg/header-top.svg +40 -0
  76. package/src/assets/svg/icon-happy.svg +1 -0
  77. package/src/assets/svg/icon-sad.svg +1 -0
  78. package/src/assets/svg/icon-social-bilibili.svg +1 -0
  79. package/src/assets/svg/icon-social-dingding.svg +1 -0
  80. package/src/assets/svg/icon-social-facebook.svg +1 -0
  81. package/src/assets/svg/icon-social-juejin.svg +1 -0
  82. package/src/assets/svg/icon-social-qq.svg +1 -0
  83. package/src/assets/svg/icon-social-twitter.svg +1 -0
  84. package/src/assets/svg/icon-social-wechat.svg +1 -0
  85. package/src/assets/svg/icon-social-weibo.svg +1 -0
  86. package/src/assets/svg/icon-social-zhihu.svg +1 -0
  87. package/src/assets/svg/nav-theme-dark.svg +40 -0
  88. package/src/assets/svg/nav-theme-light.svg +40 -0
  89. package/src/components/copyright/index.vue +28 -0
  90. package/src/components/home/notice-list.vue +62 -0
  91. package/src/components/home/shortcut.vue +125 -0
  92. package/src/components/input/dialog-select.vue +301 -0
  93. package/src/components/input/item-select.vue +195 -0
  94. package/src/components/link/index.vue +54 -0
  95. package/src/components/richEditor/index.vue +86 -0
  96. package/src/components/upload/file-upload.vue +84 -0
  97. package/src/components/upload/upload-attachment.vue +119 -0
  98. package/src/components/upload/upload-image.vue +212 -0
  99. package/src/components/view/column-check.vue +223 -0
  100. package/src/components/view/column-edit.vue +850 -0
  101. package/src/components/view/column-select.vue +206 -0
  102. package/src/components/view/condition-edit.vue +164 -0
  103. package/src/components/view/filter-edit.vue +633 -0
  104. package/src/components/view/filter-setting.vue +126 -0
  105. package/src/components/view/form-setting-layout.vue +375 -0
  106. package/src/components/view/form-setting.vue +247 -0
  107. package/src/components/view/group-column.vue +104 -0
  108. package/src/components/view/group-method.vue +104 -0
  109. package/src/components/view/mixin.js +72 -0
  110. package/src/components/view/modal-form-filter.vue +319 -0
  111. package/src/components/view/modal-form-sort.vue +248 -0
  112. package/src/components/view/modal-form.vue +453 -0
  113. package/src/components/view/modal-table.vue +471 -0
  114. package/src/components/view/table-filter.vue +702 -0
  115. package/src/components/view/table-setting.vue +533 -0
  116. package/src/components/view/view-chart.vue +423 -0
  117. package/src/components/view/view-form-draggable.vue +837 -0
  118. package/src/components/view/view-form.vue +1444 -0
  119. package/src/components/view/view-table.vue +2261 -0
  120. package/src/components/workflow/flow-chart.vue +846 -0
  121. package/src/directive/focus.js +10 -0
  122. package/src/directive/tabHide.js +9 -0
  123. package/src/i18n/index.js +15 -0
  124. package/src/i18n/locale/en-US.js +1 -0
  125. package/src/i18n/locale/lang.js +1 -0
  126. package/src/i18n/locale/zh-CN.js +1 -0
  127. package/src/i18n/locale.js +102 -0
  128. package/src/index.js +222 -0
  129. package/src/layouts/basic-layout/header-breadcrumb/index.vue +122 -0
  130. package/src/layouts/basic-layout/header-collapse/index.vue +44 -0
  131. package/src/layouts/basic-layout/header-fullscreen/index.vue +19 -0
  132. package/src/layouts/basic-layout/header-i18n/index.vue +45 -0
  133. package/src/layouts/basic-layout/header-log/index.vue +41 -0
  134. package/src/layouts/basic-layout/header-logo/index.vue +23 -0
  135. package/src/layouts/basic-layout/header-notice/index.vue +218 -0
  136. package/src/layouts/basic-layout/header-reload/index.vue +21 -0
  137. package/src/layouts/basic-layout/header-search/index.vue +37 -0
  138. package/src/layouts/basic-layout/header-setting/index.vue +219 -0
  139. package/src/layouts/basic-layout/header-user/index.vue +175 -0
  140. package/src/layouts/basic-layout/i18n.js +50 -0
  141. package/src/layouts/basic-layout/index.vue +280 -0
  142. package/src/layouts/basic-layout/menu-head/index.vue +120 -0
  143. package/src/layouts/basic-layout/menu-head/title.vue +48 -0
  144. package/src/layouts/basic-layout/menu-side/index.vue +113 -0
  145. package/src/layouts/basic-layout/menu-side/menu-collapse.vue +76 -0
  146. package/src/layouts/basic-layout/menu-side/menu-item.vue +31 -0
  147. package/src/layouts/basic-layout/menu-side/menu-title.vue +56 -0
  148. package/src/layouts/basic-layout/menu-side/submenu.vue +31 -0
  149. package/src/layouts/basic-layout/mixins/click-item.js +21 -0
  150. package/src/layouts/basic-layout/mixins/sider-menu-badge.js +13 -0
  151. package/src/layouts/basic-layout/mixins/translate-title.js +11 -0
  152. package/src/layouts/basic-layout/tabs/index.vue +192 -0
  153. package/src/layouts/basic-layout/water-mark/index.vue +29 -0
  154. package/src/libs/lodop/index.js +145 -0
  155. package/src/libs/random_str.js +10 -0
  156. package/src/libs/request/index.js +158 -0
  157. package/src/libs/system/index.js +234 -0
  158. package/src/libs/util.cookies.js +44 -0
  159. package/src/libs/util.db.js +13 -0
  160. package/src/libs/util.js +55 -0
  161. package/src/libs/util.log.js +88 -0
  162. package/src/libs/water-mark.js +44 -0
  163. package/src/menu/header.js +20 -0
  164. package/src/menu/modules/dashboard.js +23 -0
  165. package/src/menu/sider.js +12 -0
  166. package/src/mixins/app.js +9 -0
  167. package/src/mixins/page.js +643 -0
  168. package/src/pages/account/login.vue +101 -0
  169. package/src/pages/common/home.vue +169 -0
  170. package/src/pages/common/task-form.vue +350 -0
  171. package/src/pages/common/todo.vue +31 -0
  172. package/src/pages/system/apiLog.vue +79 -0
  173. package/src/pages/system/applicationType.vue +182 -0
  174. package/src/pages/system/customPage.vue +62 -0
  175. package/src/pages/system/customTable.vue +98 -0
  176. package/src/pages/system/dict.vue +36 -0
  177. package/src/pages/system/dictType.vue +58 -0
  178. package/src/pages/system/entityView.vue +38 -0
  179. package/src/pages/system/error/404.vue +6 -0
  180. package/src/pages/system/extendColumn.vue +99 -0
  181. package/src/pages/system/formView.vue +136 -0
  182. package/src/pages/system/log.vue +55 -0
  183. package/src/pages/system/notice.vue +26 -0
  184. package/src/pages/system/openApi.vue +26 -0
  185. package/src/pages/system/openUser.vue +66 -0
  186. package/src/pages/system/organization.vue +98 -0
  187. package/src/pages/system/organizationType.vue +26 -0
  188. package/src/pages/system/permission.vue +175 -0
  189. package/src/pages/system/planJob.vue +40 -0
  190. package/src/pages/system/printTemplate.vue +48 -0
  191. package/src/pages/system/process.vue +79 -0
  192. package/src/pages/system/processType.vue +26 -0
  193. package/src/pages/system/role.vue +395 -0
  194. package/src/pages/system/rolePropertyEdit.vue +480 -0
  195. package/src/pages/system/sequenceSetting.vue +26 -0
  196. package/src/pages/system/systemData.vue +52 -0
  197. package/src/pages/system/tableView.vue +386 -0
  198. package/src/pages/system/taskQueue.vue +48 -0
  199. package/src/pages/system/user.vue +250 -0
  200. package/src/pages/template/processPage.vue +243 -0
  201. package/src/pages/template/reportPage.vue +66 -0
  202. package/src/pages/template/viewPage.vue +139 -0
  203. package/src/plugins/auth/index.js +21 -0
  204. package/src/plugins/error/index.js +31 -0
  205. package/src/plugins/index.js +24 -0
  206. package/src/plugins/sweetalert2/index.js +20 -0
  207. package/src/router/dynamic.js +183 -0
  208. package/src/router/index.js +84 -0
  209. package/src/setting.js +202 -0
  210. package/src/store/index.js +9 -0
  211. package/src/store/modules/admin/index.js +16 -0
  212. package/src/store/modules/admin/modules/account.js +103 -0
  213. package/src/store/modules/admin/modules/cache.js +119 -0
  214. package/src/store/modules/admin/modules/dataView.js +112 -0
  215. package/src/store/modules/admin/modules/db.js +231 -0
  216. package/src/store/modules/admin/modules/i18n.js +87 -0
  217. package/src/store/modules/admin/modules/layout.js +115 -0
  218. package/src/store/modules/admin/modules/loader.js +44 -0
  219. package/src/store/modules/admin/modules/log.js +77 -0
  220. package/src/store/modules/admin/modules/menu.js +338 -0
  221. package/src/store/modules/admin/modules/page.js +466 -0
  222. package/src/store/modules/admin/modules/user.js +96 -0
  223. package/src/store/modules/admin/modules/viewPage.js +34 -0
  224. package/src/styles/common.less +47 -0
  225. package/src/styles/css/default.css +510 -0
  226. package/src/styles/css/login.css +1217 -0
  227. package/src/styles/default/index.less +6 -0
  228. package/src/styles/font/demo.css +539 -0
  229. package/src/styles/font/demo_index.html +372 -0
  230. package/src/styles/font/icon-demo/demo.css +539 -0
  231. package/src/styles/font/icon-demo/demo_index.html +423 -0
  232. package/src/styles/font/icon-demo/iconfont.css +61 -0
  233. package/src/styles/font/icon-demo/iconfont.eot +0 -0
  234. package/src/styles/font/icon-demo/iconfont.js +1 -0
  235. package/src/styles/font/icon-demo/iconfont.svg +59 -0
  236. package/src/styles/font/icon-demo/iconfont.ttf +0 -0
  237. package/src/styles/font/icon-demo/iconfont.woff +0 -0
  238. package/src/styles/font/icon-demo/iconfont.woff2 +0 -0
  239. package/src/styles/font/iconfont.css +47 -0
  240. package/src/styles/font/iconfont.js +1 -0
  241. package/src/styles/font/iconfont.json +65 -0
  242. package/src/styles/font/iconfont.ttf +0 -0
  243. package/src/styles/font/iconfont.woff +0 -0
  244. package/src/styles/font/iconfont.woff2 +0 -0
  245. package/src/styles/font/ionicons.svg +870 -0
  246. package/src/styles/font/ionicons.ttf +0 -0
  247. package/src/styles/font/ionicons.woff +0 -0
  248. package/src/styles/font/ionicons.woff2 +0 -0
  249. package/src/styles/index.less +7 -0
  250. package/src/styles/layout/basic-layout/layout.less +527 -0
  251. package/src/styles/layout/basic-layout/menu.less +274 -0
  252. package/src/styles/layout/index.less +2 -0
  253. package/src/styles/setting.less +6 -0
  254. package/styleguide.config.js +22 -0
  255. package/test/api/barcode.js +50 -0
  256. package/test/api/inbound.js +47 -0
  257. package/test/api/interfaceLog.js +15 -0
  258. package/test/api/interfaceQueue.js +15 -0
  259. package/test/api/interfaceServer.js +29 -0
  260. package/test/api/movePlan.js +50 -0
  261. package/test/api/movePlanItem.js +13 -0
  262. package/test/api/moveType.js +22 -0
  263. package/test/api/openApiPermission.js +25 -0
  264. package/test/api/outbound.js +40 -0
  265. package/test/api/permission.js +34 -0
  266. package/test/api/rolePermission.js +17 -0
  267. package/test/api/user.js +40 -0
  268. package/test/api/viewColumn.js +16 -0
  269. package/test/api/warehouse.js +13 -0
  270. package/test/api/warehouseMoveType.js +18 -0
  271. package/test/main.js +55 -0
  272. package/test/package.js +33 -0
  273. package/test/pages/home/index.vue +22 -0
  274. package/test/pages/task/test.vue +28 -0
  275. package/test/pages/test/dataViewTest.vue +28 -0
  276. package/test/pages/test/logReport.vue +25 -0
  277. package/test/pages/test/testPage.vue +38 -0
  278. package/test/router/routes.js +88 -0
  279. package/test/setting.env.js +22 -0
  280. package/test/styles/css/custom.css +0 -0
  281. package/test/styles/css/login.css +1217 -0
  282. package/vite.config.js +72 -0
  283. package/vue.config.js +20 -0
@@ -0,0 +1,274 @@
1
+ .i-layout-menu{
2
+ &-side{
3
+ position: static; // 菜单开启后,Dropdown 会被 overflow-y:hidden 隐藏掉,加此不受影响
4
+ &:after{
5
+ display: none !important;
6
+ }
7
+ &-title{
8
+ display: inline-block;
9
+ &-icon{
10
+ display: inline-block;
11
+ width: 24px;
12
+ height: 24px;
13
+ line-height: 21px;
14
+ vertical-align: middle;
15
+ text-align: center;
16
+ margin-right: 8px;
17
+ &-single{
18
+ margin-right: 0;
19
+ }
20
+ i{
21
+ margin-right: 0 !important;
22
+ }
23
+ img{
24
+ width: 100%;
25
+ height: 100%;
26
+ }
27
+ }
28
+
29
+ &-text{
30
+ &-selected{
31
+ color: @primary-color;
32
+ }
33
+ &-with-subtitle{
34
+ position: relative;
35
+ top: -6px;
36
+ }
37
+ em{
38
+ display: block;
39
+ font-style: normal;
40
+ font-size: 12px;
41
+ opacity: 0.5;
42
+ }
43
+ &-with-icon{
44
+ em{
45
+ margin-left: 32px;
46
+ }
47
+ }
48
+ }
49
+
50
+ &-with-collapse &-text{
51
+ &-with-subtitle{
52
+ position: relative;
53
+ top: 0;
54
+ }
55
+ }
56
+ }
57
+
58
+ .ivu-menu-submenu-title, .ivu-menu-item{
59
+ height: 52px;
60
+ overflow: hidden;
61
+ text-overflow: ellipsis;
62
+ white-space: nowrap;
63
+ }
64
+
65
+ .ivu-menu-submenu-title-icon{
66
+ width: 14px;
67
+ height: 14px;
68
+ position: absolute;
69
+ top: 50%;
70
+ right: 8px;
71
+ float: none;
72
+ }
73
+
74
+ .ivu-dropdown-menu{
75
+ min-width: 160px;
76
+ }
77
+ .ivu-dropdown-item{
78
+ font-size: @font-size-base !important;
79
+ padding-right: 32px;
80
+
81
+ &-divided:before{
82
+ margin: 0 -32px 0 -16px;
83
+ }
84
+ }
85
+ .ivu-select-dropdown{
86
+ margin: 5px 0 5px 3px;
87
+ }
88
+ .ivu-tooltip, .ivu-tooltip-rel{
89
+ display: block;
90
+ text-align: center;
91
+ }
92
+
93
+ &.ivu-menu-dark .ivu-menu-item-active{
94
+ color: #fff !important;
95
+ }
96
+
97
+ &-arrow{
98
+ position: absolute;
99
+ top: 50%;
100
+ right: 16px;
101
+ transform: translate(0, -50%);
102
+ }
103
+
104
+ &-collapse{
105
+ &-top{
106
+ display: block;
107
+ &-item{
108
+ text-align: center;
109
+ }
110
+ }
111
+ &-item{
112
+ &-selected, &-selected:hover{
113
+ background-color: ~`colorPalette("@{primary-color}", 1)`;
114
+ color: @primary-color;
115
+ }
116
+ }
117
+ &-dropdown{
118
+ &-menu{
119
+ overflow-y: auto;
120
+ }
121
+ }
122
+ &-title{
123
+ text-align: center;
124
+ padding: 6px 0;
125
+ border-bottom: 1px solid @border-color-split;
126
+ }
127
+ &-dark{
128
+ .ivu-select-dropdown{
129
+ background-color: @menu-dark-title;
130
+ }
131
+ .ivu-dropdown-item{
132
+ color: @menu-dark-subsidiary-color;
133
+ transition: all @transition-time @ease-in-out;
134
+
135
+ &-divided{
136
+ border-color: @menu-dark-active-bg;
137
+ &:before{
138
+ background-color: @menu-dark-title;
139
+ }
140
+ }
141
+ }
142
+ .ivu-dropdown-item:hover{
143
+ background: transparent;
144
+ color: #fff;
145
+ }
146
+ .i-layout-menu-side-collapse-item{
147
+ &-selected, &-selected:hover{
148
+ background-color: @primary-color;
149
+ color: #fff;
150
+ }
151
+ }
152
+ }
153
+ &-dark &-title{
154
+ border-bottom: 1px solid @menu-dark-active-bg;
155
+ color: @menu-dark-subsidiary-color;
156
+ }
157
+
158
+ &-top-item{
159
+ padding-left: 0 !important;
160
+ padding-right: 0 !important;
161
+ }
162
+ }
163
+
164
+ &-badge{
165
+ position: absolute;
166
+ top: 16px;
167
+ right: 40px;
168
+ .ivu-badge-count{
169
+ box-shadow: none;
170
+ }
171
+ }
172
+ &-collapse &-badge{
173
+ display: none;
174
+ }
175
+ }
176
+
177
+ &-head{
178
+ display: inline-block;
179
+ //overflow: hidden;
180
+ flex: 1;
181
+
182
+ .ivu-menu-horizontal.ivu-menu-light:after{
183
+ display: none;
184
+ }
185
+ .ivu-menu-horizontal{
186
+ display: inline-block;
187
+ vertical-align: middle;
188
+ height: auto; // 这里不能设置为 @menuHeaderHeight - 2px,因为在平板模式下,header 宽度不够,拿不到真实高度
189
+ line-height: @menuHeaderHeight - 6px;
190
+ }
191
+
192
+ &-logo{
193
+ display: inline-block;
194
+ height: @menuHeaderHeight;
195
+ text-align: center;
196
+ vertical-align: middle;
197
+ img{
198
+ height: 80%;
199
+ vertical-align: middle;
200
+ }
201
+ }
202
+
203
+ &-title{
204
+ display: inline-block;
205
+ &-icon{
206
+ display: inline-block;
207
+ width: 24px;
208
+ height: 24px;
209
+ line-height: 24px;
210
+ vertical-align: middle;
211
+ text-align: center;
212
+ &-single{
213
+ margin-right: 0;
214
+ }
215
+ i{
216
+ margin-right: 0 !important;
217
+ font-size: 16px;
218
+ }
219
+ img{
220
+ width: 100%;
221
+ height: 100%;
222
+ }
223
+ }
224
+ &-text{
225
+ vertical-align: middle;
226
+ margin-left: 6px;
227
+ }
228
+ }
229
+
230
+ .ivu-dropdown-rel{
231
+ padding: @headerTriggerMinPadding;
232
+ }
233
+ .ivu-dropdown-item{
234
+ text-align: left;
235
+ }
236
+
237
+ &-badge{
238
+ .ivu-badge-count{
239
+ border: none;
240
+ box-shadow: none;
241
+ margin-left: 12px;
242
+ line-height: 20px;
243
+ }
244
+ }
245
+
246
+ &-mobile{
247
+ vertical-align: baseline;
248
+ overflow: visible;
249
+ .ivu-dropdown-item{
250
+ font-size: 14px !important;
251
+ text-align: left;
252
+ i,span{
253
+ vertical-align: middle;
254
+ }
255
+ i{
256
+ margin-right: 6px;
257
+ }
258
+ }
259
+ &-drop{
260
+ .dropdownMobile();
261
+ }
262
+ &-subtitle{
263
+ color: @text-color;
264
+ cursor: default;
265
+ text-align: center !important;
266
+ border-bottom: 1px solid @border-color-split;
267
+ &:hover{
268
+ color: @text-color;
269
+ cursor: default;
270
+ }
271
+ }
272
+ }
273
+ }
274
+ }
@@ -0,0 +1,2 @@
1
+ @import "basic-layout/layout.less";
2
+ @import "basic-layout/menu.less";
@@ -0,0 +1,6 @@
1
+ // 侧边菜单宽度,需与 setting.js 的 menuSideWidth 保持一致
2
+ @menuSideWidth: 256px;
3
+ // 顶栏高度,需与 setting.js 的 headerHeight 保持一致
4
+ @headerHeight: 64px;
5
+ // 侧边菜单折起时的宽度,需与 setting.js 的 menuSideCollapseWidth 保持一致
6
+ @menuSideCollapseWidth: 80px;
@@ -0,0 +1,22 @@
1
+ module.exports = {
2
+ title: 'mooho-base-admin-plus',
3
+ components: [
4
+ 'src/components/view/modal-form.vue',
5
+ 'src/components/view/modal-table.vue',
6
+ 'src/components/view/view-form.vue',
7
+ 'src/components/view/view-table.vue',
8
+ 'src/components/view/view-chart.vue',
9
+ 'src/components/input/*.vue'
10
+ ],
11
+ styleguideDir: 'styleguide-dist',
12
+ // 在编辑器的右上角添加一个小按钮,用于将编辑器的内容复制到剪贴板
13
+ copyCodeButton: true,
14
+ // 是否每个章节是一个独立的页面. 默认:false
15
+ pagePerSection: false,
16
+ // props/events/slot的说明默认是展开还是收缩: expand / collapse / hide
17
+ usageMode: 'expand',
18
+ // 左侧导航默认是展开还是收缩: expand / collapse / hide
19
+ tocMode: 'expand',
20
+ // 显示 prop、事件、槽或方法是否来自当前文件或在 mixin 或扩展组件中配置。如果它是外部的,它会显示组件的名称,并在悬停时显示文件的相对路径。
21
+ displayOrigins: true
22
+ };
@@ -0,0 +1,50 @@
1
+ import { request, lodop } from '../../src';
2
+
3
+ const res = 'Barcode';
4
+
5
+ export default {
6
+ query(filter) {
7
+ return request({
8
+ url: `api/${res}/query`,
9
+ method: 'post',
10
+ data: filter
11
+ });
12
+ },
13
+ getPrint(noList, num) {
14
+ return request({
15
+ url: `api/${res}/print`,
16
+ method: 'get',
17
+ params: { noList: JSON.stringify(noList), num }
18
+ });
19
+ },
20
+ async print(noList, num) {
21
+ let model = await this.getPrint(noList, num);
22
+ try {
23
+ var LODOP = lodop.getLodop();
24
+ } catch (e) {
25
+ alert('请检查打印驱动!' + e.message);
26
+ return;
27
+ }
28
+ //这个语句设置网络共享打印机连接不通时是否提示一下
29
+ LODOP.SET_PRINT_MODE('TRYLINKPRINTER_NOALERT', true);
30
+ LODOP.PRINT_INIT('标签条码');
31
+ for (let index = 0; index < model.length; index++) {
32
+ let item = model[index];
33
+ LODOP.ADD_PRINT_HTM(item.top, item.left, item.width, item.height, item.content);
34
+ if (item.pageWidth != null && item.pageHeight != null) {
35
+ LODOP.SET_PRINT_PAGESIZE(item.orient == 'Landscape' ? 2 : item.orient == 'Portrait' ? 1 : 0, item.pageWidth, item.pageHeight, item.pageName);
36
+ LODOP.SET_SHOW_MODE('LANDSCAPE_DEFROTATED', 1);
37
+ }
38
+ }
39
+
40
+ LODOP.SET_PRINT_STYLEA(0, 'TableHeightScope', 1);
41
+ LODOP.PREVIEW();
42
+ },
43
+ save(data) {
44
+ return request({
45
+ url: `api/${res}/add`,
46
+ method: 'post',
47
+ data: { data }
48
+ });
49
+ }
50
+ };
@@ -0,0 +1,47 @@
1
+ import { request, lodop } from '/src';
2
+
3
+ const res = 'Inbound';
4
+
5
+ export default {
6
+ add(data) {
7
+ return request({
8
+ url: `api/${res}/add`,
9
+ method: 'post',
10
+ data
11
+ });
12
+ },
13
+ getPrint(id) {
14
+ return request({
15
+ url: `api/${res}/print`,
16
+ method: 'get',
17
+ params: { id: JSON.stringify(id) }
18
+ });
19
+ },
20
+ async print(id) {
21
+ let model = await this.getPrint(id);
22
+ try {
23
+ var LODOP = lodop.getLodop();
24
+ } catch (e) {
25
+ alert('请检查打印驱动!' + e.message);
26
+ return;
27
+ }
28
+ //这个语句设置网络共享打印机连接不通时是否提示一下
29
+ LODOP.SET_PRINT_MODE('TRYLINKPRINTER_NOALERT', true);
30
+ LODOP.PRINT_INIT('入库单明细');
31
+ for (let index = 0; index < model.length; index++) {
32
+ const item = model[index];
33
+ if (!index == 0) {
34
+ LODOP.NewPageA();
35
+ }
36
+
37
+ LODOP.ADD_PRINT_HTM(item.top, item.left, item.width, item.height, item.content);
38
+ if (item.pageWidth != null && item.pageHeight != null) {
39
+ LODOP.SET_PRINT_PAGESIZE(item.orient == 'Landscape' ? 2 : item.orient == 'Portrait' ? 1 : 0, item.pageWidth, item.pageHeight, item.pageName);
40
+ LODOP.SET_SHOW_MODE('LANDSCAPE_DEFROTATED', 1);
41
+ }
42
+ }
43
+
44
+ LODOP.SET_PRINT_STYLEA(0, 'TableHeightScope', 1);
45
+ LODOP.PRINT();
46
+ }
47
+ };
@@ -0,0 +1,15 @@
1
+ import { request } from '/src';
2
+
3
+ const res = 'InterfaceLog';
4
+
5
+ export default {
6
+ getBodyById(id) {
7
+ return request({
8
+ url: `api/${res}/get`,
9
+ method: 'get',
10
+ params: {
11
+ id
12
+ }
13
+ });
14
+ }
15
+ };
@@ -0,0 +1,15 @@
1
+ import { request } from '/src';
2
+
3
+ const res = 'InterfaceQueue';
4
+
5
+ export default {
6
+ getBodyById(id) {
7
+ return request({
8
+ url: `api/${res}/get`,
9
+ method: 'get',
10
+ params: {
11
+ id
12
+ }
13
+ });
14
+ }
15
+ };
@@ -0,0 +1,29 @@
1
+ import { request } from '/src';
2
+ const res = 'InterfaceServer';
3
+
4
+ export default {
5
+ getWithUrls(id) {
6
+ return request({
7
+ url: `api/${res}/GetWithUrls`,
8
+ method: 'get',
9
+ params: { id }
10
+ });
11
+ },
12
+ add(server, urls) {
13
+ return request({
14
+ url: `api/${res}/add`,
15
+ method: 'post',
16
+ data: { server, urls }
17
+ });
18
+ },
19
+ update(server, urls) {
20
+ return request({
21
+ url: `api/${res}/update`,
22
+ method: 'put',
23
+ data: {
24
+ server,
25
+ urls
26
+ }
27
+ });
28
+ }
29
+ };
@@ -0,0 +1,50 @@
1
+ import { request, lodop } from '/src';
2
+
3
+ const res = 'MovePlan';
4
+
5
+ export default {
6
+ submit(movePlan, movePlanItems) {
7
+ return request({
8
+ url: `api/${res}/submit`,
9
+ method: 'post',
10
+ data: {
11
+ movePlan,
12
+ movePlanItems
13
+ }
14
+ });
15
+ },
16
+ getPrint(id) {
17
+ return request({
18
+ url: `api/${res}/print`,
19
+ method: 'get',
20
+ params: { id: JSON.stringify(id) }
21
+ });
22
+ },
23
+ async print(id) {
24
+ let model = await this.getPrint(id);
25
+ try {
26
+ var LODOP = lodop.getLodop();
27
+ } catch (e) {
28
+ alert('请检查打印驱动!' + e.message);
29
+ return;
30
+ }
31
+ //这个语句设置网络共享打印机连接不通时是否提示一下
32
+ LODOP.SET_PRINT_MODE('TRYLINKPRINTER_NOALERT', true);
33
+ LODOP.PRINT_INIT('来料入库物料明细');
34
+ for (let index = 0; index < model.length; index++) {
35
+ const item = model[index];
36
+ if (!index == 0) {
37
+ LODOP.NewPageA();
38
+ }
39
+
40
+ LODOP.ADD_PRINT_HTM(item.top, item.left, item.width, item.height, item.content);
41
+ if (item.pageWidth != null && item.pageHeight != null) {
42
+ LODOP.SET_PRINT_PAGESIZE(item.orient == 'Landscape' ? 2 : item.orient == 'Portrait' ? 1 : 0, item.pageWidth, item.pageHeight, item.pageName);
43
+ LODOP.SET_SHOW_MODE('LANDSCAPE_DEFROTATED', 1);
44
+ }
45
+ }
46
+
47
+ LODOP.SET_PRINT_STYLEA(0, 'TableHeightScope', 1);
48
+ LODOP.PRINT();
49
+ }
50
+ };
@@ -0,0 +1,13 @@
1
+ import { request } from '/src';
2
+
3
+ const res = 'MovePlanItem';
4
+
5
+ export default {
6
+ query(filter) {
7
+ return request({
8
+ url: `api/${res}/query`,
9
+ method: 'post',
10
+ data: filter
11
+ });
12
+ }
13
+ };
@@ -0,0 +1,22 @@
1
+ import { request } from '/src';
2
+
3
+ const res = 'MoveType';
4
+
5
+ export default {
6
+ getByCode(code) {
7
+ return request({
8
+ url: `api/${res}/getByCode`,
9
+ method: 'get',
10
+ params: {
11
+ code
12
+ }
13
+ });
14
+ },
15
+ query(filter = {}) {
16
+ return request({
17
+ url: `api/${res}/query`,
18
+ method: 'post',
19
+ data: filter
20
+ });
21
+ }
22
+ };
@@ -0,0 +1,25 @@
1
+ import { request } from '/src';
2
+
3
+ const res = 'OpenApiPermission';
4
+
5
+ export default {
6
+ queryForCheck(openUserID) {
7
+ return request({
8
+ url: `api/${res}/queryForCheck`,
9
+ method: 'get',
10
+ params: {
11
+ openUserID
12
+ }
13
+ });
14
+ },
15
+ batchSave(openUserID, openApiIDs) {
16
+ return request({
17
+ url: `api/${res}/batchSave`,
18
+ method: 'post',
19
+ data: {
20
+ openUserID,
21
+ openApiIDs
22
+ }
23
+ });
24
+ }
25
+ };
@@ -0,0 +1,40 @@
1
+ import { request, lodop } from '/src';
2
+
3
+ const res = 'Outbound';
4
+
5
+ export default {
6
+ getPrint(id) {
7
+ return request({
8
+ url: `api/${res}/print`,
9
+ method: 'get',
10
+ params: { id: JSON.stringify(id) }
11
+ });
12
+ },
13
+ async print(id) {
14
+ let model = await this.getPrint(id);
15
+ try {
16
+ var LODOP = lodop.getLodop();
17
+ } catch (e) {
18
+ alert('请检查打印驱动!' + e.message);
19
+ return;
20
+ }
21
+ //这个语句设置网络共享打印机连接不通时是否提示一下
22
+ LODOP.SET_PRINT_MODE('TRYLINKPRINTER_NOALERT', true);
23
+ LODOP.PRINT_INIT('出库单明细');
24
+ for (let index = 0; index < model.length; index++) {
25
+ const item = model[index];
26
+ if (!index == 0) {
27
+ LODOP.NewPageA();
28
+ }
29
+
30
+ LODOP.ADD_PRINT_HTM(item.top, item.left, item.width, item.height, item.content);
31
+ if (item.pageWidth != null && item.pageHeight != null) {
32
+ LODOP.SET_PRINT_PAGESIZE(item.orient == 'Landscape' ? 2 : item.orient == 'Portrait' ? 1 : 0, item.pageWidth, item.pageHeight, item.pageName);
33
+ LODOP.SET_SHOW_MODE('LANDSCAPE_DEFROTATED', 1);
34
+ }
35
+ }
36
+
37
+ LODOP.SET_PRINT_STYLEA(0, 'TableHeightScope', 1);
38
+ LODOP.PRINT();
39
+ }
40
+ };
@@ -0,0 +1,34 @@
1
+ import { request } from '/src';
2
+
3
+ const res = 'Permission';
4
+
5
+ export default {
6
+ query() {
7
+ return request({
8
+ url: `api/${res}/query`,
9
+ method: 'get',
10
+ params: {
11
+ clientType: 'Admin'
12
+ }
13
+ });
14
+ },
15
+ queryByRoleID(roleID, clientType) {
16
+ return request({
17
+ url: `api/${res}/queryByRoleID`,
18
+ method: 'get',
19
+ params: {
20
+ roleID,
21
+ clientType
22
+ }
23
+ });
24
+ },
25
+ queryRouter() {
26
+ return request({
27
+ url: `api/${res}/queryRouter`,
28
+ method: 'get',
29
+ params: {
30
+ clientType: 'Admin'
31
+ }
32
+ });
33
+ }
34
+ };
@@ -0,0 +1,17 @@
1
+ import { request } from '/src';
2
+
3
+ const res = 'RolePermission';
4
+
5
+ export default {
6
+ update(roleID, clientType, permissionIDs) {
7
+ return request({
8
+ url: `api/${res}/updateRolePermissions`,
9
+ method: 'post',
10
+ data: {
11
+ roleID,
12
+ clientType,
13
+ permissionIDs
14
+ }
15
+ });
16
+ }
17
+ };