[admin] agent allow&deny

This commit is contained in:
xiaomlove
2022-02-25 18:09:31 +08:00
parent e2f30ecf0c
commit 9edbaf49ca
25 changed files with 1420 additions and 28 deletions
+27 -5
View File
@@ -7,22 +7,44 @@ const api = {
logout: (params = {}) => {
return axios.post('logout');
},
listAllowAgent: (params = {}) => {
listAgentAllow: (params = {}) => {
return axios.get('agent-allows', {params: params});
},
storeAllowAgent: (params = {}) => {
listAllAgentAllow: (params = {}) => {
return axios.get('all-agent-allows', {params: params});
},
storeAgentAllow: (params = {}) => {
return axios.post('agent-allows', params);
},
updateAllowAgent: (id, params = {}) => {
updateAgentAllow: (id, params = {}) => {
return axios.put('agent-allows/' + id, params);
},
getAllowAgent: (id) => {
getAgentAllow: (id) => {
return axios.get('agent-allows/' + id);
},
deleteAllowAgent: (id) => {
deleteAgentAllow: (id) => {
return axios.delete('agent-allows/' + id);
},
listAgentDeny: (params = {}) => {
return axios.get('agent-denies', {params: params});
},
storeAgentDeny: (params = {}) => {
return axios.post('agent-denies', params);
},
updateAgentDeny: (id, params = {}) => {
return axios.put('agent-denies/' + id, params);
},
getAgentDeny: (id) => {
return axios.get('agent-denies/' + id);
},
deleteAgentDeny: (id) => {
return axios.delete('agent-denies/' + id);
},
checkAgent: (params = {}) => {
return axios.post('agent-check', params);
},
listUser: (params = {}) => {
return axios.get('users', {params: params});
},
+2
View File
@@ -40,6 +40,8 @@ export const pathMap = {
account: '修改账户',
'agent-allow': 'Agent allow',
'agent-allow-form': 'Agent allow form',
'agent-deny': 'Agent deny',
'agent-deny-form': 'Agent deny form',
'user': 'User',
'user-form': 'User form',
'user-detail': 'User detail',
+1 -1
View File
@@ -6,7 +6,7 @@ const useTable = () => {
query: {
page: 1,
sort_field: 'id',
sort_type: 'desc'
sort_type: 'desc',
},
tableData: [],
multipleSelection: [],