Browse Source

修改日期类型控件的控件类型参数配置

zhy 1 month ago
parent
commit
cee7943f19

+ 1 - 1
src/views/cms/postconfig/article.js

@@ -10,7 +10,7 @@ export default {
       { label: "副标题", name: "subTitle" },
       { label: "摘要", name: "summary" },
       { label: "来源", name: "origin" },
-      { label: "发布时间", name: "publish_time", formater: 'date', dateType: 'datetime' },
+      { label: "发布时间", name: "publish_time", formater: 'date: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" },

+ 1 - 1
src/views/cms/postconfig/page.js

@@ -9,7 +9,7 @@ export default {
       { label: "副标题", name: "subTitle" },
       { label: "摘要", name: "summary" },
       { label: "来源", name: "origin" },
-      { label: "发布时间", name: "publish_time", formater: 'date', dateType: 'datetime' },
+      { label: "发布时间", name: "publish_time", formater: 'date:datetime' },
       { label: "置顶", name: "topStatus", formater: 'switch', activeValue: 1, inactiveValue: 0 },
       { label: "状态", name: "status", formater: "dict:essay_type" },
       { label: "附件上传", name: "urls", formater: "fileUpload", fileUrl: '' },

+ 1 - 1
src/views/cms/postconfig/picture.js

@@ -11,7 +11,7 @@ export default {
       { label: "副标题", name: "subTitle" },
       { label: "摘要", name: "summary" },
       { label: "来源", name: "origin" },
-      { label: "发布时间", name: "publish_time", formater: 'date', dateType: 'datetime' },
+      { label: "发布时间", name: "publish_time", formater: 'date: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" },