Merge branch 'dev'
Showing
2 changed files
with
16 additions
and
7 deletions
| ... | @@ -12,28 +12,37 @@ let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('Ap | ... | @@ -12,28 +12,37 @@ let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('Ap |
| 12 | * @author: renchao | 12 | * @author: renchao |
| 13 | */ | 13 | */ |
| 14 | export function Init (data) { | 14 | export function Init (data) { |
| 15 | let apiUrl = "/rest/ywbl/dyaq/init"; | ||
| 16 | return request({ | ||
| 17 | url: SERVER.SERVERAPI + apiUrl, | ||
| 18 | method: 'post', | ||
| 19 | data | ||
| 20 | }) | ||
| 21 | } | ||
| 22 | |||
| 23 | export function batchInit (data) { | ||
| 15 | let apiUrl = ""; | 24 | let apiUrl = ""; |
| 16 | switch (data.get("djlx")) { | 25 | switch (data.get("djlx")) { |
| 17 | case "100": | 26 | case "100": |
| 18 | apiUrl = "/rest/ywbl/dyaq/fristInit"; | 27 | apiUrl = "/rest/ywbl/dyaq/fristBatchInit"; |
| 19 | break; | 28 | break; |
| 20 | case "200": | 29 | case "200": |
| 21 | apiUrl = "/rest/ywbl/dyaq/transferInit"; | 30 | apiUrl = "/rest/ywbl/dyaq/transferBatchInit"; |
| 22 | break; | 31 | break; |
| 23 | case "300": | 32 | case "300": |
| 24 | apiUrl = "/rest/ywbl/dyaq/changeInit"; | 33 | apiUrl = "/rest/ywbl/dyaq/changeBatchInit"; |
| 25 | break; | 34 | break; |
| 26 | case "400": | 35 | case "400": |
| 27 | apiUrl = "/rest/ywbl/dyaq/logoutInit"; | 36 | apiUrl = "/rest/ywbl/dyaq/logoutBatchInit"; |
| 28 | break; | 37 | break; |
| 29 | case "500": | 38 | case "500": |
| 30 | apiUrl = "/rest/ywbl/dyaq/riviseInit"; | 39 | apiUrl = "/rest/ywbl/dyaq/riviseBatchInit"; |
| 31 | break; | 40 | break; |
| 32 | case "901": | 41 | case "901": |
| 33 | apiUrl = "/rest/ywbl/dyaq/renewalInit"; | 42 | apiUrl = "/rest/ywbl/dyaq/renewalBatchInit"; |
| 34 | break; | 43 | break; |
| 35 | case "902": | 44 | case "902": |
| 36 | apiUrl = "/rest/ywbl/dyaq/replaceInit"; | 45 | apiUrl = "/rest/ywbl/dyaq/replaceBatchInit"; |
| 37 | break; | 46 | break; |
| 38 | } | 47 | } |
| 39 | return request({ | 48 | return request({ | ... | ... |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment