diff --git a/src/api/archives/cosmetics.js b/src/api/archives/cosmetics.js index b43cad3..5a87be0 100644 --- a/src/api/archives/cosmetics.js +++ b/src/api/archives/cosmetics.js @@ -1,11 +1,49 @@ import request from "@/utils/request2"; export default { - //获取 - getList(query) { + //根据名称或者备案号分页查询国产化妆品数据 + domesticList(query) { return request({ - url: "/inspectorAssign", + url: "/pharmaceuticals/gccp", method: "GET", params: query, }); - } + }, + //根据备案号查询单条国产化妆品数据 + // domesticGet(bah) { + // return request({ + // url: `/pharmaceuticals/gccp/${bah}`, + // method: "GET", + // }); + // }, + //根据名称或者注册证号分页查询国产特殊化妆品数据 + specialList(query) { + return request({ + url: "/pharmaceuticals/gctshzp", + method: "GET", + params: query, + }); + }, + //通过注册证号查询单条国产特殊化妆品 + // specialGet(bah) { + // return request({ + // url: `/pharmaceuticals/gctshzp/${bah}`, + // method: "GET", + // }); + // }, + //分页条件查询进口产品 + importList(query) { + return request({ + url: "/pharmaceuticals/jkcp", + method: "GET", + params: query, + }); + }, + //根据名称或者注册证号分页查询进口特殊化妆品数据 + importSpecialList(query) { + return request({ + url: "/pharmaceuticals/jktshzp", + method: "GET", + params: query, + }); + }, } diff --git a/src/api/index.js b/src/api/index.js index 34b2288..541b2bc 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -1,4 +1,6 @@ import toLogin from "./archives/toLogin"; +import cosmetics from "./archives/cosmetics"; export default { - toLogin + toLogin, + cosmetics }; \ No newline at end of file diff --git a/src/components/Pagination/index.vue b/src/components/Pagination/index.vue index 678aa54..cb95d5a 100644 --- a/src/components/Pagination/index.vue +++ b/src/components/Pagination/index.vue @@ -48,7 +48,7 @@ export default { pageSizes: { type: Array, default() { - return [10, 20, 30, 50]; + return [5,10,20]; }, }, // 移动端页码按钮的数量端默认值5 @@ -119,7 +119,7 @@ export default { display: flex; justify-content: space-between; align-items: center; - margin-top: 10px; + padding: 15px 20px; } .pagination-container.hidden { diff --git a/src/utils/request2.js b/src/utils/request2.js index c905591..76979a0 100644 --- a/src/utils/request2.js +++ b/src/utils/request2.js @@ -29,7 +29,7 @@ service.interceptors.request.use( const isRepeatSubmit = (config.headers || {}).repeatSubmit === false; if (!isToken) { config.headers["Authentication"] = localStorage.getItem( - "MSSM-LIAONING__TOKEN" + "Authentication" ); } // get请求映射params参数 diff --git a/src/views/productsMsg/components/cosmeticsArchives.vue b/src/views/productsMsg/components/cosmeticsArchives.vue index 3d22b30..ea4e4d5 100644 --- a/src/views/productsMsg/components/cosmeticsArchives.vue +++ b/src/views/productsMsg/components/cosmeticsArchives.vue @@ -1,554 +1,316 @@ + +.pagination { + display: flex; + justify-content: space-between; + padding: 15px 20px; +} + \ No newline at end of file