fix
This commit is contained in:
parent
9f6c33ee54
commit
e7b132d1ae
10 changed files with 66 additions and 66 deletions
|
|
@ -48,16 +48,16 @@ const props = defineProps({
|
|||
|
||||
const isReadonly = ref<boolean>(false); // อ่านได้อย่างเดียว
|
||||
|
||||
const dataLevel = ref<DataPosType[]>([]); // ข้อมูลประเภทตำแหน่ง
|
||||
const dataLevel = ref<DataPosType[]>([]); // ข้อมูลตำแหน่งประเภท
|
||||
const posExecutive = ref<string>(""); // ชื่อตำแหน่งทางการบริหาร
|
||||
const isSpecial = ref<boolean>(false); // เฉพาะสายงานที่กำหนด
|
||||
const shape = ref<string>("false"); // ตำแหน่งทางการบริหาร
|
||||
const isDisValidate = ref<boolean>(false);
|
||||
|
||||
const typeOpsMain = ref<DataOption[]>([]); //ตัวเลือกประเภทตำแหน่ง
|
||||
const typeOpsMain = ref<DataOption[]>([]); //ตัวเลือกตำแหน่งประเภท
|
||||
const levelOpsMain = ref<DataOption[]>([]); //ตัวเลือกระดับตำแหน่ง
|
||||
const executiveOpsMain = ref<DataOption[]>([]); //ตัวเลือกรายการตำแหน่งทางการบริหาร
|
||||
const typeOps = ref<DataOption[]>([]); //ตัวเลือกประเภทตำแหน่ง
|
||||
const typeOps = ref<DataOption[]>([]); //ตัวเลือกตำแหน่งประเภท
|
||||
const levelOps = ref<DataOption[]>([]); //ตัวเลือกระดับตำแหน่ง
|
||||
const executiveOps = ref<DataOption[]>([]); //ตัวเลือกรายการตำแหน่งทางการบริหาร
|
||||
const shapeOp = ref<DataOption[]>([
|
||||
|
|
@ -118,7 +118,7 @@ function saveSelectEdit() {
|
|||
? {
|
||||
posDictName: formPositionSelect.positionName,
|
||||
posDictField: formPositionSelect.positionField, //สายงาน
|
||||
posTypeId: formPositionSelect.positionType, //*ประเภทตำแหน่ง
|
||||
posTypeId: formPositionSelect.positionType, //*ตำแหน่งประเภท
|
||||
posLevelId: formPositionSelect.positionLevel, //*ระดับตำแหน่ง
|
||||
posExecutiveId: dataExecutive ?? "", //ตำแหน่งทางการบริหาร
|
||||
posDictExecutiveField:
|
||||
|
|
@ -129,7 +129,7 @@ function saveSelectEdit() {
|
|||
: {
|
||||
posDictName: formPositionSelect.positionName,
|
||||
posDictField: formPositionSelect.positionField, //สายงาน
|
||||
posTypeId: formPositionSelect.positionType, //*ประเภทตำแหน่ง
|
||||
posTypeId: formPositionSelect.positionType, //*ตำแหน่งประเภท
|
||||
posLevelId: formPositionSelect.positionLevel, //*ระดับตำแหน่ง
|
||||
posExecutive: dataExecutive ?? "", //ตำแหน่งทางการบริหาร
|
||||
posDictExecutiveField: formPositionSelect.positionExecutiveField, //ด้านทางการบริหาร
|
||||
|
|
@ -176,7 +176,7 @@ function onSubmitSelectEdit() {
|
|||
? {
|
||||
posDictName: formPositionSelect.positionName,
|
||||
posDictField: formPositionSelect.positionField, //สายงาน
|
||||
posTypeId: formPositionSelect.positionType, //*ประเภทตำแหน่ง
|
||||
posTypeId: formPositionSelect.positionType, //*ตำแหน่งประเภท
|
||||
posLevelId: formPositionSelect.positionLevel, //*ระดับตำแหน่ง
|
||||
posExecutiveId: dataExecutive ?? "", //ตำแหน่งทางการบริหาร
|
||||
posDictExecutiveField: formPositionSelect.positionExecutiveField, //ด้านทางการบริหาร
|
||||
|
|
@ -186,7 +186,7 @@ function onSubmitSelectEdit() {
|
|||
: {
|
||||
posDictName: formPositionSelect.positionName,
|
||||
posDictField: formPositionSelect.positionField, //สายงาน
|
||||
posTypeId: formPositionSelect.positionType, //*ประเภทตำแหน่ง
|
||||
posTypeId: formPositionSelect.positionType, //*ตำแหน่งประเภท
|
||||
posLevelId: formPositionSelect.positionLevel, //*ระดับตำแหน่ง
|
||||
posExecutive: dataExecutive ?? "", //ตำแหน่งทางการบริหาร
|
||||
posDictExecutiveField: formPositionSelect.positionExecutiveField, //ด้านทางการบริหาร
|
||||
|
|
@ -241,7 +241,7 @@ async function clearFormPositionSelect() {
|
|||
}
|
||||
|
||||
/**
|
||||
* ฟังก์เรียกข้อมูลรายการประเภทตำแหน่ง
|
||||
* ฟังก์เรียกข้อมูลรายการตำแหน่งประเภท
|
||||
*/
|
||||
async function fetchType() {
|
||||
await http
|
||||
|
|
@ -260,8 +260,8 @@ async function fetchType() {
|
|||
}
|
||||
|
||||
/**
|
||||
* ฟังก์ชันกำหนดตัวเลือกประเภทตำแหน่งตาม id ประเภทตำแหน่ง
|
||||
* @param val id ประเภทตำแหน่ง
|
||||
* ฟังก์ชันกำหนดตัวเลือกตำแหน่งประเภทตาม id ตำแหน่งประเภท
|
||||
* @param val id ตำแหน่งประเภท
|
||||
*/
|
||||
async function updateSelectType(val: string) {
|
||||
// หาระดับตำแหน่ง
|
||||
|
|
@ -320,7 +320,7 @@ function inputEdit(val: boolean) {
|
|||
/**
|
||||
* ดูการเปลี่ยนแปลงของ modal.value
|
||||
*
|
||||
* ถ้าเป็น true ทำการเรียกข้อมูลรายการประเภทตำแหน่ง และ ข้อมูลรายการตำแหน่งทางการบริหาร
|
||||
* ถ้าเป็น true ทำการเรียกข้อมูลรายการตำแหน่งประเภท และ ข้อมูลรายการตำแหน่งทางการบริหาร
|
||||
* และถ้ามี props.data จะกำหนด formPositionSelect เป็นตาม props.data
|
||||
*/
|
||||
watch(
|
||||
|
|
@ -418,7 +418,7 @@ watch(
|
|||
<q-select
|
||||
ref="positionTypeRef"
|
||||
:class="inputEdit(isReadonly)"
|
||||
label="ประเภทตำแหน่ง"
|
||||
label="ตำแหน่งประเภท"
|
||||
v-model="formPositionSelect.positionType"
|
||||
:options="typeOps"
|
||||
emit-value
|
||||
|
|
@ -432,7 +432,7 @@ watch(
|
|||
hide-bottom-space
|
||||
:rules="
|
||||
!isDisValidate
|
||||
? [(val:string) => !!val || `${'กรุณาเลือกประเภทตำแหน่ง'}`]
|
||||
? [(val:string) => !!val || `${'กรุณาเลือกตำแหน่งประเภท'}`]
|
||||
: []
|
||||
"
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue