แก้ไข TAB เครื่องราชฯ ปรับ Table
This commit is contained in:
parent
b18056a335
commit
a1bd65f1ca
13 changed files with 87 additions and 10 deletions
|
|
@ -94,11 +94,16 @@ const fecthInsignia = async () => {
|
|||
};
|
||||
|
||||
const fecthInsigniaType = async () => {
|
||||
console.log(DataStore.mainTab);
|
||||
|
||||
await http(config.API.insigniaType)
|
||||
.then((res) => {
|
||||
let data = res.data.result;
|
||||
DataStore.fetchDatainsigniaType(data);
|
||||
tab.value = DataStore.insigniaType[0].name;
|
||||
if (DataStore.mainTab) {
|
||||
tab.value = DataStore.mainTab;
|
||||
} else tab.value = DataStore.insigniaType[0].name;
|
||||
|
||||
loadView.value = true;
|
||||
fecthInsignia();
|
||||
})
|
||||
|
|
@ -177,6 +182,7 @@ const selectorRound = (round: string) => {
|
|||
};
|
||||
|
||||
const fecthlistInsignia = async () => {
|
||||
DataStore.mainTab = tab.value;
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.insigniaManageType(tab.value, Number(roundYear.value)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue