fix bug
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { STChange, STColumn, STComponent, STData } from '@delon/abc/st';
|
||||
import { SFComponent, SFSchema, SFUISchema } from '@delon/form';
|
||||
import { NzModalService } from 'ng-zorro-antd/modal';
|
||||
@ -42,7 +42,8 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
enStatusStr3: '正常',
|
||||
unifiedSocialCreditCode3: '常用服务',
|
||||
unifiedSocialCreditCode2: '正常',
|
||||
tenantId: 1
|
||||
tenantId: 1,
|
||||
id: 1
|
||||
},
|
||||
{
|
||||
storeName: '企业名称',
|
||||
@ -55,14 +56,15 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
enStatusStr3: '正常',
|
||||
unifiedSocialCreditCode3: '常用服务',
|
||||
unifiedSocialCreditCode2: '正常',
|
||||
tenantId: 2
|
||||
tenantId: 2,
|
||||
id: 2
|
||||
},
|
||||
]
|
||||
isVisible = false;
|
||||
mdType!: any;
|
||||
cateData = [];
|
||||
// stApi = this.service.$api_get_labelList;
|
||||
constructor(public service: UsermanageService, private router: Router, private modal: NzModalService) {}
|
||||
constructor(public service: UsermanageService, private router: Router, private modal: NzModalService,private ar: ActivatedRoute) {}
|
||||
|
||||
/**
|
||||
* 查询字段个数
|
||||
@ -166,8 +168,8 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
this.columns = [
|
||||
{ title: '企业名称', className: 'text-center', index: 'storeName' },
|
||||
{ title: '联系人', className: 'text-center', index: 'contactsName' },
|
||||
{ title: '税源地', className: 'text-center', render: 'enterpriseName' },
|
||||
{ title: '累计运单金额', className: 'text-center', index: 'unifiedSocialCreditCode' },
|
||||
{ title: '手机号', className: 'text-center', render: 'enterpriseName' },
|
||||
{ title: '申请时间', className: 'text-center', index: 'unifiedSocialCreditCode' },
|
||||
{
|
||||
title: '状态',
|
||||
className: 'text-center',
|
||||
@ -186,7 +188,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
width: '180px',
|
||||
className: 'text-center',
|
||||
buttons: [
|
||||
{ text: '查看', click: (_record) => this.addOne('view', _record) },
|
||||
{ text: '查看', click: (_record) => this.View(_record) },
|
||||
],
|
||||
},
|
||||
];
|
||||
@ -202,14 +204,11 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
/**
|
||||
* 新增实例
|
||||
*/
|
||||
addOne(type: any, record: any) {
|
||||
View(record: any) {
|
||||
console.log(record)
|
||||
// this.router.navigate(['../add'], { relativeTo: this.ar });
|
||||
this.router.navigate(['/cmc/tags/add'], {
|
||||
queryParams: {
|
||||
id: record.id,
|
||||
type,
|
||||
flag: this.tabType,
|
||||
},
|
||||
this.router.navigate(['./view', record.tenantId], {
|
||||
relativeTo: this.ar
|
||||
});
|
||||
}
|
||||
|
||||
@ -289,6 +288,7 @@ export class FreightComponentsEnterpriseAuditComponent implements OnInit {
|
||||
// 切换Tab
|
||||
changeTab(item: any) {
|
||||
this.tabType = item.type;
|
||||
console.log(item)
|
||||
this.sf?.reset();
|
||||
// if (item.type === 3) {
|
||||
// this.stApi = this.service.$api_get_business_labelList;
|
||||
|
||||
Reference in New Issue
Block a user