ปรับลาออกรายการตรวจสอบเงื่อนไขต่าง ๆ
This commit is contained in:
parent
c89a4d2dee
commit
fdb2dc4577
1 changed files with 30 additions and 6 deletions
|
|
@ -130,6 +130,8 @@ const openModal = () => (modal.value = true);
|
||||||
const file = ref<any>(null);
|
const file = ref<any>(null);
|
||||||
const fileList = ref<FileList[]>([]);
|
const fileList = ref<FileList[]>([]);
|
||||||
const isNoDebt = ref<boolean>(false);
|
const isNoDebt = ref<boolean>(false);
|
||||||
|
const isNoBurden = ref<boolean>(false);
|
||||||
|
const isDiscipline = ref<boolean>(false);
|
||||||
const checkboxGroup = ref<CheckBoxType[]>([]);
|
const checkboxGroup = ref<CheckBoxType[]>([]);
|
||||||
const checkboxOp = ref<CheckBoxType[]>([
|
const checkboxOp = ref<CheckBoxType[]>([
|
||||||
{ label: "ไม่เป็นหนี้สหกรณ์", value: "debt" },
|
{ label: "ไม่เป็นหนี้สหกรณ์", value: "debt" },
|
||||||
|
|
@ -201,6 +203,8 @@ const fetchData = async (id: string) => {
|
||||||
status.value = data.status ?? "";
|
status.value = data.status ?? "";
|
||||||
remarkHorizontal.value = data.remarkHorizontal ?? "-";
|
remarkHorizontal.value = data.remarkHorizontal ?? "-";
|
||||||
isNoDebt.value = data.isNoDebt;
|
isNoDebt.value = data.isNoDebt;
|
||||||
|
isNoBurden.value = data.isNoBurden;
|
||||||
|
isDiscipline.value = data.isDiscipline;
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
messageError($q, e);
|
messageError($q, e);
|
||||||
|
|
@ -309,6 +313,8 @@ const onSubmitConditions = () => {
|
||||||
http
|
http
|
||||||
.put(config.API.resignConditions(id.value), {
|
.put(config.API.resignConditions(id.value), {
|
||||||
isNoDebt: isNoDebt.value,
|
isNoDebt: isNoDebt.value,
|
||||||
|
isNoBurden: isNoBurden.value,
|
||||||
|
isDiscipline: isDiscipline.value,
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
fetchData(id.value);
|
fetchData(id.value);
|
||||||
|
|
@ -777,12 +783,30 @@ function removeFile(fileName: string) {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12"><q-separator /></div>
|
<div class="col-12"><q-separator /></div>
|
||||||
<q-checkbox
|
<div class="col-12">
|
||||||
v-model="isNoDebt"
|
<q-checkbox
|
||||||
label="ไม่เป็นหนี้สหกรณ์"
|
v-model="isNoDebt"
|
||||||
color="teal"
|
label="ไม่เป็นหนี้สหกรณ์"
|
||||||
:disable="!conditions"
|
color="teal"
|
||||||
/>
|
:disable="!conditions"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<q-checkbox
|
||||||
|
v-model="isNoBurden"
|
||||||
|
label="ไม่มีภาระผูกพันค้ำประกันทุนการศึกษา"
|
||||||
|
color="teal"
|
||||||
|
:disable="!conditions"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<q-checkbox
|
||||||
|
v-model="isDiscipline"
|
||||||
|
label="ไม่มีพฤติการณ์ทางวินัย"
|
||||||
|
color="teal"
|
||||||
|
:disable="!conditions"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
<!-- <q-option-group
|
<!-- <q-option-group
|
||||||
:options="checkboxOp"
|
:options="checkboxOp"
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue