From 83457546087fe89d323dfa59bb290e3128aec2d4 Mon Sep 17 00:00:00 2001 From: YUANYE <418471657@qq.com> Date: Fri, 23 Jul 2021 17:23:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- angular.json | 31 +++++++++++++++++-- .../order-c-list/order-c-list.component.ts | 7 +++-- .../order-k-list/order-k-list.component.ts | 6 ++-- .../price-list/price-list.component.html | 10 ++++++ .../price-list/price-list.component.ts | 2 ++ src/environments/environment.cz.ts | 19 ++++++++++++ 6 files changed, 66 insertions(+), 9 deletions(-) create mode 100644 src/environments/environment.cz.ts diff --git a/angular.json b/angular.json index 0a5bfcf..cc4e66b 100644 --- a/angular.json +++ b/angular.json @@ -97,6 +97,34 @@ "maximumError": "10kb" } ] + }, + "cz": { + "fileReplacements": [ + { + "replace": "src/environments/environment.ts", + "with": "src/environments/environment.cz.ts" + } + ], + "optimization": true, + "outputHashing": "all", + "sourceMap": false, + "extractCss": true, + "namedChunks": false, + "extractLicenses": true, + "vendorChunk": false, + "buildOptimizer": true, + "budgets": [ + { + "type": "initial", + "maximumWarning": "4mb", + "maximumError": "5mb" + }, + { + "type": "anyComponentStyle", + "maximumWarning": "6kb", + "maximumError": "10kb" + } + ] } } }, @@ -108,9 +136,6 @@ "configurations": { "production": { "browserTarget": "high-web:build:production" - }, - "test": { - "browserTarget": "high-web:build:production" } } }, diff --git a/src/app/admin/order/order-c-list/order-c-list.component.ts b/src/app/admin/order/order-c-list/order-c-list.component.ts index c16d2e2..aab9e26 100644 --- a/src/app/admin/order/order-c-list/order-c-list.component.ts +++ b/src/app/admin/order/order-c-list/order-c-list.component.ts @@ -1,13 +1,14 @@ import { Component, OnInit } from '@angular/core'; import {environment} from '../../../../environments/environment'; -import {FormBuilder, FormGroup} from '_@angular_forms@9.0.7@@angular/forms'; import {OrderService} from '../../../services/order.service'; import {IconService} from '../../../services/icon.service'; -import {NzMessageService} from '_ng-zorro-antd@9.3.0@ng-zorro-antd'; -import {Router} from '_@angular_router@9.0.7@@angular/router'; + import {CompanyService} from '../../../services/company.service'; import {MerchantService} from '../../../services/merchant.service'; import {CommonsService} from '../../../services/commons.service'; +import {FormBuilder, FormGroup} from '@angular/forms'; +import {NzMessageService} from 'ng-zorro-antd'; +import {Router} from '@angular/router'; @Component({ selector: 'app-order-c-list', diff --git a/src/app/admin/order/order-k-list/order-k-list.component.ts b/src/app/admin/order/order-k-list/order-k-list.component.ts index acbb0aa..eeb0cd3 100644 --- a/src/app/admin/order/order-k-list/order-k-list.component.ts +++ b/src/app/admin/order/order-k-list/order-k-list.component.ts @@ -1,13 +1,13 @@ import { Component, OnInit } from '@angular/core'; import {environment} from '../../../../environments/environment'; -import {FormBuilder, FormGroup} from '_@angular_forms@9.0.7@@angular/forms'; import {OrderService} from '../../../services/order.service'; import {IconService} from '../../../services/icon.service'; -import {NzMessageService} from '_ng-zorro-antd@9.3.0@ng-zorro-antd'; -import {Router} from '_@angular_router@9.0.7@@angular/router'; import {CompanyService} from '../../../services/company.service'; import {MerchantService} from '../../../services/merchant.service'; import {CommonsService} from '../../../services/commons.service'; +import {FormBuilder, FormGroup} from '@angular/forms'; +import {NzMessageService} from 'ng-zorro-antd'; +import {Router} from '@angular/router'; @Component({ selector: 'app-order-k-list', diff --git a/src/app/admin/recharge-order/price-list/price-list.component.html b/src/app/admin/recharge-order/price-list/price-list.component.html index ae6da51..ae70d10 100644 --- a/src/app/admin/recharge-order/price-list/price-list.component.html +++ b/src/app/admin/recharge-order/price-list/price-list.component.html @@ -56,6 +56,7 @@