|
@@ -75,6 +75,7 @@ export default {
|
|
|
{ label: '分类', key: 'information_category', type: 'select', class: 'c-2', options: this.$dictData.information_category },
|
|
|
{ label: '作者', key: 'author', class: 'c-2' },
|
|
|
{ label: '状态', key: 'hide_status', type: 'select', class: 'c-2', options: this.$dictData.hide_status },
|
|
|
+ { label: '发布时间', key: 'create_at', class: 'c-2', type: 'datePicker', type2: 'date'},
|
|
|
{ label: '主图', key: 'pri_image', type: 'upload', class: 'c-2' },
|
|
|
{ label: '关联楼盘', key: 'estate_id_list', type: 'selectRemote', multiple: true, changeHandle: this.deviceChange,
|
|
|
remoteParams: { skey: 'estate_name', api: `house.admestatelist?search_EQ_status=1`, opKey: 'estate_name', opVal: 'id' },
|
|
@@ -97,6 +98,7 @@ export default {
|
|
|
}
|
|
|
let apiStr = 'adminformationadd'
|
|
|
newForm.news_type = 'gzh'
|
|
|
+ if (!newForm.create_at) delete newForm.create_at
|
|
|
if (newForm.id) apiStr = 'adminformationedit'
|
|
|
this.$api.house[apiStr](newForm).then(data => {
|
|
|
this.$msgs(newForm.id ? '编辑成功' : '新增成功')
|