style: format project
[skip ci]
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import {Component, OnInit, ViewChild} from '@angular/core';
|
||||
import { NzMessageService } from 'ng-zorro-antd/message';
|
||||
import {NzMessageService} from 'ng-zorro-antd/message';
|
||||
import {ApiService} from '../../../api/api.service';
|
||||
import {RequestObj} from '../../../class/HttpReqAndResp';
|
||||
import {Comment, CommentReq} from '../../../class/Comment';
|
||||
@@ -15,6 +15,19 @@ import {CommonTableComponent} from '../components/common-table/common-table.comp
|
||||
})
|
||||
export class AdminCommentComponent implements OnInit {
|
||||
|
||||
request: RequestObj;
|
||||
editInfo = {
|
||||
id: null,
|
||||
content: new CommentReq(null),
|
||||
}
|
||||
headData: Data<Comment>[];
|
||||
modalData = {
|
||||
visible: false,
|
||||
comment: null
|
||||
}
|
||||
@ViewChild('editableTagComponent') editableTagComponent: EditableTagComponent;
|
||||
@ViewChild('commonTableComponent') commonTableComponent: CommonTableComponent<Comment>;
|
||||
|
||||
constructor(private apiService: ApiService, private messageService: NzMessageService, private userService: GlobalUserService,
|
||||
private title: Title) {
|
||||
this.title.setTitle('小海博客 | 评论管理')
|
||||
@@ -42,19 +55,6 @@ export class AdminCommentComponent implements OnInit {
|
||||
})
|
||||
}
|
||||
|
||||
request: RequestObj;
|
||||
editInfo = {
|
||||
id: null,
|
||||
content: new CommentReq(null),
|
||||
}
|
||||
headData: Data<Comment>[];
|
||||
modalData = {
|
||||
visible: false,
|
||||
comment: null
|
||||
}
|
||||
@ViewChild('editableTagComponent') editableTagComponent: EditableTagComponent;
|
||||
@ViewChild('commonTableComponent') commonTableComponent: CommonTableComponent<Comment>;
|
||||
|
||||
ngOnInit(): void {
|
||||
this.headData = [
|
||||
{title: '主键', fieldValue: 'id', show: false, primaryKey: true},
|
||||
|
||||
Reference in New Issue
Block a user