diff --git a/src/api/modules/violation.js b/src/api/modules/violation.js new file mode 100644 index 0000000..3fba1d1 --- /dev/null +++ b/src/api/modules/violation.js @@ -0,0 +1,45 @@ +import instance from '../../utils/axios.js' + +const violationApi = { + // 获取查询参数与分页参数 + pageQuery: (params) => { + // 转换分页参数名称 + const convertedParams = { + ...params, + pageNum: params.page, + pageSize: params.size + } + // 删除旧的参数 + delete convertedParams.page + delete convertedParams.size + + return instance.get('/violation/pageQuery', { + params: convertedParams, + // paramsSerializer: params => { + // return Object.entries(params) + // .filter(([_, v]) => v !== undefined) + // .map(([k, v]) => `${k}=${encodeURIComponent(v)}`) + // .join('&') + // } + }) + }, + + submit: (ids,remark) => { + return instance.post('/violation/errorSubmit?ids='+ids+"&remark="+remark); + }, + + successSubmit:(ids) => { + return instance.post('/violation/successSubmit?ids='+ids); + }, + + removeSubmit:(ids) => { + return instance.post('/violation/removeSubmit?ids='+ids); + }, + + editSubmit:(ids,sort) => { + return instance.post('/violation/editSubmit?id='+ids+"&sort="+sort); + } + +} + +export { violationApi } \ No newline at end of file diff --git a/src/layout/Sidebar.vue b/src/layout/Sidebar.vue index cd41510..f163a6a 100644 --- a/src/layout/Sidebar.vue +++ b/src/layout/Sidebar.vue @@ -84,6 +84,18 @@ }] }] }, + { + title: '审核管理', + path: '/examine', + children:[{ + title: '违规审核', + path: '/examine/violation', + children:[{ + title: '违规列表', + path: '/examine/violation/list' + }] + }] + } // 更多菜单... ]) diff --git a/src/router/index.js b/src/router/index.js index 714645e..e4ccb86 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -37,6 +37,11 @@ const routes = [{ path: '/tools/cards/list', component: () => import('@/views/Tools/Cards/List.vue'), meta: { title: '卡密列表' } + }, + { + path: '/examine/violation/list', + component: () => import('@/views/Examine/Violation/List.vue'), + meta: { title: '违规列表' } } ] }] diff --git a/src/views/Examine/Violation/List.vue b/src/views/Examine/Violation/List.vue new file mode 100644 index 0000000..6455de5 --- /dev/null +++ b/src/views/Examine/Violation/List.vue @@ -0,0 +1,540 @@ + + + + + \ No newline at end of file