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">
|
<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()
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue