no message
This commit is contained in:
parent
c6617313d9
commit
ecba51f5cf
3 changed files with 7 additions and 6 deletions
|
|
@ -55,8 +55,9 @@ const fecthAssign = async (id: string) => {
|
||||||
|
|
||||||
director_id.value = res.data.data.chairman.name;
|
director_id.value = res.data.data.chairman.name;
|
||||||
director_id2.value = res.data.data.commander.name;
|
director_id2.value = res.data.data.commander.name;
|
||||||
director_id3.value = mentors.value[0].name;
|
if(mentors.value.length != 0){
|
||||||
|
director_id3.value = mentors.value[0].name;
|
||||||
|
}
|
||||||
commander.value = res.data.data.commander;
|
commander.value = res.data.data.commander;
|
||||||
optionDirector.value = mentors.value;
|
optionDirector.value = mentors.value;
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -85,12 +85,12 @@ const editData = async (id: string) => {
|
||||||
formData.append("amount", datelast.value.toString());
|
formData.append("amount", datelast.value.toString());
|
||||||
formData.append("round", roundInsig.value.value);
|
formData.append("round", roundInsig.value.value);
|
||||||
if (dateStart.value !== null) {
|
if (dateStart.value !== null) {
|
||||||
formData.append("StartDate", dateToISO(dateStart.value));
|
formData.append("startDate", dateToISO(dateStart.value));
|
||||||
}
|
}
|
||||||
if (dateEnd.value !== null) {
|
if (dateEnd.value !== null) {
|
||||||
formData.append("EndDate", dateToISO(dateEnd.value));
|
formData.append("endDate", dateToISO(dateEnd.value));
|
||||||
}
|
}
|
||||||
formData.append("Files", files.value);
|
formData.append("file", files.value);
|
||||||
console.log(formData);
|
console.log(formData);
|
||||||
showLoader();
|
showLoader();
|
||||||
await http
|
await http
|
||||||
|
|
|
||||||
|
|
@ -371,7 +371,7 @@ const paginationLabel = (start: string, end: string, total: string) => {
|
||||||
flat
|
flat
|
||||||
round
|
round
|
||||||
color="red"
|
color="red"
|
||||||
@click="clickDelete(props.row.id)"
|
@click="clickDelete(props.row.period_id)"
|
||||||
icon="mdi-delete"
|
icon="mdi-delete"
|
||||||
>
|
>
|
||||||
<q-tooltip>ลบข้อมูล</q-tooltip>
|
<q-tooltip>ลบข้อมูล</q-tooltip>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue