|
@@ -6,7 +6,7 @@ import request from '@/utils/request';
|
|
|
* @returns {Promise}
|
|
* @returns {Promise}
|
|
|
*/
|
|
*/
|
|
|
export async function addSeal(data) {
|
|
export async function addSeal(data) {
|
|
|
- const res = await request.post('/seal/management/add', data);
|
|
|
|
|
|
|
+ const res = await request.post('/main/seal/management/add', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -19,7 +19,7 @@ export async function addSeal(data) {
|
|
|
* @returns {Promise}
|
|
* @returns {Promise}
|
|
|
*/
|
|
*/
|
|
|
export async function changeSeal(data) {
|
|
export async function changeSeal(data) {
|
|
|
- const res = await request.post('/seal/management/change', data);
|
|
|
|
|
|
|
+ const res = await request.post('/main/seal/management/change', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -32,7 +32,7 @@ export async function changeSeal(data) {
|
|
|
* @returns {Promise}
|
|
* @returns {Promise}
|
|
|
*/
|
|
*/
|
|
|
export async function deleteSeal(id) {
|
|
export async function deleteSeal(id) {
|
|
|
- const res = await request.get(`/seal/management/delete/${id}`);
|
|
|
|
|
|
|
+ const res = await request.get(`/main/seal/management/delete/${id}`);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -45,7 +45,7 @@ export async function deleteSeal(id) {
|
|
|
* @returns {Promise}
|
|
* @returns {Promise}
|
|
|
*/
|
|
*/
|
|
|
export async function disableSeal(id) {
|
|
export async function disableSeal(id) {
|
|
|
- const res = await request.put(`/seal/management/disable/${id}`);
|
|
|
|
|
|
|
+ const res = await request.put(`/main/seal/management/disable/${id}`);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -58,7 +58,7 @@ export async function disableSeal(id) {
|
|
|
* @returns {Promise}
|
|
* @returns {Promise}
|
|
|
*/
|
|
*/
|
|
|
export async function enableSeal(id) {
|
|
export async function enableSeal(id) {
|
|
|
- const res = await request.put(`/seal/management/enable/${id}`);
|
|
|
|
|
|
|
+ const res = await request.put(`/main/seal/management/enable/${id}`);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -71,7 +71,7 @@ export async function enableSeal(id) {
|
|
|
* @returns {Promise}
|
|
* @returns {Promise}
|
|
|
*/
|
|
*/
|
|
|
export async function getSealById(id) {
|
|
export async function getSealById(id) {
|
|
|
- const res = await request.get(`/seal/management/getById/${id}`);
|
|
|
|
|
|
|
+ const res = await request.get(`/main/seal/management/getById/${id}`);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -84,7 +84,7 @@ export async function getSealById(id) {
|
|
|
* @returns {Promise}
|
|
* @returns {Promise}
|
|
|
*/
|
|
*/
|
|
|
export async function getSealHistoryList(sealId) {
|
|
export async function getSealHistoryList(sealId) {
|
|
|
- const res = await request.get(`/seal/management/getHistoryList/${sealId}`);
|
|
|
|
|
|
|
+ const res = await request.get(`/main/seal/management/getHistoryList/${sealId}`);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -97,7 +97,7 @@ export async function getSealHistoryList(sealId) {
|
|
|
* @returns {Promise}
|
|
* @returns {Promise}
|
|
|
*/
|
|
*/
|
|
|
export async function getSealPage(data) {
|
|
export async function getSealPage(data) {
|
|
|
- const res = await request.post(`/seal/management/page`, data);
|
|
|
|
|
|
|
+ const res = await request.post(`/main/seal/management/page`, data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -110,7 +110,7 @@ export async function getSealPage(data) {
|
|
|
* @returns {Promise}
|
|
* @returns {Promise}
|
|
|
*/
|
|
*/
|
|
|
export async function getPublicSealPage(data) {
|
|
export async function getPublicSealPage(data) {
|
|
|
- const res = await request.post(`/seal/management/public-page`, data);
|
|
|
|
|
|
|
+ const res = await request.post(`/main/seal/management/public-page`, data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -123,7 +123,7 @@ export async function getPublicSealPage(data) {
|
|
|
* @returns {Promise}
|
|
* @returns {Promise}
|
|
|
*/
|
|
*/
|
|
|
export async function getPrivateSealPage(data) {
|
|
export async function getPrivateSealPage(data) {
|
|
|
- const res = await request.post(`/seal/management/private-page`, data);
|
|
|
|
|
|
|
+ const res = await request.post(`/main/seal/management/private-page`, data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -136,7 +136,7 @@ export async function getPrivateSealPage(data) {
|
|
|
* @returns {Promise}
|
|
* @returns {Promise}
|
|
|
*/
|
|
*/
|
|
|
export async function updateSeal(data) {
|
|
export async function updateSeal(data) {
|
|
|
- const res = await request.post('/seal/management/update', data);
|
|
|
|
|
|
|
+ const res = await request.post('/main/seal/management/update', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|
|
@@ -152,7 +152,7 @@ export async function updateSeal(data) {
|
|
|
export async function getSealUsageRecordList(id, params) {
|
|
export async function getSealUsageRecordList(id, params) {
|
|
|
let par = new URLSearchParams(params);
|
|
let par = new URLSearchParams(params);
|
|
|
const res = await request.get(
|
|
const res = await request.get(
|
|
|
- `/seal/management/usageRecord/listBySealId/${id}?` + par,
|
|
|
|
|
|
|
+ `/main/seal/management/usageRecord/listBySealId/${id}?` + par,
|
|
|
{}
|
|
{}
|
|
|
);
|
|
);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
@@ -161,7 +161,7 @@ export async function getSealUsageRecordList(id, params) {
|
|
|
return Promise.reject(new Error(res.data.message));
|
|
return Promise.reject(new Error(res.data.message));
|
|
|
}
|
|
}
|
|
|
export async function usageRecordAdd(data) {
|
|
export async function usageRecordAdd(data) {
|
|
|
- const res = await request.post('/seal/management/usageRecord/add', data);
|
|
|
|
|
|
|
+ const res = await request.post('/main/seal/management/usageRecord/add', data);
|
|
|
if (res.data.code == 0) {
|
|
if (res.data.code == 0) {
|
|
|
return res.data.data;
|
|
return res.data.data;
|
|
|
}
|
|
}
|