haogh 7 сар өмнө
parent
commit
7d2edaef25

+ 4 - 2
src/app/routes/art/exam/photograph/photograph.exam.module.ts

@@ -3,9 +3,11 @@ import {Routes, RouterModule} from '@angular/router';
 import {SharedModule} from '../../../../shared/shared.module';
 import { ExamInterviewPhotoGraphComponent } from './exam-interview-photo-graph/exam-interview-photo-graph.component';
 import { ExamWrittenPhotoGraphComponent } from './exam-written-photo-graph/exam-written-photo-graph.component';
+import { RoomModelPhotoPageComponent } from './room-model-photo-page/room-model-photo-page.component';
 const routes: Routes = [
   {path: 'interview', component: ExamInterviewPhotoGraphComponent},
-  {path: 'written', component: ExamWrittenPhotoGraphComponent}
+  {path: 'written', component: ExamWrittenPhotoGraphComponent},
+  {path: 'model', component: RoomModelPhotoPageComponent},
 ];
 
 @NgModule({
@@ -14,7 +16,7 @@ const routes: Routes = [
     RouterModule.forChild(routes)
   ],
   entryComponents: [],
-  declarations: [ ExamInterviewPhotoGraphComponent, ExamWrittenPhotoGraphComponent],
+  declarations: [ ExamInterviewPhotoGraphComponent, ExamWrittenPhotoGraphComponent, RoomModelPhotoPageComponent],
   exports: [
     RouterModule
   ]

+ 52 - 0
src/app/routes/art/exam/photograph/room-model-photo-page/room-model-photo-page.component.html

@@ -0,0 +1,52 @@
+<div class="content-heading  justify-content-between">
+  <div>模特照片查看</div>
+  <div class="float-right">
+    <div class="row">
+      <div class="wd-sm ml-3" style="padding-right: 20px;">
+        <select class="form-control" frameDict [dictName]="'PhotoNum'" [tipFlag]="false" [(ngModel)]="num"
+          (change)="reload()" style="height: 40px;"> </select>
+      </div>
+
+      <div class="btn-group mb-1 mr-1 ml-3" dropdown style="padding-right: 20px;">
+        <button class="btn dropdown-toggle btn-secondary btn-lg" type="button"  dropdownToggle>模特照片
+          <span class="caret"></span>
+        </button>
+        <div *dropdownMenu class="dropdown-menu modal-lg" role="menu">
+          <a class="dropdown-item" href="#" (click)="export()">导出</a>
+        </div>
+      </div>
+
+    </div>
+  </div>
+</div>
+
+<div class="table-responsive bg-white table-full">
+  <table class="table table-striped table-hover table-bordered">
+    <thead>
+      <tr>
+        <th><span class="table-sort"  (click)="pager.sort('group_name')">分组名称</span></th>
+        <th><span class="table-sort"  (click)="pager.sort('room_name')">考场名称</span></th>
+        <th><span class="table-sort"  (click)="pager.sort('room_addr')">考场地址</span></th>
+        <th><span class="table-sort"  (click)="pager.sort('nums')">照片数量</span></th>
+        <th>模特查看</th>
+      </tr>
+    </thead>
+    <tbody>
+      <tr *ngFor="let v of pager.getRecords(); let i = index">
+        <td>{{v.group_name}}</td>
+        <td>{{v.room_name}}</td>
+        <td>{{v.room_addr}}</td>
+        <td>{{v.nums}}</td>
+        <td>
+          <span><img class="align-self-start mx-2 circle thumb32 " *ngIf="v.photo1"
+              [src]="FrameService.getParamValue('EnrolMaterialWebPath') + v.photo1" alt="Image" ngxViewer></span>
+          <span><img class="align-self-start mx-2 circle thumb32 " *ngIf="v.photo2"
+              [src]="FrameService.getParamValue('EnrolMaterialWebPath') + v.photo2" alt="Image" ngxViewer></span>
+          <span><img class="align-self-start mx-2 circle thumb32 " *ngIf="v.photo3"
+              [src]="FrameService.getParamValue('EnrolMaterialWebPath') + v.photo3" alt="Image" ngxViewer></span>
+        </td>
+      </tr>
+    </tbody>
+  </table>
+  <frame-pager [url]="'./ly/room/model/photo/page.htm'" [pagerParams]="{num: num}" #pager></frame-pager>
+</div>

+ 0 - 0
src/app/routes/art/exam/photograph/room-model-photo-page/room-model-photo-page.component.scss


+ 29 - 0
src/app/routes/art/exam/photograph/room-model-photo-page/room-model-photo-page.component.ts

@@ -0,0 +1,29 @@
+import { Component, OnInit } from '@angular/core';
+import { BsModalService } from 'ngx-bootstrap/modal';
+import { FramePageComponent } from 'src/app/routes/frame/core/page/frame.page';
+
+@Component({
+  selector: 'app-room-model-photo-page',
+  templateUrl: './room-model-photo-page.component.html',
+  styleUrls: ['./room-model-photo-page.component.scss']
+})
+export class RoomModelPhotoPageComponent extends FramePageComponent implements OnInit {
+
+  num:any;
+
+  constructor(private modalService: BsModalService) {
+    super(modalService);
+   }
+
+  ngOnInit(): void {
+  }
+
+  reload() {
+    this.pager.reload({num: this.num});
+  }
+
+  export() {
+    this.FuncService.ajaxDownload('ly/room/model/photo/export.htm', {num: this.num, query: this.pager.query});
+  }
+
+}