This commit is contained in:
禾几海
2020-07-02 23:16:34 +08:00
parent 8bd8986bdd
commit c8fe9c3658
5 changed files with 36 additions and 26 deletions

View File

@@ -50,16 +50,16 @@ export class AdminCommentComponent implements OnInit {
ngOnInit(): void {
this.headData = [
{fieldName: '主键', fieldValue: 'id', show: false, primaryKey: true},
{fieldName: '评论路径', fieldValue: 'pagePath', show: true},
{fieldName: '评论创建者昵称', fieldValue: 'fromUser.displayName', show: true},
{fieldName: '评论接收者昵称', fieldValue: 'toUser.displayName', show: true},
{fieldName: '评论内容', fieldValue: 'content', show: false},
{fieldName: '评论日期', fieldValue: 'date', show: true},
{fieldName: '父评论id', fieldValue: 'pid', show: false},
{fieldName: '状态', fieldValue: 'status', show: true},
{title: '主键', fieldValue: 'id', show: false, primaryKey: true},
{title: '评论路径', fieldValue: 'pagePath', show: true},
{title: '评论创建者昵称', fieldValue: 'fromUser.displayName', show: true},
{title: '评论内容', fieldValue: 'content', show: true},
{title: '评论接收者昵称', fieldValue: 'toUser.displayName', show: true},
{title: '评论日期', fieldValue: 'date', show: true},
{title: '父评论id', fieldValue: 'pid', show: false},
{title: '状态', fieldValue: 'status', show: true},
{
fieldName: '操作',
title: '操作',
fieldValue: '',
show: true,
isActionColumns: true,
@@ -118,4 +118,8 @@ export class AdminCommentComponent implements OnInit {
// this.editInfo.content.responseId = data.responseId;
this.editInfo.editFocus = true;
}
textChange(value: { value: string; originalValue: string; changed: boolean }) {
console.log(value)
}
}