mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-12 17:23:21 +03:30
fix
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
export const baseUrl = () => {
|
||||
return process.env.MIX_APP_ROOT_API || 'https://www.cssd-doc.com/api/'
|
||||
};
|
||||
@@ -0,0 +1 @@
|
||||
export * from './app'
|
||||
@@ -0,0 +1,196 @@
|
||||
const urls = {
|
||||
updateInfo: "/UpdateInfo",
|
||||
getInfo: "/GetInfo",
|
||||
login: "/login",
|
||||
logout: "/logout",
|
||||
allCities: "/GetCities",
|
||||
storeMedicalCenter: "/MedicalCenters",
|
||||
storeTestResult: "/TestResults",
|
||||
listFilterItemsTestResult: `/TestResults/ListFilterItems`,
|
||||
statistics: `/TestResults/chart`,
|
||||
storeTestType: "/TestTypes",
|
||||
storePackage: "/Packages",
|
||||
storeLabel: "/Labels",
|
||||
storeCycle: "/Cycles",
|
||||
storeItem: "/Items",
|
||||
listTestTypeName: "/TestTypes/ListNames",
|
||||
getInputs: `/GetInputs`,
|
||||
forgotPassword: `/password/phone`,
|
||||
sendVerifyCode: `/password/verifyCode`,
|
||||
changePassword: `/password/reset`,
|
||||
storeMessages: `/Messages`,
|
||||
deleteFile: `/DeleteFile`,
|
||||
listMessages: function (page) {
|
||||
return `/Messages?page=${page}`;
|
||||
},
|
||||
userSearch: function (val) {
|
||||
return `/users/search?name=${val}`;
|
||||
},
|
||||
showMessages: function (user_id) {
|
||||
return "/Messages/" + user_id;
|
||||
},
|
||||
removeUserMessage: function (user_id) {
|
||||
return "/Messages/User/" + user_id;
|
||||
},
|
||||
listTestType: function (filter) {
|
||||
return "/TestTypes" + filter;
|
||||
},
|
||||
TestTypeBarcode: function (id) {
|
||||
return `/TestTypes/Barcode/${id}`;
|
||||
},
|
||||
TestResultQRcode: function (id) {
|
||||
return `/TestResult/QRCode/${id}`;
|
||||
},
|
||||
deleteTestType: function (id) {
|
||||
return `/TestTypes/${id}`;
|
||||
},
|
||||
editTestType: function (id) {
|
||||
return `/TestTypes/${id}/edit`;
|
||||
},
|
||||
updateTestType: function (id) {
|
||||
return `/TestTypes/${id}`;
|
||||
},
|
||||
listTestResult: function (filter) {
|
||||
return "/TestResults" + filter;
|
||||
},
|
||||
verifyTestResult: function (id, value) {
|
||||
return `/TestResults/Verify/${id}/${value}`;
|
||||
},
|
||||
editTestResult: function (id) {
|
||||
return `/TestResults/${id}/edit`;
|
||||
},
|
||||
updateTestResult: function (id) {
|
||||
return `/TestResults/${id}`;
|
||||
},
|
||||
showTestResult: function (id) {
|
||||
return `/TestResults/${id}`;
|
||||
},
|
||||
removeTestResult: function (id) {
|
||||
return `/TestResults/${id}`;
|
||||
},
|
||||
listMedicalCenter: function (filter) {
|
||||
return "/MedicalCenters" + filter;
|
||||
},
|
||||
updateMedicalCenter: function (id) {
|
||||
return `/MedicalCenters/${id}`;
|
||||
},
|
||||
editMedicalCenter: function (id) {
|
||||
return `/MedicalCenters/${id}/edit`;
|
||||
},
|
||||
deleteMedicalCenter: function (id) {
|
||||
return `/MedicalCenters/${id}`;
|
||||
},
|
||||
listOpertorMedicalCenter: function (medical_center_id, filter) {
|
||||
return `/Users/MedicalCenter/${medical_center_id}${filter}`;
|
||||
},
|
||||
listOpertor: function (filter) {
|
||||
return "/Users" + filter;
|
||||
},
|
||||
changeStatusUser: function (userId) {
|
||||
return `Users/ChangeStatus/${userId}`;
|
||||
},
|
||||
changeRoleUser: function (userId) {
|
||||
return `Users/ChangeRole/${userId}`;
|
||||
},
|
||||
deleteUser: function (userId) {
|
||||
return `Users/${userId}`;
|
||||
},
|
||||
listPackage: function (filter) {
|
||||
return "/Packages" + filter;
|
||||
},
|
||||
showPackage: function (id) {
|
||||
return `/Packages/${id}`;
|
||||
},
|
||||
editPackage: function (id) {
|
||||
return `/Packages/${id}/edit`;
|
||||
},
|
||||
updatePackage: function (id) {
|
||||
return `/Packages/${id}`;
|
||||
},
|
||||
removePackage: function (id) {
|
||||
return `Packages/${id}`;
|
||||
},
|
||||
verifyPackage: function (id) {
|
||||
return `/Package/Verify/${id}`;
|
||||
},
|
||||
listLabel: function (filter) {
|
||||
return "/Labels" + filter;
|
||||
},
|
||||
showLabel: function (id) {
|
||||
return `/Labels/${id}`;
|
||||
},
|
||||
editLabel: function (id) {
|
||||
return `/Labels/${id}/edit`;
|
||||
},
|
||||
updateLabel: function (id) {
|
||||
return `/Labels/${id}`;
|
||||
},
|
||||
removeLabel: function (id) {
|
||||
return `Labels/${id}`;
|
||||
},
|
||||
listCycle: function (filter) {
|
||||
return "/Cycles" + filter;
|
||||
},
|
||||
showCycle: function (id) {
|
||||
return `/Cycles/${id}`;
|
||||
},
|
||||
editCycle: function (id) {
|
||||
return `/Cycles/${id}/edit`;
|
||||
},
|
||||
updateCycle: function (id) {
|
||||
return `/Cycles/${id}`;
|
||||
},
|
||||
removeCycle: function (id) {
|
||||
return `Cycles/${id}`;
|
||||
},
|
||||
verifyCycle: function (id) {
|
||||
return `/Cycle/Verify/${id}`;
|
||||
},
|
||||
listItem: function (filter) {
|
||||
return "/Items" + filter;
|
||||
},
|
||||
listMyItem: function (filter) {
|
||||
return "/my-Items" + filter;
|
||||
},
|
||||
listAllItem: function () {
|
||||
return "/GetItems";
|
||||
},
|
||||
listAllPackage: function () {
|
||||
return "/GetPackages";
|
||||
},
|
||||
listAllLabel: function () {
|
||||
return "/GetLabels";
|
||||
},
|
||||
showItem: function (id) {
|
||||
return `/Items/${id}`;
|
||||
},
|
||||
editItem: function (id) {
|
||||
return `/Items/${id}/edit`;
|
||||
},
|
||||
updateItem: function (id) {
|
||||
return `/Items/${id}`;
|
||||
},
|
||||
removeItem: function (id) {
|
||||
return `Items/${id}`;
|
||||
},
|
||||
verifyItem: function (id) {
|
||||
return `/Item/Verify/${id}`;
|
||||
},
|
||||
Barcode: function (code, type) {
|
||||
|
||||
return `/BarCode/${code}/${type}`;
|
||||
},
|
||||
packageBarcode: function (code) {
|
||||
return `/Package/Barcode/${code}`;
|
||||
},
|
||||
packageQRCode: function (code) {
|
||||
return `/Package/QRCode/${code}`;
|
||||
},
|
||||
changeItemStatus: function (id) {
|
||||
return `/Items/ChangeStatus/${id}`;
|
||||
},
|
||||
transferItem: function (id) {
|
||||
return `/transfers/${id}`;
|
||||
}
|
||||
};
|
||||
export { urls };
|
||||
@@ -0,0 +1,6 @@
|
||||
const roles = [
|
||||
'Admin',
|
||||
'User',
|
||||
'Supervisor',
|
||||
];
|
||||
export { roles };
|
||||
Reference in New Issue
Block a user