no message
This commit is contained in:
parent
c76af202de
commit
475490d1f2
6 changed files with 131 additions and 65 deletions
|
|
@ -28,16 +28,8 @@ const {
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const assignId = ref<string>(route.params.form.toString());
|
const assignId = ref<string>(route.params.form.toString());
|
||||||
const personalId = ref<string>(route.params.personalId.toString());
|
const personalId = ref<string>(route.params.personalId.toString());
|
||||||
|
|
||||||
const myForm = ref<any>(null);
|
const myForm = ref<any>(null);
|
||||||
|
const dateAutherise = ref<any>();
|
||||||
const edit = () => {
|
|
||||||
status.value = true;
|
|
||||||
};
|
|
||||||
const cancel = () => {
|
|
||||||
status.value = false;
|
|
||||||
fecthAssign();
|
|
||||||
};
|
|
||||||
const evaluate_no = ref<number>();
|
const evaluate_no = ref<number>();
|
||||||
const evaluate_id = ref<string>("");
|
const evaluate_id = ref<string>("");
|
||||||
const start_date = ref<Date>(new Date());
|
const start_date = ref<Date>(new Date());
|
||||||
|
|
@ -82,6 +74,10 @@ const training_seminar_percent = ref<number>(0);
|
||||||
const other_training_percent = ref<number>(0);
|
const other_training_percent = ref<number>(0);
|
||||||
const develop_result = ref<any>();
|
const develop_result = ref<any>();
|
||||||
const evaluate_result = ref<any>();
|
const evaluate_result = ref<any>();
|
||||||
|
|
||||||
|
const list2_1 = probationStore.behavior_no1;
|
||||||
|
const list2_2 = probationStore.behavior_no2;
|
||||||
|
const list2_3 = probationStore.behavior_no3;
|
||||||
const evaluate_result_option = ref<any>([
|
const evaluate_result_option = ref<any>([
|
||||||
{ name: "ผ่าน (สูงกว่าร้อยละ 60)", value: 1 },
|
{ name: "ผ่าน (สูงกว่าร้อยละ 60)", value: 1 },
|
||||||
{ name: "ไม่ผ่าน (ต่ำกว่าร้อยละ 60)", value: 0 },
|
{ name: "ไม่ผ่าน (ต่ำกว่าร้อยละ 60)", value: 0 },
|
||||||
|
|
@ -91,10 +87,20 @@ const develop_result_option = ref<any>([
|
||||||
{ name: "ผ่าน (สูงกว่าร้อยละ 60)", value: 1 },
|
{ name: "ผ่าน (สูงกว่าร้อยละ 60)", value: 1 },
|
||||||
{ name: "ไม่ผ่าน (ต่ำกว่าร้อยละ 60)", value: 0 },
|
{ name: "ไม่ผ่าน (ต่ำกว่าร้อยละ 60)", value: 0 },
|
||||||
]);
|
]);
|
||||||
// footer
|
|
||||||
const dateAutherise = ref<any>();
|
|
||||||
|
|
||||||
const fecthAssign = async () => {
|
/**set true */
|
||||||
|
function edit(){
|
||||||
|
status.value = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
/** set false */
|
||||||
|
function cancel(){
|
||||||
|
status.value = false;
|
||||||
|
fecthAssign();
|
||||||
|
};
|
||||||
|
|
||||||
|
/** get ข้อมูล */
|
||||||
|
async function fecthAssign(){
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.evaluateChairman(assignId.value))
|
.get(config.API.evaluateChairman(assignId.value))
|
||||||
|
|
@ -129,8 +135,8 @@ const fecthAssign = async () => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const fetchEvaluate = async () => {
|
/** เอาค่าจ่าก ดาต้า เก็บไว้ที่ตัวเเปร */
|
||||||
// showLoader();
|
async function fetchEvaluate(){
|
||||||
try {
|
try {
|
||||||
let data = await dataArr.value;
|
let data = await dataArr.value;
|
||||||
evaluate_id.value = data.id;
|
evaluate_id.value = data.id;
|
||||||
|
|
@ -181,10 +187,6 @@ const fetchEvaluate = async () => {
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
const list2_1 = probationStore.behavior_no1;
|
|
||||||
const list2_2 = probationStore.behavior_no2;
|
|
||||||
const list2_3 = probationStore.behavior_no3;
|
|
||||||
|
|
||||||
// score
|
// score
|
||||||
const score1 = computed(() => {
|
const score1 = computed(() => {
|
||||||
if (
|
if (
|
||||||
|
|
@ -292,7 +294,8 @@ const score5 = computed(() => {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
const savaForm = () => {
|
/** ฟังชั่นเช็คค่าไม่ว่าง */
|
||||||
|
function savaForm(){
|
||||||
let hasError = false;
|
let hasError = false;
|
||||||
if (
|
if (
|
||||||
learn_level.value === 0 ||
|
learn_level.value === 0 ||
|
||||||
|
|
@ -326,7 +329,8 @@ const savaForm = () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const putformData = () => {
|
/** ฟังชั่น อัพเดต ข้อมูล */
|
||||||
|
function putformData(){
|
||||||
const data = {
|
const data = {
|
||||||
evaluate_no: evaluate_no.value,
|
evaluate_no: evaluate_no.value,
|
||||||
start_date: start_date.value,
|
start_date: start_date.value,
|
||||||
|
|
@ -389,6 +393,8 @@ const putformData = () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** ตรวจสอบการเปลี่ยนเเปลงค่า props */
|
||||||
watch(props, async () => {
|
watch(props, async () => {
|
||||||
if (props.tab && props.action == "edit") {
|
if (props.tab && props.action == "edit") {
|
||||||
evaluate_no.value = Number(props.tab.charAt(4));
|
evaluate_no.value = Number(props.tab.charAt(4));
|
||||||
|
|
@ -397,6 +403,7 @@ watch(props, async () => {
|
||||||
await fecthAssign();
|
await fecthAssign();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
if (props.tab && props.action == "edit") {
|
if (props.tab && props.action == "edit") {
|
||||||
evaluate_no.value = Number(props.tab.charAt(4));
|
evaluate_no.value = Number(props.tab.charAt(4));
|
||||||
|
|
@ -424,6 +431,7 @@ onMounted(async () => {
|
||||||
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
<q-tooltip>แก้ไขข้อมูล</q-tooltip>
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<q-btn dense flat round color="red" @click="cancel()" icon="mdi-undo">
|
<q-btn dense flat round color="red" @click="cancel()" icon="mdi-undo">
|
||||||
<q-tooltip>ยกเลิก</q-tooltip>
|
<q-tooltip>ยกเลิก</q-tooltip>
|
||||||
|
|
@ -441,6 +449,7 @@ onMounted(async () => {
|
||||||
</q-btn>
|
</q-btn>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row col-12 q-gutter-lg">
|
<div class="row col-12 q-gutter-lg">
|
||||||
<div class="col-12 row">
|
<div class="col-12 row">
|
||||||
<div class="col-12 text-top0 row items-center">
|
<div class="col-12 text-top0 row items-center">
|
||||||
|
|
@ -763,6 +772,7 @@ onMounted(async () => {
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 row">
|
<div class="col-12 row">
|
||||||
<div class="col-12 text-top0 row items-center q-pl-md">
|
<div class="col-12 text-top0 row items-center q-pl-md">
|
||||||
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
||||||
|
|
@ -811,6 +821,7 @@ onMounted(async () => {
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 row">
|
<div class="col-12 row">
|
||||||
<div class="col-12 text-top0 row items-center q-pl-md">
|
<div class="col-12 text-top0 row items-center q-pl-md">
|
||||||
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
||||||
|
|
@ -859,6 +870,7 @@ onMounted(async () => {
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 row">
|
<div class="col-12 row">
|
||||||
<div class="col-12 text-top0 row items-center q-pl-md">
|
<div class="col-12 text-top0 row items-center q-pl-md">
|
||||||
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
||||||
|
|
@ -929,6 +941,7 @@ onMounted(async () => {
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="text-top0 col-xs-12 col-sm-11 q-pt-sm q-px-md q-my-none">
|
<div class="text-top0 col-xs-12 col-sm-11 q-pt-sm q-px-md q-my-none">
|
||||||
<div class="row col-12 justify-between q-py-sm">
|
<div class="row col-12 justify-between q-py-sm">
|
||||||
<div class="text-black">คะแนนรวมพฤติกรรมการปฏิบัติราชการ</div>
|
<div class="text-black">คะแนนรวมพฤติกรรมการปฏิบัติราชการ</div>
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,7 @@ const develop_result_option = ref<any>([
|
||||||
]);
|
]);
|
||||||
// footer
|
// footer
|
||||||
const dateAutherise = ref<any>(null);
|
const dateAutherise = ref<any>(null);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
fecthAssign(assignId.value);
|
fecthAssign(assignId.value);
|
||||||
});
|
});
|
||||||
|
|
@ -232,7 +233,9 @@ const lengthdiscipline_level = computed(() => {
|
||||||
return discipline_level.value.filter((item: number) => item !== 0).length;
|
return discipline_level.value.filter((item: number) => item !== 0).length;
|
||||||
});
|
});
|
||||||
const variablesToWatch = [learn_level, apply_level, success_level];
|
const variablesToWatch = [learn_level, apply_level, success_level];
|
||||||
const savaForm = async () => {
|
|
||||||
|
/** ฟังชั่นเช็คค่าไม่ว่าง */
|
||||||
|
async function savaForm(){
|
||||||
let hasError = false;
|
let hasError = false;
|
||||||
if (
|
if (
|
||||||
learn_level.value === 0 ||
|
learn_level.value === 0 ||
|
||||||
|
|
@ -293,6 +296,8 @@ const savaForm = async () => {
|
||||||
dialogMessageNotify($q, "กรุณากรอกข้อมูลให้ครบ");
|
dialogMessageNotify($q, "กรุณากรอกข้อมูลให้ครบ");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** ฟังชั่น อัพเดต ข้อมูล */
|
||||||
const putformData = () => {
|
const putformData = () => {
|
||||||
const data = {
|
const data = {
|
||||||
evaluate_no: evaluate_no.value,
|
evaluate_no: evaluate_no.value,
|
||||||
|
|
@ -351,15 +356,18 @@ const putformData = () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const alerts = Array(20)
|
const alerts = Array(20)
|
||||||
.fill(null)
|
.fill(null)
|
||||||
.map(() => ref<boolean>(false));
|
.map(() => ref<boolean>(false));
|
||||||
|
|
||||||
|
/** ฟังชั่น คลาส css*/
|
||||||
const getBordered = (i: boolean) => {
|
const getBordered = (i: boolean) => {
|
||||||
return {
|
return {
|
||||||
border_custom: i,
|
border_custom: i,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
variablesToWatch.forEach((variable, index) => {
|
variablesToWatch.forEach((variable, index) => {
|
||||||
watch(variable, (item: any) => {
|
watch(variable, (item: any) => {
|
||||||
if (item !== 0) {
|
if (item !== 0) {
|
||||||
|
|
@ -367,16 +375,22 @@ variablesToWatch.forEach((variable, index) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/** ตรวจสอบการเปลี่ยนเเปลงค่า lengthconduct*/
|
||||||
watch(lengthconduct, (newLength) => {
|
watch(lengthconduct, (newLength) => {
|
||||||
if (newLength === 4) {
|
if (newLength === 4) {
|
||||||
alerts[3].value = false;
|
alerts[3].value = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/** ตรวจสอบการเปลี่ยนเเปลงค่า lengthmoral_level*/
|
||||||
watch(lengthmoral_level, (newLength) => {
|
watch(lengthmoral_level, (newLength) => {
|
||||||
if (newLength === 3) {
|
if (newLength === 3) {
|
||||||
alerts[4].value = false;
|
alerts[4].value = false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/** ตรวจสอบการเปลี่ยนเเปลงค่า lengthdiscipline_level*/
|
||||||
watch(lengthdiscipline_level, (newLength) => {
|
watch(lengthdiscipline_level, (newLength) => {
|
||||||
if (newLength === 5) {
|
if (newLength === 5) {
|
||||||
alerts[5].value = false;
|
alerts[5].value = false;
|
||||||
|
|
@ -493,6 +507,7 @@ watch(lengthdiscipline_level, (newLength) => {
|
||||||
</q-input>
|
</q-input>
|
||||||
</template>
|
</template>
|
||||||
</datepicker>
|
</datepicker>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6 q-px-sm">
|
<div class="col-6 q-px-sm">
|
||||||
<datepicker
|
<datepicker
|
||||||
|
|
@ -532,6 +547,7 @@ watch(lengthdiscipline_level, (newLength) => {
|
||||||
</q-input>
|
</q-input>
|
||||||
</template>
|
</template>
|
||||||
</datepicker>
|
</datepicker>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 q-pt-md">
|
<div class="col-12 q-pt-md">
|
||||||
|
|
@ -1365,6 +1381,7 @@ watch(lengthdiscipline_level, (newLength) => {
|
||||||
option-label="name"
|
option-label="name"
|
||||||
disable
|
disable
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="col-xs-12 col-sm-4">
|
<div class="col-xs-12 col-sm-4">
|
||||||
<datepicker
|
<datepicker
|
||||||
menu-class-name="modalfix"
|
menu-class-name="modalfix"
|
||||||
|
|
|
||||||
|
|
@ -59,17 +59,10 @@ const optionsResult = ref<any>([
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// const saveEdit = async (id: string) => {
|
/** get ข้อมูลรายการมอยหมาย เก็บไว้ตัวแปร
|
||||||
// await myForm.value.validate().then((result: boolean) => {
|
* @param id personal id
|
||||||
// if (result) {
|
*/
|
||||||
// dialogConfirm($q, async () => await postData("put"));
|
async function fecthAssign(id: string) {
|
||||||
// }else {
|
|
||||||
// dialogMessageNotify($q, "กรุณากรอกข้อมูลให้ครบ");
|
|
||||||
// }
|
|
||||||
// });
|
|
||||||
// };
|
|
||||||
|
|
||||||
const fecthAssign = async (id: string) => {
|
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.evaluateReportcreate(id))
|
.get(config.API.evaluateReportcreate(id))
|
||||||
|
|
@ -103,8 +96,11 @@ const fecthAssign = async (id: string) => {
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
|
/** get ข้อมูล เก็บไว้ตัวแปร
|
||||||
|
* @param id personal id
|
||||||
|
*/
|
||||||
const fecthResult = async (id: string) => {
|
const fecthResult = async (id: string) => {
|
||||||
await http
|
await http
|
||||||
.get(config.API.createformReport(id))
|
.get(config.API.createformReport(id))
|
||||||
|
|
@ -129,9 +125,8 @@ const fecthResult = async (id: string) => {
|
||||||
.catch((e) => {});
|
.catch((e) => {});
|
||||||
};
|
};
|
||||||
|
|
||||||
// part new
|
/** เช็คก่อน save */
|
||||||
|
async function savaForm() {
|
||||||
const savaForm = async () => {
|
|
||||||
await myForm.value.validate().then((result: boolean) => {
|
await myForm.value.validate().then((result: boolean) => {
|
||||||
if (result) {
|
if (result) {
|
||||||
dialogConfirm($q, async () => await postData("post"));
|
dialogConfirm($q, async () => await postData("post"));
|
||||||
|
|
@ -139,8 +134,10 @@ const savaForm = async () => {
|
||||||
dialogMessageNotify($q, "กรุณากรอกข้อมูลให้ครบ");
|
dialogMessageNotify($q, "กรุณากรอกข้อมูลให้ครบ");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
const downloadFile = (response: any, filename: string) => {
|
|
||||||
|
/** แปลงรหัสไฟล์ */
|
||||||
|
function downloadFile(response: any, filename: string) {
|
||||||
const link = document.createElement("a");
|
const link = document.createElement("a");
|
||||||
var fileName = filename;
|
var fileName = filename;
|
||||||
link.href = window.URL.createObjectURL(new Blob([response.data]));
|
link.href = window.URL.createObjectURL(new Blob([response.data]));
|
||||||
|
|
@ -148,9 +145,13 @@ const downloadFile = (response: any, filename: string) => {
|
||||||
document.body.appendChild(link);
|
document.body.appendChild(link);
|
||||||
link.click();
|
link.click();
|
||||||
document.body.removeChild(link);
|
document.body.removeChild(link);
|
||||||
};
|
}
|
||||||
|
|
||||||
const clickdownloadFile = async (type: string) => {
|
/**
|
||||||
|
* ดาว์โหลดไฟล์
|
||||||
|
* @param type docx/pdf
|
||||||
|
*/
|
||||||
|
async function clickdownloadFile(type: string) {
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
.get(config.API.reportEvaluateResult(type, assignId.value), {
|
.get(config.API.reportEvaluateResult(type, assignId.value), {
|
||||||
|
|
@ -165,8 +166,12 @@ const clickdownloadFile = async (type: string) => {
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
hideLoader();
|
hideLoader();
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
const postData = async (action: string) => {
|
|
||||||
|
/** post/put data
|
||||||
|
* @param action post put
|
||||||
|
*/
|
||||||
|
async function postData(action: string) {
|
||||||
const data = await {
|
const data = await {
|
||||||
start_date: date_start.value,
|
start_date: date_start.value,
|
||||||
date_finish: date_finish.value,
|
date_finish: date_finish.value,
|
||||||
|
|
@ -207,15 +212,20 @@ const postData = async (action: string) => {
|
||||||
fecthResult(assignId.value);
|
fecthResult(assignId.value);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
const selectResult = () => {
|
|
||||||
|
/** ผลการประเมินการทดลองปฏิบัติหน้าที่ราชการ */
|
||||||
|
function selectResult() {
|
||||||
if (result.value !== 3) {
|
if (result.value !== 3) {
|
||||||
expand_month.value = "";
|
expand_month.value = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
changeReson52(Number(result.value));
|
changeReson52(Number(result.value));
|
||||||
};
|
}
|
||||||
|
|
||||||
|
/** แปลง val เป็นตัวหนังสือ
|
||||||
|
* @param val ตัวเลข
|
||||||
|
*/
|
||||||
function changeReson52(val: number) {
|
function changeReson52(val: number) {
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case 1:
|
case 1:
|
||||||
|
|
@ -278,7 +288,6 @@ onMounted(() => {
|
||||||
ผู้ทดลองปฏิบัติหน้าที่ราชการ {{ person.name }}
|
ผู้ทดลองปฏิบัติหน้าที่ราชการ {{ person.name }}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 q-pl-md q-pb-md">
|
<div class="col-12 q-pl-md q-pb-md">
|
||||||
<!-- <div class="col-12"><span class="text-top0 q-pl-sm">ตำแหน่ง</span> {{ person.Position }}</div> -->
|
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<span class="text-top0 q-pl-sm">ตำแหน่งในสายงาน</span>
|
<span class="text-top0 q-pl-sm">ตำแหน่งในสายงาน</span>
|
||||||
{{ person.PositionLineName }}
|
{{ person.PositionLineName }}
|
||||||
|
|
@ -293,6 +302,7 @@ onMounted(() => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 text-top0 row items-center">
|
<div class="col-12 text-top0 row items-center">
|
||||||
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
||||||
ประเมินผล
|
ประเมินผล
|
||||||
|
|
@ -351,6 +361,7 @@ onMounted(() => {
|
||||||
</template>
|
</template>
|
||||||
</datepicker>
|
</datepicker>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-xs-12 col-sm-6">
|
<div class="col-xs-12 col-sm-6">
|
||||||
<datepicker
|
<datepicker
|
||||||
menu-class-name="modalfix"
|
menu-class-name="modalfix"
|
||||||
|
|
@ -640,6 +651,7 @@ onMounted(() => {
|
||||||
คณะกรรมการ
|
คณะกรรมการ
|
||||||
<!-- ผู้มีอำนาจสั่งบรรจุตามมาตรา 52 -->
|
<!-- ผู้มีอำนาจสั่งบรรจุตามมาตรา 52 -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 row q-col-gutter-md">
|
<div class="col-12 row q-col-gutter-md">
|
||||||
<q-select
|
<q-select
|
||||||
class="col-xs-12 col-sm-8"
|
class="col-xs-12 col-sm-8"
|
||||||
|
|
@ -651,6 +663,7 @@ onMounted(() => {
|
||||||
disable
|
disable
|
||||||
option-label="name"
|
option-label="name"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="col-xs-12 col-sm-4">
|
<div class="col-xs-12 col-sm-4">
|
||||||
<datepicker
|
<datepicker
|
||||||
menu-class-name="modalfix"
|
menu-class-name="modalfix"
|
||||||
|
|
|
||||||
|
|
@ -70,14 +70,6 @@ const achievement_inproveRef = ref<any>(null);
|
||||||
const behavio_strengthRef = ref<any>(null);
|
const behavio_strengthRef = ref<any>(null);
|
||||||
const behavio_inproveRef = ref<any>(null);
|
const behavio_inproveRef = ref<any>(null);
|
||||||
|
|
||||||
const edit = () => {
|
|
||||||
status.value = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
const cancel = () => {
|
|
||||||
status.value = false;
|
|
||||||
props.fecthAssign?.(assignId.value)
|
|
||||||
};
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
tab: String,
|
tab: String,
|
||||||
data: Object,
|
data: Object,
|
||||||
|
|
@ -85,7 +77,17 @@ const props = defineProps({
|
||||||
fecthAssign: Function,
|
fecthAssign: Function,
|
||||||
});
|
});
|
||||||
|
|
||||||
const fecthFormdata = async () => {
|
function edit(){
|
||||||
|
status.value = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
function cancel(){
|
||||||
|
status.value = false;
|
||||||
|
props.fecthAssign?.(assignId.value)
|
||||||
|
};
|
||||||
|
|
||||||
|
/** get data */
|
||||||
|
async function fecthFormdata(){
|
||||||
await http
|
await http
|
||||||
.get(config.API.formevaluateRecord(assignId.value))
|
.get(config.API.formevaluateRecord(assignId.value))
|
||||||
.then(async (res: any) => {
|
.then(async (res: any) => {
|
||||||
|
|
@ -100,7 +102,8 @@ const fecthFormdata = async () => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const fectFormfull = async () => {
|
/** get form */
|
||||||
|
async function fectFormfull(){
|
||||||
Autherise.value = probationStore.director.name + ` (${probationStore.director.PositionLineName}, ${probationStore.director.PositionLevelName}, ${probationStore.director.Oc})`;
|
Autherise.value = probationStore.director.name + ` (${probationStore.director.PositionLineName}, ${probationStore.director.PositionLevelName}, ${probationStore.director.Oc})`;
|
||||||
|
|
||||||
list1_1.value = probationStore.assignOutput;
|
list1_1.value = probationStore.assignOutput;
|
||||||
|
|
@ -117,7 +120,8 @@ const fectFormfull = async () => {
|
||||||
fecthFormRound();
|
fecthFormRound();
|
||||||
};
|
};
|
||||||
|
|
||||||
const fecthFormRound = async () => {
|
/** get form รอบ */
|
||||||
|
async function fecthFormRound(){
|
||||||
try {
|
try {
|
||||||
let data = await dataArr.value;
|
let data = await dataArr.value;
|
||||||
evaluate_id.value = data.id;
|
evaluate_id.value = data.id;
|
||||||
|
|
@ -207,7 +211,8 @@ const behavio_strengthRules = [
|
||||||
(val: any) => (val && val.length > 0) || "กรุณากรอกข้อมูลจุดเด่น",
|
(val: any) => (val && val.length > 0) || "กรุณากรอกข้อมูลจุดเด่น",
|
||||||
];
|
];
|
||||||
|
|
||||||
const savaForm = () => {
|
/** เช็ค data */
|
||||||
|
function savaForm(){
|
||||||
achievement_strengthRef.value.validate();
|
achievement_strengthRef.value.validate();
|
||||||
achievement_inproveRef.value.validate();
|
achievement_inproveRef.value.validate();
|
||||||
behavio_strengthRef.value.validate();
|
behavio_strengthRef.value.validate();
|
||||||
|
|
@ -250,7 +255,8 @@ const savaForm = () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const putformData = () => {
|
/** update data */
|
||||||
|
function putformData(){
|
||||||
const data = {
|
const data = {
|
||||||
evaluate_no: evaluate_no.value,
|
evaluate_no: evaluate_no.value,
|
||||||
start_date: start_date.value,
|
start_date: start_date.value,
|
||||||
|
|
@ -292,7 +298,10 @@ const putformData = () => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const saveformdata = async (data: any) => {
|
/** save data
|
||||||
|
* @param data ข้อมูลที่ส่งไป
|
||||||
|
*/
|
||||||
|
async function saveformdata(data: any){
|
||||||
await http
|
await http
|
||||||
.post(config.API.createformevaluate(assignId.value), data)
|
.post(config.API.createformevaluate(assignId.value), data)
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
|
|
@ -304,7 +313,11 @@ const saveformdata = async (data: any) => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const editData = async (data: any) => {
|
/**
|
||||||
|
* แก้ไขข้อมูล
|
||||||
|
* @param data ข้อมูลที่อัปเดต
|
||||||
|
*/
|
||||||
|
async function editData = async (data: any){
|
||||||
await http
|
await http
|
||||||
.put(config.API.editFormEvaluate(assignId.value, evaluate_id.value), data)
|
.put(config.API.editFormEvaluate(assignId.value, evaluate_id.value), data)
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
|
|
@ -316,6 +329,7 @@ const editData = async (data: any) => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/** เช็คค่า props */
|
||||||
watch(props, async () => {
|
watch(props, async () => {
|
||||||
if (props.tab && props.action == "edit") {
|
if (props.tab && props.action == "edit") {
|
||||||
evaluate_no.value = Number(props.tab.charAt(4));
|
evaluate_no.value = Number(props.tab.charAt(4));
|
||||||
|
|
@ -415,6 +429,7 @@ onMounted(async () => {
|
||||||
<div class="col-xs-12 col-sm-11 col-md-10 offset-md-1 text-top2">
|
<div class="col-xs-12 col-sm-11 col-md-10 offset-md-1 text-top2">
|
||||||
ผลผลิตของงานที่คาดหวัง
|
ผลผลิตของงานที่คาดหวัง
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<q-card flat bordered class="col-xs-12 col-sm-11 col-md-10 offset-md-1 q-pa-sm bg-grey-1">
|
<q-card flat bordered class="col-xs-12 col-sm-11 col-md-10 offset-md-1 q-pa-sm bg-grey-1">
|
||||||
<q-list dense v-for="(list, i) in list1_1" :key="i">
|
<q-list dense v-for="(list, i) in list1_1" :key="i">
|
||||||
<q-item dense tag="label" v-ripple>
|
<q-item dense tag="label" v-ripple>
|
||||||
|
|
@ -446,6 +461,7 @@ onMounted(async () => {
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 row">
|
<div class="col-12 row">
|
||||||
<div class="col-xs-12 col-sm-11 col-md-10 offset-md-1 text-top2">
|
<div class="col-xs-12 col-sm-11 col-md-10 offset-md-1 text-top2">
|
||||||
ผลผลิตของงานที่เกิดขึ้นจริง
|
ผลผลิตของงานที่เกิดขึ้นจริง
|
||||||
|
|
@ -725,6 +741,7 @@ onMounted(async () => {
|
||||||
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
||||||
2.1 ความประพฤติ
|
2.1 ความประพฤติ
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<q-card flat bordered class="col-xs-12 col-sm-11 col-md-10 offset-md-1 q-pa-sm bg-grey-1">
|
<q-card flat bordered class="col-xs-12 col-sm-11 col-md-10 offset-md-1 q-pa-sm bg-grey-1">
|
||||||
<q-list dense v-for="(list, i) in list2_1" :key="i">
|
<q-list dense v-for="(list, i) in list2_1" :key="i">
|
||||||
<q-item dense tag="label" v-ripple>
|
<q-item dense tag="label" v-ripple>
|
||||||
|
|
@ -756,6 +773,7 @@ onMounted(async () => {
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 row">
|
<div class="col-12 row">
|
||||||
<div class="col-12 text-top0 row items-center q-pl-lg">
|
<div class="col-12 text-top0 row items-center q-pl-lg">
|
||||||
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
||||||
|
|
@ -792,6 +810,7 @@ onMounted(async () => {
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 row">
|
<div class="col-12 row">
|
||||||
<div class="col-12 text-top0 row items-center q-pl-lg">
|
<div class="col-12 text-top0 row items-center q-pl-lg">
|
||||||
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
||||||
|
|
@ -828,6 +847,7 @@ onMounted(async () => {
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 row">
|
<div class="col-12 row">
|
||||||
<div class="col-12 text-top0 row items-center q-pl-lg">
|
<div class="col-12 text-top0 row items-center q-pl-lg">
|
||||||
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
<q-icon name="mdi-label" color="grey-4" class="q-pr-sm" />
|
||||||
|
|
@ -870,6 +890,7 @@ onMounted(async () => {
|
||||||
</q-list>
|
</q-list>
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row col-12 q-gutter-lg no-margin">
|
<div class="row col-12 q-gutter-lg no-margin">
|
||||||
<div class="col-12 row">
|
<div class="col-12 row">
|
||||||
<div class="col-12 text-top0 row items-center q-pl-lg">
|
<div class="col-12 text-top0 row items-center q-pl-lg">
|
||||||
|
|
@ -891,6 +912,7 @@ onMounted(async () => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row col-12 q-gutter-lg no-margin">
|
<div class="row col-12 q-gutter-lg no-margin">
|
||||||
<div class="col-12 row justify-center">
|
<div class="col-12 row justify-center">
|
||||||
<div class="col-12 text-top0 items-center">
|
<div class="col-12 text-top0 items-center">
|
||||||
|
|
@ -958,6 +980,7 @@ onMounted(async () => {
|
||||||
</q-card>
|
</q-card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row col-12 q-gutter-lg no-margin justify-center">
|
<div class="row col-12 q-gutter-lg no-margin justify-center">
|
||||||
<div class="col-xs-12 col-sm-11 row">
|
<div class="col-xs-12 col-sm-11 row">
|
||||||
<div class="col-12 text-top2 row items-center">
|
<div class="col-12 text-top2 row items-center">
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ onMounted(async () => {
|
||||||
<q-card flat bordered class="col-12 q-mt-sm q-pa-md">
|
<q-card flat bordered class="col-12 q-mt-sm q-pa-md">
|
||||||
<div class="row col-12 q-col-gutter-sm q-mb-sm">
|
<div class="row col-12 q-col-gutter-sm q-mb-sm">
|
||||||
<div>
|
<div>
|
||||||
<q-btn
|
<!-- <q-btn
|
||||||
for="#addInvestigatefacts"
|
for="#addInvestigatefacts"
|
||||||
@click="clickAdd()"
|
@click="clickAdd()"
|
||||||
size="12px"
|
size="12px"
|
||||||
|
|
@ -113,7 +113,7 @@ onMounted(async () => {
|
||||||
icon="mdi-plus"
|
icon="mdi-plus"
|
||||||
>
|
>
|
||||||
<q-tooltip>เพิ่มรายการสืบสวนข้อเท็จจริง</q-tooltip>
|
<q-tooltip>เพิ่มรายการสืบสวนข้อเท็จจริง</q-tooltip>
|
||||||
</q-btn>
|
</q-btn> -->
|
||||||
</div>
|
</div>
|
||||||
<q-space />
|
<q-space />
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ function resetFilter() {
|
||||||
<template>
|
<template>
|
||||||
<div class="q-pb-sm row q-col-gutter-sm">
|
<div class="q-pb-sm row q-col-gutter-sm">
|
||||||
<div class="q-gutter-sm" v-if="nornmalData == true">
|
<div class="q-gutter-sm" v-if="nornmalData == true">
|
||||||
<q-btn
|
<!-- <q-btn
|
||||||
to="/discipline/investigate-disciplinary/add"
|
to="/discipline/investigate-disciplinary/add"
|
||||||
size="12px"
|
size="12px"
|
||||||
flat
|
flat
|
||||||
|
|
@ -75,7 +75,7 @@ function resetFilter() {
|
||||||
icon="mdi-plus"
|
icon="mdi-plus"
|
||||||
>
|
>
|
||||||
<q-tooltip>เพิ่มข้อมูล</q-tooltip>
|
<q-tooltip>เพิ่มข้อมูล</q-tooltip>
|
||||||
</q-btn>
|
</q-btn> -->
|
||||||
</div>
|
</div>
|
||||||
<q-space />
|
<q-space />
|
||||||
<!-- ค้นหาข้อความใน table -->
|
<!-- ค้นหาข้อความใน table -->
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue