แก้ไข TAB เครื่องราชฯ ปรับ Table

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-07 16:05:25 +07:00
parent b18056a335
commit a1bd65f1ca
13 changed files with 87 additions and 10 deletions

View file

@ -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)))