update popup คุณสมบัติ
This commit is contained in:
parent
f20309e6b1
commit
c7dde080e0
3 changed files with 21 additions and 11 deletions
|
|
@ -21,10 +21,7 @@ const props = defineProps({
|
||||||
type: String,
|
type: String,
|
||||||
default: "ตรวจสอบคุณสมบัติ",
|
default: "ตรวจสอบคุณสมบัติ",
|
||||||
},
|
},
|
||||||
desc: {
|
educations: Array,
|
||||||
type: String,
|
|
||||||
default: "",
|
|
||||||
},
|
|
||||||
closeModal: {
|
closeModal: {
|
||||||
type: Function,
|
type: Function,
|
||||||
default: () => {},
|
default: () => {},
|
||||||
|
|
@ -39,35 +36,38 @@ const rows = ref<any[]>([
|
||||||
level: "หลักสูตร ๔ ปี",
|
level: "หลักสูตร ๔ ปี",
|
||||||
expert: "๖ ปี",
|
expert: "๖ ปี",
|
||||||
special: "๘ ปี",
|
special: "๘ ปี",
|
||||||
checked: "",
|
checked: "ต่ำกว่าปริญญาตรี",
|
||||||
|
// year: 4,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
degree: "ปริญญาตรี หรือเทียบเท่า",
|
degree: "ปริญญาตรี หรือเทียบเท่า",
|
||||||
level: "หลักสูตร ๕ ปี",
|
level: "หลักสูตร ๕ ปี",
|
||||||
expert: "๕ ปี",
|
expert: "๕ ปี",
|
||||||
special: "๗ ปี",
|
special: "๗ ปี",
|
||||||
checked: "",
|
checked: "ปริญญาตรี",
|
||||||
|
year: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
degree: "ปริญญาตรี หรือเทียบเท่า",
|
degree: "ปริญญาตรี หรือเทียบเท่า",
|
||||||
level: "หลักสูตร ๖ ปี",
|
level: "หลักสูตร ๖ ปี",
|
||||||
expert: "๔ ปี",
|
expert: "๔ ปี",
|
||||||
special: "๖ ปี",
|
special: "๖ ปี",
|
||||||
checked: "",
|
checked: "ปริญญาตรี",
|
||||||
|
year: 6,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
degree: "ปริญญาโท หรือเทียบเท่า",
|
degree: "ปริญญาโท หรือเทียบเท่า",
|
||||||
level: "-",
|
level: "-",
|
||||||
expert: "๔ ปี",
|
expert: "๔ ปี",
|
||||||
special: "๖ ปี",
|
special: "๖ ปี",
|
||||||
checked: "",
|
checked: "ปริญญาโท",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
degree: "ปริญญาเอก หรือเทียบเท่า",
|
degree: "ปริญญาเอก หรือเทียบเท่า",
|
||||||
level: "-",
|
level: "-",
|
||||||
expert: "๒ ปี",
|
expert: "๒ ปี",
|
||||||
special: "๔ ปี",
|
special: "๔ ปี",
|
||||||
checked: "",
|
checked: "ปริญญาเอก",
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|
@ -177,7 +177,14 @@ watch(props, () => {
|
||||||
{{ props.row.special }}
|
{{ props.row.special }}
|
||||||
</q-td>
|
</q-td>
|
||||||
<q-td key="checked" :props="props">
|
<q-td key="checked" :props="props">
|
||||||
<q-icon name="checked" color="primary" />
|
<!-- v-if="educations?.find((x:any)=> (props.row.year && x.educationLevel == props.row.checked && x.year == props.row.year) || (!props.row.year && x.educationLevel == props.row.checked))" -->
|
||||||
|
|
||||||
|
<q-icon
|
||||||
|
v-if="props.rowIndex == 0"
|
||||||
|
name="checked"
|
||||||
|
color="primary"
|
||||||
|
size="xs"
|
||||||
|
/>
|
||||||
</q-td>
|
</q-td>
|
||||||
</q-tr>
|
</q-tr>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
|
|
@ -330,7 +330,9 @@ onMounted(async () => {
|
||||||
v-if="store.step === 1"
|
v-if="store.step === 1"
|
||||||
@update:spec="updateCheckSpec"
|
@update:spec="updateCheckSpec"
|
||||||
:evaluateId="store.evaluateId"
|
:evaluateId="store.evaluateId"
|
||||||
|
:educations="formDetail?.educations"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Step2
|
<Step2
|
||||||
v-if="store.step === 2"
|
v-if="store.step === 2"
|
||||||
@update:form="updateformCommand"
|
@update:form="updateformCommand"
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ const props = defineProps({
|
||||||
evaluateId: {
|
evaluateId: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
|
educations: Array
|
||||||
});
|
});
|
||||||
|
|
||||||
const modal = ref<boolean>(false);
|
const modal = ref<boolean>(false);
|
||||||
|
|
@ -205,7 +206,7 @@ onMounted(() => {
|
||||||
</q-item>
|
</q-item>
|
||||||
</q-list>
|
</q-list>
|
||||||
|
|
||||||
<PopupCheckFeatures :modal="modal" :show="show" :close-modal="closeModal" />
|
<PopupCheckFeatures :modal="modal" :show="show" :close-modal="closeModal" :educations="educations"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue