ระบบพัฒนา
This commit is contained in:
parent
0efbfcd276
commit
c2a1648d70
3 changed files with 20 additions and 13 deletions
|
|
@ -435,11 +435,14 @@ onMounted(() => {
|
|||
<q-dialog v-model="modalDialog" persistent>
|
||||
<q-card style="width: 900px; max-width: 80vw">
|
||||
<q-form greedy @submit.prevent @validation-success="onSubmitIndicators">
|
||||
<DialogHeader :tittle="'เพิ่มตัวชี้วัด'" :close="closeDialog" />
|
||||
<DialogHeader
|
||||
:tittle="isEdit ? 'แก้ไขตัวชี้วัด' : 'เพิ่มตัวชี้วัด'"
|
||||
:close="closeDialog"
|
||||
/>
|
||||
<q-separator />
|
||||
<q-card-section class="q-pt-none">
|
||||
<div class="row q-pa-md q-col-gutter-sm">
|
||||
<div class="col-4">
|
||||
<div class="col-6">
|
||||
<q-select
|
||||
dense
|
||||
outlined
|
||||
|
|
@ -450,6 +453,7 @@ onMounted(() => {
|
|||
option-value="name"
|
||||
emit-value
|
||||
map-options
|
||||
class="inputgreen"
|
||||
hide-bottom-space
|
||||
:rules="[
|
||||
(val:string) =>
|
||||
|
|
@ -474,7 +478,7 @@ onMounted(() => {
|
|||
/>
|
||||
</div>
|
||||
|
||||
<div class="col-4">
|
||||
<div class="col-2">
|
||||
<q-input
|
||||
dense
|
||||
outlined
|
||||
|
|
|
|||
|
|
@ -1200,7 +1200,10 @@ onMounted(() => {
|
|||
<q-dialog v-model="modalRelate" persistent>
|
||||
<q-card style="width: 400px">
|
||||
<q-form greedy @submit.prevent @validation-success="onSubmitRelate">
|
||||
<DialogHeader tittle="เพิ่มผู้เกี่ยวข้อง" :close="onClickCloseDialog" />
|
||||
<DialogHeader
|
||||
:tittle="isEdit ? 'แก้ไขผู้เกี่ยวข้อง' : 'เพิ่มผู้เกี่ยวข้อง'"
|
||||
:close="onClickCloseDialog"
|
||||
/>
|
||||
<q-separator />
|
||||
<q-card-section class="q-p-sm">
|
||||
<div class="row col-12 q-col-gutter-md">
|
||||
|
|
|
|||
|
|
@ -37,9 +37,7 @@ const filter = ref<string>("");
|
|||
const filterMain = ref<string>("");
|
||||
const splitterModel = ref<number>(60);
|
||||
const modal = ref<boolean>(false);
|
||||
const projectName = ref<string>("");
|
||||
const orgName = ref<string>("");
|
||||
const year = ref<number>(0);
|
||||
|
||||
/** หัวตาราง */
|
||||
const rows = ref<ResListProject[]>([]); // ข้อมูลรายการ
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
|
|
@ -64,16 +62,16 @@ const columns = ref<QTableProps["columns"]>([
|
|||
},
|
||||
|
||||
{
|
||||
name: "org",
|
||||
name: "root",
|
||||
align: "left",
|
||||
label: "หน่วยงานที่รับผิดชอบ",
|
||||
sortable: true,
|
||||
field: "org",
|
||||
field: "root",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px ; width:45% ",
|
||||
},
|
||||
]);
|
||||
const visibleColumns = ref<string[]>(["year", "projectName", "org"]);
|
||||
const visibleColumns = ref<string[]>(["year", "projectName", "root"]);
|
||||
|
||||
const statusOpt = ref<DataOption[]>([
|
||||
{ id: "ONGOING", name: "กำลังดำเนินการ" },
|
||||
|
|
@ -168,9 +166,11 @@ function onDownload() {
|
|||
/** function ปิด Dialog เพิ่มโครงการ/หลักสูตรการฝึกอบรม*/
|
||||
function closeDialog() {
|
||||
modal.value = false;
|
||||
year.value = 0;
|
||||
orgName.value = "";
|
||||
projectName.value = "";
|
||||
|
||||
formProject.year = null;
|
||||
formProject.projectName = "";
|
||||
formProject.orgRevisionId = "";
|
||||
formProject.nodeId = "";
|
||||
}
|
||||
|
||||
/** dialog submit */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue