ระบบพัฒนา => ปรับ filter
This commit is contained in:
parent
aec6c64190
commit
46cb1fe6cc
2 changed files with 116 additions and 122 deletions
|
|
@ -152,7 +152,7 @@ function fetchListOrg() {
|
||||||
|
|
||||||
/** download file
|
/** download file
|
||||||
* @param type ประเภทของไฟล์ xlsx pdf
|
* @param type ประเภทของไฟล์ xlsx pdf
|
||||||
*/
|
*/
|
||||||
function onDownload(type: string) {
|
function onDownload(type: string) {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
http
|
||||||
|
|
@ -174,7 +174,7 @@ function onDownload(type: string) {
|
||||||
|
|
||||||
/** edit page
|
/** edit page
|
||||||
* @param id id ของ row
|
* @param id id ของ row
|
||||||
*/
|
*/
|
||||||
function onEdit(id: string) {
|
function onEdit(id: string) {
|
||||||
store.statusEdit = true;
|
store.statusEdit = true;
|
||||||
router.push(`/development/employee-history/${id}`);
|
router.push(`/development/employee-history/${id}`);
|
||||||
|
|
@ -242,7 +242,6 @@ onMounted(() => {
|
||||||
<q-card flat bordered class="q-pa-md">
|
<q-card flat bordered class="q-pa-md">
|
||||||
<div class="row no-wrap shadow-1 justify-between">
|
<div class="row no-wrap shadow-1 justify-between">
|
||||||
<q-toolbar class="row col-8 q-pa-none q-gutter-x-sm">
|
<q-toolbar class="row col-8 q-pa-none q-gutter-x-sm">
|
||||||
<div class="col-3">
|
|
||||||
<datepicker
|
<datepicker
|
||||||
menu-class-name="modalfix"
|
menu-class-name="modalfix"
|
||||||
v-model="formFilter.year"
|
v-model="formFilter.year"
|
||||||
|
|
@ -286,9 +285,7 @@ onMounted(() => {
|
||||||
</q-input>
|
</q-input>
|
||||||
</template>
|
</template>
|
||||||
</datepicker>
|
</datepicker>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-3">
|
|
||||||
<q-select
|
<q-select
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -298,8 +295,8 @@ onMounted(() => {
|
||||||
option-value="id"
|
option-value="id"
|
||||||
option-label="name"
|
option-label="name"
|
||||||
@update:model-value="(formFilter.page = 1), getData()"
|
@update:model-value="(formFilter.page = 1), getData()"
|
||||||
|
style="min-width: 150px"
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- <q-btn flat round dense icon="add" color="primary" @click="onAdd()">
|
<!-- <q-btn flat round dense icon="add" color="primary" @click="onAdd()">
|
||||||
<q-tooltip>เพิ่ม</q-tooltip>
|
<q-tooltip>เพิ่ม</q-tooltip>
|
||||||
|
|
|
||||||
|
|
@ -196,7 +196,7 @@ function getData() {
|
||||||
|
|
||||||
/** download file
|
/** download file
|
||||||
* @param type ประเภทของไฟล์ xlsx pdf
|
* @param type ประเภทของไฟล์ xlsx pdf
|
||||||
*/
|
*/
|
||||||
function onDownload(type: string) {
|
function onDownload(type: string) {
|
||||||
showLoader();
|
showLoader();
|
||||||
http
|
http
|
||||||
|
|
@ -223,7 +223,7 @@ function onDownload(type: string) {
|
||||||
|
|
||||||
/** edit page
|
/** edit page
|
||||||
* @param id id ของ row
|
* @param id id ของ row
|
||||||
*/
|
*/
|
||||||
function onEdit(id: string) {
|
function onEdit(id: string) {
|
||||||
store.statusEdit = true;
|
store.statusEdit = true;
|
||||||
router.push(`/development/history/${id}`);
|
router.push(`/development/history/${id}`);
|
||||||
|
|
@ -259,7 +259,6 @@ onMounted(() => {
|
||||||
<q-card flat bordered class="q-pa-md">
|
<q-card flat bordered class="q-pa-md">
|
||||||
<div class="row no-wrap shadow-1 justify-between">
|
<div class="row no-wrap shadow-1 justify-between">
|
||||||
<q-toolbar class="row col-8 q-pa-none q-gutter-x-sm">
|
<q-toolbar class="row col-8 q-pa-none q-gutter-x-sm">
|
||||||
<div class="col-3">
|
|
||||||
<datepicker
|
<datepicker
|
||||||
menu-class-name="modalfix"
|
menu-class-name="modalfix"
|
||||||
v-model="formFilter.year"
|
v-model="formFilter.year"
|
||||||
|
|
@ -303,9 +302,7 @@ onMounted(() => {
|
||||||
</q-input>
|
</q-input>
|
||||||
</template>
|
</template>
|
||||||
</datepicker>
|
</datepicker>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-3">
|
|
||||||
<q-select
|
<q-select
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
@ -315,8 +312,8 @@ onMounted(() => {
|
||||||
option-value="id"
|
option-value="id"
|
||||||
option-label="name"
|
option-label="name"
|
||||||
@update:model-value="(formFilter.page = 1), getData()"
|
@update:model-value="(formFilter.page = 1), getData()"
|
||||||
|
style="min-width: 150px"
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
</q-toolbar>
|
</q-toolbar>
|
||||||
<q-toolbar class="col-4 q-pa-none q-gutter-x-sm">
|
<q-toolbar class="col-4 q-pa-none q-gutter-x-sm">
|
||||||
<q-space />
|
<q-space />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue