From 5c992ed4c6bdb91fa73b845fcf32619a4c8529a7 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Wed, 13 Apr 2022 10:51:24 +0800 Subject: [PATCH 01/12] fix bug --- .../complaint-detail/complaint-detail.component.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/routes/order-management/components/complaint-detail/complaint-detail.component.html b/src/app/routes/order-management/components/complaint-detail/complaint-detail.component.html index ecc0d4a2..a9a97694 100644 --- a/src/app/routes/order-management/components/complaint-detail/complaint-detail.component.html +++ b/src/app/routes/order-management/components/complaint-detail/complaint-detail.component.html @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2022-01-04 17:29:18 * @LastEditors : Shiming - * @LastEditTime : 2022-03-29 16:26:09 + * @LastEditTime : 2022-04-13 10:50:02 * @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\complaint-detail\\complaint-detail.component.html * Copyright (C) 2022 huzhenhong. All rights reserved. --> @@ -24,8 +24,12 @@

投诉单号:{{datailList?.complaintCode}}

- + + + + From ab03f77fe46b12b1b8f3c092641baa5971475358 Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Wed, 13 Apr 2022 10:54:24 +0800 Subject: [PATCH 02/12] edit --- src/app/layout/pro/components/widget/widget.component.html | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/layout/pro/components/widget/widget.component.html b/src/app/layout/pro/components/widget/widget.component.html index f16d7571..cd3cb9c9 100644 --- a/src/app/layout/pro/components/widget/widget.component.html +++ b/src/app/layout/pro/components/widget/widget.component.html @@ -1,3 +1,4 @@ +客服电话:0755-88393483 From 7a4e3d4a90ff907210d38c13dc504018be26040c Mon Sep 17 00:00:00 2001 From: wangshiming Date: Wed, 13 Apr 2022 10:57:23 +0800 Subject: [PATCH 03/12] fix bug --- .../vehicle-detail/vehicle-detail.component.html | 7 ++++++- .../components/vehicle-detail/vehicle-detail.component.ts | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html index 30da689b..62309b70 100644 --- a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html +++ b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html @@ -190,7 +190,7 @@ (运费{{ i?.totalFreight | currency }}含附加运费 {{ i?.totalSurcharge | currency }}) -
车队长:{{ i?.payeeName }}/{{ i?.payeePhone }}/{{ i?.payeeCardNo }}
+
车队长:{{ i?.payeeName }}/{{ i?.payeePhone }}/{{ i?.payeeCardNo }}
@@ -220,6 +220,11 @@ [page]="{}" [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }" [res]="{ reName: { list: 'data.records', total: 'data.total' } }"> + +
+ {{ item?.operator }} {{ item?.telephone ? '/' + item?.telephone : '' }} +
+
diff --git a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.ts b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.ts index 4edb9f14..c2af6ae7 100644 --- a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.ts +++ b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.ts @@ -23,7 +23,7 @@ export class SupplyManagementVehicleDetailComponent implements OnInit { } logColumns: STColumn[] = [ { title: '内容', index: 'operationContent' }, - { title: '操作人', index: 'operator' }, + { title: '操作人', render: 'operator' }, { title: '操作时间', index: 'operatorTimestamp' }, ]; totalObj: any; From 5336f93d0a63b3a703b7c0f68152ad1b19b0f53f Mon Sep 17 00:00:00 2001 From: wangshiming Date: Wed, 13 Apr 2022 11:00:56 +0800 Subject: [PATCH 04/12] fix bug --- .../components/vehicle-detail/vehicle-detail.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html index 62309b70..4909c270 100644 --- a/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html +++ b/src/app/routes/supply-management/components/vehicle-detail/vehicle-detail.component.html @@ -94,7 +94,7 @@ 货物信息 - {{ item.goodsName }} + {{ item.goodsTypeName }} - {{ item.goodsName }} {{ item.weight }}吨,{{ item.volume }}方,{{ item.number }}件 From 4ec6d2b7ac8389630ce17c44170956e734eae1b2 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Wed, 13 Apr 2022 11:28:54 +0800 Subject: [PATCH 05/12] fix bug --- .../datascreen/map/map.component.ts | 22 ++++++------------ .../components/risk/risk.component.ts | 23 +++++++++++++++---- 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/src/app/routes/datatable/components/datascreen/map/map.component.ts b/src/app/routes/datatable/components/datascreen/map/map.component.ts index 4df67fe2..a8e5354e 100644 --- a/src/app/routes/datatable/components/datascreen/map/map.component.ts +++ b/src/app/routes/datatable/components/datascreen/map/map.component.ts @@ -1,4 +1,4 @@ -import { Component, ElementRef, Input, NgZone, OnChanges, OnInit, SimpleChanges, ViewChild } from '@angular/core'; +import { Component, ElementRef, Input, NgZone, OnChanges, OnInit, SimpleChanges, ViewChild, AfterViewInit } from '@angular/core'; import { Chart } from '@antv/g2'; import DataSet from '@antv/data-set'; import { DataService } from 'src/app/routes/datatable/services/data.service'; @@ -7,7 +7,7 @@ import { DataService } from 'src/app/routes/datatable/services/data.service'; templateUrl: './map.component.html', styleUrls: ['./map.component.less'] }) -export class DatatableCustomindexMapComponent implements OnInit, OnChanges { +export class DatatableCustomindexMapComponent implements OnInit, OnChanges, AfterViewInit { el: any; @Input() chartData: any; chart: any; @@ -18,6 +18,10 @@ export class DatatableCustomindexMapComponent implements OnInit, OnChanges { userDv: any; userData: any = []; constructor(private service: DataService, private ngZone: NgZone) {} + ngAfterViewInit(): void { + throw new Error('Method not implemented.'); + + } ngOnChanges(changes: SimpleChanges): void { if (this.chartData) { @@ -26,7 +30,7 @@ export class DatatableCustomindexMapComponent implements OnInit, OnChanges { // }, 1000) } } - + ngOnInit(): void {} reRender() { console.log('5454545'); @@ -84,18 +88,6 @@ export class DatatableCustomindexMapComponent implements OnInit, OnChanges { stroke: '#ccc', lineWidth: 1 }); - - // 可视化用户数据 - // this.userData = [ - // { name: '山东', value: 21 }, - // { name: '山东', value: 22}, - // { name: '广东', value: 20, }, - // { name: '广东', value: 20 }, - // { name: '四川', value: 120 }, - // { name: '湖南', value: 200 }, - // { name: '河北', value: 30 }, - - // ]; let value: any = [] this.service.request(this.service.$api_getTransactionDistribution).subscribe((res: any) => { if(res) { diff --git a/src/app/routes/order-management/components/risk/risk.component.ts b/src/app/routes/order-management/components/risk/risk.component.ts index dabb3c30..96aca287 100644 --- a/src/app/routes/order-management/components/risk/risk.component.ts +++ b/src/app/routes/order-management/components/risk/risk.component.ts @@ -202,15 +202,28 @@ export class OrderManagementRiskComponent implements OnInit { } as SFSelectWidgetSchema }, shipperId: { - title: '托运人', type: 'string', + title: '托运人', ui: { - widget: 'dict-select', - params: { dictKey: 'BulkFreightUnitPriceType' }, - containsAllLabel: true, + widget: 'select', + serverSearch: true, + searchDebounceTime: 300, + searchLoadingText: '搜索中...', + allowClear: true, visibleIf: { _$expand: (value: boolean) => value - } + }, + onSearch: (q: any) => { + let str =q.replace(/^\s+|\s+$/g,""); + if (str) { + return this.service + .request(this.service.$api_enterpriceList, { enterpriseName: str }) + .pipe(map((res: any) => (res as any[]).map(i => ({ label: i.enterpriseName, value: i.id } as SFSchemaEnum)))) + .toPromise(); + } else { + return of([]); + } + }, } as SFSelectWidgetSchema }, enterpriseInfoId: { From a8978500d53e73f428d08f0ae5ff9e731cebb182 Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Wed, 13 Apr 2022 13:24:42 +0800 Subject: [PATCH 06/12] edit --- .../components/audit/audit.component.ts | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/app/routes/vehicle/components/audit/audit.component.ts b/src/app/routes/vehicle/components/audit/audit.component.ts index a6bf0fe5..95ad7e8b 100644 --- a/src/app/routes/vehicle/components/audit/audit.component.ts +++ b/src/app/routes/vehicle/components/audit/audit.component.ts @@ -155,19 +155,19 @@ export class VehicleComponentsAuditComponent implements OnInit { // }, // }, // }, - approvalPassTime: { - type: 'string', - title: '审核通过时间', - ui: { - widget: 'sl-from-to-search', - format: 'yyyy-MM-dd', - placeholder: '请选择', - nzShowTime: true, - visibleIf: { - expand: (value: boolean) => value - } - } as SFDateWidgetSchema - } + // approvalPassTime: { + // type: 'string', + // title: '审核通过时间', + // ui: { + // widget: 'sl-from-to-search', + // format: 'yyyy-MM-dd', + // placeholder: '请选择', + // nzShowTime: true, + // visibleIf: { + // expand: (value: boolean) => value + // } + // } as SFDateWidgetSchema + // } } }; this.ui = { '*': { spanLabelFixed: 120, grid: { span: 8, gutter: 4 }, enter: () => this.st.load() } }; From b97e27a2f418d9a0239f1066a6efdba72cfbc046 Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Wed, 13 Apr 2022 13:56:19 +0800 Subject: [PATCH 07/12] edit --- .../components/driver/driver.component.ts | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/app/routes/usercenter/components/driver/driver.component.ts b/src/app/routes/usercenter/components/driver/driver.component.ts index e2e85027..dce18057 100644 --- a/src/app/routes/usercenter/components/driver/driver.component.ts +++ b/src/app/routes/usercenter/components/driver/driver.component.ts @@ -17,7 +17,7 @@ export class UserCenterComponentsDriverComponent implements OnInit { _$expand = false; @ViewChild('st', { static: false }) st!: STComponent; @ViewChild('sf', { static: false }) sf!: SFComponent; - ui: SFUISchema = { '*': { spanLabelFixed: 120, grid: { lg: 8, md: 12, sm: 12, xs: 24 }, enter: () => this.st.load() } }; + ui: SFUISchema = { '*': { spanLabelFixed: 130, grid: { lg: 8, md: 12, sm: 12, xs: 24 }, enter: () => this.st.load() } }; schema: SFSchema = this.initSF(); columns: STColumn[] = this.initST(); @@ -199,10 +199,10 @@ export class UserCenterComponentsDriverComponent implements OnInit { title: '从业资格证状态', enum: [ { label: '全部', value: '' }, - { label: '待审核', value: 10 }, - { label: '审核通过', value: 20 }, - { label: '驳回', value: 30 }, - { label: '证件过期', value: 40 } + { label: '未提交 ', value: -1 }, + { label: '已提交', value: 1 }, + { label: '已通过', value: 2 }, + { label: '已过期', value: 3 } ], default: '', ui: { @@ -302,10 +302,12 @@ export class UserCenterComponentsDriverComponent implements OnInit { type: 'badge', badge: { '-1': { text: '未提交', color: 'default' }, - 10: { text: '待审核', color: 'default' }, - 20: { text: '审核通过', color: 'success' }, - 30: { text: '驳回', color: 'warning' }, - 40: { text: '证件过期', color: 'error' } + 1: { text: '已提交', color: 'processing' }, + 2: { text: '已通过', color: 'success' }, + // 10: { text: '待审核', color: 'default' }, + // 20: { text: '审核通过', color: 'success' }, + // 30: { text: '驳回', color: 'warning' }, + // 40: { text: '证件过期', color: 'error' } }, width: 180 }, From e8172b12b16a149ad734011446e089276dd2527c Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Wed, 13 Apr 2022 14:11:07 +0800 Subject: [PATCH 08/12] edit --- .../components/invoice-detail/invoice-detail.component.html | 2 +- src/app/routes/usercenter/components/driver/driver.component.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/routes/ticket-management/components/invoice-detail/invoice-detail.component.html b/src/app/routes/ticket-management/components/invoice-detail/invoice-detail.component.html index 408d94d9..578086fb 100644 --- a/src/app/routes/ticket-management/components/invoice-detail/invoice-detail.component.html +++ b/src/app/routes/ticket-management/components/invoice-detail/invoice-detail.component.html @@ -118,7 +118,7 @@ (ngModelChange)="invoiceST.setRow(index, { vatname: $event })" style="width: 100%"> - {{ item.vatname }} + {{ item.vatnameLabel || item.vatname }} Date: Wed, 13 Apr 2022 14:16:49 +0800 Subject: [PATCH 09/12] edit --- .../staff-management.component.html | 12 +++++++----- .../staff-management/staff-management.component.ts | 13 ++++++++++--- .../routes/sys-setting/services/system.service.ts | 2 ++ 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/app/routes/sys-setting/components/staff-management/staff-management.component.html b/src/app/routes/sys-setting/components/staff-management/staff-management.component.html index 73157624..3c1580bf 100644 --- a/src/app/routes/sys-setting/components/staff-management/staff-management.component.html +++ b/src/app/routes/sys-setting/components/staff-management/staff-management.component.html @@ -8,7 +8,8 @@ [button]="'none'">
- +
@@ -18,8 +19,9 @@
- - + +
@@ -33,6 +35,6 @@ + [req]="{ params: {nameOrPhone: this.sf.value?.nameOrPhone} }" [loading]="false" [scroll]="{ y: '370px' }" + (change)="stChange($event)"> \ No newline at end of file diff --git a/src/app/routes/sys-setting/components/staff-management/staff-management.component.ts b/src/app/routes/sys-setting/components/staff-management/staff-management.component.ts index bcf5ed41..f29c7b7d 100644 --- a/src/app/routes/sys-setting/components/staff-management/staff-management.component.ts +++ b/src/app/routes/sys-setting/components/staff-management/staff-management.component.ts @@ -32,7 +32,7 @@ export class StaffManagementComponent implements OnInit { { title: '', index: 'key', className: 'text-center', type: 'checkbox' }, { title: '员工姓名', className: 'text-center', index: 'name' }, { title: '手机号码', className: 'text-center', index: 'telephone' }, - { title: '角色',className: 'text-center', index: 'roleName' }, + { title: '角色', className: 'text-center', index: 'roleName' }, { title: '最后登录时间', index: 'lastLoginDate', @@ -67,7 +67,8 @@ export class StaffManagementComponent implements OnInit { }, { text: '冻结', - iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1 && item.telephone !== this.user.phone, + iif: item => + item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1 && item.telephone !== this.user.phone, click: item => this.action(item, 1), acl: { ability: ['SYSTEM-STAFF-lock'] } }, @@ -79,7 +80,8 @@ export class StaffManagementComponent implements OnInit { }, { text: '删除', - iif: item => item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1 && item.telephone !== this.user.phone, + iif: item => + item.stateLocked === 0 && item.roleCode.split(',').indexOf('Administrator') === -1 && item.telephone !== this.user.phone, click: item => this.action(item, 3), acl: { ability: ['SYSTEM-STAFF-delete'] } } @@ -167,6 +169,11 @@ export class StaffManagementComponent implements OnInit { this.sf.reset(); } + exportList() { + const params = { nameOrPhone: this.sf.value?.nameOrPhone }; + this.service.downloadFile(this.service.$api_export_staff, { ...params, pageSize: -1 }); + } + private deleteStaff(params: any) { this.service.request(this.service.$api_delete_staff, params).subscribe(res => { if (res) { diff --git a/src/app/routes/sys-setting/services/system.service.ts b/src/app/routes/sys-setting/services/system.service.ts index 0a698775..208ea905 100644 --- a/src/app/routes/sys-setting/services/system.service.ts +++ b/src/app/routes/sys-setting/services/system.service.ts @@ -15,6 +15,8 @@ import { BaseService } from 'src/app/shared/services'; export class SystemService extends BaseService { // 分页查询企业项目员工列表 $api_get_enterprise_staff_page = '/api/mdc/cuc/userApp/getEnterpriseProjectStaffListPage'; + // 分页查询企业项目员工列表 + $api_export_staff = '/api/mdc/cuc/userApp/enterpriseProjectStaffExport'; // 添加员工 $api_add_staff = '/api/mdc/cuc/userApp/addStaff'; // 编辑员工 From 567f825e62e5370ec27e2d1b94b95c10d59ad429 Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Wed, 13 Apr 2022 14:21:44 +0800 Subject: [PATCH 10/12] edit --- .../cancellation-invoice.component.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/routes/ticket-management/components/cancellation-invoice/cancellation-invoice.component.ts b/src/app/routes/ticket-management/components/cancellation-invoice/cancellation-invoice.component.ts index 0429894f..39e8bd93 100644 --- a/src/app/routes/ticket-management/components/cancellation-invoice/cancellation-invoice.component.ts +++ b/src/app/routes/ticket-management/components/cancellation-invoice/cancellation-invoice.component.ts @@ -256,7 +256,7 @@ export class CancellationInvoiceComponent implements OnInit { hidden: true } }, - vatappHId: { + vatappHCode: { type: 'string', title: '申请编号', ui: { @@ -330,18 +330,18 @@ export class CancellationInvoiceComponent implements OnInit { private initST(): STColumn[] { return [ { title: '', index: 'key', type: 'checkbox', fixed: 'left', width: 50, className: 'text-center' }, - { title: '分票编号', render: 'vatinvcode', width: 200 }, + { title: '分票编号', render: 'vatinvcode', width: 220 }, { title: '申请编号', index: 'vatappHCode', - width: 150, + width: 220, type: 'link', click: item => this.router.navigate(['/ticket/invoice-requested/detail/' + item?.vatappHId]) }, { title: '申请时间', index: 'createTime', type: 'date', width: 150 }, { title: '发票类型', index: 'vatapptypeLabel', width: 150 }, - { title: '网络货运人', index: 'ltdName', width: 160 }, - { title: '购买人', index: 'artoname', width: 160 }, + { title: '网络货运人', index: 'ltdName', width: 220 }, + { title: '购买人', index: 'artoname', width: 220 }, { title: '订单数', index: 'ordlines', width: 90, className: 'text-right' }, { title: '价税合计', @@ -376,7 +376,7 @@ export class CancellationInvoiceComponent implements OnInit { }, { title: '服务名称', index: 'vatname', width: 120 }, { title: '销货清单', index: 'isdetail', width: 120, type: 'enum', enum: { 1: '是', 0: '否' }, className: 'text-center' }, - { title: '票面备注', index: 'remarks', width: 250 }, + { title: '票面备注', index: 'remarks', width: 300 }, { title: '其他要求', index: 'otherremarks', width: 100 }, { title: '操作', From a086f5bc8ce5e31de5d9f70b72e54d47fffa9483 Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Wed, 13 Apr 2022 14:44:49 +0800 Subject: [PATCH 11/12] edit --- .../components/bulk-detail/bulk-detail.component.ts | 4 +++- .../components/vehicle-detail/vehicle-detail.component.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/routes/order-management/components/bulk-detail/bulk-detail.component.ts b/src/app/routes/order-management/components/bulk-detail/bulk-detail.component.ts index e17ffb5e..86260c56 100644 --- a/src/app/routes/order-management/components/bulk-detail/bulk-detail.component.ts +++ b/src/app/routes/order-management/components/bulk-detail/bulk-detail.component.ts @@ -90,7 +90,9 @@ export class OrderManagementBulkeDetailComponent implements OnInit { markerLabel: '装', color: 'blue', position: [res.startingPoint.longitude, res.startingPoint.latitude], - title: `发货地:${res.startingPoint.province}${res.startingPoint.city}${res.startingPoint.area}${res.startingPoint.detailedAddress}`, + title: `发货地:${res.startingPoint.province}${res.startingPoint.city}${res.startingPoint.area || ''}${ + res.startingPoint.detailedAddress + }`, time: '计划出发时间:' + res.loadPlanTime }, { diff --git a/src/app/routes/order-management/components/vehicle-detail/vehicle-detail.component.ts b/src/app/routes/order-management/components/vehicle-detail/vehicle-detail.component.ts index 3d5c822c..db239095 100644 --- a/src/app/routes/order-management/components/vehicle-detail/vehicle-detail.component.ts +++ b/src/app/routes/order-management/components/vehicle-detail/vehicle-detail.component.ts @@ -80,7 +80,7 @@ export class OrderManagementVehicleDetailComponent implements OnInit { markerLabel: '装', color: 'blue', position: [res.startingPoint.longitude, res.startingPoint.latitude], - title: `发货地:${res.startingPoint.province}${res.startingPoint.city}${res.startingPoint.area}${res.startingPoint.detailedAddress}`, + title: `发货地:${res.startingPoint.province}${res.startingPoint.city}${res.startingPoint.area || ''}${res.startingPoint.detailedAddress}`, time: '计划出发时间:' +res.loadPlanTime }, { From d75f859b501beeb0d878f8ab72c7f9b692d25ad6 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Wed, 13 Apr 2022 15:10:35 +0800 Subject: [PATCH 12/12] fix bug --- .../datatable/components/datascreen/map/map.component.html | 4 ++-- .../datatable/components/datascreen/map/map.component.ts | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/app/routes/datatable/components/datascreen/map/map.component.html b/src/app/routes/datatable/components/datascreen/map/map.component.html index f82fc220..80ed7c86 100644 --- a/src/app/routes/datatable/components/datascreen/map/map.component.html +++ b/src/app/routes/datatable/components/datascreen/map/map.component.html @@ -4,8 +4,8 @@ * @Author : Shiming * @Date : 2022-04-06 17:57:07 * @LastEditors : Shiming - * @LastEditTime : 2022-04-13 10:17:44 + * @LastEditTime : 2022-04-13 14:30:10 * @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\datascreen\\map\\map.component.html * Copyright (C) 2022 huzhenhong. All rights reserved. --> - \ No newline at end of file + \ No newline at end of file diff --git a/src/app/routes/datatable/components/datascreen/map/map.component.ts b/src/app/routes/datatable/components/datascreen/map/map.component.ts index a8e5354e..23d25d80 100644 --- a/src/app/routes/datatable/components/datascreen/map/map.component.ts +++ b/src/app/routes/datatable/components/datascreen/map/map.component.ts @@ -10,6 +10,8 @@ import { DataService } from 'src/app/routes/datatable/services/data.service'; export class DatatableCustomindexMapComponent implements OnInit, OnChanges, AfterViewInit { el: any; @Input() chartData: any; + @ViewChild('auditModal', { static: false }) auditModal!: any; + @ViewChild('map',{static: false}) map!: any; chart: any; mapData: any; ds!: DataSet ; @@ -19,8 +21,8 @@ export class DatatableCustomindexMapComponent implements OnInit, OnChanges, Afte userData: any = []; constructor(private service: DataService, private ngZone: NgZone) {} ngAfterViewInit(): void { - throw new Error('Method not implemented.'); - + this.map.el.nativeElement.style.height = this.map.el.nativeElement.clientWidth + 'px' + this.chart.render(); } ngOnChanges(changes: SimpleChanges): void {