updated get tree by system
This commit is contained in:
parent
af56b950b1
commit
ffde0fe79c
27 changed files with 128 additions and 72 deletions
|
|
@ -46,7 +46,7 @@ const {
|
|||
messageError,
|
||||
hideLoader,
|
||||
showLoader,
|
||||
downloadRenameFileByLink
|
||||
downloadRenameFileByLink,
|
||||
} = mixin;
|
||||
const { filterSelector } = complainstStore; // function จาก store complainstStore
|
||||
|
||||
|
|
@ -141,7 +141,6 @@ function onSubmit() {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* ลบไฟล์
|
||||
* @param id id file
|
||||
|
|
@ -283,7 +282,7 @@ async function getActive() {
|
|||
async function getOc(activeId: string) {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.orgByid(activeId))
|
||||
.get(config.API.orgByIdSystem(activeId, route.meta.Key as string))
|
||||
.then(async (res) => {
|
||||
const data = await res.data.result.map((item: any) => ({
|
||||
organizationId: item.orgTreeId,
|
||||
|
|
@ -1041,7 +1040,10 @@ function filterOptionFnAgency(val: string, update: Function) {
|
|||
color="blue"
|
||||
icon="mdi-download"
|
||||
@click="
|
||||
downloadRenameFileByLink(data.pathName, data.fileName)
|
||||
downloadRenameFileByLink(
|
||||
data.pathName,
|
||||
data.fileName
|
||||
)
|
||||
"
|
||||
><q-tooltip>ดาวน์โหลดไฟล์</q-tooltip></q-btn
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue