|
@@ -3,7 +3,13 @@
|
|
|
<view class="ss-m-x-30 ss-m-y-30">
|
|
|
<uni-forms ref="form" :modelValue="formData" :rules="rules" validateTrigger="bind">
|
|
|
<uni-forms-item label="期望岗位" name="positionId" required label-width="90px">
|
|
|
- <uni-data-picker popup-title="请选择期望岗位" v-model="formData.positionId" :localdata="dictObj?.positionTreeData || []" :clear-icon="false" :map="{ text: 'nameCn', value: 'id'}"></uni-data-picker>
|
|
|
+ <uni-data-picker
|
|
|
+ popup-title="请选择期望岗位"
|
|
|
+ v-model="formData.positionId"
|
|
|
+ :localdata="dictObj?.positionTreeData || []"
|
|
|
+ :clear-icon="false"
|
|
|
+ :map="{ text: 'nameCn', value: 'id'}"
|
|
|
+ ></uni-data-picker>
|
|
|
</uni-forms-item>
|
|
|
<uni-forms-item label="期望行业" name="industryIdList" required label-width="90px">
|
|
|
<m-select
|
|
@@ -14,7 +20,6 @@
|
|
|
multiple
|
|
|
v-model="formData.industryIdList"
|
|
|
></m-select>
|
|
|
- <!-- <uni-data-picker popup-title="请选择期望行业" v-model="formData.industryIdList" :localdata="dictObj?.industryTreeData || []" :clear-icon="false" :map="{ text: 'nameCn', value: 'id'}"></uni-data-picker> -->
|
|
|
</uni-forms-item>
|
|
|
<uni-forms-item label="最低薪资" name="payFrom" required label-width="90px">
|
|
|
<uni-number-box v-model="formData.payFrom" :min="1" :max="999999999" :step="1000" :width="150" @change="payChange"></uni-number-box>
|
|
@@ -29,7 +34,6 @@
|
|
|
<uni-data-picker popup-title="请选择工作城市" v-model="formData.workAreaId" :localdata="dictObj?.areaTreeData || []" :clear-icon="false" :map="{ text: 'name', value: 'id'}"></uni-data-picker>
|
|
|
</uni-forms-item>
|
|
|
<uni-forms-item label="其它感兴趣的城市" name="interestedAreaIdList" label-width="90px">
|
|
|
- <!-- <uni-data-picker popup-title="其它感兴趣的城市" v-model="formData.interestedAreaIdList" :localdata="dictObj?.areaTreeData || []" :clear-icon="false" :map="{ text: 'name', value: 'id'}"></uni-data-picker> -->
|
|
|
<m-select
|
|
|
label="请选择其它感兴趣的城市"
|
|
|
:items="dictObj?.areaTreeData || []"
|
|
@@ -42,7 +46,13 @@
|
|
|
</uni-forms-item>
|
|
|
</uni-forms>
|
|
|
<view class="f-horizon-center">
|
|
|
- <button v-if="editId" size="default" class="delete-button commonBtnStyle MiSans-Medium" :disabled="deleteDisabled" @click="handleDelete">删 除</button>
|
|
|
+ <button
|
|
|
+ v-if="editId"
|
|
|
+ size="default"
|
|
|
+ class="delete-button commonBtnStyle MiSans-Medium"
|
|
|
+ :disabled="deleteDisabled"
|
|
|
+ @click="handleDelete"
|
|
|
+ >删 除</button>
|
|
|
<button
|
|
|
size="default"
|
|
|
class="MiSans-Medium"
|
|
@@ -74,7 +84,9 @@ async function getJobInterested (id) {
|
|
|
}
|
|
|
const obj = data.find(k => k.id === id)
|
|
|
formData.value = cloneDeep(obj)
|
|
|
- formData.value.interestedAreaIdList = obj.interestedAreaIdList.map(e => +e)
|
|
|
+
|
|
|
+ const interest = obj.interestedAreaIdList
|
|
|
+ formData.value.interestedAreaIdList = interest && interest.length ? interest.map(e => +e) : []
|
|
|
if (dictObj && dictObj?.areaTreeData) {
|
|
|
const type = typeof dictObj.areaTreeData[0].id
|
|
|
formData.value.workAreaId = type === 'string' ? obj.workAreaId.toString() : Number(obj.workAreaId)
|
|
@@ -93,8 +105,6 @@ const disabled = ref(false)
|
|
|
const submit = async () => {
|
|
|
const valid = await unref(form).validate()
|
|
|
if (!valid) return
|
|
|
- // 后续做多选
|
|
|
- // const query = {...formData.value, industryIdList: formData.value.industryIdList, interestedAreaIdList: formData.value.interestedAreaIdList}
|
|
|
|
|
|
disabled.value = true
|
|
|
try {
|