招聘岗位

This commit is contained in:
Leo_Ding 2025-06-19 11:01:07 +08:00
parent f6eec94b31
commit 38e2fca3f8
2 changed files with 50 additions and 41 deletions

View File

@ -19,6 +19,12 @@
<a-input v-model:value="formData.link" :placeholder="'请输入链接'" />
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item :label="'日期'" name="pushAt">
<a-date-picker v-model:value="formData.pushAt" :format="'YYYY-MM-DD'" placeholder="选择日期" style="width: 100%;">
</a-date-picker>
</a-form-item>
</a-col>
<a-col :span="24">
<a-form-item :label="'状态'" name="status">
<a-radio-group v-model:value="formData.status" :options="[
@ -61,6 +67,7 @@ formRules.value = {
content: { required: true, message: '请输入内容' },
link: { required: true, message: '请输入链接' },
status: [{ required: true, message: '请选择状态', trigger: 'change' }],
pushAt: [{ required: true, message: '请选择发布日期', trigger: 'change' }],
// imgUrl: [{ required: true, message: '', trigger: 'change' }],
}
@ -101,6 +108,8 @@ async function handleEdit(record = {}) {
return
}
formData.value = { ...data }
formData.value.pushAt=dayjs(data.pushAt)
console.log(formData.value)
imgUrl.value = config('http.apiBasic') + data.img
}
@ -116,7 +125,7 @@ function handleOk() {
const params = {
...values,
img: formData.value.img,
pushAt:dayjs().format('YYYY-MM-DD'),
pushAt:dayjs(formData.value.pushAt).format("YYYY-MM-DD"),
type: 'news'
}
let result = null

View File

@ -106,7 +106,7 @@ const { t } = useI18n() // 解构出t方法
const columns = [
{ title: '图片', dataIndex: 'img', width: 100, align: 'center' },
{ title: '标题', dataIndex: 'title', key: 'title' },
{ title: '内容', dataIndex: 'content', key: 'content' },
{ title: '简介', dataIndex: 'content', key: 'content' },
{ title: '状态', dataIndex: 'status', width: 120, align: 'center' },
{ title: '发布日期', dataIndex: 'pushAt', width: 120, align: 'center' },
{ title: '链接', dataIndex: 'link', align: 'center' },