employee
This commit is contained in:
parent
8390a8ab01
commit
8c989e84b2
23 changed files with 201 additions and 149 deletions
|
|
@ -6,6 +6,7 @@ import http from "@/plugins/http";
|
|||
import config from "@/app.config";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useDataStore } from "@/stores/data";
|
||||
|
||||
import { useRegistryInFormationStore } from "@/modules/10_registry/store/registry";
|
||||
|
||||
import type {
|
||||
|
|
@ -17,8 +18,8 @@ import DialogHistory from "@/modules/10_registry/Dialog/DialogHistory.vue";
|
|||
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const daraPerson = useDataStore()
|
||||
const checkType = ref<boolean>(daraPerson.officerType == 'OFFICER' ? true:false)
|
||||
const dataPerson = useDataStore()
|
||||
const checkType = ref<boolean>(dataPerson.officerType == 'OFFICER' ? true:false)
|
||||
const store = useRegistryInFormationStore();
|
||||
const { showLoader, hideLoader, messageError, date2Thai, dateToISO } = mixin;
|
||||
|
||||
|
|
@ -284,7 +285,7 @@ function onHistory() {
|
|||
function getData() {
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.dataUserGovernment)
|
||||
.get(config.API.dataUserGovernmentByType(dataPerson.officerLink))
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
formData.org = data.org;
|
||||
|
|
@ -317,7 +318,7 @@ function getData() {
|
|||
/** get history */
|
||||
function getHistory() {
|
||||
const url =
|
||||
checkType
|
||||
dataPerson.officerType == 'OFFICER'
|
||||
? config.API.dataUserGovernmentHistory("")
|
||||
: config.API.dataUserGovernmentHistory("-employee");
|
||||
showLoader();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue