โครงการ/หลักสูตรการฝึกอบรม
This commit is contained in:
parent
d99577d99f
commit
350c76d965
2 changed files with 11 additions and 7 deletions
|
|
@ -68,7 +68,6 @@ const formIndicators = reactive<FormIndicators>({
|
|||
results: "",
|
||||
obstacles: "",
|
||||
suggestions: "",
|
||||
result: "",
|
||||
});
|
||||
/** ข้อมูล Table */
|
||||
const rows = ref<DevelopmentEvaluations[]>([]); // ข้อมูลรายการ
|
||||
|
|
@ -120,11 +119,11 @@ const columns = ref<QTableProps["columns"]>([
|
|||
style: "font-size: 14px ; ",
|
||||
},
|
||||
{
|
||||
name: "result",
|
||||
name: "results",
|
||||
align: "left",
|
||||
label: "ผลการดำเนินการ",
|
||||
sortable: true,
|
||||
field: "result",
|
||||
field: "results",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px ; ",
|
||||
},
|
||||
|
|
@ -233,7 +232,7 @@ function onSubmitIndicators() {
|
|||
http
|
||||
.put(config.API.developmentMainTab(path, id), {
|
||||
...formIndicators,
|
||||
result: status.value === "FINISH" ? formIndicators.result : undefined,
|
||||
results: status.value === "FINISH" ? formIndicators.results : undefined,
|
||||
})
|
||||
.then(() => {
|
||||
success($q, "บันทึกข้อมูลสำเร็จ");
|
||||
|
|
@ -485,7 +484,13 @@ defineExpose({
|
|||
<q-card style="width: 900px; max-width: 80vw">
|
||||
<q-form greedy @submit.prevent @validation-success="onSubmitIndicators">
|
||||
<DialogHeader
|
||||
:tittle="isEdit ? 'แก้ไขตัวชี้วัด' : 'เพิ่มตัวชี้วัด'"
|
||||
:tittle="
|
||||
isEdit && typeAction === 'result'
|
||||
? 'ผลการดำเนินการ'
|
||||
: isEdit
|
||||
? 'แก้ไขตัวชี้วัด'
|
||||
: 'เพิ่มตัวชี้วัด'
|
||||
"
|
||||
:close="closeDialog"
|
||||
/>
|
||||
<q-separator />
|
||||
|
|
@ -500,7 +505,7 @@ defineExpose({
|
|||
outlined
|
||||
class="inputgreen"
|
||||
label="ผลการดำเนิดการ"
|
||||
v-model="formIndicators.result"
|
||||
v-model="formIndicators.results"
|
||||
hide-bottom-space
|
||||
lazy-rules
|
||||
:rules="[
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ interface FormIndicators {
|
|||
results: string;
|
||||
obstacles: string;
|
||||
suggestions: string;
|
||||
result: string;
|
||||
}
|
||||
|
||||
interface FormProject {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue