You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							52 lines
						
					
					
						
							1.4 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							52 lines
						
					
					
						
							1.4 KiB
						
					
					
				| 'use strict'; | |
| 
 | |
| import { basicAction } from '@peace/utils' | |
| import { ApiTable } from '$utils' | |
| 
 | |
| export function postBusinessRules (data = {}) { | |
|    let reminder = data?.id ? '修改业务规则' : '新增业务规则' | |
|    return dispatch => basicAction({ | |
|       type: 'post', | |
|       data, | |
|       dispatch: dispatch, | |
|       actionType: 'POST_BUSINESS_RULES', | |
|       url: `${ApiTable.businessRules}`, | |
|       msg: { option: reminder }, | |
|       reducer: { name: '' } | |
|    }); | |
| } | |
| 
 | |
| export function getBusinessRules (query = {}) { | |
|    return dispatch => basicAction({ | |
|       type: 'get', | |
|       query, | |
|       dispatch: dispatch, | |
|       actionType: 'GET_BUSINESS_RULES', | |
|       url: `${ApiTable.businessRules}`, | |
|       msg: { error: '查询业务规则列表失败' }, | |
|       reducer: { name: '' } | |
|    }); | |
| } | |
| 
 | |
| export function delBusinessRules (id) { | |
|    return dispatch => basicAction({ | |
|       type: 'del', | |
|       dispatch: dispatch, | |
|       actionType: 'del_BUSINESS_RULES', | |
|       url: `${ApiTable.delBusinessRules.replace('{id}', id)}`, | |
|       msg: { option: '删除业务规则' }, | |
|       reducer: { name: '' } | |
|    }); | |
| } | |
| 
 | |
| export function getRegularBasis (query = {}) { | |
|    return dispatch => basicAction({ | |
|       type: 'get', | |
|       query, | |
|       dispatch: dispatch, | |
|       actionType: 'GET_REGULAR_BASIS', | |
|       url: `${ApiTable.regularBasis}`, | |
|       msg: { error: '查询规则依据列表失败' }, | |
|       reducer: { name: '' } | |
|    }); | |
| }
 | |
| 
 |