浏览代码

修改bug

chenrui 1 年之前
父节点
当前提交
2cd5216301

+ 12 - 3
src/api/costType.js

@@ -5,7 +5,10 @@ export const costTypeAllQuery = (params) => {
   return axios({
     url: `/costType/query`,
     data: {},
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -14,7 +17,10 @@ export const costTypeSave = params => {
   return axios({
     url: '/costType/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent(!params.id ? '新增' : '编辑')
+    }
   })
 }
 
@@ -23,6 +29,9 @@ export const costTypeDel = params => {
   return axios({
     url: `/costType/delete/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers: {
+      'module': encodeURIComponent('删除')
+    }
   })
 }

+ 20 - 5
src/api/custType.js

@@ -8,7 +8,10 @@ export const custTypeList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -17,7 +20,10 @@ export const custTypeAllList = (params) => {
   return axios({
     url: `/custType/queryList`,
     data: {},
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  客户类型列表  下拉
@@ -25,7 +31,10 @@ export const custTypeFindAllList = (params) => {
   return axios({
     url: `/custType/findAll`,
     data: {},
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -34,7 +43,10 @@ export const custTypeSave = params => {
   return axios({
     url: '/custType/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent(!params.id ? '新增' : '编辑')
+    }
   })
 }
 
@@ -43,6 +55,9 @@ export const custTypeDel = params => {
   return axios({
     url: `/custType/delete/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers: {
+      'module': encodeURIComponent('删除')
+    }
   })
 }

+ 30 - 9
src/api/noticeUser.js

@@ -8,7 +8,10 @@ export const noticeUserList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  公告 详情
@@ -16,7 +19,10 @@ export const noticeUserDetail = (params) => {
   const url = `/notice/findById/${params.id}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers: {
+      'module': encodeURIComponent('公告详情')
+    }
   })
 }
 
@@ -24,29 +30,41 @@ export const noticeUserDetail = (params) => {
 export const getUnreadCount = params => {
   return axios({
     url: 'noticeUser/queryNotReadCount',
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('未读消息数量统计')
+    }
   })
 }
 // 设置已读消息
 export const hasRead = id => {
   return axios({
     url: `noticeUser/setRead/${id}`,
-    method: 'get'
+    method: 'get',
+    headers: {
+      'module': encodeURIComponent('消息已读')
+    }
   })
 }
 // 设置全部已读
 export const setReadAllNotice = params => {
   return axios({
     url: `noticeUser/setReadAllNotice`,
-    method: 'get'
+    method: 'get',
+    headers: {
+      'module': encodeURIComponent('全部已读')
+    }
   })
 }
- // 消息公共权限设置列表
+// 消息公共权限设置列表
 export const noticeUserBizQuery = (params) => {
   const url = `/noticeUserBiz/query`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 // 消息公共权限保存
@@ -55,6 +73,9 @@ export const noticeUserBizSave = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('保存')
+    }
   })
-}
+}

+ 28 - 7
src/api/power-user.js

@@ -5,7 +5,10 @@ export const resetPSD = params => {
   return axios({
     url: '/mduser/resetPwd',
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers: {
+      'module': encodeURIComponent('重置密码')
+    }
   })
 }
 
@@ -17,7 +20,10 @@ export const getPowerUserList = params => {
   return axios({
     url: url,
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -27,7 +33,10 @@ export const getUserAllList = params => {
   return axios({
     url: url,
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -36,7 +45,10 @@ export const updateEnableStatus = params => {
   return axios({
     url: `/mduser/enable/${params.id}/${params.flag}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers: {
+      'module': encodeURIComponent(params.flag == 0 ? '禁用' : '启用')
+    }
   })
 }
 
@@ -45,7 +57,10 @@ export const delectUserPower = params => {
   return axios({
     url: `/mduser/delete/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers: {
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -54,7 +69,10 @@ export const saveUserPower = params => {
   return axios({
     url: '/mduser/save',
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers: {
+      'module': encodeURIComponent(!params.id ? '新增' : '编辑')
+    }
   })
 }
 
@@ -63,6 +81,9 @@ export const getRoleList = params => {
   return axios({
     url: '/mdrole/findAll',
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers: {
+      'module': encodeURIComponent('角色列表查询')
+    }
   })
 }

+ 28 - 7
src/api/powerRole-md.js

@@ -8,7 +8,10 @@ export const getPowerRoleList = params => {
   return axios({
     url: url,
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -17,7 +20,10 @@ export const updateEnableStatus = params => {
   return axios({
     url: `/mdrole/enable/${params.id}/${params.flag}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers: {
+      'module': encodeURIComponent(params.flag == 0 ? '禁用' : '启用')
+    }
   })
 }
 
@@ -26,7 +32,10 @@ export const delectRolePower = params => {
   return axios({
     url: `/mdrole/delete/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers: {
+      'module': encodeURIComponent('删除')
+    }
   })
 }
 
@@ -35,7 +44,10 @@ export const saveRolePower = params => {
   return axios({
     url: '/mdrole/save',
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers: {
+      'module': encodeURIComponent(!params.id ? '新增' : '编辑')
+    }
   })
 }
 
@@ -44,7 +56,10 @@ export const getMenuList = params => {
   const url = `/mdrole/findAllMenu/${params.id}`
   return axios({
     url: url,
-    method: 'get'
+    method: 'get',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -54,7 +69,10 @@ export const addMenuPower = params => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('权限分配')
+    }
   })
 }
 
@@ -63,6 +81,9 @@ export const getRoleList = params => {
   return axios({
     url: '/mdrole/findAll',
     data: params,
-    method: 'POST'
+    method: 'POST',
+    headers: {
+      'module': encodeURIComponent('角色列表查询')
+    }
   })
 }

+ 8 - 2
src/api/promoTerminal.js

@@ -8,7 +8,10 @@ export const promoTerminalList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 
@@ -17,6 +20,9 @@ export const promoTerminalDetail = params => {
   return axios({
     url: `/promoTerminal/findBySn/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers: {
+      'module': encodeURIComponent('促销展示详情')
+    }
   })
 }

+ 12 - 3
src/api/sparePartsPutType.js

@@ -8,7 +8,10 @@ export const sparePartsPutTypeList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  散件入库类型类型 列表  不分页
@@ -25,7 +28,10 @@ export const sparePartsPutTypeSave = params => {
   return axios({
     url: '/sparePartsPutType/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent(!params.id ? '新增' : '编辑')
+    }
   })
 }
 
@@ -34,6 +40,9 @@ export const sparePartsPutTypeDel = params => {
   return axios({
     url: `/sparePartsPutType/delete/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers: {
+      'module': encodeURIComponent('删除')
+    }
   })
 }

+ 12 - 3
src/api/storeCallOutType.js

@@ -8,7 +8,10 @@ export const storeCallOutTypeList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  店内调出类型 列表  不分页
@@ -25,7 +28,10 @@ export const storeCallOutTypeSave = params => {
   return axios({
     url: '/storeCallOutType/save',
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent(!params.id ? '新增' : '编辑')
+    }
   })
 }
 
@@ -34,6 +40,9 @@ export const storeCallOutTypeDel = params => {
   return axios({
     url: `/storeCallOutType/delete/${params.id}`,
     data: {},
-    method: 'get'
+    method: 'get',
+    headers: {
+      'module': encodeURIComponent('删除')
+    }
   })
 }

+ 12 - 3
src/api/supplier.js

@@ -8,7 +8,10 @@ export const supplierList = (params) => {
   return axios({
     url: url,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
   })
 }
 //  供应商 列表  无分页
@@ -24,7 +27,10 @@ export const supplierDetail = (params) => {
   return axios({
     url: `/supplier/findById/${params.id}`,
     data: params,
-    method: 'get'
+    method: 'get',
+    headers: {
+      'module': encodeURIComponent('供应商详细信息')
+    }
   })
 }
 //  供应商 保存
@@ -43,6 +49,9 @@ export const supplierDel = (params) => {
   return axios({
     url: `/supplier/delete/${params.id}`,
     data: params,
-    method: 'post'
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('删除')
+    }
   })
 }