|
@@ -17,12 +17,15 @@ export default {
|
|
total: 0,
|
|
total: 0,
|
|
fields: [
|
|
fields: [
|
|
{ label: '消息内容', model: 'content' },
|
|
{ label: '消息内容', model: 'content' },
|
|
- { label: '是否已读', model: 'is_read', format: (i) => (i ? '已读' : '未读') },
|
|
|
|
|
|
+ { label: '发送时间', model: 'create_time', width: '150px' },
|
|
|
|
+ { label: '是否已读', model: 'is_read', format: (i) => (i ? '已读' : '未读'), width: '150px' },
|
|
],
|
|
],
|
|
- opera: [{ label: '取消提醒', method: 'off', display: (i) => i.status === '0' }],
|
|
|
|
|
|
+ opera: [{ label: '取消提醒', method: 'off', display: (i) => !i.is_read }],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- created() {},
|
|
|
|
|
|
+ created() {
|
|
|
|
+ this.search();
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
...notice(['query', 'update']),
|
|
...notice(['query', 'update']),
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|