From 6684e138329462d94c690624d99160c33cf157a7 Mon Sep 17 00:00:00 2001 From: chenjingyu Date: Mon, 6 Sep 2021 17:15:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E5=9B=9B=E7=BA=A7?= =?UTF-8?q?=E9=A2=84=E6=A1=88=E5=9C=A8=E7=BA=BF=E7=BC=96=E5=88=B6=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../create-plan-online-five/Disaster.html | 46 ++++ .../create-plan-online-five/addKeyname.scss | 80 +++++++ .../create-plan-online-five.component.html | 107 ++++++++- .../create-plan-online-five.component.scss | 161 ++++++++++++- .../create-plan-online-five.component.ts | 220 +++++++++++++++++- .../create-plan-online-five/newTitle.html | 27 +++ .../plan-management/plan-management.module.ts | 5 +- .../plan-template.component.html | 2 +- 8 files changed, 636 insertions(+), 12 deletions(-) create mode 100644 src/app/plan-management/create-plan-online-five/Disaster.html create mode 100644 src/app/plan-management/create-plan-online-five/addKeyname.scss create mode 100644 src/app/plan-management/create-plan-online-five/newTitle.html diff --git a/src/app/plan-management/create-plan-online-five/Disaster.html b/src/app/plan-management/create-plan-online-five/Disaster.html new file mode 100644 index 0000000..a82bacd --- /dev/null +++ b/src/app/plan-management/create-plan-online-five/Disaster.html @@ -0,0 +1,46 @@ + +
+
+ 新增内容 +
+
+ + + + 表格 + 输入框 + 文本区域 + 图片 + + +
+
+ + + + +
+
+ + + + +
+
+ + + + +
+
+ + +
+
\ No newline at end of file diff --git a/src/app/plan-management/create-plan-online-five/addKeyname.scss b/src/app/plan-management/create-plan-online-five/addKeyname.scss new file mode 100644 index 0000000..149a11a --- /dev/null +++ b/src/app/plan-management/create-plan-online-five/addKeyname.scss @@ -0,0 +1,80 @@ +.box{ + height: 100%; + width: 100%; + display: flex; + flex-direction: column; +} +.queryField { + margin: 3px 5px; + input { + width: 100%; + height: 18px; + line-height: 18px; + border-radius: 3px;} + button{ + width: 140px; + font-size: 16px; + } + } + .top{ + width: 100%; + margin-bottom: 20px; + span{ + color: #2196F3; + margin-left: 100px; + font-size: 18px; + } + } + .bottom{ + margin: 10% 30px; + /* margin-bottom: 10%; + margin-left: 30px; + margin-right: 30px; */ + button{ + width: 80px; + height: 36px; + font-size: 16px; + } + } + .fileinput-button { + width: 148px; + height: 36px; + top: 10px; + position: relative; + display: inline-block; + overflow: hidden; + background-color: #2196F3; + color: #FFFFFF; + font-size: 16px; +} + +.fileinput-button input{ + position: absolute; + right: 0px; + top: 0px; + opacity: 0; + -ms-filter: 'alpha(opacity=0)'; +} + +.uping{ + display:flex; + .upclass{ + margin-left: 3px; + height: 30px; + } + .progress{ + position: relative; + top:3% + } + button{ + width: 80px; + height: 30px; + font-size: 10px; + margin-top: 5px; + } + span{ + font-size: 10px; + position: relative; + top: 8px; + } +} diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html index 27ac5ee..305830c 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html @@ -2,9 +2,12 @@
- {{key + 1}}.{{item.groupName}} + + {{item.groupName!='新建'?key + 1:''}}.{{item.groupName}} + +
@@ -22,8 +25,8 @@
-
+ *ngIf="pattern == 'edit' && (selectedItem == '重点图示' || selectedItem == '交通水源' || selectedItem == '预案附件' || selectedItem == '单位概况')||(selectedItem!='灾情设定'&&selectedItem!='力量调集'&&selectedItem!='组织指挥'&&selectedItem!='作战行动'&&selectedItem!='社会联动'&&selectedItem!='勤务保障'&&selectedItem!='特别警示'&&selectedItem!='辅助决策'&&selectedItem!='处置要点'&&tuTrue)"> +
重点图示
@@ -259,7 +262,7 @@
-
+

@@ -425,13 +428,14 @@

-
+
{{item.groupName}}
+
+
+ + +
+
+
+
+ + + +
+
+ + + + + + + + + + +
+ + +
+ + + +
+
+
+ + +
+
+
+ +
+
+
+
+
+
+
+ delete + + +
+
+ + +
+
+
+ +
+
+
+
+
+
+ + +
+
+
+ +
+
+ {{data.type=='新建'?'新建':'更改'}} +
+ + +
+ +
+
+ + +
+
\ No newline at end of file diff --git a/src/app/plan-management/plan-management.module.ts b/src/app/plan-management/plan-management.module.ts index b8bfe71..9266f39 100644 --- a/src/app/plan-management/plan-management.module.ts +++ b/src/app/plan-management/plan-management.module.ts @@ -70,11 +70,14 @@ import { UiModule } from '../ui/ui.module'; import { TreeDiagramModule } from '../ui/ng-tree-diagram/src/ng-tree-diagram'; import { KeyUnitModule } from '../key-unit/key-unit.module'; import { yinYong } from './create-plan-online-five/create-plan-online-five.component' +import { newTitle } from './create-plan-online-five/create-plan-online-five.component' +import { disaster } from './create-plan-online-five/create-plan-online-five.component' @NgModule({ declarations: [EntryPlanComponent, PassPlanComponent, OpenPlanComponent, EntryPlanLookComponent, AddPlanone, PlanType, AuditSatus, PlanLevel, DownloadFile, AuditResult, ChangeName, WebLookComponent, OnetwoEntryPlanComponent, newunitComponent, MeetPlanComponent, newunitMeet, TypePlanComponent, newunitType, PsViewer, onetwoAuditResult, meetAuditResult, - typeAuditResult, MaintainUpComponent, GkPsViewer, GkhtmlPsViewer, UnitInfo, ReinforcePlanComponent, state, ImgDetails, CreatePlanOnlineFiveComponent, CreatePlanOnlineThreeComponent, OpenPlanToolDialog,yinYong], + typeAuditResult, MaintainUpComponent, GkPsViewer, GkhtmlPsViewer, UnitInfo, ReinforcePlanComponent, state, ImgDetails, CreatePlanOnlineFiveComponent, CreatePlanOnlineThreeComponent, + OpenPlanToolDialog,yinYong,newTitle,disaster], imports: [ CommonModule, PlanManagementRoutingModule, diff --git a/src/app/ui/plan-template/plan-template.component.html b/src/app/ui/plan-template/plan-template.component.html index 8de5f3a..4d2bb30 100644 --- a/src/app/ui/plan-template/plan-template.component.html +++ b/src/app/ui/plan-template/plan-template.component.html @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2021-05-19 15:50:20 * @LastEditors: sueRimn - * @LastEditTime: 2021-07-02 14:46:11 + * @LastEditTime: 2021-09-04 11:13:31 -->
From 37ef7da2e9d624a45f0c9faaa943cd56668f7e93 Mon Sep 17 00:00:00 2001 From: chenjingyu Date: Fri, 10 Sep 2021 15:18:51 +0800 Subject: [PATCH 2/2] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=B8=8A=E6=B5=B7=E6=80=BB=E9=98=9F=E7=9A=84?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../create-plan-online-five.component.html | 8 +- .../create-plan-online-five.component.scss | 16 +- .../statistic-analysis/home/home.component.ts | 7 +- .../plan-template.component.html | 40 ++-- .../plan-template.component.scss | 16 +- .../plan-template/plan-template.component.ts | 174 +++++++++++++++++- src/assets/images/downpaixu.png | Bin 0 -> 434 bytes src/assets/images/routleft.png | Bin 0 -> 175 bytes src/assets/images/toppaixu.png | Bin 0 -> 427 bytes 9 files changed, 227 insertions(+), 34 deletions(-) create mode 100644 src/assets/images/downpaixu.png create mode 100644 src/assets/images/routleft.png create mode 100644 src/assets/images/toppaixu.png diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html index 305830c..0722c08 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.html @@ -442,7 +442,7 @@ flex-direction: column;">
diff --git a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss index 53bf70f..9a7c908 100644 --- a/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss +++ b/src/app/plan-management/create-plan-online-five/create-plan-online-five.component.scss @@ -468,7 +468,7 @@ .boxBodyHead { width: 100%; height: 40px; - background-color: #ffd91d; + background-color: #FFFBE8; text-align: center; span { font-size: 16px; @@ -731,7 +731,7 @@ .attackhead { width: 100%; height: 40px; - background-color: #ffd91d; + background-color: #FFFBE8; text-align: center; span { font-size: 16px; @@ -833,7 +833,7 @@ .fileHead{ height: 40px; width: 100%; - background-color: #ffd91d; + background-color: #FFFBE8; text-align: center; span { font-size: 16px; @@ -896,14 +896,14 @@ .partsHead{ width: 100%; height: 40px; - background-color: #ffd91d; + background-color: #FFFBE8; text-align: center; input{ height: 40px; font-size: 16px; border: none; outline: none; - background-color: #ffd91d; + background-color: #FFFBE8; color: #b99a00; } img { @@ -1038,9 +1038,9 @@ .attackleftHead { width: 100%; height: 40px; - background-color: #ffd91d; + background-color: #FFFBE8; input { - background-color: #ffd91d; + background-color: #FFFBE8; color: #b99a00; text-align: center; height: 100%; @@ -1202,7 +1202,7 @@ width: 100%; height: 40px; margin-top: 3%; - background-color: #ffd91d; + background-color: #FFFBE8; text-align: center; span { font-size: 16px; diff --git a/src/app/statistic-analysis/home/home.component.ts b/src/app/statistic-analysis/home/home.component.ts index 996420f..ee23787 100644 --- a/src/app/statistic-analysis/home/home.component.ts +++ b/src/app/statistic-analysis/home/home.component.ts @@ -350,8 +350,11 @@ export class HomeComponent implements OnInit { this.addydata = [] this.addtable = JSON.parse(JSON.stringify(this.emitService.allDate)) this.addtable[0].organizationStatistics.organizations.forEach((value, index, array) => { - this.addxdata.push(array[index].organizationName) - this.addydata.push(array[index].count) + if(array[index].organizationId!='5687316efa75479d96c0091a167a3b84'&&array[index].organizationName!='上海总队'){ + this.addxdata.push(array[index].organizationName) + this.addydata.push(array[index].count) + } + }); let chartDwsjcjOptionsZhi = { // 标题 diff --git a/src/app/ui/plan-template/plan-template.component.html b/src/app/ui/plan-template/plan-template.component.html index 4d2bb30..6adc72b 100644 --- a/src/app/ui/plan-template/plan-template.component.html +++ b/src/app/ui/plan-template/plan-template.component.html @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2021-05-19 15:50:20 * @LastEditors: sueRimn - * @LastEditTime: 2021-09-04 11:13:31 + * @LastEditTime: 2021-09-10 10:33:07 -->
@@ -48,20 +48,24 @@
- +
+ {{item.groupName}}
+ +
- + 编辑
- + 删除
@@ -73,7 +77,7 @@
- + @@ -85,6 +89,8 @@ + +
@@ -131,11 +137,14 @@ 操作 - + {{attinf.propertyName}} {{attinf.propertyType==0?'单行文本':attinf.propertyType==1?'多行文本':'数值'}} - + + + 删除 @@ -149,7 +158,7 @@ style="box-shadow: 0 0 black;border: 1px solid #EEF1F5;height: 100%;" [disabled]='groupPanle==true'> + style="background-color: #FFFBE8;">
@@ -162,6 +171,9 @@ + + +
@@ -180,8 +192,10 @@ 文本类型 - - 删除 + + + 删除 + @@ -207,6 +221,8 @@
+ +
- +
diff --git a/src/app/ui/plan-template/plan-template.component.scss b/src/app/ui/plan-template/plan-template.component.scss index 1181a0d..f310b98 100644 --- a/src/app/ui/plan-template/plan-template.component.scss +++ b/src/app/ui/plan-template/plan-template.component.scss @@ -4,7 +4,7 @@ * @Author: sueRimn * @Date: 2021-05-19 15:50:20 * @LastEditors: sueRimn - * @LastEditTime: 2021-08-02 09:47:06 + * @LastEditTime: 2021-09-08 14:38:47 */ .box { height: 100%; @@ -157,6 +157,7 @@ .panelhead { background-color: #e1f1ff; height: 50px; + margin-top: 10px; .paneltitle { width: 100%; font-size: 16px; @@ -165,6 +166,9 @@ //justify-content: space-around; .groupName { width: 100px; + span{ + margin-left: 3px; + } } .caozuotwo{ width: 100%; @@ -218,6 +222,7 @@ margin-top: 8px; } img { + cursor: pointer; position: relative; bottom: 2px; } @@ -254,10 +259,12 @@ .attackleftHead { width: 100%; height: 40px; - background-color: #ffd91d; + //background-color: #ffd91d; + background-color: #FFFBE8; + opacity: 0.7; input { - background-color: #ffd91d; - color: #b99a00; + background-color: #FFFBE8; + color: #B99A00; text-align: center; height: 100%; width: 100%; @@ -316,6 +323,7 @@ float: right; margin-top: 20px; margin-right: 8%; + cursor: pointer; //margin-left: 40%; } } diff --git a/src/app/ui/plan-template/plan-template.component.ts b/src/app/ui/plan-template/plan-template.component.ts index 8946103..b64a32d 100644 --- a/src/app/ui/plan-template/plan-template.component.ts +++ b/src/app/ui/plan-template/plan-template.component.ts @@ -4,16 +4,16 @@ * @Author: sueRimn * @Date: 2021-05-31 10:40:01 * @LastEditors: sueRimn - * @LastEditTime: 2021-09-02 14:06:11 + * @LastEditTime: 2021-09-09 15:09:39 */ -import { Component, Inject, OnInit,ViewEncapsulation } from '@angular/core'; +import { Component, Inject, OnInit,ViewEncapsulation,ViewChild } from '@angular/core'; import { HttpClient } from '@angular/common/http' import { MatDialogRef, MatDialog, MAT_DIALOG_DATA } from '@angular/material/dialog'; import { MatSnackBar, MatSnackBarConfig } from '@angular/material/snack-bar'; import {FlatTreeControl, NestedTreeControl} from '@angular/cdk/tree'; import {MatTreeFlatDataSource, MatTreeFlattener, MatTreeNestedDataSource} from '@angular/material/tree'; - +import {MatAccordion} from '@angular/material/expansion'; @Component({ selector: 'app-plan-template', //encapsulation: ViewEncapsulation.None, @@ -21,7 +21,7 @@ import {MatTreeFlatDataSource, MatTreeFlattener, MatTreeNestedDataSource} from ' styleUrls: ['./plan-template.component.scss'] }) export class PlanTemplateComponent implements OnInit { - + @ViewChild(MatAccordion) accordion: MatAccordion; constructor(private http:HttpClient,public dialog: MatDialog,public snackBar: MatSnackBar) { @@ -345,6 +345,8 @@ export class PlanTemplateComponent implements OnInit { console.log(this.newleftTabledata) }); } + this.groupPanle=true + this.accordion.closeAll() } //删除具体属性 delAttribute(groupName,surveyName){ @@ -555,7 +557,169 @@ export class PlanTemplateComponent implements OnInit { //单位基本信息和建筑信息表格 displayedColumns: string[] = ['name','level','default','must', 'danwei','operation']; - + //展开按钮 + openKey=100 + openpan(key){ + this.openKey=key + } + //展开的内容关闭 + closepan(){ + this.openKey=100 + } + //向上排序 + topPai(key){ + var temp + if(key==0){ + /* for(var i=this.group.length;i>0;i--){ + if(this.group[i].completed){ + temp=this.group[i] + this.group[i]=this.group[key] + for(var a=i-1;a<=0;a--){ + var tempa + tempa=this.group[a-1] + this.group[a-1]=this.group[a] + this.group[a-1]=tempa + } + } + + } */ + }else if(key!=0){ + for(var i=key-1;i>=0;i--){ + if(this.group[i].completed){ + temp=this.group[i] + this.group[i]=this.group[key] + this.group[key]=temp + return + } + + } + + } + //this.accordion.openAll() + } + //向下排序 + downPai(key){ + var temp + /* for (let index = this.group.length-1; index > this.group.length; index--) { + if(this.group[index].completed&&key==index){ + return + }else{ + + } + + } */ + if(key!=this.group.length-1){ + for (let index = key+1; index < this.group.length; index++) { + if(this.group[index].completed){ + temp=this.group[index] + this.group[index]=this.group[key] + this.group[key]=temp + return + } + + } + + } + //this.accordion.openAll() + } + //第二层向上排序 + zaiTop(zi,attributei){ + var temp + if(attributei!=0){ + for (let index = attributei-1; index >=0; index--) { + if(this.group[zi].attribute[index].completed){ + temp=this.group[zi].attribute[index] + this.group[zi].attribute[index]=this.group[zi].attribute[attributei] + this.group[zi].attribute[attributei]=temp + return + } + + } + + } + //this.accordion.openAll() + } + //第二层向下排序 + zaiDown(zi,attributei){ + var temp + if (attributei!=this.group[zi].attribute.length-1) { + for (let index = attributei+1; index < this.group[zi].attribute.length; index++) { + if(this.group[zi].attribute[index].completed){ + temp=this.group[zi].attribute[index] + this.group[zi].attribute[index]=this.group[zi].attribute[attributei] + this.group[zi].attribute[attributei]=temp + return + } + + } + + } + //this.accordion.openAll() + } + //单位概况第三层向上排序 + threeTop(zi,attributei,attfi){ + var temp + if(attfi!=0){ + for (let index = attfi-1; index >=0; index--) { + if(this.group[zi].attribute[attributei].attinf[index].completed){ + temp=this.group[zi].attribute[attributei].attinf[index] + this.group[zi].attribute[attributei].attinf[index]=this.group[zi].attribute[attributei].attinf[attfi] + this.group[zi].attribute[attributei].attinf[attfi]=temp + return + } + + } + + } + } + //单位概况第三层向下排序 + threeDown(zi,attributei,attfi){ + var temp + if (attfi!=this.group[zi].attribute[attributei].attinf.length-1) { + for (let index = attfi+1; index < this.group[zi].attribute[attributei].attinf.length; index++) { + if(this.group[zi].attribute[attributei].attinf[index].completed){ + temp=this.group[zi].attribute[attributei].attinf[index] + this.group[zi].attribute[attributei].attinf[index]=this.group[zi].attribute[attributei].attinf[attfi] + this.group[zi].attribute[attributei].attinf[attfi]=temp + return + } + + } + + } + } + //消防设施表格向上排序 + fileTop(zi,attributei,attfi,fi){ + var temp + if(fi!=0){ + for (let index = fi-1; index >=0; index--) { + if(this.group[zi].attribute[attributei].attinf[attfi].facilityItems[index].completed){ + temp=this.group[zi].attribute[attributei].attinf[attfi].facilityItems[index] + this.group[zi].attribute[attributei].attinf[attfi].facilityItems[index]=this.group[zi].attribute[attributei].attinf[attfi].facilityItems[fi] + this.group[zi].attribute[attributei].attinf[attfi].facilityItems[fi]=temp + return + } + + } + + } + } + //消防设施表格向下排序 + fileDown(zi,attributei,attfi,fi){ + var temp + if (attfi!=this.group[zi].attribute[attributei].attinf[attfi].facilityItems.length-1) { + for (let index = fi+1; index < this.group[zi].attribute[attributei].attinf[attfi].facilityItems.length; index++) { + if(this.group[zi].attribute[attributei].attinf[attfi].facilityItems[index].completed){ + temp=this.group[zi].attribute[attributei].attinf[attfi].facilityItems[index] + this.group[zi].attribute[attributei].attinf[attfi].facilityItems[index]=this.group[zi].attribute[attributei].attinf[attfi].facilityItems[fi] + this.group[zi].attribute[attributei].attinf[attfi].facilityItems[fi]=temp + return + } + + } + + } + } } //新建预案 @Component({ diff --git a/src/assets/images/downpaixu.png b/src/assets/images/downpaixu.png new file mode 100644 index 0000000000000000000000000000000000000000..c6fc2c03209a11418a39670b0511d964cc7c7d6e GIT binary patch literal 434 zcmV;j0ZsmiP)Px$Y)M2xR5(wqls!uWK@f)D**heXOC*XQ_>l|P*r)dgSZX8KS@>}g6|oZxSXf%b zyGs!Z(L#TK|3I*{u&}%!f=GnKO%XzJBPU$Ae7F+GR?E!r%sVf$ONgAbD_6DJodt=3irPLZZ~KXt ze-(|)qX0B}$x~x!7*S{wvHE+CzM?Vp9u;aEnkIrh>O1WF>t1f+E=;J+w(Bzl-edv2 zi^S9bk?Ba6fNdXK5}=^NN%%yD0tLmUBQFRz0COEg zMhG$;xeOp51u~1oGq1!~C-5tT5*! zmx&FYb;&>Gbtp2LO>2C}@KH#iS|Wabr)tj6|Nncq<@P*tD}491o~K7zF74xj3IT@T XKVD258y6=4EoJa@^>bP0l+XkKgo8l` literal 0 HcmV?d00001 diff --git a/src/assets/images/toppaixu.png b/src/assets/images/toppaixu.png new file mode 100644 index 0000000000000000000000000000000000000000..9ae8701a98fe1a988539b9004f83197e49ab7a8b GIT binary patch literal 427 zcmV;c0aX5pP)Px$Wl2OqR5(walrc-gP!xsFjj{#Tg z1DqMzB_Qoy_xoNdlM~ty0ygaDs*-5s>6odytj%ATC&WLD`m*=oU;jni}60C&rE+G+C_A6S$)z2EFJ??8@%ecGQyV17!0TV~YY@hVUu1RK1Q&Z*8Mm@>)oTCnorcZg8zZyvoG-@@f z%kgJ-7C4&7zY2=T6%b^9yC$%vD~W=W2Rmw=vAPP0J&mXdlRwQ1Z8N2H2kJpm=&p6k z3IvVqzo(;vRAT%%VwSFTHMZyfK$z?#qVhR_wj(CG)K}vNVW1T-Z#ln_ZpX6MeFGs~ Vp{5-DrQ`qr002ovPDHLkV1ijdwi*Bc literal 0 HcmV?d00001