Merge branch 'develop' into devTee
This commit is contained in:
commit
aad09c302b
7 changed files with 46 additions and 40 deletions
|
|
@ -591,7 +591,7 @@ function onChangeIsDeputy() {
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="
|
v-if="
|
||||||
(actionType === 'ADD' && props.dataNode?.orgLevel === 0) ||
|
(actionType === 'ADD' && level === 0) ||
|
||||||
(actionType === 'EDIT' && props.dataNode?.orgLevel === 0)
|
(actionType === 'EDIT' && props.dataNode?.orgLevel === 0)
|
||||||
"
|
"
|
||||||
class="col-12"
|
class="col-12"
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ import type {
|
||||||
} from "@/modules/04_registryPerson/interface/index/Main";
|
} from "@/modules/04_registryPerson/interface/index/Main";
|
||||||
import type { DataListsIDP } from "@/modules/04_registryPerson/interface/response/Main";
|
import type { DataListsIDP } from "@/modules/04_registryPerson/interface/response/Main";
|
||||||
|
|
||||||
|
const props = defineProps<{ isIdp: boolean | null }>();
|
||||||
const $q = useQuasar();
|
const $q = useQuasar();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
@ -283,9 +284,8 @@ watch(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
/** HooK lifecycle ทำงานเมื่อมีการเรียกใช้งาน Componenets*/
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
fetchData();
|
props.isIdp && fetchData();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted, ref } from "vue";
|
import { onBeforeMount, onMounted, ref } from "vue";
|
||||||
|
|
||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
|
|
||||||
|
|
@ -12,12 +12,16 @@ const router = useRouter();
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const store = useRegistryNewDataStore();
|
const store = useRegistryNewDataStore();
|
||||||
|
|
||||||
const isIDP = ref<boolean>();
|
const isIDP = ref<boolean | null>(null);
|
||||||
|
|
||||||
|
onBeforeMount(async () => {
|
||||||
|
isIDP.value = await (route.name?.toString() == "registryNewRequestEditEMP"
|
||||||
|
? false
|
||||||
|
: true);
|
||||||
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
const check =
|
store.tabs = !isIDP.value ? "Main" : store.tabs;
|
||||||
route.name?.toString() == "registryNewRequestEditEMP" ? false : true;
|
|
||||||
store.tabs = !check ? "Main" : store.tabs;
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
@ -63,7 +67,9 @@ onMounted(() => {
|
||||||
<TabInformation />
|
<TabInformation />
|
||||||
</q-tab-panel>
|
</q-tab-panel>
|
||||||
|
|
||||||
<q-tab-panel style="padding: 0px" name="IDP"> <TabIDP /> </q-tab-panel>
|
<q-tab-panel style="padding: 0px" name="IDP">
|
||||||
|
<TabIDP :is-idp="isIDP" />
|
||||||
|
</q-tab-panel>
|
||||||
</q-tab-panels>
|
</q-tab-panels>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
</q-card>
|
</q-card>
|
||||||
|
|
|
||||||
|
|
@ -301,7 +301,6 @@ onMounted(async () => {
|
||||||
map-options
|
map-options
|
||||||
:options="columns"
|
:options="columns"
|
||||||
option-value="name"
|
option-value="name"
|
||||||
|
|
||||||
style="min-width: 140px"
|
style="min-width: 140px"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -350,7 +349,9 @@ onMounted(async () => {
|
||||||
round
|
round
|
||||||
color="edit"
|
color="edit"
|
||||||
icon="edit"
|
icon="edit"
|
||||||
@click.pervent="onRedirectToDetail('resign-employee', props.row.id)"
|
@click.pervent="
|
||||||
|
onRedirectToDetail('resign-employee', props.row.id)
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
|
|
|
||||||
|
|
@ -166,8 +166,6 @@ export default [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
path: "/retirement/resign-employee/:id",
|
path: "/retirement/resign-employee/:id",
|
||||||
name: "resignbyidEMP",
|
name: "resignbyidEMP",
|
||||||
|
|
@ -189,7 +187,6 @@ export default [
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
path: "/retirement/resign-reject/:id",
|
path: "/retirement/resign-reject/:id",
|
||||||
name: "resignReject",
|
name: "resignReject",
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
"composite": true,
|
"composite": true,
|
||||||
"types": ["node"],
|
"types": ["node"],
|
||||||
"ignoreDeprecations": "5.0",
|
"ignoreDeprecations": "5.0",
|
||||||
"verbatimModuleSyntax": true
|
"verbatimModuleSyntax": true,
|
||||||
|
"module": "esnext"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,30 +1,31 @@
|
||||||
import { fileURLToPath, URL } from "node:url"
|
import { fileURLToPath, URL } from "node:url";
|
||||||
|
|
||||||
import { defineConfig } from "vite"
|
import { defineConfig } from "vite";
|
||||||
import vue from "@vitejs/plugin-vue"
|
import vue from "@vitejs/plugin-vue";
|
||||||
import vueJsx from "@vitejs/plugin-vue-jsx"
|
import vueJsx from "@vitejs/plugin-vue-jsx";
|
||||||
import { quasar, transformAssetUrls } from "@quasar/vite-plugin"
|
import { quasar, transformAssetUrls } from "@quasar/vite-plugin";
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
plugins: [
|
||||||
vue({
|
vue({
|
||||||
template: { transformAssetUrls },
|
template: { transformAssetUrls },
|
||||||
}),
|
}),
|
||||||
quasar({
|
quasar({
|
||||||
sassVariables: "src/style/quasar-variables.sass",
|
sassVariables: "src/style/quasar-variables.sass",
|
||||||
}),
|
}),
|
||||||
vueJsx(),
|
vueJsx(),
|
||||||
],
|
],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
||||||
},
|
|
||||||
},
|
},
|
||||||
build: {
|
},
|
||||||
target: "esnext",
|
build: {
|
||||||
},
|
target: "esnext",
|
||||||
server: {
|
},
|
||||||
port: 3006,
|
server: {
|
||||||
},
|
port: 3006,
|
||||||
})
|
},
|
||||||
|
base: "./",
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue