Commit 6285b158 authored by 王芬's avatar 王芬

1:修复分页不能点击 2:通道默认值 3:头部增加用户名

parent 9025165d
Pipeline #960 passed with stage
in 0 seconds
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
<i class="io trigger textStyle1 whenHover" [class.i-shou]="!isCollapsed" <i class="io trigger textStyle1 whenHover" [class.i-shou]="!isCollapsed"
[class.i-fang]="isCollapsed" (click)="changeCollapsed()"></i> [class.i-fang]="isCollapsed" (click)="changeCollapsed()"></i>
<label class="loginOut whenHover textStyle1" (click)="loginOut()"> <label class="loginOut whenHover textStyle1" (click)="loginOut()">
<nz-avatar nzSize="small" nzIcon="user"></nz-avatar>
<span style="margin: 0 10px">{{userName}}</span>
<i class="io i-out"></i> <i class="io i-out"></i>
</label> </label>
</nz-header> </nz-header>
......
...@@ -17,6 +17,7 @@ export class LayoutComponent implements OnInit { ...@@ -17,6 +17,7 @@ export class LayoutComponent implements OnInit {
title; title;
bcShow = true; bcShow = true;
selectedItem; selectedItem;
userName;
@ViewChild('trigger') customTrigger: TemplateRef<void>; @ViewChild('trigger') customTrigger: TemplateRef<void>;
@ViewChild('leftmenu') leftmenu: LeftmenuComponent; @ViewChild('leftmenu') leftmenu: LeftmenuComponent;
...@@ -66,6 +67,11 @@ export class LayoutComponent implements OnInit { ...@@ -66,6 +67,11 @@ export class LayoutComponent implements OnInit {
.replace(/\/oldData/g, '/dataMonitoring').split('/'); .replace(/\/oldData/g, '/dataMonitoring').split('/');
} }
}); });
// 获取登录用户信息
this.api.user.getSelfInfo(['', (data: any) => {
this.userName = data.userName;
}]);
} }
loginOut() { loginOut() {
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
</tr> </tr>
</tbody> </tbody>
</nz-table> </nz-table>
<div class="btnLine whenOneLine" style="position: absolute;bottom: 30px;"> <div class="btnLine" style="position: absolute;bottom: 30px;">
<button nz-button [nzType]="'primary'" class="delBtn" [nzLoading]="isLoading" [disabled]="!isCheckedOne" (click)="allDelete()"> <button nz-button [nzType]="'primary'" class="delBtn" [nzLoading]="isLoading" [disabled]="!isCheckedOne" (click)="allDelete()">
<span>{{'delete' | translate}}</span></button> <span>{{'delete' | translate}}</span></button>
<button nz-button class="searchBtn" [nzLoading]="isLoading" [disabled]="!canbind" (click)="allBind()"> <button nz-button class="searchBtn" [nzLoading]="isLoading" [disabled]="!canbind" (click)="allBind()">
......
...@@ -63,7 +63,9 @@ ...@@ -63,7 +63,9 @@
[data]="[{a: 'AI'}, {a: 'AO'}, {a: 'DI'}, {a: 'DO'}]" optL="a" optV="a"></app-search-select> [data]="[{a: 'AI'}, {a: 'AO'}, {a: 'DI'}, {a: 'DO'}]" optL="a" optV="a"></app-search-select>
<div class="searchItem inModal"> <div class="searchItem inModal">
<div class="item-label"><span class="deleteFontColor">* </span>{{'isTag' | translate}}</div> <div class="item-label"><span class="deleteFontColor">* </span>{{'isId' | translate}}
<span nz-tooltip nzTitle="一般通道是id的才选"><i nz-icon nzType="question-circle" nzTheme="outline"></i></span>
</div>
<div class="item-input"> <div class="item-input">
<nz-radio-group [(ngModel)]="req.isTag"> <nz-radio-group [(ngModel)]="req.isTag">
<label nz-radio [nzValue]="1"></label> <label nz-radio [nzValue]="1"></label>
......
...@@ -76,7 +76,7 @@ export class ModuleDetailComponent implements OnInit { ...@@ -76,7 +76,7 @@ export class ModuleDetailComponent implements OnInit {
} }
add() { add() {
this.req = {unit: '-'}; this.req = {unit: '-', isTag: 0, isAlarm: 0};
this.isUpdate = false; this.isUpdate = false;
this.isV = true; this.isV = true;
this.try = { this.try = {
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
</tr> </tr>
</tbody> </tbody>
</nz-table> </nz-table>
<div class="btnLine whenOneLine" style="position: absolute;bottom: 30px;"> <div class="btnLine" style="position: absolute;bottom: 30px;">
<button nz-button class="delBtn" [nzType]="'primary'" [nzLoading]="isLoading" [disabled]="!isCheckedOne" (click)="allDelete()"> <button nz-button class="delBtn" [nzType]="'primary'" [nzLoading]="isLoading" [disabled]="!isCheckedOne" (click)="allDelete()">
<span>{{'delete' | translate}}</span></button> <span>{{'delete' | translate}}</span></button>
<button nz-button class="searchBtn" [nzLoading]="isLoading" [disabled]="!canbind" (click)="allBind()"><span>{{'bind' | translate}}</span> <button nz-button class="searchBtn" [nzLoading]="isLoading" [disabled]="!canbind" (click)="allBind()"><span>{{'bind' | translate}}</span>
......
...@@ -63,7 +63,9 @@ ...@@ -63,7 +63,9 @@
[data]="[{a: 'AI'}, {a: 'AO'}, {a: 'DI'}, {a: 'DO'}]" optL="a" optV="a"></app-search-select> [data]="[{a: 'AI'}, {a: 'AO'}, {a: 'DI'}, {a: 'DO'}]" optL="a" optV="a"></app-search-select>
<div class="searchItem inModal"> <div class="searchItem inModal">
<div class="item-label"><span class="deleteFontColor">* </span>{{'isTag' | translate}}</div> <div class="item-label"><span class="deleteFontColor">* </span>{{'isTag' | translate}}
<span nz-tooltip nzTitle="一般通道是id的才选"><i nz-icon nzType="question-circle" nzTheme="outline"></i></span>
</div>
<div class="item-input"> <div class="item-input">
<nz-radio-group [(ngModel)]="req.isTag"> <nz-radio-group [(ngModel)]="req.isTag">
<label nz-radio [nzValue]="1"></label> <label nz-radio [nzValue]="1"></label>
......
...@@ -67,7 +67,7 @@ export class SensorTopicWayComponent implements OnInit { ...@@ -67,7 +67,7 @@ export class SensorTopicWayComponent implements OnInit {
} }
add() { add() {
this.req = {unit: '-'}; this.req = {unit: '-', isTag: 0, isAlarm: 0};
this.isUpdate = false; this.isUpdate = false;
this.isV = true; this.isV = true;
this.try = { this.try = {
......
...@@ -61,7 +61,9 @@ ...@@ -61,7 +61,9 @@
[data]="[{a: 'AI'}, {a: 'AO'}, {a: 'DI'}, {a: 'DO'}]" optL="a" optV="a"></app-search-select> [data]="[{a: 'AI'}, {a: 'AO'}, {a: 'DI'}, {a: 'DO'}]" optL="a" optV="a"></app-search-select>
<div class="searchItem inModal"> <div class="searchItem inModal">
<div class="item-label"><span class="deleteFontColor">* </span>{{'isTag' | translate}}</div> <div class="item-label"><span class="deleteFontColor">* </span>{{'isId' | translate}}
<span nz-tooltip nzTitle="一般通道是id的才选"><i nz-icon nzType="question-circle" nzTheme="outline"></i></span>
</div>
<div class="item-input"> <div class="item-input">
<nz-radio-group [(ngModel)]="req.isTag"> <nz-radio-group [(ngModel)]="req.isTag">
<label nz-radio [nzValue]="1"></label> <label nz-radio [nzValue]="1"></label>
......
...@@ -76,7 +76,7 @@ export class TopicModuleWayComponent implements OnInit { ...@@ -76,7 +76,7 @@ export class TopicModuleWayComponent implements OnInit {
} }
add() { add() {
this.req = {unit: '-'}; this.req = {unit: '-', isTag: 0, isAlarm: 0};
this.isUpdate = false; this.isUpdate = false;
this.isV = true; this.isV = true;
this.try = { this.try = {
......
...@@ -121,5 +121,6 @@ ...@@ -121,5 +121,6 @@
"moduleAlias": "通道别名", "moduleAlias": "通道别名",
"isAlarm": "是否报警", "isAlarm": "是否报警",
"isTag": "是否为标签", "isTag": "是否为标签",
"isId": "是否为索引",
"saveOther": "另存为" "saveOther": "另存为"
} }
...@@ -121,5 +121,6 @@ ...@@ -121,5 +121,6 @@
"moduleAlias": "通道别名", "moduleAlias": "通道别名",
"isAlarm": "是否报警", "isAlarm": "是否报警",
"isTag": "是否为标签", "isTag": "是否为标签",
"isId": "是否为索引",
"saveOther": "另存为" "saveOther": "另存为"
} }
...@@ -121,6 +121,7 @@ ...@@ -121,6 +121,7 @@
"moduleAlias": "通道别名", "moduleAlias": "通道别名",
"isAlarm": "是否报警", "isAlarm": "是否报警",
"isTag": "是否为标签", "isTag": "是否为标签",
"isId": "是否为索引",
"saveOther": "另存为", "saveOther": "另存为",
"addWay": "添加通道", "addWay": "添加通道",
"alarmInterval": "报警时间间隔/ms", "alarmInterval": "报警时间间隔/ms",
......
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