แก้ไขผลการพิจารณาทางวินัย
This commit is contained in:
parent
d1f0d753ba
commit
5a28025906
6 changed files with 361 additions and 193 deletions
|
|
@ -10,9 +10,10 @@ import type {
|
|||
DataResult,
|
||||
DataResultList,
|
||||
} from "@/modules/11_discipline/interface/response/result";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
import { useDisciplineMainStore } from "@/modules/11_discipline/store";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
const mixin = useCounterMixin();
|
||||
const storeMain = useDisciplineMainStore();
|
||||
const { date2Thai } = mixin;
|
||||
|
|
@ -25,6 +26,21 @@ export const useDisciplineResultStore = defineStore(
|
|||
const rows2 = ref<directorType[]>([]);
|
||||
const selected = ref<directorType[]>([]);
|
||||
|
||||
const complainantoptions = ref<DataOption[]>(
|
||||
storeMain.complainantoptionsMain
|
||||
);
|
||||
|
||||
function filterSelector(val: string, update: Function, type: string) {
|
||||
update(() => {
|
||||
const needle = val.toLowerCase();
|
||||
if (type === "filterrespondentType") {
|
||||
complainantoptions.value = storeMain.complainantoptionsMain.filter(
|
||||
(v: any) => v.name.toLowerCase().indexOf(needle) > -1
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
async function fetchList(data: DataResult[]) {
|
||||
const datalist: DataResultList[] = data.map((e: DataResult) => ({
|
||||
id: e.id,
|
||||
|
|
@ -47,6 +63,7 @@ export const useDisciplineResultStore = defineStore(
|
|||
rows.value = datalist;
|
||||
}
|
||||
|
||||
|
||||
async function fecthDirector(data: directorType[]) {
|
||||
let datalistDirector: directorType[] = data.map((e: directorType) => ({
|
||||
nameDirector: e.nameDirector,
|
||||
|
|
@ -239,6 +256,8 @@ export const useDisciplineResultStore = defineStore(
|
|||
columns,
|
||||
visibleColumnsDirector,
|
||||
columnsDirector,
|
||||
complainantoptions,
|
||||
filterSelector
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue