|
|
|
|
@ -96,7 +96,20 @@ onMounted(async () => {
|
|
|
|
|
workColumns.value = workRes.data
|
|
|
|
|
//取得工作性質名稱
|
|
|
|
|
if (workRes.data.length > 0) {
|
|
|
|
|
workName.value = _.find(workRes.data, { value: form.value.work }).text
|
|
|
|
|
// 從工作性質資料中找出對應的名稱
|
|
|
|
|
// const findRes = workRes.data.find((item) => {
|
|
|
|
|
// return item.value === form.value.work
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
// if(findRes){
|
|
|
|
|
// workName.value = findRes.text
|
|
|
|
|
// }else{
|
|
|
|
|
// workName.value = ''
|
|
|
|
|
// }
|
|
|
|
|
const findRes = _.find(workRes.data, { value: form.value.work })
|
|
|
|
|
if(findRes){
|
|
|
|
|
workName.value = findRes.text
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -417,12 +430,13 @@ const handleChangeTplSubmit = async() => {
|
|
|
|
|
</template>
|
|
|
|
|
</van-field>
|
|
|
|
|
|
|
|
|
|
<van-field v-model="form.area" is-link readonly name="area" label="區域" placeholder="請選擇區域"
|
|
|
|
|
<van-field v-model="areaName" is-link readonly name="area" label="區域" placeholder="請選擇區域"
|
|
|
|
|
@click="showAreaPicker = true" />
|
|
|
|
|
<van-popup v-model:show="showAreaPicker" position="bottom">
|
|
|
|
|
<van-picker :columns="areaColumns" confirm-button-text="確認" cancel-button-text="取消" @confirm="onAreaConfirm" @cancel="showAreaPicker = false" />
|
|
|
|
|
</van-popup>
|
|
|
|
|
<van-field v-model="form.work" is-link readonly name="work" label="工作性質" placeholder="請選擇工作性質"
|
|
|
|
|
|
|
|
|
|
<van-field v-model="workName" is-link readonly name="work" label="工作性質" placeholder="請選擇工作性質"
|
|
|
|
|
@click="showWorkPicker = true" />
|
|
|
|
|
<van-popup v-model:show="showWorkPicker" position="bottom">
|
|
|
|
|
<van-picker :columns="workColumns" confirm-button-text="確認" cancel-button-text="取消" @confirm="onWorkConfirm" @cancel="showWorkPicker = false" />
|
|
|
|
|
|