陈鹏飞 2 years ago
parent
commit
8e6e9dd54c
  1. 6
      src/app/pages/audit/audit-record/audit-record.component.html
  2. 6
      src/app/pages/audit/audit-record/audit-record.component.ts
  3. 31
      src/app/pages/plan-admin/update-license-list/update-license-list.component.ts

6
src/app/pages/audit/audit-record/audit-record.component.html

@ -5,10 +5,10 @@
<nz-form-control> <nz-form-control>
<nz-select nzAllowClear formControlName="info" nzPlaceHolder="审批信息" <nz-select nzAllowClear formControlName="info" nzPlaceHolder="审批信息"
(ngModelChange)="infoChange($event)"> (ngModelChange)="infoChange($event)">
<nz-option nzValue="0" nzLabel="油站信息"></nz-option> <nz-option *ngIf="!level" nzValue="0" nzLabel="油站信息"></nz-option>
<nz-option *ngIf="level" nzValue="1" nzLabel="经营类证照提醒时间"></nz-option> <nz-option *ngIf="level" nzValue="1" nzLabel="经营类证照提醒时间"></nz-option>
<nz-option nzValue="2" nzLabel="经营类证照"></nz-option> <nz-option *ngIf="!level" nzValue="2" nzLabel="经营类证照"></nz-option>
<nz-option nzValue="3" nzLabel="资产类证照"></nz-option> <nz-option *ngIf="!level" nzValue="3" nzLabel="资产类证照"></nz-option>
</nz-select> </nz-select>
</nz-form-control> </nz-form-control>
</nz-form-item> </nz-form-item>

6
src/app/pages/audit/audit-record/audit-record.component.ts

@ -20,14 +20,14 @@ export class AuditRecordComponent implements OnInit {
constructor(private element: ElementRef, private modal: NzModalService, private viewContainerRef: ViewContainerRef, private toTree: TreeService, private http: HttpClient, private fb: FormBuilder) { } constructor(private element: ElementRef, private modal: NzModalService, private viewContainerRef: ViewContainerRef, private toTree: TreeService, private http: HttpClient, private fb: FormBuilder) { }
list = [] list = []
level=false level = false
tableScrollHeight tableScrollHeight
resizeListener resizeListener
startdate startdate
enddate enddate
async ngOnInit(): Promise<void> { async ngOnInit(): Promise<void> {
if(JSON.parse(sessionStorage.getItem('userdata')).organization.level==1){ if (JSON.parse(sessionStorage.getItem('userdata')).organization.level == 1) {
this.level=true this.level = true
} }
this.tableScrollHeight = '100px' this.tableScrollHeight = '100px'
// 页面监听 // 页面监听

31
src/app/pages/plan-admin/update-license-list/update-license-list.component.ts

@ -21,7 +21,7 @@ export class UpdateLicenseListComponent implements OnInit {
validateForm!: FormGroup; validateForm!: FormGroup;
constructor(private modal: NzModalService, private viewContainerRef: ViewContainerRef, private element: ElementRef, private navChangeService: NavChangeService, private http: HttpClient, private toTree: TreeService, private fb: FormBuilder, private nzContextMenuService: NzContextMenuService, private router: Router, private message: NzMessageService) { } constructor(private modal: NzModalService, private viewContainerRef: ViewContainerRef, private element: ElementRef, private navChangeService: NavChangeService, private http: HttpClient, private toTree: TreeService, private fb: FormBuilder, private nzContextMenuService: NzContextMenuService, private router: Router, private message: NzMessageService) { }
button=false button = false
tableScrollHeight tableScrollHeight
tableScrollWeight tableScrollWeight
resizeListener resizeListener
@ -149,19 +149,20 @@ export class UpdateLicenseListComponent implements OnInit {
let newArr = [] let newArr = []
for (let index = 0; index < newElement.length; index++) { for (let index = 0; index < newElement.length; index++) {
const item = newElement[index]; const item = newElement[index];
if (item.name == '公司名称') { let arr = [
newArr[0] = item '公司名称', '区域名称', '油站名称', '营业执照', '成品油零售经营批准证书', '危险化学品经营许可证', '食品经营许可证', '烟草经营许可证', '安全生产标准化认证证书', '排污许可证', '防雷检测报告', '计量检测报告', '职业危害因素检测报告', '安全现状评价报告', '安全应急预案备案回执', '环境应急预案备案回执', '油气回收系统年检报告', '大气污染物合规性监测报告', '主要负责人证书', '安全管理人员资格证书1', '安全管理人员资格证书2'
newElement.splice(index--, 1) ]
} for (let i = 0; i < arr.length; i++) {
if (item.name == '区域名称') { const element = arr[i];
newArr[1] = item if (item.name == element) {
newElement.splice(index--, 1) newArr[i] = item
} newElement.splice(index--, 1)
if (item.name == '油站名称') { }
newArr[2] = item
newElement.splice(index--, 1)
} }
} }
newArr = newArr.filter((item) => {
return item
})
let atLastArr = newArr.concat(newElement); let atLastArr = newArr.concat(newElement);
arr.push(atLastArr) arr.push(atLastArr)
}); });
@ -224,10 +225,10 @@ export class UpdateLicenseListComponent implements OnInit {
returnLastMenus() { returnLastMenus() {
let userMenu = JSON.parse(sessionStorage.getItem('userdata')).menus let userMenu = JSON.parse(sessionStorage.getItem('userdata')).menus
for (let index = 0; index < userMenu.length; index++) { for (let index = 0; index < userMenu.length; index++) {
if (userMenu[index].parentId==9) { if (userMenu[index].parentId == 9) {
this.button=true this.button = true
} }
} }
return return

Loading…
Cancel
Save