From a80933c290597707a2df126bd3bc6c47570e21e1 Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Thu, 16 Jun 2022 09:51:15 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E5=AE=8C=E5=96=84=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/pages/home-page/home-page.component.ts | 4 +--- .../update-category/update-category.component.ts | 13 ++++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/app/pages/home-page/home-page.component.ts b/src/app/pages/home-page/home-page.component.ts index 02ece48..ac556e1 100644 --- a/src/app/pages/home-page/home-page.component.ts +++ b/src/app/pages/home-page/home-page.component.ts @@ -45,9 +45,7 @@ export class HomePageComponent implements OnInit { { type: 'pie', radius: ['65%', '75%'], - top: '5%', - // bottom: '-5%', - // right: '77%', + // top: '2%', avoidLabelOverlap: false,//防止标签重叠策略 emphasis: {//中间高亮区域 show: true, diff --git a/src/app/pages/license/update-category/update-category.component.ts b/src/app/pages/license/update-category/update-category.component.ts index 277d057..c4dea10 100644 --- a/src/app/pages/license/update-category/update-category.component.ts +++ b/src/app/pages/license/update-category/update-category.component.ts @@ -157,23 +157,26 @@ export class UpdateCategoryComponent implements OnInit { let newUrl = window.location.protocol + '//' + window.location.host + body.imageUrl body.imageUrl = newUrl } - + if (body.hasAttachmentDefault && body.attachment) { + let newUrl = window.location.protocol + '//' + window.location.host + body.attachment + body.attachment = newUrl + } if (!instance.isSubmit) { - this.http.post('/api/services/app/StationValidityLicense/Create', body).subscribe((data:any) => { + this.http.post('/api/services/app/StationValidityLicense/Create', body).subscribe((data: any) => { this.getStationList(); this.message.create('success', '修改成功!'); }) return false; } else { await new Promise(resolve => { - this.http.post('/api/services/app/StationValidityLicense/Create', body).subscribe((data:any) => { - this.submitReview(data.result).then(res=>{ + this.http.post('/api/services/app/StationValidityLicense/Create', body).subscribe((data: any) => { + this.submitReview(data.result).then(res => { resolve(data); return true; }); }) }) - } + } // return false; } else { this.message.create('warning', '请填写完整!');