-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
report setad preregister ok hurray raity arshia #135
base: master
Are you sure you want to change the base?
report setad preregister ok hurray raity arshia #135
Conversation
@ViewChild(MatSort) sort: MatSort; | ||
displayedColumns: string[] = ['name', 'sex','mobile', 'nationalCode', 'ageRangeName', 'city', 'created', 'action']; | ||
private _field: SportField; | ||
private _subField: SportSubField; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
چرا هر چیزی رو کپی کردید بدون این که بخونید
درست بخونید
@@ -0,0 +1,116 @@ | |||
<div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
این چیزی که شما نوشتید هر کسی وارد میشه میتونه ببینه خروجی و اطلاعات بقیه رو
و این درست نیست
<button mat-icon-button (click)="onDownloadExport()"> <mat-icon>download_for_offline</mat-icon></button> | ||
<button mat-icon-button | ||
(click)="onRefreshClick()"><mat-icon>refresh</mat-icon></button> | ||
<table mat-table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
این جدول رو پاک کنید
چون جدوله خیلی ویژگی ها داره
و اجرای این باگ میخوره
this.dataSource.sort = this.sort; | ||
}); | ||
} | ||
async onDownloadExport() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
یه جوری بنویسید که فقط اکسل بگیره
هر دفعه هم اکسل گرفتش همه چیر ور از بک اند بخونه
|
||
|
||
@NgModule({ | ||
declarations: [RegulationsComponent,PreRegisterHomePageComponent], | ||
declarations: [RegulationsComponent,PreRegisterHomePageComponent, ReportComponent], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
این page یا کامپونتته؟
با چه ادرسی میشه بازش کرد؟
fControl: FormControl<number>; | ||
constructor (private readonly _setadRepository: SetadRepositoryService, ac: ActivatedRoute, private readonly _fb: FormBuilder) { | ||
this.fControl = _fb.control<number>(-1); | ||
ac.params.subscribe(c => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
اینجا شما روت های اصلی رو میگیرید که با سیستم api شما سازگار نیست
private _subField: SportSubField; | ||
private data: IPlayer[]; | ||
fControl: FormControl<number>; | ||
constructor (private readonly _setadRepository: SetadRepositoryService, ac: ActivatedRoute, private readonly _fb: FormBuilder) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
در ضمن این سرویس برای ثبت نام اصلی جام کار میکنه
این پیش ثبت نامه به API پارسا باید ریکوست بزنید
this.dataSource = new MatTableDataSource(this.data.filter(c => c.profile.sexRaw == t)); | ||
}); | ||
} | ||
applyFilter(event: Event) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
به این نیاز ندارید
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
یعنی چی؟
async onDownloadExport() { | ||
const wb = new Workbook(); | ||
const ws = wb.addWorksheet('bozorg sal man'); | ||
const cols = [{ name: 'نام و نام خانوادگی' }, { name: 'رده' }, { name: 'جنسیت' }, { name: 'شهر' }, { name: 'کد ملی' }]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
چه بخشی ثبت نام کردن رو کجا مینویسید؟
..............