fixing bug

This commit is contained in:
Warunee Tamkoo 2025-01-11 14:45:38 +07:00
parent a7b19a8651
commit 794f03069b
2 changed files with 4 additions and 2 deletions

View file

@ -164,6 +164,7 @@ async function fetchEvaluate() {
training_seminar.value = data.training_seminar.toString();
other_training.value = data.other_training.toString();
dateAutherise.value = data.commander_dated;
evaluate_no.value = data.no;
if (
data.achievement_other_desc !== "" &&
@ -285,7 +286,6 @@ watch(props, async () => {
onMounted(async () => {
if (props.tab && props.action == "edit") {
evaluate_no.value = Number(props.tab.charAt(4));
dataArr.value = await props.data;
fecthAssign();
fetchEvaluate();

View file

@ -277,6 +277,8 @@ async function fetchEvaluate() {
develop_result.value = data.develop_result;
evaluate_result.value = data.evaluate_result;
dateAutherise.value = data.chairman_dated;
evaluate_no.value = data.no;
director1_dated.value = data.director1_dated;
director2_dated.value = data.director2_dated;
if (
@ -408,7 +410,7 @@ watch(props, async () => {
onMounted(async () => {
if (props.tab && props.action == "edit") {
evaluate_no.value = Number(props.tab.charAt(4));
// evaluate_no.value = Number(props.tab.charAt(4));
dataArr.value = await props.data;
await fetchEvaluate();
await fecthAssign();