Browse Source

增加文章默认参数

zhy 1 day ago
parent
commit
d3fc4b1a2b

+ 4 - 0
src/views/cms/postconfig/article.js

@@ -7,11 +7,15 @@ export default {
     formFiled: [
       { label: "图片", name: "image", formater: "imageUpload" },
       { label: "标题", name: "title" },
+      { label: "副标题", name: "subTitle" },
       { label: "摘要", name: "summary" },
+      { label: "来源", name: "origin" },
+      { label: "发布时间", name: "publish_time", formater: 'date', dateType: 'datetime' },
       { label: "置顶", name: "topStatus", formater: 'switch', activeValue: '1', inactiveValue: '0' },
       { label: "显示/隐藏", name: "visible", formater: 'switch', activeValue: '0', inactiveValue: '1' },
       { label: "状态", name: "status", formater: "dict:essay_type" },
       { label: "备注", name: "remark", placeholder: "输入备注", formater: "textarea" },
+      { label: "附件上传", name: "urls", formater: "fileUpload" },
       { label: "内容", name: "content", formater: 'editor' },
     ],
     operation: [

+ 4 - 0
src/views/cms/postconfig/page.js

@@ -6,9 +6,13 @@ export default {
     formFiled: [
       { label: "图片", name: "image", formater: "imageUpload" },
       { label: "标题", name: "title" },
+      { label: "副标题", name: "subTitle" },
       { label: "摘要", name: "summary" },
+      { label: "来源", name: "origin" },
+      { label: "发布时间", name: "publish_time", formater: 'date', dateType: 'datetime' },
       { label: "置顶", name: "topStatus", formater: 'switch', activeValue: 1, inactiveValue: 0 },
       { label: "状态", name: "status", formater: "dict:essay_type" },
+      { label: "附件上传", name: "urls", formater: "fileUpload", fileUrl: '' },
       { label: "内容", name: "content", formater: 'editor' },
     ],
     operation: [

+ 4 - 0
src/views/cms/postconfig/picture.js

@@ -8,11 +8,15 @@ export default {
       { label: "图片", name: "image", formater: "imageUpload" },
       { label: "是否跳转文章", name: "meta.islink", formater: 'switch', activeValue: '0', inactiveValue: '1' },
       { label: "标题", name: "title" },
+      { label: "副标题", name: "subTitle" },
       { label: "摘要", name: "summary" },
+      { label: "来源", name: "origin" },
+      { label: "发布时间", name: "publish_time", formater: 'date', dateType: 'datetime' },
       { label: "置顶", name: "topStatus", formater: 'switch', activeValue: '1', inactiveValue: '0' },
       { label: "隐藏/显示", name: "visible", formater: 'switch', activeValue: '1', inactiveValue: '0' },
       { label: "状态", name: "status", formater: "dict:essay_type" },
       { label: "备注", name: "remark", placeholder: "输入备注", formater: "textarea" },
+      { label: "附件上传", name: "urls", formater: "fileUpload" },
       { label: "内容", name: "content", formater: 'editor' },
     ],
     operation: [