袁野 1 week ago
parent 22252db5d4
commit 82b8ff2329
  1. 6
      src/app/app.routes.ts
  2. 3
      src/app/pages/account/sys-account/sys-account.component.ts
  3. 2
      src/app/pages/account/sys-role/sys-role.component.ts
  4. 2
      src/app/pages/body/index/index.component.html
  5. 2
      src/app/pages/login/login/login.component.html
  6. 30
      src/app/pages/student/student-item/student-item.component.html
  7. 33
      src/app/pages/student/student-item/student-item.component.scss
  8. 35
      src/app/pages/student/student-item/student-item.component.ts
  9. 12
      src/app/pages/student/student.module.ts
  10. 7
      src/app/pages/student/student.routes.ts
  11. 6
      src/environments/environment.prod.ts
  12. 2
      src/environments/environment.ts
  13. 2
      src/index.html

@ -32,11 +32,7 @@ export const routes: Routes = [
loadChildren: () => import('./pages/account/account.routes').then(m => m.ACCOUNT_ROUTES), loadChildren: () => import('./pages/account/account.routes').then(m => m.ACCOUNT_ROUTES),
canActivate: [InitGuardService] canActivate: [InitGuardService]
}, },
{
path: 'student',
loadChildren: () => import('./pages/student/student.routes').then(m => m.STUDENT_ROUTES),
canActivate: [InitGuardService]
},
] ]
}, },
{ {

@ -49,7 +49,6 @@ import {RoleService} from '../../../services/system/role.service';
NzThMeasureDirective, NzThMeasureDirective,
NzTheadComponent, NzTheadComponent,
NzTrDirective, NzTrDirective,
NzTreeComponent,
ReactiveFormsModule, ReactiveFormsModule,
NzTableModule, NzTableModule,
NzModalModule, NzModalModule,
@ -57,7 +56,6 @@ import {RoleService} from '../../../services/system/role.service';
NzOptionComponent, NzOptionComponent,
NzDropDownModule, NzDropDownModule,
NzIconDirective, NzIconDirective,
DictionaryPipe,
], ],
templateUrl: './sys-account.component.html', templateUrl: './sys-account.component.html',
styleUrl: './sys-account.component.less' styleUrl: './sys-account.component.less'
@ -126,7 +124,6 @@ export class SysAccountComponent {
queryData() { queryData() {
this.searchForm.value.pageNum = this.tablePageNum; this.searchForm.value.pageNum = this.tablePageNum;
this.searchForm.value.pageSize = 10; this.searchForm.value.pageSize = 10;
this.searchForm.value.objectType = 1;
this.searchForm.value.time = new Date().getTime(); this.searchForm.value.time = new Date().getTime();
this.sysAccountService.queryList(this.searchForm.value, (data: any) => { this.sysAccountService.queryList(this.searchForm.value, (data: any) => {
if (data['return_code'] == '000000') { if (data['return_code'] == '000000') {

@ -48,8 +48,6 @@ import {MenuService} from '../../../services/system/menu.service';
DatePipe, DatePipe,
NzThMeasureDirective, NzThMeasureDirective,
NzModalComponent, NzModalComponent,
NzOptionComponent,
NzSelectComponent,
NzModalModule, NzModalModule,
NgIf, NgIf,
NzTreeComponent, NzTreeComponent,

@ -4,7 +4,7 @@
<div nz-row> <div nz-row>
<!-- logo --> <!-- logo -->
<div class="logo" nz-col nzSpan="4"> <div class="logo" nz-col nzSpan="4">
<h2>超冠体育管理平台</h2> <h2>管理平台</h2>
</div> </div>
<!-- logo --> <!-- logo -->

@ -11,7 +11,7 @@
</div> </div>
<!-- 登录--> <!-- 登录-->
<div class="login-box-size box-center"> <div class="login-box-size box-center">
<h1>超冠体育 后台登录</h1> <h1>后台登录</h1>
<div> <div>
<form nz-form [formGroup]="validateForm" class="login-form" (ngSubmit)="submitForm()"> <form nz-form [formGroup]="validateForm" class="login-form" (ngSubmit)="submitForm()">
<nz-form-item> <nz-form-item>

@ -1,30 +0,0 @@
<form nz-form [formGroup]="validateForm" class="ant-advanced-search-form">
<div nz-row [nzGutter]="24">
@for (control of controlArray; track control) {
<div nz-col [nzSpan]="8" [hidden]="!control.show">
<nz-form-item>
<nz-form-label [nzFor]="'field' + control.index">Field {{ control.index }}</nz-form-label>
<nz-form-control>
<input
nz-input
placeholder="placeholder"
[formControlName]="'field' + control.index"
[attr.id]="'field' + control.index"
/>
</nz-form-control>
</nz-form-item>
</div>
}
</div>
<div nz-row>
<div nz-col [nzSpan]="24" class="search-area">
<button nz-button [nzType]="'primary'">Search</button>
<button nz-button (click)="resetForm()">Clear</button>
<a class="collapse" (click)="toggleCollapse()">
Collapse
<nz-icon [nzType]="isCollapse ? 'down' : 'up'" />
</a>
</div>
</div>
</form>
<div class="search-result-list">Search Result List</div>

@ -1,33 +0,0 @@
.ant-advanced-search-form {
padding: 24px;
background: #fbfbfb;
border: 1px solid #d9d9d9;
border-radius: 6px;
}
.search-result-list {
margin-top: 16px;
border: 1px dashed #e9e9e9;
border-radius: 6px;
background-color: #fafafa;
min-height: 200px;
text-align: center;
padding-top: 80px;
}
[nz-form-label] {
overflow: visible;
}
button {
margin-left: 8px;
}
.collapse {
margin-left: 8px;
font-size: 12px;
}
.search-area {
text-align: right;
}

@ -1,35 +0,0 @@
import {Component, inject} from '@angular/core';
import {FormControl, FormRecord, NonNullableFormBuilder, ReactiveFormsModule, Validators} from '@angular/forms';
import {NzColDirective, NzRowDirective} from 'ng-zorro-antd/grid';
import {NzInputDirective} from 'ng-zorro-antd/input';
import {NzFormDirective} from 'ng-zorro-antd/form';
import {NzButtonComponent} from 'ng-zorro-antd/button';
import {NzIconDirective} from 'ng-zorro-antd/icon';
@Component({
selector: 'app-student-item',
imports: [
ReactiveFormsModule,
NzRowDirective,
NzColDirective,
NzInputDirective,
NzFormDirective,
NzButtonComponent
],
templateUrl: './student-item.component.html',
standalone: true,
styleUrl: './student-item.component.scss'
})
export class StudentItemComponent {
private fb = inject(NonNullableFormBuilder);
validateForm = this.fb.group({
name: this.fb.control('', [Validators.required]),
});
constructor() { }
resetForm(): void {
this.validateForm.reset();
}
}

@ -1,12 +0,0 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
@NgModule({
declarations: [],
imports: [
CommonModule
]
})
export class StudentModule { }

@ -1,7 +0,0 @@
import { Routes } from '@angular/router';
import {StudentItemComponent} from './student-item/student-item.component';
export const STUDENT_ROUTES: Routes = [
{ path: 'student-item', component: StudentItemComponent},
];

@ -1,7 +1,5 @@
export const environment = { export const environment = {
production: true, production: true,
baseUrl: 'https://phg.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址) baseUrl: 'https://en.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址)
orderUrl: 'https://phg.dctpay.com/order/', // 测试环境服务器地址(请求数据地址) imageUrl: 'https://en.dctpay.com/filesystem/',
userUrl: 'https://phg.dctpay.com/user/', // 测试环境服务器地址(请求数据地址)
imageUrl: 'https://phg.obs.cn-southwest-2.myhuaweicloud.com/',
}; };

@ -5,7 +5,7 @@
export const environment = { export const environment = {
production: false, production: false,
// baseUrl: 'https://phg.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址) // baseUrl: 'https://phg.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址)
baseUrl: 'http://localhost:9702/brest/', // 测试环境服务器地址(请求数据地址) baseUrl: 'http://localhost:9402/brest/', // 测试环境服务器地址(请求数据地址)
}; };
/* /*

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>超冠体育</title> <title>项目售后管理系统</title>
<base href="/"> <base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="icon" type="image/x-icon" href="favicon.ico">

Loading…
Cancel
Save