-
-
-
-
-
- | 序号 |
- 城市代码 |
- 城市中文名 |
- 城市英文名 |
- 所在国家 |
-
-
-
-
- | {{i+1}} |
- {{city.cityCode}} |
- {{city.cityNameChn}} |
- {{city.cityNameEng}} |
- {{city.countryNameChn}} |
-
-
-
+
+
+
+
+
+ | 序号 |
+ {{col.COL_CN}} |
+
+
+
+
+
+
+
+
+
+
+ | {{start+i+1}} |
+ {{city[col.COL_CODE]}} |
+
+
+
+
+
diff --git a/src/app/pages/basic-data/city/city.component.scss b/src/app/pages/basic-data/city/city.component.scss
deleted file mode 100644
index 2804efa..0000000
--- a/src/app/pages/basic-data/city/city.component.scss
+++ /dev/null
@@ -1,59 +0,0 @@
-.main-page {
- width: 100%;
- height: 100%;
- overflow-y: scroll;
- padding: 15px 10px;
- background-color: #fff;
- .page-content {
- border: 1px solid #ccc;
- padding: 10px 20px;
- .search-filter {
- padding: 0 15px;
- .input-container {
- padding: 0;
- > .form-control {
- width: 180px;
- display: inline-block;
- }
- }
- }
- .airline-table{
- .table-container{
- // border: 1px solid #ccc;
- width: 100%;
- height: 700px;
- overflow: auto;
- box-shadow: 0 0 1px .5px #ddd;
- table{
- width: max-content;
- tr{
- cursor: pointer;
- &.selected{
- background: rgb(181, 215, 255);
- }
- }
- th{
- background-color: #ddd;
- color: rgb(0, 0, 255);
- }
- th,td{
- // border: none;
- text-align: center;
- }
- }
- }
- }
- }
-}
-
-@media screen and (max-width: 991px) {
- .line-operator-right {
- text-align: left !important;
- }
-}
-
-// @media screen and (min-width: 1200px){
-// .line-operator-right{
-// text-align: left;
-// }
-// }
diff --git a/src/app/pages/basic-data/city/city.component.ts b/src/app/pages/basic-data/city/city.component.ts
index a722591..7bbf7b7 100644
--- a/src/app/pages/basic-data/city/city.component.ts
+++ b/src/app/pages/basic-data/city/city.component.ts
@@ -1,107 +1,203 @@
-import { Component, OnInit } from '@angular/core';
-import { ChangeDetectorRef } from '@angular/core';
+import { Component, OnInit, ViewChild, Renderer2 } from '@angular/core';
import { BasicDataService } from '../../../services/basic-data-service';
+import { OperateSpinServiceService } from '../../../services/operate-spin-service.service';
import * as $ from 'jquery';
@Component({
selector: 'app-city',
templateUrl: './city.component.html',
- styleUrls: ['./city.component.scss']
+ styleUrls: ['../basic.scss']
})
export class CityComponent implements OnInit {
-
constructor(
+ private renderer2: Renderer2,
private basicDataService: BasicDataService,
- private changeDetectorRef: ChangeDetectorRef
- ) { }
+ private operateSpinServiceService: OperateSpinServiceService,
+ ) {
+ this.operateSpinServiceService.showSpin();
+ }
- public col_lists = [
- { col_code: 'cityCode', col_chn: '城市代码' },
- { col_code: 'cityNameChn', col_chn: '城市中文名' },
- { col_code: 'cityNameEng', col_chn: '城市英文名' },
- { col_code: 'countryNameChn', col_chn: '所在国家' },
+ public render_col_lists = [
+ { COL_CODE: 'cityCode', COL_CN: '城市代码', COL_WIDTH: "120px" },
+ { COL_CODE: 'cityNameChn', COL_CN: '城市中文名', COL_WIDTH: "120px" },
+ { COL_CODE: 'cityNameEng', COL_CN: '城市英文名', COL_WIDTH: "120px" },
+ { COL_CODE: 'countryNameChn', COL_CN: '所在国家', COL_WIDTH: "120px" },
];
// 搜索条件
SEARCH = ''; //手动输入条件
+ LASTSEARCH = '';
FLT_POS = 1; //过滤还是定位
SEL_COL = ''; //选择列名
+ LAST_SEL_COL = '';
//下拉框
public filterItems = {
countryId: '',
}
- countrys: Array
; //国家
- citys: Array;
- public row_state: any = { renderFlight: {} };
+ public countrys: Array; //国家
+ public citys: Array;
+
+ public wait_render_data: Array