This commit is contained in:
MOHD ARIFF 2025-01-09 15:26:05 +08:00
parent 6e9ec353b9
commit 38c4629302

View File

@ -18,6 +18,10 @@
<div class="row justify-content-center"> <div class="row justify-content-center">
<div class="col-3"> <div class="col-3">
<h4>Statistic</h4> <h4>Statistic</h4>
<select class="form-select shadow-none mt-3" v-model="selectedDepartment" v-on:change="">
<option value="" disabled selected>Please select</option>
<option v-for="(dept, index) in compDeptList" :key="index" :value="dept.departmentId">{{ dept.departmentName }}</option>
</select>
</div> </div>
<div class="col-3"> <div class="col-3">
<h4>Item Registered </h4> <h4>Item Registered </h4>
@ -79,6 +83,7 @@
}, },
reportData: null, reportData: null,
compDeptList: {}, compDeptList: {},
selectedDepartment: null,
} }
}, },
mounted() { mounted() {
@ -141,8 +146,10 @@
({ ({
companyId: company.companyId, companyId: company.companyId,
companyName: company.companyName, companyName: company.companyName,
departmentId: department.departmentId,
departmentName: department.departmentName, departmentName: department.departmentName,
departmentCode: department.departmentCode departmentCode: department.departmentCode
})
)).flat(); )).flat();
console.log(this.compDeptList); console.log(this.compDeptList);
} }