แก้ลูกจ้าง
This commit is contained in:
parent
aa65b8165d
commit
7d75535d15
25 changed files with 942 additions and 892 deletions
|
|
@ -18,6 +18,7 @@ import type {
|
|||
//history dialog
|
||||
import DialogHistory from "@/modules/10_registry/Dialog/DialogHistory.vue";
|
||||
|
||||
const link = ref<string>("");
|
||||
const store = useRegistryInFormationStore();
|
||||
const dataStore = useDataStore();
|
||||
const rowsHistory = ref<any[]>([]);
|
||||
|
|
@ -226,10 +227,10 @@ function onHistory() {
|
|||
}
|
||||
|
||||
/** get data */
|
||||
function getData() {
|
||||
async function getData() {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.dataUserAddressByType(dataStore.officerLink))
|
||||
.get(config.API.dataUserAddressByType(link.value))
|
||||
.then((res) => {
|
||||
const data: Address = res.data.result;
|
||||
fetchDistrict(data.registrationProvinceId, "1");
|
||||
|
|
@ -262,7 +263,7 @@ function getData() {
|
|||
/** get history */
|
||||
function getHistory() {
|
||||
const url =
|
||||
dataStore.officerType == "OFFICER"
|
||||
dataStore.officerType == "OFFICER"
|
||||
? config.API.dataUserHistory("")
|
||||
: config.API.dataUserHistory("-employee");
|
||||
showLoader();
|
||||
|
|
@ -371,6 +372,7 @@ function convertSubDistrictName(id: string, type: string) {
|
|||
}
|
||||
|
||||
onMounted(async () => {
|
||||
link.value = await dataStore.getProFileType();
|
||||
await fetchProvince();
|
||||
await getData();
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue