一体机添加地区选项和
This commit is contained in:
@@ -95,6 +95,24 @@
|
||||
</label>
|
||||
</radio-group>
|
||||
</view>
|
||||
|
||||
<!-- 地区 -->
|
||||
<view v-if="activeTab === 'area'" class="content-section">
|
||||
<radio-group @change="(e) => handleSelect('area', e)">
|
||||
<label
|
||||
v-for="option in areaOptions"
|
||||
:key="option.value"
|
||||
class="radio-item"
|
||||
:class="{ checked: selectedValues['area'] === String(option.value) }"
|
||||
>
|
||||
<radio
|
||||
:value="String(option.value)"
|
||||
:checked="selectedValues['area'] === String(option.value)"
|
||||
/>
|
||||
<text class="option-label">{{ option.label }}</text>
|
||||
</label>
|
||||
</radio-group>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底部按钮 -->
|
||||
@@ -131,7 +149,8 @@ const tabs = [
|
||||
{ key: 'education', label: '学历要求' },
|
||||
{ key: 'experience', label: '工作经验' },
|
||||
{ key: 'scale', label: '公司规模' },
|
||||
{ key: 'jobType', label: '岗位类型' }
|
||||
{ key: 'jobType', label: '岗位类型' },
|
||||
{ key: 'area', label: '地区' }
|
||||
];
|
||||
|
||||
// 当前激活的标签
|
||||
@@ -142,7 +161,8 @@ const selectedValues = reactive({
|
||||
education: '',
|
||||
experience: '',
|
||||
scale: '',
|
||||
jobType: ''
|
||||
jobType: '',
|
||||
area: ''
|
||||
});
|
||||
|
||||
// 从字典获取的选项数据
|
||||
@@ -150,6 +170,7 @@ const educationOptions = ref([]);
|
||||
const experienceOptions = ref([]);
|
||||
const scaleOptions = ref([]);
|
||||
const jobTypeOptions = ref([]);
|
||||
const areaOptions = ref([]);
|
||||
|
||||
// 初始化获取数据
|
||||
onBeforeMount(() => {
|
||||
@@ -157,6 +178,7 @@ onBeforeMount(() => {
|
||||
experienceOptions.value = getTransformChildren('experience', '工作经验').options || [];
|
||||
scaleOptions.value = getTransformChildren('scale', '公司规模').options || [];
|
||||
jobTypeOptions.value = getJobTypeData();
|
||||
areaOptions.value = getTransformChildren('area', '地区').options || [];
|
||||
});
|
||||
|
||||
// 处理选项选择
|
||||
|
||||
Reference in New Issue
Block a user