|
@@ -24,6 +24,9 @@
|
|
|
<uni-data-picker popup-title="其它感兴趣的城市" v-model="formData.interestedAreaIdList" :localdata="dictObj?.areaTreeData || []" :clear-icon="false" :map="{ text: 'name', value: 'id'}"></uni-data-picker>
|
|
|
</uni-forms-item>
|
|
|
</uni-forms>
|
|
|
+ <view class="f-horizon-center">
|
|
|
+ <button type="primary" size="default" class="send-button" @click="submit">确 认</button>
|
|
|
+ </view>
|
|
|
<!-- <view style="text-align: center; font-size: 13px; color: gray;">已加载全部</view> -->
|
|
|
</view>
|
|
|
</template>
|
|
@@ -34,15 +37,11 @@ import { dictObj } from '@/utils/position.js'
|
|
|
|
|
|
const formData = reactive({ positionId: '', payFrom: 0, payTo: 0 })
|
|
|
const form = ref()
|
|
|
-const getValues = async () => {
|
|
|
+const submit = async () => {
|
|
|
const valid = await unref(form).validate()
|
|
|
- return valid ? formData.value : false
|
|
|
+ if (!valid) return
|
|
|
}
|
|
|
|
|
|
-defineExpose({
|
|
|
- getValues
|
|
|
-})
|
|
|
-
|
|
|
const rules = {
|
|
|
positionId:{
|
|
|
rules: [{required: true, errorMessage: '请选择期望岗位' }]
|