Flatten nested repos
This commit is contained in:
64
test/vuex/cpone-process-resultentry-v21/api/helper.js
Normal file
64
test/vuex/cpone-process-resultentry-v21/api/helper.js
Normal file
@@ -0,0 +1,64 @@
|
||||
const URL = "/one-api/mockup/process/cpone-process-resultentry-v21/";
|
||||
|
||||
export async function calc_age(prm ) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'helper/calc_age', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
return {
|
||||
status: "OK",
|
||||
data : resp.data.data
|
||||
};
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
export async function check_status_print(prm ) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'helper/check_status_print', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
return {
|
||||
status: "OK",
|
||||
data : resp.data.data
|
||||
};
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export async function insertlogprint(prm ) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'helper/insertlogprint', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
return {
|
||||
status: "OK",
|
||||
data : resp.data.data
|
||||
};
|
||||
} catch(e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user