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"> <script setup lang="ts">
import { computed, reactive, ref, watch } from "vue"; import { computed, reactive, ref, watch } from "vue";
import { useQuasar } from "quasar"; import { useQuasar } from "quasar";
@ -147,9 +146,13 @@ function onSubmit() {
formData.append("endDate", dateToISO(dateEnd.value)); formData.append("endDate", dateToISO(dateEnd.value));
} }
formData.append("file", files.value); formData.append("file", files.value);
newEmpPosId.forEach((id) => { if (newEmpPosId.length > 0) {
formData.append("empPosId", id); newEmpPosId.forEach((id) => {
}); formData.append("empPosId", id);
});
} else {
formData.append("empPosId", '');
}
const url = const url =
actionType.value !== "edit" actionType.value !== "edit"
? config.API.listRoundInsignia() ? config.API.listRoundInsignia()

View file

@ -146,7 +146,7 @@ const columns = ref<QTableProps["columns"]>([
{ {
name: "employeeType", name: "employeeType",
align: "left", align: "left",
label: "สถานภาพ", label: "ประเภทตำแหน่ง",
sortable: true, sortable: true,
field: "employeeType", field: "employeeType",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
@ -1012,7 +1012,7 @@ onMounted(async () => {
outlined outlined
lazy-rules lazy-rules
hide-bottom-space hide-bottom-space
:label="`${'สถานภาพ'}`" :label="`${'ประเภทตำแหน่ง'}`"
emit-value emit-value
use-input use-input
map-options map-options

View file

@ -71,7 +71,7 @@ const columns = ref<QTableProps["columns"]>([
{ {
name: "employeeType", name: "employeeType",
align: "left", align: "left",
label: "สถานภาพ", label: "ประเภทตำแหน่ง",
sortable: true, sortable: true,
field: "employeeType", field: "employeeType",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
@ -400,7 +400,7 @@ watch(
outlined outlined
lazy-rules lazy-rules
hide-bottom-space hide-bottom-space
:label="`${'สถานภาพ'}`" :label="`${'ประเภทตำแหน่ง'}`"
emit-value emit-value
use-input use-input
hide-selected hide-selected

View file

@ -71,7 +71,7 @@ const columns = ref<QTableProps["columns"]>([
{ {
name: "employeeType", name: "employeeType",
align: "left", align: "left",
label: "สถานภาพ", label: "ประเภทตำแหน่ง",
sortable: true, sortable: true,
field: "employeeType", field: "employeeType",
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
@ -400,7 +400,7 @@ onMounted(async () => {
outlined outlined
lazy-rules lazy-rules
hide-bottom-space hide-bottom-space
:label="`${'สถานภาพ'}`" :label="`${'ประเภทตำแหน่ง'}`"
emit-value emit-value
use-input use-input
map-options map-options

View file

@ -184,9 +184,9 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
} }
/** /**
* function * function
* @param type * @param type
* @param employeeClasstype * @param employeeClasstype
*/ */
async function searchDataTable(type: string, employeeClasstype: string) { async function searchDataTable(type: string, employeeClasstype: string) {
typeinsignia.value = type; typeinsignia.value = type;

View file

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

View file

@ -105,7 +105,7 @@ export const useBrrowDataStore = defineStore("insigniaBrrow", () => {
/** /**
* function Table * function Table
* @param type * @param type
* @param employeeClass * @param employeeClass
*/ */
function searchDatatable(type: string, employeeClass: string) { function searchDatatable(type: string, employeeClass: string) {
if (type !== "" && employeeClass !== "all") { if (type !== "" && employeeClass !== "all") {
@ -144,8 +144,8 @@ export const useBrrowDataStore = defineStore("insigniaBrrow", () => {
}; };
/** /**
* function convert * function convert
* @param val * @param val
*/ */
function profileType(val: string) { function profileType(val: string) {
const newVal = val.toLocaleLowerCase(); const newVal = val.toLocaleLowerCase();

View file

@ -172,8 +172,8 @@ export const useResultDataStore = defineStore("insigniaResult", () => {
} }
/** /**
* function convert * function convert
* @param val * @param val
*/ */
function profileType(val: string) { function profileType(val: string) {
const newVal = val.toLocaleLowerCase(); const newVal = val.toLocaleLowerCase();

View file

@ -109,7 +109,7 @@ const columns = ref<QTableProps["columns"]>([
{ {
name: "employeeType", name: "employeeType",
align: "left", align: "left",
label: "สถานภาพ", label: "ประเภทตำแหน่ง",
field: "employeeType", field: "employeeType",
sortable: true, sortable: true,
sort: (a: string, b: string) => sort: (a: string, b: string) =>
@ -811,7 +811,7 @@ onMounted(() => {
outlined outlined
lazy-rules lazy-rules
hide-bottom-space hide-bottom-space
:label="`${'สถานภาพ'}`" :label="`${'ประเภทตำแหน่ง'}`"
emit-value emit-value
map-options map-options
use-input use-input

View file

@ -85,7 +85,7 @@ const columns = ref<QTableProps["columns"]>([
{ {
name: "employeeType", name: "employeeType",
align: "left", align: "left",
label: "สถานภาพ", label: "ประเภทตำแหน่ง",
field: "employeeType", field: "employeeType",
sortable: true, sortable: true,
headerStyle: "font-size: 14px", headerStyle: "font-size: 14px",
@ -616,7 +616,7 @@ onMounted(async () => {
outlined outlined
lazy-rules lazy-rules
hide-bottom-space hide-bottom-space
:label="`${'สถานภาพ'}`" :label="`${'ประเภทตำแหน่ง'}`"
emit-value emit-value
use-input use-input
hide-selected hide-selected