|
@@ -91,7 +91,7 @@ export default {
|
|
|
],
|
|
|
opera: [
|
|
|
{ label: '查看', method: 'view' },
|
|
|
- { label: '已读', method: 'see', confirm: true, type: 'warning' },
|
|
|
+ { label: '已读', method: 'see', confirm: true, type: 'warning', display: (i) => i.status == '0' },
|
|
|
],
|
|
|
btnList: [{ label: '添加', method: 'add' }],
|
|
|
searchFields: [
|
|
@@ -148,10 +148,7 @@ export default {
|
|
|
async toSee({ data }) {
|
|
|
let info = { _id: data._id, status: '1' };
|
|
|
let res = await this.update(info);
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$message({ type: `success`, message: `已读` });
|
|
|
- this.search();
|
|
|
- }
|
|
|
+ if (this.$checkRes(res, '已读', `${res.errmsg}`)) this.search();
|
|
|
},
|
|
|
// 查询其他信息
|
|
|
async searchOthers() {
|