|
|
@@ -15,28 +15,27 @@ |
|
|
|
contentType="html" /> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
|
|
|
|
<a-col span="24"> |
|
|
|
<a-form-item required label="选择日期" name="open_date"> |
|
|
|
<a-date-picker v-model:value="addOtherForm.open_date" @Change="openDateChange" |
|
|
|
style="width: 100%;" /> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
<a-col span="24" v-if="addOtherForm.open_date"> |
|
|
|
<a-form-item required label="选择具体的时间"> |
|
|
|
<a-time-picker v-model:value="addOtherForm.time" valueFormat="HH:mm:ss" @change="timeChange" /> |
|
|
|
<a-form-item required label="选择有效时间"> |
|
|
|
<a-range-picker v-model:value="addOtherForm.time" @Change="timeChange" show-time |
|
|
|
style="width: 100%;" size="large" :disabled-date="disabledDate" /> |
|
|
|
<!-- <a-date-picker v-model:value="addOtherForm.open_date" @Change="openDateChange" |
|
|
|
style="width: 100%;" /> --> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
|
|
|
|
<a-col span="24"> |
|
|
|
<a-form-item required label="地点" name="address"> |
|
|
|
<a-input v-model:value="createForm.address" placeholder="请输入地址" /> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
|
<a-col span="24" v-if="createForm.id"> |
|
|
|
<a-form-item required label="审核结果" name="status"> |
|
|
|
<a-form-item required label="招聘会状态" name="status"> |
|
|
|
<a-radio-group v-model:value="createForm.status" button-style="solid"> |
|
|
|
<a-radio-button :value="1">待审</a-radio-button> |
|
|
|
<a-radio-button :value="2">通过</a-radio-button> |
|
|
|
<a-radio-button :value="3">拒绝</a-radio-button> |
|
|
|
<!-- <a-radio-button :value="1">待审</a-radio-button> --> |
|
|
|
<a-radio-button :value="1">开启</a-radio-button> |
|
|
|
<a-radio-button :value="2">结束</a-radio-button> |
|
|
|
</a-radio-group> |
|
|
|
</a-form-item> |
|
|
|
</a-col> |
|
|
@@ -63,26 +62,14 @@ |
|
|
|
|
|
|
|
|
|
|
|
// 开始日期 |
|
|
|
const openDateChange = (val) => { |
|
|
|
addOtherForm.value.open_date = val; |
|
|
|
} |
|
|
|
|
|
|
|
// 选择时间 |
|
|
|
const timeChange = (val) => { |
|
|
|
addOtherForm.value.time = val; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 富文本 |
|
|
|
const onEditorUpdate = (data) => { |
|
|
|
createForm.value.content = data |
|
|
|
createForm.value.open_date = dayjsRef.value(val[0]).format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
createForm.value.close_date = dayjsRef.value(val[1]).format('YYYY-MM-DD HH:mm:ss'); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const sumbitForm = () => { |
|
|
|
console.log(addOtherForm.value.open_date) |
|
|
|
createForm.value.open_date = dayjsRef.value(addOtherForm.value.open_date).format('YYYY-MM-DD') + ' ' + addOtherForm.value.time |
|
|
|
console.log(createForm.value) |
|
|
|
if (createForm.value.title && createForm.value.content && createForm.value.open_date && createForm.value.address) { |
|
|
|
if (!createForm.value.id) { |
|
|
@@ -127,10 +114,10 @@ |
|
|
|
watch(() => props.edit_record, async (newVal) => { |
|
|
|
if (newVal) { |
|
|
|
title.value = '编辑招聘会'; |
|
|
|
addOtherForm.value = { |
|
|
|
addOtherForm.value = { |
|
|
|
content: he.decode(newVal.content), |
|
|
|
open_date: dayjsRef.value(newVal.open_date.substring(0, 10)), |
|
|
|
time: newVal.open_date.substring(11, 19) |
|
|
|
time: [dayjsRef.value(newVal.open_date), newVal.close_date? dayjsRef.value(newVal.close_date): ''] |
|
|
|
} |
|
|
|
createForm.value = { |
|
|
|
id: newVal.id, |