update code

This commit is contained in:
kamoa457 2023-11-05 18:56:23 +07:00
parent 0f49752428
commit f9aebcee2e
2 changed files with 14 additions and 14 deletions

View File

@ -204,16 +204,16 @@
"value": "ฝสสน.1" "value": "ฝสสน.1"
}, },
{ {
"label": "ฝสสน.1", "label": "ฝสสน.2",
"value": "ฝสสน.1" "value": "ฝสสน.2"
}, },
{ {
"label": "ฝสสน.1", "label": "ฝสสน.3",
"value": "ฝสสน.1" "value": "ฝสสน.3"
}, },
{ {
"label": "ฝสสน.1", "label": "ฝสสน.4",
"value": "ฝสสน.1" "value": "ฝสสน.4"
}, },
{ {
"label": "ฝสสน.5", "label": "ฝสสน.5",
@ -328,8 +328,8 @@
], ],
"typeranks": [ "typeranks": [
{ {
"label": "ทั่วไป", "label": "ลูกจ้าง",
"value": "ทั่วไป" "value": "ลูกจ้าง"
}, },
{ {
"label": "ประทวน", "label": "ประทวน",

View File

@ -90,11 +90,11 @@ export default {
rank: "", // rank: "", //
idcard: "134044411441178", idcard: "134044411441178",
phone: "0325647845", phone: "0325647845",
selectedRanks: "ส.ต.ต.", selectedRanks: "",
selectedAffiliation: "ฝอ.2", selectedAffiliation: "",
birthday: "14/07/2534", birthday: "14/07/2534",
typeAffiliation: "ทั่วไป", typeAffiliation: "",
typeRanks: "ประทวน", typeRanks: "",
}; };
}, },
created() { created() {
@ -323,10 +323,10 @@ export default {
></v-select> ></v-select>
</div> </div>
<div class="mb-1"> <div class="mb-1">
<label>ยศ</label> <label>ลำดยศ</label>
<v-select :options="masterData?.typeranks" v-model="typeRanks"></v-select> <v-select :options="masterData?.typeranks" v-model="typeRanks"></v-select>
</div> </div>
<div class="mb-3" v-if="typeRanks.label == 'ทั่วไป'"> <div class="mb-3" v-if="typeRanks.label == 'ลูกจ้าง'">
<label> {{ typeRanks.label }}</label> <label> {{ typeRanks.label }}</label>
<v-select :options="masterData?.ranks" v-model="selectedRanks"></v-select> <v-select :options="masterData?.ranks" v-model="selectedRanks"></v-select>
</div> </div>