fix insignia

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-05-01 11:40:54 +07:00
parent e279f2fbb0
commit 2f4b1d198f
10 changed files with 26 additions and 23 deletions

View file

@ -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()

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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;

View file

@ -78,8 +78,8 @@ export const useAllocateDataStore = defineStore("insigniaallocate", () => {
}
/**
* function convert
* @param val
* function convert
* @param val
*/
function profileType(val: string) {
switch (val) {

View file

@ -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();

View file

@ -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();

View file

@ -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

View file

@ -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