Initial import
This commit is contained in:
76
one-ui/masterdata/one-md-resultflag/api/resultflag.js
Normal file
76
one-ui/masterdata/one-md-resultflag/api/resultflag.js
Normal file
@@ -0,0 +1,76 @@
|
||||
const URL = "/one-api/mockup/masterdata/";
|
||||
|
||||
export async function addresultflag(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'resultflagused/addresultflag', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch (e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export async function searchresultflag(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'resultflagused/searchresultflag', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch (e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
export async function searchtest(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'resultflagused/searchtest', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch (e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
export async function deleteresultflag(prm) {
|
||||
try {
|
||||
var resp = await axios.post(URL + 'resultflagused/deleteresultflag', prm);
|
||||
if (resp.status != 200) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: resp.statusText
|
||||
};
|
||||
}
|
||||
let data = resp.data;
|
||||
return data;
|
||||
} catch (e) {
|
||||
return {
|
||||
status: "ERR",
|
||||
message: e.message
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user