เพิ่มยุติเรื่องในขั้นสอบสวนของวินัย
This commit is contained in:
parent
f916e32666
commit
412bd910f1
2 changed files with 46 additions and 1 deletions
|
|
@ -33,6 +33,7 @@ const data = reactive<FormData>({
|
||||||
filesRecordAccuser: null,
|
filesRecordAccuser: null,
|
||||||
filesWitnesses: null,
|
filesWitnesses: null,
|
||||||
filesEtc: null,
|
filesEtc: null,
|
||||||
|
complaintStatus: 'NEW'
|
||||||
});
|
});
|
||||||
|
|
||||||
/** จำลองข้อมูลจาก api */
|
/** จำลองข้อมูลจาก api */
|
||||||
|
|
@ -77,11 +78,41 @@ function sentIssue() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** ยืนยัน ยุติเรื่อง */
|
||||||
|
function endInvestigate() {
|
||||||
|
dialogConfirm(
|
||||||
|
$q,
|
||||||
|
() => confirmEndInvestigate(),
|
||||||
|
"ยืนยันยุติเรื่อง",
|
||||||
|
"ต้องการยืนยันยุติเรื่องใช่หรือไม่?"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** ยืนยัน ยกเลิกการยุติเรื่อง */
|
||||||
|
function cancelInvestigate() {
|
||||||
|
dialogConfirm(
|
||||||
|
$q,
|
||||||
|
() => confirmCancelInvestigate(),
|
||||||
|
"ยืนยันยกเลิกการยุติเรื่อง",
|
||||||
|
"ต้องการยืนยันยกเลิกการยุติเรื่องใช่หรือไม่?"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/** ฟังชั่น ส่งไปออกคำสั่ง*/
|
/** ฟังชั่น ส่งไปออกคำสั่ง*/
|
||||||
function confirmSentIssue() {
|
function confirmSentIssue() {
|
||||||
console.log("sent");
|
console.log("sent");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** ฟังชั่น ยุติเรื่อง*/
|
||||||
|
function confirmEndInvestigate() {
|
||||||
|
console.log("sent");
|
||||||
|
}
|
||||||
|
|
||||||
|
/** ฟังชั่น ยกเลิกการยุติเรื่อง*/
|
||||||
|
function confirmCancelInvestigate() {
|
||||||
|
console.log("sent");
|
||||||
|
}
|
||||||
|
|
||||||
/** โหลดข้อมูลเมื่อเข้าหน้านี้ */
|
/** โหลดข้อมูลเมื่อเข้าหน้านี้ */
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
fetchData();
|
fetchData();
|
||||||
|
|
@ -103,7 +134,20 @@ onMounted(() => {
|
||||||
<div class="q-ma-none">แก้ไขการสอบสวนความผิดทางวินัย {{ id }}#id</div>
|
<div class="q-ma-none">แก้ไขการสอบสวนความผิดทางวินัย {{ id }}#id</div>
|
||||||
<q-space />
|
<q-space />
|
||||||
<div class="q-gutter-x-sm">
|
<div class="q-gutter-x-sm">
|
||||||
<q-btn label="ส่งไปออกคำสั่ง" color="public" @click="sentIssue" />
|
<q-btn v-if="data.complaintStatus === 'NEW'" label="ส่งไปออกคำสั่ง" color="public" @click="sentIssue" />
|
||||||
|
<q-btn
|
||||||
|
v-if="data.complaintStatus === 'NEW'"
|
||||||
|
label="ยุติเรื่อง"
|
||||||
|
color="red-7"
|
||||||
|
@click="endInvestigate"
|
||||||
|
/>
|
||||||
|
<q-btn
|
||||||
|
v-if="data.complaintStatus === 'STOP'"
|
||||||
|
label="ยกเลิกการยุติเรื่อง"
|
||||||
|
color="red-7"
|
||||||
|
@click="cancelInvestigate"
|
||||||
|
/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Form :on-submit="onSubmit" :data="data" />
|
<Form :on-submit="onSubmit" :data="data" />
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ interface FormData {
|
||||||
recordAccuser: string;
|
recordAccuser: string;
|
||||||
witnesses: string;
|
witnesses: string;
|
||||||
InvestResults: string;
|
InvestResults: string;
|
||||||
|
complaintStatus: string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface disciplinaryRef {
|
interface disciplinaryRef {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue