แก้ลูกจ้าง
This commit is contained in:
parent
aa65b8165d
commit
7d75535d15
25 changed files with 942 additions and 892 deletions
|
|
@ -11,6 +11,7 @@ import type { DutyFormType } from "@/modules/10_registry/interface/index/Main";
|
|||
//history dialog
|
||||
import DialogHistory from "@/modules/10_registry/Dialog/DialogHistory.vue";
|
||||
|
||||
const link = ref<string>("");
|
||||
const dataStore = useDataStore()
|
||||
const idByRow = ref<string>("");
|
||||
const rows = ref<DutyFormType[]>([]);
|
||||
|
|
@ -218,7 +219,7 @@ function onHistory(id: string) {
|
|||
function getData() {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.dataUserDutyByType(dataStore.officerLink))
|
||||
.get(config.API.dataUserDutyByType(link.value))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
rows.value = data;
|
||||
|
|
@ -235,7 +236,7 @@ function getData() {
|
|||
function getHistory() {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.dataUserDutyHistoryByType(dataStore.officerLink,idByRow.value))
|
||||
.get(config.API.dataUserDutyHistoryByType(link.value,idByRow.value))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
rowsHistory.value = data;
|
||||
|
|
@ -248,7 +249,8 @@ function getHistory() {
|
|||
});
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
onMounted(async() => {
|
||||
link.value = await dataStore.getProFileType();
|
||||
getData();
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue