Merge branch 'develop' of github.com:Frappet/bma-ehr-frontend into develop

This commit is contained in:
Kittapath 2024-02-02 16:26:05 +07:00
commit 2d715f772c
3 changed files with 30 additions and 29 deletions

View file

@ -88,19 +88,19 @@ function onClickPublish() {
dialogConfirm(
$q,
() => {
alert("get");
// showLoader()
// http
// .get(config.API.organizationPublishGet)
// .then((res)=>{
props.close?.();
// })
// .catch((e)=>{
// messageError($q,e)
// })
// .finally(()=>{
// hideLoader()
// })
showLoader();
http
.get(config.API.organizationPublishGet)
.then((res) => {
props.fetchActive();
props.close?.();
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader();
});
},
"ยืนยันการเผยเเพร่ข้อมูล",
"ต้องการยืนยันการเผยเเพร่ข้อมูลนี้ใช่หรือไม่?"
@ -174,12 +174,7 @@ watch(
</q-card-section>
<q-separator />
<q-card-actions align="right">
<q-btn
flat
color="blue-7"
icon="public"
@click="onClickPublish()"
>
<q-btn flat color="blue-7" icon="public" @click="onClickPublish()">
<q-tooltip>เผยแพรอมลทนท</q-tooltip>
</q-btn>
<q-space />

View file

@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, reactive, watch,defineProps } from "vue";
import { ref, watch, defineProps } from "vue";
import { useQuasar } from "quasar";
import http from "@/plugins/http";
import config from "@/app.config";
@ -44,7 +44,7 @@ function save() {
dialogConfirm($q, () => {
const data = rows.value;
const dataId = data.map((item: any) => item.id);
showLoader()
showLoader();
http
.post(config.API.orgPosSort, {
id: store.treeId,
@ -54,13 +54,13 @@ function save() {
.then((res) => {
modal.value = false;
success($q, "บันทึกข้อมูลสำเร็จ");
props.fetchDataTable?.(store.treeId,store.level,false)
props.fetchDataTable?.(store.treeId, store.level, false);
})
.catch((e) => {
messageError($q, e);
})
.finally(() => {
hideLoader()
hideLoader();
});
});
}
@ -95,7 +95,6 @@ function getData() {
});
}
watch(
() => modal.value,
() => {
@ -136,13 +135,17 @@ watch(
hide-pagination
hide-header
/>
<div v-else class="bg-grey-1 text-center q-pa-md">
ไมอม
</div>
<div v-else class="bg-grey-1 text-center q-pa-md">ไมอม</div>
</q-card-section>
<q-separator />
<q-card-actions align="right" class="bg-white text-teal">
<q-btn :disable="rows.length === 0" type="submit" :label="`บันทึก`" color="public" @click="save" />
<q-btn
:disable="rows.length === 0"
type="submit"
:label="`บันทึก`"
color="public"
@click="save"
/>
</q-card-actions>
</q-card>
</q-dialog>

View file

@ -568,7 +568,10 @@ function updatePagination(newPagination: NewPagination) {
/>
<!-- ดลำด -->
<DialogSort v-model:sort-position="modalSort" />
<DialogSort
v-model:sort-position="modalSort"
:fetchDataTable="props.fetchDataTable"
/>
<!-- ายตำแหน -->
<DialogMovePos