|
@@ -58,19 +58,20 @@ export default {
|
|
|
if (str === 'edit') {
|
|
|
params = {...this.$refs.ruleForm.baseForm, ...params}
|
|
|
}
|
|
|
+ if (!params.hide_status) params.hide_status = '1'
|
|
|
this.formData = [
|
|
|
- { label: '发布时间', key: 'publish_at', type: 'datePicker', type2: 'date'},
|
|
|
- { label: '标题', key: 'title'},
|
|
|
+ { label: '发布时间', key: 'publish_at', type: 'datePicker', type2: 'date', rules: 1},
|
|
|
+ { label: '标题', key: 'title', rules: 1},
|
|
|
+ { label: '状态', rules: 1, key: 'hide_status', class: 'c-2', type: 'select', options: this.$dictData.hide_status},
|
|
|
{ label: '视频分类', key: 'channels_type', class: 'c-2', type: 'select', options: this.$dictData.channels_type},
|
|
|
- { label: '状态', key: 'hide_status', class: 'c-2', type: 'select', options: this.$dictData.hide_status},
|
|
|
- { label: '封面图', key: 'cover', class: 'c-2', type: 'cuImg',
|
|
|
+ { label: '封面图', rules: 1, key: 'cover', class: 'c-2', type: 'cuImg',
|
|
|
options: {
|
|
|
- w: 375,
|
|
|
- h: 250,
|
|
|
+ w: 175,
|
|
|
+ h: 225,
|
|
|
}
|
|
|
},
|
|
|
{ label: '自定义标签', class: 'c-2', key: 'custom_tag', type: 'textarea' },
|
|
|
- { label: '视频ID', key: 'feed_id', type: 'textarea' },
|
|
|
+ { label: '视频ID', rules: 1, key: 'feed_id', type: 'textarea' },
|
|
|
]
|
|
|
this.setDefaultValue(params)
|
|
|
},
|