fix insignia
This commit is contained in:
parent
e279f2fbb0
commit
2f4b1d198f
10 changed files with 26 additions and 23 deletions
|
|
@ -1,4 +1,3 @@
|
|||
divdivdivdiv
|
||||
<script setup lang="ts">
|
||||
import { computed, reactive, ref, watch } from "vue";
|
||||
import { useQuasar } from "quasar";
|
||||
|
|
@ -147,9 +146,13 @@ function onSubmit() {
|
|||
formData.append("endDate", dateToISO(dateEnd.value));
|
||||
}
|
||||
formData.append("file", files.value);
|
||||
newEmpPosId.forEach((id) => {
|
||||
formData.append("empPosId", id);
|
||||
});
|
||||
if (newEmpPosId.length > 0) {
|
||||
newEmpPosId.forEach((id) => {
|
||||
formData.append("empPosId", id);
|
||||
});
|
||||
} else {
|
||||
formData.append("empPosId", '');
|
||||
}
|
||||
const url =
|
||||
actionType.value !== "edit"
|
||||
? config.API.listRoundInsignia()
|
||||
|
|
|
|||
|
|
@ -146,7 +146,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
{
|
||||
name: "employeeType",
|
||||
align: "left",
|
||||
label: "สถานภาพ",
|
||||
label: "ประเภทตำแหน่ง",
|
||||
sortable: true,
|
||||
field: "employeeType",
|
||||
headerStyle: "font-size: 14px",
|
||||
|
|
@ -1012,7 +1012,7 @@ onMounted(async () => {
|
|||
outlined
|
||||
lazy-rules
|
||||
hide-bottom-space
|
||||
:label="`${'สถานภาพ'}`"
|
||||
:label="`${'ประเภทตำแหน่ง'}`"
|
||||
emit-value
|
||||
use-input
|
||||
map-options
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
{
|
||||
name: "employeeType",
|
||||
align: "left",
|
||||
label: "สถานภาพ",
|
||||
label: "ประเภทตำแหน่ง",
|
||||
sortable: true,
|
||||
field: "employeeType",
|
||||
headerStyle: "font-size: 14px",
|
||||
|
|
@ -400,7 +400,7 @@ watch(
|
|||
outlined
|
||||
lazy-rules
|
||||
hide-bottom-space
|
||||
:label="`${'สถานภาพ'}`"
|
||||
:label="`${'ประเภทตำแหน่ง'}`"
|
||||
emit-value
|
||||
use-input
|
||||
hide-selected
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
{
|
||||
name: "employeeType",
|
||||
align: "left",
|
||||
label: "สถานภาพ",
|
||||
label: "ประเภทตำแหน่ง",
|
||||
sortable: true,
|
||||
field: "employeeType",
|
||||
headerStyle: "font-size: 14px",
|
||||
|
|
@ -400,7 +400,7 @@ onMounted(async () => {
|
|||
outlined
|
||||
lazy-rules
|
||||
hide-bottom-space
|
||||
:label="`${'สถานภาพ'}`"
|
||||
:label="`${'ประเภทตำแหน่ง'}`"
|
||||
emit-value
|
||||
use-input
|
||||
map-options
|
||||
|
|
|
|||
|
|
@ -184,9 +184,9 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
|
|||
}
|
||||
|
||||
/**
|
||||
* function ค้นหาข้อมมูลรายชื่อ ตาม ประเภทและสถานภาพ
|
||||
* function ค้นหาข้อมมูลรายชื่อ ตาม ประเภทและประเภทตำแหน่ง
|
||||
* @param type ประเภท
|
||||
* @param employeeClasstype สถานภาพ
|
||||
* @param employeeClasstype ประเภทตำแหน่ง
|
||||
*/
|
||||
async function searchDataTable(type: string, employeeClasstype: string) {
|
||||
typeinsignia.value = type;
|
||||
|
|
|
|||
|
|
@ -78,8 +78,8 @@ export const useAllocateDataStore = defineStore("insigniaallocate", () => {
|
|||
}
|
||||
|
||||
/**
|
||||
* function convert สถานภาพ
|
||||
* @param val สถานภาพ
|
||||
* function convert ประเภทตำแหน่ง
|
||||
* @param val ประเภทตำแหน่ง
|
||||
*/
|
||||
function profileType(val: string) {
|
||||
switch (val) {
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ export const useBrrowDataStore = defineStore("insigniaBrrow", () => {
|
|||
/**
|
||||
* function ค้นหาข้อมูล Table
|
||||
* @param type ประเภทเครื่องราช
|
||||
* @param employeeClass สถานภาพ
|
||||
* @param employeeClass ประเภทตำแหน่ง
|
||||
*/
|
||||
function searchDatatable(type: string, employeeClass: string) {
|
||||
if (type !== "" && employeeClass !== "all") {
|
||||
|
|
@ -144,8 +144,8 @@ export const useBrrowDataStore = defineStore("insigniaBrrow", () => {
|
|||
};
|
||||
|
||||
/**
|
||||
* function convert สถานภาพ
|
||||
* @param val สถานภาพ
|
||||
* function convert ประเภทตำแหน่ง
|
||||
* @param val ประเภทตำแหน่ง
|
||||
*/
|
||||
function profileType(val: string) {
|
||||
const newVal = val.toLocaleLowerCase();
|
||||
|
|
|
|||
|
|
@ -172,8 +172,8 @@ export const useResultDataStore = defineStore("insigniaResult", () => {
|
|||
}
|
||||
|
||||
/**
|
||||
* function convert สถานภาพ
|
||||
* @param val สถานภาพ
|
||||
* function convert ประเภทตำแหน่ง
|
||||
* @param val ประเภทตำแหน่ง
|
||||
*/
|
||||
function profileType(val: string) {
|
||||
const newVal = val.toLocaleLowerCase();
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
{
|
||||
name: "employeeType",
|
||||
align: "left",
|
||||
label: "สถานภาพ",
|
||||
label: "ประเภทตำแหน่ง",
|
||||
field: "employeeType",
|
||||
sortable: true,
|
||||
sort: (a: string, b: string) =>
|
||||
|
|
@ -811,7 +811,7 @@ onMounted(() => {
|
|||
outlined
|
||||
lazy-rules
|
||||
hide-bottom-space
|
||||
:label="`${'สถานภาพ'}`"
|
||||
:label="`${'ประเภทตำแหน่ง'}`"
|
||||
emit-value
|
||||
map-options
|
||||
use-input
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ const columns = ref<QTableProps["columns"]>([
|
|||
{
|
||||
name: "employeeType",
|
||||
align: "left",
|
||||
label: "สถานภาพ",
|
||||
label: "ประเภทตำแหน่ง",
|
||||
field: "employeeType",
|
||||
sortable: true,
|
||||
headerStyle: "font-size: 14px",
|
||||
|
|
@ -616,7 +616,7 @@ onMounted(async () => {
|
|||
outlined
|
||||
lazy-rules
|
||||
hide-bottom-space
|
||||
:label="`${'สถานภาพ'}`"
|
||||
:label="`${'ประเภทตำแหน่ง'}`"
|
||||
emit-value
|
||||
use-input
|
||||
hide-selected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue