generated from Leo_Ding/web-template
招聘岗位
This commit is contained in:
parent
f6eec94b31
commit
38e2fca3f8
@ -19,6 +19,12 @@
|
|||||||
<a-input v-model:value="formData.link" :placeholder="'请输入链接'" />
|
<a-input v-model:value="formData.link" :placeholder="'请输入链接'" />
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</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-col :span="24">
|
||||||
<a-form-item :label="'状态'" name="status">
|
<a-form-item :label="'状态'" name="status">
|
||||||
<a-radio-group v-model:value="formData.status" :options="[
|
<a-radio-group v-model:value="formData.status" :options="[
|
||||||
@ -61,6 +67,7 @@ formRules.value = {
|
|||||||
content: { required: true, message: '请输入内容' },
|
content: { required: true, message: '请输入内容' },
|
||||||
link: { required: true, message: '请输入链接' },
|
link: { required: true, message: '请输入链接' },
|
||||||
status: [{ required: true, message: '请选择状态', trigger: 'change' }],
|
status: [{ required: true, message: '请选择状态', trigger: 'change' }],
|
||||||
|
pushAt: [{ required: true, message: '请选择发布日期', trigger: 'change' }],
|
||||||
// imgUrl: [{ required: true, message: '请上传图片', trigger: 'change' }],
|
// imgUrl: [{ required: true, message: '请上传图片', trigger: 'change' }],
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,6 +108,8 @@ async function handleEdit(record = {}) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
formData.value = { ...data }
|
formData.value = { ...data }
|
||||||
|
formData.value.pushAt=dayjs(data.pushAt)
|
||||||
|
console.log(formData.value)
|
||||||
imgUrl.value = config('http.apiBasic') + data.img
|
imgUrl.value = config('http.apiBasic') + data.img
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -116,7 +125,7 @@ function handleOk() {
|
|||||||
const params = {
|
const params = {
|
||||||
...values,
|
...values,
|
||||||
img: formData.value.img,
|
img: formData.value.img,
|
||||||
pushAt:dayjs().format('YYYY-MM-DD'),
|
pushAt:dayjs(formData.value.pushAt).format("YYYY-MM-DD"),
|
||||||
type: 'news'
|
type: 'news'
|
||||||
}
|
}
|
||||||
let result = null
|
let result = null
|
||||||
|
|||||||
@ -106,7 +106,7 @@ const { t } = useI18n() // 解构出t方法
|
|||||||
const columns = [
|
const columns = [
|
||||||
{ title: '图片', dataIndex: 'img', width: 100, align: 'center' },
|
{ title: '图片', dataIndex: 'img', width: 100, align: 'center' },
|
||||||
{ title: '标题', dataIndex: 'title', key: 'title' },
|
{ title: '标题', dataIndex: 'title', key: 'title' },
|
||||||
{ title: '内容', dataIndex: 'content', key: 'content' },
|
{ title: '简介', dataIndex: 'content', key: 'content' },
|
||||||
{ title: '状态', dataIndex: 'status', width: 120, align: 'center' },
|
{ title: '状态', dataIndex: 'status', width: 120, align: 'center' },
|
||||||
{ title: '发布日期', dataIndex: 'pushAt', width: 120, align: 'center' },
|
{ title: '发布日期', dataIndex: 'pushAt', width: 120, align: 'center' },
|
||||||
{ title: '链接', dataIndex: 'link', align: 'center' },
|
{ title: '链接', dataIndex: 'link', align: 'center' },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user