Commit 33886bcf authored by 李维's avatar 李维

在表单中添加基础信息设置

parent ab7a0a67
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
...@@ -2,6 +2,21 @@ ...@@ -2,6 +2,21 @@
<div style="padding: 20px;"> <div style="padding: 20px;">
<div style="margin: 30px;"></div> <div style="margin: 30px;"></div>
<button nz-button nzType="primary" (click)="handleClickScrollBottom()"><span nz-icon nzType="vertical-align-bottom"></span>到页面底部</button> <button nz-button nzType="primary" (click)="handleClickScrollBottom()"><span nz-icon nzType="vertical-align-bottom"></span>到页面底部</button>
<h2 style="margin-top: 10px;">基础信息</h2>
<div style="font-size: 16px; border: 2px solid #ccc; border-radius: 10px; padding: 10px; height: 150px;">
<div style="margin: 10px 10px;">
<span style="display: inline-block; text-align: right; width: 150px;">单元名称:</span>
<input type="text" nz-input [(ngModel)]="item.unitName" (blur)="save()" style="display: inline-block; width: 300px;">
</div>
<div style="margin: 10px 10px;">
<span style="display: inline-block; text-align: right; width: 150px;">作者:</span>
<input type="text" nz-input [(ngModel)]="item.author" (blur)="save()" style="display: inline-block; width: 300px;">
</div>
<div style="margin: 10px 10px;">
<span style="display: inline-block; text-align: right; width: 150px;">上次修改:</span>
<span>{{item.lastModify}}</span>
</div>
</div>
<h2 style="margin-top: 10px;">页头-页尾配置</h2> <h2 style="margin-top: 10px;">页头-页尾配置</h2>
<div style="font-size: 16px; border: 2px solid #ccc; border-radius: 10px; padding: 10px; display: flex; height: 220px;"> <div style="font-size: 16px; border: 2px solid #ccc; border-radius: 10px; padding: 10px; display: flex; height: 220px;">
<div style="width: 200px; height: 152px;"> <div style="width: 200px; height: 152px;">
......
...@@ -730,6 +730,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni ...@@ -730,6 +730,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
} else { } else {
(<any>window).courseware.setData(this.item, null, this.saveKey); (<any>window).courseware.setData(this.item, null, this.saveKey);
this.refresh(); this.refresh();
this.item.lastModify = new Date()
console.log(this.item) console.log(this.item)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment