|
@@ -98,7 +98,7 @@ export default {
|
|
|
// { name: 'thumbnail', label: '缩略图', formater: 'slot' },
|
|
|
{ name: 'title', label: '标题' },
|
|
|
{ name: 'curtTitle', label: '副标题' },
|
|
|
- { name: 'source', label: '来源' },
|
|
|
+ { name: 'source', label: '来源', formater: 'dict:source' },
|
|
|
// { name: 'describe', label: '描述' },
|
|
|
{ name: 'bind', label: '绑定菜单', formater: 'dict:menus' },
|
|
|
{ name: 'date', label: '时间', formater: 'date:datetime' },
|
|
@@ -154,9 +154,10 @@ export default {
|
|
|
async created() {
|
|
|
await this.filterQuery();
|
|
|
await this.menusQuery();
|
|
|
+ await this.sourceQuery();
|
|
|
},
|
|
|
methods: {
|
|
|
- ...mapActions(['contentsQuery', 'contentsCreate', 'contentsUpdate', 'contentsDelete', 'contentsQuery', 'contentsFetch', 'menusQuery', 'userQuery']),
|
|
|
+ ...mapActions(['contentsQuery', 'contentsCreate', 'contentsUpdate', 'contentsDelete', 'contentsQuery', 'contentsFetch', 'menusQuery', 'userQuery', 'sourceQuery']),
|
|
|
// 添加
|
|
|
addcontents () {
|
|
|
this.formdata = {};
|