个人设置开发
This commit is contained in:
+2
-2
@@ -6,11 +6,11 @@
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
margin-bottom: 10px;
|
||||
width: 524px;
|
||||
width: 444px;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
text-align: center;
|
||||
border-radius: 4px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
.setting-bg-color{
|
||||
margin-right: 10px;
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
<div class="flight-agency-container">
|
||||
<p>请选择需要提示的航班代理</p>
|
||||
<div class="radio-group-box">
|
||||
<nz-radio-group [(ngModel)]="radioValue">
|
||||
<label nz-radio nzValue="1">全部代理</label>
|
||||
<label nz-radio nzValue="2">机场代理</label>
|
||||
<label nz-radio nzValue="3">国航代理</label>
|
||||
<label nz-radio nzValue="4">川航代理</label>
|
||||
</nz-radio-group>
|
||||
</div>
|
||||
<div class="self-row-footer">
|
||||
<button (click)='save()' nzTitle="保存配置" nzPlacement="top" nz-tooltip nz-button nzSize="large" nzType="primary"><i class="fa fa-check" aria-hidden="true"></i> 确定</button>
|
||||
<button (click)='cancel()' nzTitle="取消配置" nzPlacement="top" nz-tooltip nz-button nzSize="large" nzType="default"><i class="fa fa-times" aria-hidden="true"></i> 取消</button>
|
||||
</div>
|
||||
</div>
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
.flight-agency-container{
|
||||
.radio-group-box{
|
||||
|
||||
}
|
||||
.self-row-footer{
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
margin-left: 46%;
|
||||
margin-top: 100px;
|
||||
transform:translate(-50%,0);
|
||||
button:first-child {
|
||||
margin-right: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { FlightAgencyComponent } from './flight-agency.component';
|
||||
|
||||
describe('FlightAgencyComponent', () => {
|
||||
let component: FlightAgencyComponent;
|
||||
let fixture: ComponentFixture<FlightAgencyComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ FlightAgencyComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(FlightAgencyComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-flight-agency',
|
||||
templateUrl: './flight-agency.component.html',
|
||||
styleUrls: ['./flight-agency.component.scss']
|
||||
})
|
||||
export class FlightAgencyComponent implements OnInit {
|
||||
public radioValue='1';
|
||||
|
||||
constructor() { }
|
||||
|
||||
ngOnInit() {
|
||||
}
|
||||
//保存
|
||||
save(){
|
||||
|
||||
}
|
||||
//取消
|
||||
cancel(){
|
||||
|
||||
}
|
||||
}
|
||||
+52
-56
@@ -1,63 +1,59 @@
|
||||
<div class="main-container">
|
||||
<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">
|
||||
<nz-tab nzTitle="自定义显示列">
|
||||
<div class="self-row-box">
|
||||
<div class="self-row-content">
|
||||
<div class="ant-transfer-list">
|
||||
<div class="ant-transfer-list-header">可选列({{sourceList.length}})</div>
|
||||
<div class="ant-transfer-list-body">
|
||||
<ul class="ant-transfer-list-content">
|
||||
<li (click)="selectNode(item,i,1)" [ngClass]="{'bg':moveIndex==i&&selectedType==1}" class="ant-transfer-list-content-item ng-star-inserted" *ngFor="let item of sourceList;let i=index"><label class="ant-checkbox-wrapper ng-untouched ng-pristine ng-valid"><span>{{item.COL_CN}}</span></label></li>
|
||||
<div class="self-row-tips" *ngIf="!(sourceList.length>0)">暂无数据</div>
|
||||
</ul>
|
||||
<div class="system-main-container">
|
||||
<div class="card">
|
||||
<nz-tabset [nzTabPosition]="'top'" [nzType]="'card'">
|
||||
<nz-tab nzTitle="自定义显示列">
|
||||
<div class="self-row-box">
|
||||
<div class="self-row-content">
|
||||
<div class="ant-transfer-list">
|
||||
<div class="ant-transfer-list-header">可选列({{sourceList.length}})</div>
|
||||
<div class="ant-transfer-list-body">
|
||||
<ul class="ant-transfer-list-content">
|
||||
<li (click)="selectNode(item,i,1)" [ngClass]="{'bg':moveIndex==i&&selectedType==1}" class="ant-transfer-list-content-item ng-star-inserted" *ngFor="let item of sourceList;let i=index"><label class="ant-checkbox-wrapper ng-untouched ng-pristine ng-valid"><span>{{item.COL_CN}}</span></label></li>
|
||||
<div class="self-row-tips" *ngIf="!(sourceList.length>0)">暂无数据</div>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="move-btn-box">
|
||||
<button (click)='moveCross(3)' nzTitle="全部右移" nzPlacement="left" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='!(sourceList.length>0)' nzType="primary"><i nz-icon type="double-right" theme="outline"></i></button>
|
||||
<button (click)='moveCross(1)' nzTitle="右移" nzPlacement="left" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='disableRight||sourceList.length==0' nzType="primary"><i nz-icon type="right" theme="outline"></i></button>
|
||||
<button (click)='moveCross(2)' nzTitle="左移" nzPlacement="right" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='disabledLeft||targetList.length==0' nzType="primary"><i nz-icon type="left" theme="outline"></i></button>
|
||||
<button (click)='moveCross(4)' nzTitle="全部左移" nzPlacement="right" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='!(targetList.length>0)' nzType="primary"><i nz-icon type="double-left" theme="outline"></i></button>
|
||||
</div>
|
||||
<div class="ant-transfer-list">
|
||||
<div class="ant-transfer-list-header">已选列({{targetList.length}})</div>
|
||||
<div class="ant-transfer-list-body">
|
||||
<ul class="ant-transfer-list-content">
|
||||
<li (click)="selectNode(item,i,2)" [ngClass]="{'bg':moveIndex==i&&selectedType==2}" class="ant-transfer-list-content-item ng-star-inserted" *ngFor="let item of targetList;let i=index"><label class="ant-checkbox-wrapper ng-untouched ng-pristine ng-valid"><span>{{item.COL_CN}}</span></label></li>
|
||||
<div class="self-row-tips" *ngIf="!(targetList.length>0)">暂无数据</div>
|
||||
</ul>
|
||||
<div class="move-btn-box">
|
||||
<button (click)='moveCross(3)' nzTitle="全部右移" nzPlacement="left" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='!(sourceList.length>0)' nzType="primary"><i nz-icon type="double-right" theme="outline"></i></button>
|
||||
<button (click)='moveCross(1)' nzTitle="右移" nzPlacement="left" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='disableRight||sourceList.length==0' nzType="primary"><i nz-icon type="right" theme="outline"></i></button>
|
||||
<button (click)='moveCross(2)' nzTitle="左移" nzPlacement="right" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='disabledLeft||targetList.length==0' nzType="primary"><i nz-icon type="left" theme="outline"></i></button>
|
||||
<button (click)='moveCross(4)' nzTitle="全部左移" nzPlacement="right" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='!(targetList.length>0)' nzType="primary"><i nz-icon type="double-left" theme="outline"></i></button>
|
||||
</div>
|
||||
<div class="ant-transfer-list">
|
||||
<div class="ant-transfer-list-header">已选列({{targetList.length}})</div>
|
||||
<div class="ant-transfer-list-body">
|
||||
<ul class="ant-transfer-list-content">
|
||||
<li (click)="selectNode(item,i,2)" [ngClass]="{'bg':moveIndex==i&&selectedType==2}" class="ant-transfer-list-content-item ng-star-inserted" *ngFor="let item of targetList;let i=index"><label class="ant-checkbox-wrapper ng-untouched ng-pristine ng-valid"><span>{{item.COL_CN}}</span></label></li>
|
||||
<div class="self-row-tips" *ngIf="!(targetList.length>0)">暂无数据</div>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="move-btn-box">
|
||||
<button (click)='moveUpDown(3)' nzTitle="置顶" nzPlacement="right" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='disabledUpTop' nzType="primary"><i nz-icon type="arrow-up" theme="outline"></i></button>
|
||||
<button (click)='moveUpDown(1)' nzTitle="上移" nzPlacement="right" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='disableUp' nzType="primary"><i nz-icon type="up" theme="outline"></i></button>
|
||||
<button (click)='moveUpDown(2)' nzTitle="下移" nzPlacement="right" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='disableDown' nzType="primary"><i nz-icon type="down" theme="outline"></i></button>
|
||||
<button (click)='moveUpDown(4)' nzTitle="置底" nzPlacement="right" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='disabledDownBtm' nzType="primary"><i nz-icon type="arrow-down" theme="outline"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="move-btn-box">
|
||||
<button (click)='moveUpDown(3)' nzTitle="置顶" nzPlacement="right" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='disabledUpTop' nzType="primary"><i nz-icon type="arrow-up" theme="outline"></i></button>
|
||||
<button (click)='moveUpDown(1)' nzTitle="上移" nzPlacement="right" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='disableUp' nzType="primary"><i nz-icon type="up" theme="outline"></i></button>
|
||||
<button (click)='moveUpDown(2)' nzTitle="下移" nzPlacement="right" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='disableDown' nzType="primary"><i nz-icon type="down" theme="outline"></i></button>
|
||||
<button (click)='moveUpDown(4)' nzTitle="置底" nzPlacement="right" nz-tooltip class="move-btn" nz-button nzSize="large" [disabled]='disabledDownBtm' nzType="primary"><i nz-icon type="arrow-down" theme="outline"></i></button>
|
||||
<div class="self-row-footer">
|
||||
<button (click)='saveSelf()' nzTitle="保存配置" nzPlacement="top" nz-tooltip nz-button nzSize="large" nzType="primary"><i class="fa fa-check" aria-hidden="true"></i> 确定</button>
|
||||
<button (click)='cancelSelf()' nzTitle="取消配置" nzPlacement="top" nz-tooltip nz-button nzSize="large" nzType="default"><i class="fa fa-times" aria-hidden="true"></i> 取消</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="self-row-footer">
|
||||
<button (click)='saveSelf()' nzTitle="保存配置" nzPlacement="top" nz-tooltip nz-button nzSize="large" nzType="primary"><i class="fa fa-check" aria-hidden="true"></i> 确定</button>
|
||||
<button (click)='cancelSelf()' nzTitle="取消配置" nzPlacement="top" nz-tooltip nz-button nzSize="large" nzType="default"><i class="fa fa-times" aria-hidden="true"></i> 取消</button>
|
||||
</div>
|
||||
</div>
|
||||
</nz-tab>
|
||||
<nz-tab nzTitle="消息警示提醒">
|
||||
<app-msg-alert-warning></app-msg-alert-warning>
|
||||
</nz-tab>
|
||||
<nz-tab nzTitle="消息声音提醒">
|
||||
<app-msg-alert-warning></app-msg-alert-warning>
|
||||
</nz-tab>
|
||||
<nz-tab nzTitle="航班代理">
|
||||
航班代理
|
||||
</nz-tab>
|
||||
<nz-tab nzTitle="ORMS启动路径">
|
||||
ORMS启动路径
|
||||
</nz-tab>
|
||||
<nz-tab nzTitle="颜色配置">
|
||||
<app-color-settings></app-color-settings>
|
||||
</nz-tab>
|
||||
<nz-tab nzTitle="刷新设置">
|
||||
刷新设置
|
||||
</nz-tab>
|
||||
</nz-tabset>
|
||||
</nz-tab>
|
||||
<nz-tab nzTitle="消息警示提醒">
|
||||
<app-msg-alert-warning></app-msg-alert-warning>
|
||||
</nz-tab>
|
||||
<nz-tab nzTitle="消息声音提醒">
|
||||
<app-msg-alert-warning></app-msg-alert-warning>
|
||||
</nz-tab>
|
||||
<nz-tab nzTitle="航班代理">
|
||||
<app-flight-agency></app-flight-agency>
|
||||
</nz-tab>
|
||||
<nz-tab nzTitle="颜色配置">
|
||||
<app-color-settings></app-color-settings>
|
||||
</nz-tab>
|
||||
</nz-tabset>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,11 +1,5 @@
|
||||
.main-container{
|
||||
padding: 30px 20px;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 300px;
|
||||
background-color: #fff;
|
||||
.system-main-container{
|
||||
.ant-tabs{
|
||||
height: 100%;
|
||||
.self-row-box{
|
||||
display: inline-block;
|
||||
.self-row-footer{
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { HttpClientService } from '../../../services/http-client.service';
|
||||
|
||||
|
||||
@Component({
|
||||
selector: 'app-personal-settings',
|
||||
templateUrl: './personal-settings.component.html',
|
||||
styleUrls: ['./personal-settings.component.scss']
|
||||
styleUrls: ['./personal-settings.component.scss','../../main.scss'],
|
||||
providers:[HttpClientService]
|
||||
})
|
||||
export class PersonalSettingsComponent implements OnInit {
|
||||
public list: any[] = []; //原始数据项
|
||||
@@ -17,8 +20,15 @@ export class PersonalSettingsComponent implements OnInit {
|
||||
public disabledDownBtm:any=true; //最低控制按钮可选状态 true 禁止选择 false可选择
|
||||
public selectedType:any=''; //当前选中项所在项目 1在可选项 2在已选项框
|
||||
public moveIndex:any='false';
|
||||
public search:any={
|
||||
page_index:'1',
|
||||
page_size:'10',
|
||||
role_name:'',
|
||||
}
|
||||
|
||||
constructor() { }
|
||||
constructor(
|
||||
private http:HttpClientService,
|
||||
) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.list=[{"COL_CODE":"FLNO", "COL_CN":"航班号", "COL_ORDER":"10"}, {"COL_CODE":"ALCD", "COL_CN":"航空公司", "COL_ORDER":"8"}, {"COL_CODE":"FLIN", "COL_CN":"航线类别", "COL_ORDER":"4"}, {"COL_CODE":"FLTY", "COL_CN":"航班类别", "COL_ORDER":"5"}, {"COL_CODE":"MVIN", "COL_CN":"航向指示", "COL_ORDER":"9"}, {"COL_CODE":"TRML", "COL_CN":"候机楼", "COL_ORDER":"7"}, {"COL_CODE":"RENO", "COL_CN":"飞机号", "COL_ORDER":"3"}, {"COL_CODE":"SODT", "COL_CN":"计划到达/出发", "COL_ORDER":"13"}, {"COL_CODE":"ESTT", "COL_CN":"预计到达/出发", "COL_ORDER":"14"}, {"COL_CODE":"ACTT", "COL_CN":"实际到达/出发", "COL_ORDER":"15"}, {"COL_CODE":"STND", "COL_CN":"停机位", "COL_ORDER":"16"}, {"COL_CODE":"ORDER", "COL_CN":"排序", "COL_ORDER":"17"} ]
|
||||
@@ -30,6 +40,7 @@ export class PersonalSettingsComponent implements OnInit {
|
||||
let option=this.deepCopy(item);
|
||||
this.sourceList.push(option);
|
||||
})
|
||||
this.queryTable();
|
||||
}
|
||||
//对象数组深度复制
|
||||
deepCopy(data){
|
||||
@@ -158,6 +169,17 @@ export class PersonalSettingsComponent implements OnInit {
|
||||
})
|
||||
this.targetList=[];
|
||||
}
|
||||
//获取列表
|
||||
queryTable():void{
|
||||
console.log(1111)
|
||||
this.http.get('/sysapi/setting/user/list',this.search).subscribe((json)=>{
|
||||
if(json.is_success){
|
||||
console.log(2222)
|
||||
}else{
|
||||
alert(json.err_msg)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user