14 changed files with 860 additions and 43 deletions
@ -0,0 +1,46 @@ |
|||||||
|
<!-- |
||||||
|
* @Descripttion: |
||||||
|
* @version: |
||||||
|
* @Author: sueRimn |
||||||
|
* @Date: 2021-06-02 15:15:15 |
||||||
|
* @LastEditors: sueRimn |
||||||
|
* @LastEditTime: 2021-09-02 15:10:45 |
||||||
|
--> |
||||||
|
<div class="box"> |
||||||
|
<div class="top"> |
||||||
|
<span style="font-size: 20px;">新增内容</span> |
||||||
|
</div> |
||||||
|
<div class="queryField"> |
||||||
|
<label style="margin-right: 10px;">类型:</label> |
||||||
|
<mat-form-field> |
||||||
|
<mat-select placeholder='请选择类型' name="level" [(ngModel)]="level" required> |
||||||
|
<mat-option value=1>表格</mat-option> |
||||||
|
<mat-option value=2>输入框</mat-option> |
||||||
|
<mat-option value=3>文本区域</mat-option> |
||||||
|
<mat-option value=4>图片</mat-option> |
||||||
|
</mat-select> |
||||||
|
</mat-form-field> |
||||||
|
</div> |
||||||
|
<div class="queryField"> |
||||||
|
<label style="margin-right: 10px;">名称:</label> |
||||||
|
<mat-form-field class="example-full-width"> |
||||||
|
<input matInput placeholder="请输入表头名称" [(ngModel)]="headName" autocomplete="off" required> |
||||||
|
</mat-form-field> |
||||||
|
</div> |
||||||
|
<div class="queryField" *ngIf="level==2"> |
||||||
|
<label style="margin-right: 10px;">列数:</label> |
||||||
|
<mat-form-field class="example-full-width"> |
||||||
|
<input matInput type="number" [(ngModel)]="lieNumber" autocomplete="off" required min="1"> |
||||||
|
</mat-form-field> |
||||||
|
</div> |
||||||
|
<div class="queryField" *ngIf="level==2"> |
||||||
|
<label style="margin-right: 10px;">行数:</label> |
||||||
|
<mat-form-field class="example-full-width"> |
||||||
|
<input matInput type="number" [(ngModel)]="hNumber" autocomplete="off" required min="1"> |
||||||
|
</mat-form-field> |
||||||
|
</div> |
||||||
|
<div class="bottom"> |
||||||
|
<button mat-raised-button color="primary" (click)='newdisaster()'>确定</button> |
||||||
|
<button mat-raised-button style="margin-left: 50px;" (click)='close()'>取消</button> |
||||||
|
</div> |
||||||
|
</div> |
@ -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; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,27 @@ |
|||||||
|
<!-- |
||||||
|
* @Descripttion: |
||||||
|
* @version: |
||||||
|
* @Author: sueRimn |
||||||
|
* @Date: 2021-09-03 15:03:40 |
||||||
|
* @LastEditors: sueRimn |
||||||
|
* @LastEditTime: 2021-09-04 14:34:47 |
||||||
|
--> |
||||||
|
<div class="titlebox"> |
||||||
|
<div class="top"> |
||||||
|
<span style="font-size: 20px;">{{data.type=='新建'?'新建':'更改'}}</span> |
||||||
|
</div> |
||||||
|
<!-- <div class="queryField"> |
||||||
|
<label style="margin-right: 10px;">预案名称:</label> |
||||||
|
<mat-form-field class="example-full-width"> |
||||||
|
<input matInput placeholder="请输入预案名称" name="companyName" autocomplete="off" [(ngModel)]="planname" required> |
||||||
|
</mat-form-field> |
||||||
|
</div> --> |
||||||
|
|
||||||
|
<div class="queryField"> |
||||||
|
<input type="text" placeholder="请输入名称" [(ngModel)]="planname"> |
||||||
|
</div> |
||||||
|
<div class="bottom"> |
||||||
|
<button mat-raised-button color="primary" (click)='planName()'>确定</button> |
||||||
|
<button mat-raised-button style="margin-left: 50px;" (click)="close()">取消</button> |
||||||
|
</div> |
||||||
|
</div> |
After Width: | Height: | Size: 434 B |
After Width: | Height: | Size: 175 B |
After Width: | Height: | Size: 427 B |
Loading…
Reference in new issue