fix bug
This commit is contained in:
parent
f212dce287
commit
1732209a2f
16 changed files with 34 additions and 28 deletions
|
|
@ -266,7 +266,7 @@ const treeId = ref<string>("");
|
|||
*/
|
||||
function onClickAgency(level: number, node: OrgTree | {}) {
|
||||
dialogAgency.value = !dialogAgency.value;
|
||||
orgLevel.value = level;
|
||||
orgLevel.value = level ? level : 0;
|
||||
dataNode.value = node;
|
||||
actionType.value = "ADD";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,14 +24,7 @@ const isLoadStructureTree = ref<boolean>(true);
|
|||
const $q = useQuasar();
|
||||
const route = useRoute();
|
||||
const { fetchStructureTree } = useStructureTree();
|
||||
const {
|
||||
showLoader,
|
||||
hideLoader,
|
||||
date2Thai,
|
||||
dateToISO,
|
||||
messageError,
|
||||
monthYear2Thai,
|
||||
} = useCounterMixin();
|
||||
const { date2Thai, dateToISO, messageError } = useCounterMixin();
|
||||
|
||||
/** Filter*/
|
||||
const detailReport = ref<any>();
|
||||
|
|
@ -72,6 +65,7 @@ const isLoadPDF = ref<boolean>(false);
|
|||
const numOfPages = ref<number>(0);
|
||||
const page = ref<number>(1);
|
||||
const pdfSrc = ref<any>();
|
||||
const splitterModel = ref<number>(14);
|
||||
|
||||
/** tree*/
|
||||
const filterTree = ref<string>("");
|
||||
|
|
@ -479,6 +473,8 @@ onMounted(() => {
|
|||
</div>
|
||||
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 col-xs-12 flex">
|
||||
<q-splitter
|
||||
disable
|
||||
v-model="splitterModel"
|
||||
horizontal
|
||||
style="
|
||||
height: 75vh;
|
||||
|
|
|
|||
|
|
@ -22,14 +22,8 @@ import LoadView from "@/components/LoadView.vue";
|
|||
const $q = useQuasar();
|
||||
const route = useRoute();
|
||||
const { fetchStructureTree } = useStructureTree();
|
||||
const {
|
||||
showLoader,
|
||||
hideLoader,
|
||||
date2Thai,
|
||||
dateToISO,
|
||||
messageError,
|
||||
monthYear2Thai,
|
||||
} = useCounterMixin();
|
||||
const { date2Thai, dateToISO, messageError, monthYear2Thai } =
|
||||
useCounterMixin();
|
||||
|
||||
/** Filter*/
|
||||
const reportType = ref<string>("");
|
||||
|
|
@ -74,6 +68,7 @@ const isLoadPDF = ref<boolean>(false);
|
|||
const numOfPages = ref<number>(0);
|
||||
const page = ref<number>(1);
|
||||
const pdfSrc = ref<any>();
|
||||
const splitterModel = ref<number>(14);
|
||||
|
||||
/** tree*/
|
||||
const filterTree = ref<string>("");
|
||||
|
|
@ -594,6 +589,8 @@ onMounted(() => {
|
|||
</div>
|
||||
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 col-xs-12 flex">
|
||||
<q-splitter
|
||||
disable
|
||||
v-model="splitterModel"
|
||||
horizontal
|
||||
style="
|
||||
height: 75vh;
|
||||
|
|
|
|||
|
|
@ -294,6 +294,7 @@ onMounted(async () => {
|
|||
</q-toolbar>
|
||||
<q-splitter
|
||||
v-model="splitterModel"
|
||||
disable
|
||||
horizontal
|
||||
style="
|
||||
height: 70vh;
|
||||
|
|
|
|||
|
|
@ -636,6 +636,8 @@ onMounted(async () => {
|
|||
</div>
|
||||
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 col-xs-12 flex">
|
||||
<q-splitter
|
||||
disable
|
||||
v-model="splitterModel"
|
||||
horizontal
|
||||
style="
|
||||
height: 75vh;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ import { useRoute } from "vue-router";
|
|||
import { checkPermission } from "@/utils/permissions";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useStructureTree } from "@/stores/structureTree";
|
||||
import { useMenuDataStore } from "@/stores/menuList";
|
||||
|
||||
import genReportXLSX from "@/plugins/genreportxlsx";
|
||||
import http from "@/plugins/http";
|
||||
|
|
@ -20,7 +19,6 @@ import type {
|
|||
} from "@/modules/09_leave/interface/index/Main";
|
||||
|
||||
import LoadView from "@/components/LoadView.vue";
|
||||
import type { DataRoles } from "@/interface/response/main";
|
||||
|
||||
const expandedModal = ref<boolean>(false);
|
||||
const org = ref<string>("");
|
||||
|
|
@ -30,7 +28,6 @@ const isLoadStructureTree = ref<boolean>(true);
|
|||
/** use*/
|
||||
const $q = useQuasar();
|
||||
const route = useRoute();
|
||||
const storeMenu = useMenuDataStore();
|
||||
|
||||
const { fetchStructureTree } = useStructureTree();
|
||||
const { date2Thai, dateToISO, messageError, monthYear2Thai } =
|
||||
|
|
@ -114,6 +111,7 @@ const leaveTypeOptionOption = ref<DataOption[]>(leaveTypeOptionMain.value);
|
|||
const detailReport = ref<any>();
|
||||
const isReport = ref<boolean>(false);
|
||||
const isLoadPDF = ref<boolean>(false);
|
||||
const splitterModel = ref<number>(14);
|
||||
|
||||
/** tree*/
|
||||
const filterTree = ref<string>("");
|
||||
|
|
@ -942,6 +940,8 @@ onMounted(() => {
|
|||
</div>
|
||||
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 col-xs-12 flex">
|
||||
<q-splitter
|
||||
disable
|
||||
v-model="splitterModel"
|
||||
horizontal
|
||||
style="
|
||||
height: 75vh;
|
||||
|
|
|
|||
|
|
@ -220,6 +220,7 @@ onMounted(async () => {
|
|||
</q-toolbar>
|
||||
<q-splitter
|
||||
v-model="splitterModel"
|
||||
disable
|
||||
horizontal
|
||||
style="
|
||||
height: 70vh;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@ import { VuePDF, usePDF } from "@tato30/vue-pdf";
|
|||
import axios from "axios";
|
||||
import genReportXLSX from "@/plugins/genreportxlsx";
|
||||
|
||||
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import { checkPermission } from "@/utils/permissions";
|
||||
|
|
@ -648,6 +647,8 @@ onMounted(async () => {
|
|||
</div>
|
||||
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 col-xs-12 flex">
|
||||
<q-splitter
|
||||
disable
|
||||
v-model="splitterModel"
|
||||
horizontal
|
||||
style="
|
||||
height: 75vh;
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import config from "@/app.config";
|
|||
import type {
|
||||
FormComment,
|
||||
FormCommentByRole,
|
||||
} from "@/modules/14_KPI/interface/request/Index";
|
||||
} from "@/modules/14_KPI/interface/request/index";
|
||||
import { useRoute } from "vue-router";
|
||||
import { useQuasar } from "quasar";
|
||||
|
||||
|
|
|
|||
|
|
@ -774,6 +774,8 @@ onMounted(() => {
|
|||
</div>
|
||||
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 col-xs-12 flex">
|
||||
<q-splitter
|
||||
disable
|
||||
v-model="splitterModel"
|
||||
horizontal
|
||||
style="
|
||||
height: 75vh;
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ onMounted(async () => {
|
|||
<q-card bordered>
|
||||
<div class="col-12 text-weight-medium bg-grey-1 q-py-xs q-px-md">
|
||||
สถานะของคำสั่ง
|
||||
<spen v-if="isStatus === 'CANCEL'" class="text-red"> (ลบ) </spen>
|
||||
<span v-if="isStatus === 'CANCEL'" class="text-red"> (ลบ) </span>
|
||||
</div>
|
||||
<q-separator />
|
||||
|
||||
|
|
|
|||
|
|
@ -162,7 +162,6 @@ onMounted(async () => {
|
|||
</q-tab-panel>
|
||||
<q-tab-panel class="bg-grey-2" style="padding: 0px" name="ListPersons">
|
||||
<ListPersons
|
||||
v-model:is-change-data="isChangeData"
|
||||
:on-check-change-data="onCheckChangeData"
|
||||
:fetch-data-command-list="fetchDataCommandList"
|
||||
:command-sys-id="formCommandList?.commandSysId as string"
|
||||
|
|
@ -183,9 +182,7 @@ onMounted(async () => {
|
|||
<q-tab-panel style="padding: 0px" name="Attached">
|
||||
<q-card>
|
||||
<Attached
|
||||
v-model:is-change-data="isChangeData"
|
||||
v-model:is-attachment="formCommandList.isAttachment"
|
||||
:on-check-change-data="onCheckChangeData"
|
||||
:form-command-list="formCommandList"
|
||||
/>
|
||||
</q-card>
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ const { hideLoader, messageError } = useCounterMixin();
|
|||
const numOfPages = ref<number>(0);
|
||||
const page = ref<number>(1);
|
||||
const pdfSrc = ref<any>();
|
||||
const splitterModel = ref(14);
|
||||
|
||||
/** prosp*/
|
||||
const isLoadPDF = ref<boolean>(false);
|
||||
|
|
@ -225,6 +226,8 @@ watch(
|
|||
<div class="col-12">
|
||||
<q-card>
|
||||
<q-splitter
|
||||
disable
|
||||
v-model="splitterModel"
|
||||
horizontal
|
||||
style="
|
||||
height: 65vh;
|
||||
|
|
|
|||
|
|
@ -420,6 +420,8 @@ onMounted(async () => {
|
|||
</div>
|
||||
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 col-xs-12 flex">
|
||||
<q-splitter
|
||||
v-model="splitterModel"
|
||||
disable
|
||||
horizontal
|
||||
style="
|
||||
height: 75vh;
|
||||
|
|
|
|||
|
|
@ -21,8 +21,6 @@ const { fetchStructureTree } = useStructureTree();
|
|||
const { messageError } = useCounterMixin();
|
||||
|
||||
const loadingBtn = ref<boolean>(false);
|
||||
const isReport = ref<boolean>(false);
|
||||
const isLoadPDF = ref<boolean>(false);
|
||||
const expandedModal = ref<boolean>(false);
|
||||
const org = ref<string>("");
|
||||
|
||||
|
|
@ -39,6 +37,7 @@ const detailReport = ref<any>();
|
|||
const numOfPages = ref<number>(0);
|
||||
const page = ref<number>(1);
|
||||
const pdfSrc = ref<any>();
|
||||
const splitterModel = ref(14);
|
||||
|
||||
/** ฟังก์ชันเรียกข้อมูลโครงสร้างหน่วยงาน*/
|
||||
async function fetchDataTree() {
|
||||
|
|
@ -368,6 +367,8 @@ onMounted(() => {
|
|||
</div>
|
||||
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 col-xs-12 flex">
|
||||
<q-splitter
|
||||
v-model="splitterModel"
|
||||
disable
|
||||
horizontal
|
||||
style="
|
||||
height: 75vh;
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ const nodeName = ref<string>("");
|
|||
const node = ref<DataStructureTree[]>([]);
|
||||
|
||||
const detailReport = ref<any>();
|
||||
const splitterModel = ref(14);
|
||||
|
||||
/** ฟังก์ชันเรียกข้อมูลรอบการขึ้นเงินเดือน*/
|
||||
async function fetchDataRound() {
|
||||
|
|
@ -590,6 +591,8 @@ onMounted(() => {
|
|||
</div>
|
||||
<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 col-xs-12 flex">
|
||||
<q-splitter
|
||||
v-model="splitterModel"
|
||||
disable
|
||||
horizontal
|
||||
style="
|
||||
height: 75vh;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue