เครื่องราช => ปรับการเรียกประเภทเครื่องราช
This commit is contained in:
parent
7041a9e050
commit
5a8f6d6434
9 changed files with 47 additions and 31 deletions
|
|
@ -254,7 +254,7 @@ async function fecthRound() {
|
|||
/** function เรียกประเภทเครื่องราช*/
|
||||
async function fecthInsignia() {
|
||||
await http
|
||||
.get(config.API.insignia)
|
||||
.get(config.API.insigniaOrg)
|
||||
.then((res) => {
|
||||
let data = res.data.result;
|
||||
DataStore.fetchDatainsignia(data);
|
||||
|
|
@ -266,7 +266,7 @@ async function fecthInsignia() {
|
|||
|
||||
/** function เรียกระดับเครื่องราช*/
|
||||
async function fecthInsigniaType() {
|
||||
await http(config.API.insigniaType)
|
||||
await http(config.API.insigniaTypeOrg)
|
||||
.then((res) => {
|
||||
let data = res.data.result;
|
||||
DataStore.fetchDatainsigniaType(data);
|
||||
|
|
@ -299,6 +299,7 @@ watch(tab, () => {
|
|||
if (tab.value !== "doc") {
|
||||
DataStore.insignia = "";
|
||||
fecthlistInsignia();
|
||||
|
||||
insigniaTypeOption.value = DataStore.insigniaOp.filter(
|
||||
(e: any) => e.insigniaType == tab.value || e.name == "ทั้งหมด"
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue