lifanagju_citu 7 månader sedan
förälder
incheckning
4e715d7547
1 ändrade filer med 5 tillägg och 6 borttagningar
  1. 5 6
      pagesA/resumeOnline/jobIntention.vue

+ 5 - 6
pagesA/resumeOnline/jobIntention.vue

@@ -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-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-item>
     </uni-forms>
     </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 style="text-align: center; font-size: 13px; color: gray;">已加载全部</view> -->
   </view>
   </view>
 </template>
 </template>
@@ -34,15 +37,11 @@ import { dictObj } from '@/utils/position.js'
 
 
 const formData = reactive({ positionId: '', payFrom: 0, payTo: 0 })
 const formData = reactive({ positionId: '', payFrom: 0, payTo: 0 })
 const form = ref()
 const form = ref()
-const getValues = async () => {
+const submit = async () => {
   const valid = await unref(form).validate()
   const valid = await unref(form).validate()
-  return valid ? formData.value : false
+  if (!valid) return
 }
 }
 
 
-defineExpose({
-  getValues
-})
-
 const rules = {
 const rules = {
 	positionId:{
 	positionId:{
 		rules: [{required: true, errorMessage: '请选择期望岗位' }]
 		rules: [{required: true, errorMessage: '请选择期望岗位' }]