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