|
@@ -34,21 +34,6 @@
|
|
</v-menu>
|
|
</v-menu>
|
|
<v-btn v-if="showTemplateBtn" class="ml-3 half-button" color="primary" style="margin-top: 2px;" @click="useJobTemplate(item)">职位模板</v-btn>
|
|
<v-btn v-if="showTemplateBtn" class="ml-3 half-button" color="primary" style="margin-top: 2px;" @click="useJobTemplate(item)">职位模板</v-btn>
|
|
</template>
|
|
</template>
|
|
- <template #expireTime="{ item }">
|
|
|
|
- <div>
|
|
|
|
- <v-checkbox-btn
|
|
|
|
- v-model="soFar"
|
|
|
|
- color="primary"
|
|
|
|
- label="长期有效"
|
|
|
|
- class="ml-2"
|
|
|
|
- :disabled="false"
|
|
|
|
- :style="`line-height: ${item.dense === 'default' ? 56 : item.dense === 'comfortable' ? 48 : 40 }px;`"
|
|
|
|
- style="width: 110px;"
|
|
|
|
- hide-details
|
|
|
|
- @update:modelValue="v => handleSoFarChange(v, item)"
|
|
|
|
- ></v-checkbox-btn>
|
|
|
|
- </div>
|
|
|
|
- </template>
|
|
|
|
</CtForm>
|
|
</CtForm>
|
|
|
|
|
|
<CtDialog :visible="show" :widthType="1" titleClass="text-h6" title="全员猎寻岗位规则说明" :footer="false" @close="show = false">
|
|
<CtDialog :visible="show" :widthType="1" titleClass="text-h6" title="全员猎寻岗位规则说明" :footer="false" @close="show = false">
|
|
@@ -120,17 +105,6 @@ const items = ref({
|
|
label: '职位名称 *',
|
|
label: '职位名称 *',
|
|
rules: [v => !!v || '请填写职位名称']
|
|
rules: [v => !!v || '请填写职位名称']
|
|
},
|
|
},
|
|
- {
|
|
|
|
- type: 'datePicker',
|
|
|
|
- key: 'expireTime',
|
|
|
|
- value: null,
|
|
|
|
- format: 'YYYY-MM-DD',
|
|
|
|
- disabledDate: true,
|
|
|
|
- dayAfter: true,
|
|
|
|
- labelWidth: 120,
|
|
|
|
- label: '到期时间 *',
|
|
|
|
- slotName: 'expireTime',
|
|
|
|
- },
|
|
|
|
{
|
|
{
|
|
type: 'wangEditor',
|
|
type: 'wangEditor',
|
|
key: 'content',
|
|
key: 'content',
|
|
@@ -170,7 +144,6 @@ watch(
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (e.noParam) return
|
|
if (e.noParam) return
|
|
- if (e.key === 'expireTime' && !val[e.key]) return handleSoFarChange(true, e)
|
|
|
|
if (e.key === 'hirePrice') e.value = val[e.key] / 100
|
|
if (e.key === 'hirePrice') e.value = val[e.key] / 100
|
|
else e.value = val[e.key]
|
|
else e.value = val[e.key]
|
|
e.change && e.change(e.value)
|
|
e.change && e.change(e.value)
|
|
@@ -232,30 +205,18 @@ const handleViewRule = () => {
|
|
const hirePriceChange = (value, key) => {
|
|
const hirePriceChange = (value, key) => {
|
|
let calcCost = value-0
|
|
let calcCost = value-0
|
|
if (calcCost < 10 ) calcCost = 10
|
|
if (calcCost < 10 ) calcCost = 10
|
|
- // else {
|
|
|
|
- // calcCost = parseInt(calcCost/10)*10
|
|
|
|
- // }
|
|
|
|
const obj = items.value.options.find(k => k.key === key)
|
|
const obj = items.value.options.find(k => k.key === key)
|
|
if (obj) {
|
|
if (obj) {
|
|
obj.value = calcCost
|
|
obj.value = calcCost
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-const soFar = ref(false)
|
|
|
|
-// 长期有效
|
|
|
|
-const handleSoFarChange = (bool, item) => {
|
|
|
|
- soFar.value = bool
|
|
|
|
- item.value = null
|
|
|
|
- item.disabled = bool ? true : false
|
|
|
|
- item.label = bool ? '到期时间' : '到期时间 *'
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
const getQuery = async () => {
|
|
const getQuery = async () => {
|
|
const { valid } = await formPageRef.value.formRef.validate()
|
|
const { valid } = await formPageRef.value.formRef.validate()
|
|
if (!valid) return
|
|
if (!valid) return
|
|
const obj = {
|
|
const obj = {
|
|
- soFar: soFar.value,
|
|
|
|
- hire: true
|
|
|
|
|
|
+ hire: true,
|
|
|
|
+ expireTime: null // 长期有效
|
|
}
|
|
}
|
|
items.value.options.forEach(e => {
|
|
items.value.options.forEach(e => {
|
|
if (e.noParam || e.value === null) return
|
|
if (e.noParam || e.value === null) return
|
|
@@ -271,11 +232,6 @@ const getQuery = async () => {
|
|
return 'failed'
|
|
return 'failed'
|
|
}
|
|
}
|
|
|
|
|
|
-if (!obj.expireTime && !soFar.value) {
|
|
|
|
- Snackbar.warning('请填写到期时间')
|
|
|
|
- return 'failed'
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
query = Object.assign(query, obj)
|
|
query = Object.assign(query, obj)
|
|
return query
|
|
return query
|
|
}
|
|
}
|