|
@@ -0,0 +1,69 @@
|
|
|
+import { Component, OnInit, ViewChild } from '@angular/core';
|
|
|
+import { _HttpClient, ModalHelper } from '@delon/theme';
|
|
|
+import { STColumn, STComponent } from '@delon/abc';
|
|
|
+import { SFSchema } from '@delon/form';
|
|
|
+import { FbsAbnormalWorkingHours } from 'app/entity/fbs/fbs-abnormal-working-hours';
|
|
|
+import { FbsAbnormalWorkingHoursAddComponent } from '../add/add.component';
|
|
|
+import { NzDrawerService } from 'ng-zorro-antd';
|
|
|
+
|
|
|
+@Component({
|
|
|
+ selector: 'app-fbs-abnormal-working-hours-list',
|
|
|
+ templateUrl: './list.component.html',
|
|
|
+})
|
|
|
+export class FbsAbnormalWorkingHoursListComponent implements OnInit {
|
|
|
+
|
|
|
+
|
|
|
+ constructor(private nzDrawerService:NzDrawerService) { }
|
|
|
+
|
|
|
+ ngOnInit() { }
|
|
|
+
|
|
|
+ dataList = [{}]; //表格数据
|
|
|
+ isLoading = false; //表格加载
|
|
|
+ page = {
|
|
|
+ total: 0,
|
|
|
+ current: 0,
|
|
|
+ size: 0,
|
|
|
+ };
|
|
|
+
|
|
|
+ fbsAbnormalWorkingHours:FbsAbnormalWorkingHours={}
|
|
|
+ // 按页码查询
|
|
|
+ pageIndexChange(event) {
|
|
|
+ this.fbsAbnormalWorkingHours.pageNo = event;
|
|
|
+ //主数据刷新
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新增按钮
|
|
|
+ */
|
|
|
+ add() {
|
|
|
+ //打开新增抽屉
|
|
|
+ const drawerRef = this.nzDrawerService.create<FbsAbnormalWorkingHoursAddComponent>({
|
|
|
+ nzTitle: '新增生产异常信息统计单',
|
|
|
+ nzContent: FbsAbnormalWorkingHoursAddComponent,
|
|
|
+ nzWidth: window.innerWidth,
|
|
|
+ nzBodyStyle: { height: 'calc(100% - 55px)', overflow: 'auto', 'padding-bottom': '53px' },
|
|
|
+ nzContentParams: {},
|
|
|
+ });
|
|
|
+
|
|
|
+ //关闭抽屉的回调
|
|
|
+ drawerRef.afterClose.subscribe(isRefresh => {
|
|
|
+ if (isRefresh) {
|
|
|
+ //刷新list列表
|
|
|
+ // this.getPreList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ view(){
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ update(){
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ delete(){
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+}
|