ออกคำสั่ง === fix filter
This commit is contained in:
parent
8ede2c6d09
commit
810115eb41
13 changed files with 227 additions and 2517 deletions
|
|
@ -76,7 +76,6 @@ function onSubmit() {
|
|||
*/
|
||||
function filterSelector(val: string, update: Function) {
|
||||
update(() => {
|
||||
commandType.value = val ? "" : commandType.value;
|
||||
commandOp.value = listCommand.value.filter(
|
||||
(v: any) => v.name.indexOf(val) > -1
|
||||
);
|
||||
|
|
@ -90,6 +89,7 @@ function filterSelector(val: string, update: Function) {
|
|||
function onClose() {
|
||||
modal.value = false;
|
||||
commandNo.value = "";
|
||||
commandType.value = "";
|
||||
commandYear.value = new Date().getFullYear();
|
||||
}
|
||||
|
||||
|
|
@ -129,10 +129,12 @@ watch(modal, () => {
|
|||
option-value="id"
|
||||
lazy-rules
|
||||
use-input
|
||||
hide-selected
|
||||
fill-input
|
||||
hide-bottom-space
|
||||
outlined
|
||||
:rules="[(val:string) => !!val || `${'กรุณาเลือกประเภทคำสั่ง'}`]"
|
||||
@filter="(inputValue:any,
|
||||
@filter="(inputValue:string,
|
||||
doneFn:Function) => filterSelector(inputValue, doneFn) "
|
||||
>
|
||||
<template v-slot:no-option>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue