Merge branch 'dev' of https://192.168.1.60/hrms-bangkok/hrms-mgt into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m19s

* 'dev' of https://192.168.1.60/hrms-bangkok/hrms-mgt:
  fix:clear formRound
This commit is contained in:
Warunee Tamkoo 2025-10-29 14:53:08 +07:00
commit 4e88a79833

View file

@ -233,6 +233,12 @@ function checkClosed() {
/** ค้นหาตัวชี้วัดตาม ค่า input */
async function searchInput(check: boolean) {
selected.value = [];
yearDialog.value = calculateFiscalYear(new Date());
formRound.kpiPeriodId = { id: "", name: "", isClosed: false };
formRound.evaluatorId = "";
formRound.commanderId = "";
formRound.commanderHighId = "";
if (check) {
searchRules.value = check;
@ -274,6 +280,12 @@ function updateSelect() {
/** ดึงข้อมูล ผู้ประเมิน */
function getOrgOp(check: boolean, id: string) {
yearDialog.value = calculateFiscalYear(new Date());
formRound.kpiPeriodId = { id: "", name: "", isClosed: false };
formRound.evaluatorId = "";
formRound.commanderId = "";
formRound.commanderHighId = "";
if (check == false) {
http
.get(config.API.Kpiorg + `/${id}`)