Merge branch 'develop' into dev-tee
This commit is contained in:
commit
585ff41a37
19 changed files with 1158 additions and 562 deletions
|
|
@ -0,0 +1,31 @@
|
|||
import { defineStore } from "pinia";
|
||||
import { ref } from "vue";
|
||||
|
||||
export const useComplainstDataStore = defineStore("complainst", () => {
|
||||
const rows = ref<any>([])
|
||||
const optionListName = ref<any>([])
|
||||
|
||||
function fectComplainst(data: any) {
|
||||
let datalist = data.map((e: any) => ({
|
||||
subject: e.subject,
|
||||
detail: e.detail,
|
||||
complainant: e.complainant,
|
||||
offenseDescription: e.offenseDescription,
|
||||
creationDate: e.creationDate,
|
||||
considerationLevel: e.considerationLevel,
|
||||
considerationDeadlineDate: e.considerationDeadlineDate,
|
||||
}))
|
||||
rows.value = datalist
|
||||
}
|
||||
|
||||
function selectComplainantTpye(list: any) {
|
||||
console.log(list);
|
||||
optionListName.value = list
|
||||
}
|
||||
return {
|
||||
rows,
|
||||
optionListName,
|
||||
fectComplainst,
|
||||
selectComplainantTpye
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue