fix: table value missing
This commit is contained in:
parent
90c8b1732a
commit
55aacaac1e
4 changed files with 17 additions and 1 deletions
|
|
@ -15,7 +15,14 @@ defineProps<{
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<q-badge
|
<q-badge
|
||||||
:color="calculateDaysUntilExpire(expirationDate) > 0 ? 'orange' : 'red'"
|
:color="
|
||||||
|
calculateDaysUntilExpire(expirationDate) > 90
|
||||||
|
? 'green'
|
||||||
|
: calculateDaysUntilExpire(expirationDate) < 90 &&
|
||||||
|
calculateDaysUntilExpire(expirationDate) > 0
|
||||||
|
? 'orange'
|
||||||
|
: 'red'
|
||||||
|
"
|
||||||
class="text-weight-bold"
|
class="text-weight-bold"
|
||||||
>
|
>
|
||||||
{{
|
{{
|
||||||
|
|
|
||||||
|
|
@ -216,8 +216,12 @@ function openEmployerBranchForm(formType: 'create' | 'edit' | 'info') {
|
||||||
async function fetchEmployee(opts: { branchId: string; pageSize?: number }) {
|
async function fetchEmployee(opts: { branchId: string; pageSize?: number }) {
|
||||||
const res = await fetchBranchEmployee(opts.branchId, {
|
const res = await fetchBranchEmployee(opts.branchId, {
|
||||||
pageSize: opts.pageSize,
|
pageSize: opts.pageSize,
|
||||||
|
passport: true,
|
||||||
|
visa: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
console.log(res);
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
listEmployee.value = res.data.result;
|
listEmployee.value = res.data.result;
|
||||||
}
|
}
|
||||||
|
|
@ -520,6 +524,8 @@ watch(
|
||||||
await fetchEmployee({
|
await fetchEmployee({
|
||||||
branchId: currentBranchEmployee,
|
branchId: currentBranchEmployee,
|
||||||
pageSize: 999,
|
pageSize: 999,
|
||||||
|
passport: true,
|
||||||
|
visa: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
currentBtnOpen.map((v, i) => {
|
currentBtnOpen.map((v, i) => {
|
||||||
|
|
|
||||||
|
|
@ -1349,6 +1349,8 @@ const emptyCreateDialog = ref(false);
|
||||||
const res = await employeeStore.fetchList({
|
const res = await employeeStore.fetchList({
|
||||||
customerId: props.row.id,
|
customerId: props.row.id,
|
||||||
pageSize: 999,
|
pageSize: 999,
|
||||||
|
passport: true,
|
||||||
|
visa: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,7 @@ const useCustomerStore = defineStore('api-customer', () => {
|
||||||
page?: number;
|
page?: number;
|
||||||
pageSize?: number;
|
pageSize?: number;
|
||||||
passport?: boolean;
|
passport?: boolean;
|
||||||
|
visa?: boolean;
|
||||||
},
|
},
|
||||||
) {
|
) {
|
||||||
const res = await api.get<Pagination<Employee[]>>(
|
const res = await api.get<Pagination<Employee[]>>(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue