瀏覽代碼

配置中心业务页面控制

seimin 5 月之前
父節點
當前提交
9227342e99

+ 21 - 9
src/app/components/configurationCenter/configuration-specimen/configuration-specimen.component.html

@@ -15,24 +15,36 @@
15
             <div class="list" *ngIf="!loading">
15
             <div class="list" *ngIf="!loading">
16
               <!-- 特性配置 -->
16
               <!-- 特性配置 -->
17
               <div *ngIf="tabModalName=='characteristics'">
17
               <div *ngIf="tabModalName=='characteristics'">
18
-                <!-- 是否允许追加服务 -->
18
+                <!-- 扫描时指定科室不提醒勾选项 -->
19
                 <div class="display_flex align-items_center mb8">
19
                 <div class="display_flex align-items_center mb8">
20
-                  <nz-form-label class="label">是否允许追加服务</nz-form-label>
21
-                  <nz-checkbox-group [(ngModel)]="addService" (ngModelChange)="changeAddService($event)"></nz-checkbox-group>
20
+                  <nz-form-label class="label">扫描时指定科室不提醒勾选项</nz-form-label>
21
+                  <nz-checkbox-group [(ngModel)]="deptNotAlert" (ngModelChange)="changeDeptNotAlert($event)"></nz-checkbox-group>
22
                 </div>
22
                 </div>
23
-                <!-- 追加服务任务类型 -->
24
-                <div class="display_flex align-items_center mb8" *ngIf="addService[0].checked">
25
-                  <nz-form-label class="label" nzRequired>追加服务任务类型</nz-form-label>
23
+                <!-- 科室 -->
24
+                <div class="display_flex align-items_center mb8" *ngIf="deptNotAlert[0].checked">
25
+                  <nz-form-label class="label" nzRequired>科室</nz-form-label>
26
                   <nz-select nzMode="multiple" class="w320px" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear
26
                   <nz-select nzMode="multiple" class="w320px" [nzDropdownMatchSelectWidth]="false" nzServerSearch nzShowSearch nzAllowClear
27
-                    (nzOnSearch)="changeTasktype($event)" nzPlaceHolder="请选择追加服务任务类型" [(ngModel)]="addServiceTaskIds">
28
-                    <ng-container *ngFor="let option of taskTypes">
29
-                      <nz-option *ngIf="!isLoading" [nzLabel]="option.taskName" [nzValue]="option.id"></nz-option>
27
+                    (nzOnSearch)="changeDept($event)" nzPlaceHolder="请选择科室" [(ngModel)]="deptNotAlertIds" (nzOpenChange)="openDeptList($event)">
28
+                    <ng-container *ngFor="let option of deptList">
29
+                      <nz-option *ngIf="!isLoading" [nzLabel]="option.dept" [nzValue]="option.id"></nz-option>
30
                     </ng-container>
30
                     </ng-container>
31
                     <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
31
                     <nz-option *ngIf="isLoading" nzDisabled nzCustomContent>
32
                       <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
32
                       <i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
33
                     </nz-option>
33
                     </nz-option>
34
                   </nz-select>
34
                   </nz-select>
35
                 </div>
35
                 </div>
36
+
37
+                <!-- 收取时需扫描二维码 -->
38
+                <div class="display_flex align-items_center mb8">
39
+                  <nz-form-label class="label">收取时需扫描二维码</nz-form-label>
40
+                  <nz-checkbox-group [(ngModel)]="arriveScanCode" (ngModelChange)="changeArriveScanCode($event)"></nz-checkbox-group>
41
+                </div>
42
+
43
+                <!-- 必须扫描动态二维码 -->
44
+                <div class="display_flex align-items_center mb8" *ngIf="arriveScanCode[0].checked">
45
+                  <nz-form-label class="label">必须扫描动态二维码</nz-form-label>
46
+                  <nz-checkbox-group [(ngModel)]="arriveScanDynamicCode"></nz-checkbox-group>
47
+                </div>
36
               </div>
48
               </div>
37
               <!-- 自动建单配置 -->
49
               <!-- 自动建单配置 -->
38
               <div *ngIf="tabModalName=='automaticOrderCreation'">
50
               <div *ngIf="tabModalName=='automaticOrderCreation'">

+ 53 - 32
src/app/components/configurationCenter/configuration-specimen/configuration-specimen.component.ts

@@ -16,8 +16,18 @@ export class ConfigurationSpecimenComponent implements OnInit {
16
   tabModalName:string = 'characteristics'; //当前选中的tab
16
   tabModalName:string = 'characteristics'; //当前选中的tab
17
   hosId = this.tool.getCurrentHospital().id; //当前院区
17
   hosId = this.tool.getCurrentHospital().id; //当前院区
18
 
18
 
19
-  // 是否允许追加服务
20
-  addService:any[] = [
19
+  // 扫描时指定科室不提醒勾选项
20
+  deptNotAlert:any[] = [
21
+    {label:'是否开启',value: 0}
22
+  ];
23
+
24
+  // 收取时需扫描二维码
25
+  arriveScanCode:any[] = [
26
+    {label:'是否开启',value: 0}
27
+  ];
28
+
29
+  // 必须扫描动态二维码
30
+  arriveScanDynamicCode:any[] = [
21
     {label:'是否开启',value: 0}
31
     {label:'是否开启',value: 0}
22
   ];
32
   ];
23
 
33
 
@@ -34,52 +44,58 @@ export class ConfigurationSpecimenComponent implements OnInit {
34
       let fun = v[0];
44
       let fun = v[0];
35
       fun.call(this, v[1]);
45
       fun.call(this, v[1]);
36
     });
46
     });
37
-    this.getTaskTypes();
47
+    this.getDeptList();
38
     this.getTaskType();
48
     this.getTaskType();
39
   }
49
   }
40
 
50
 
41
-  // 修改是否允许追加服务
42
-  changeAddService(e){
51
+  // 扫描时指定科室不提醒勾选项
52
+  changeDeptNotAlert(e){
53
+    console.log(e);
54
+    if(!e[0].checked){
55
+      this.deptNotAlertIds = [];
56
+    }
57
+  }
58
+  // 收取时需扫描二维码
59
+  changeArriveScanCode(e){
43
     console.log(e);
60
     console.log(e);
44
     if(!e[0].checked){
61
     if(!e[0].checked){
45
-      this.addServiceTaskIds = [];
62
+      this.arriveScanDynamicCode[0].checked = false;
46
     }
63
     }
47
   }
64
   }
48
   // 用户输入搜索
65
   // 用户输入搜索
49
   isLoading: boolean = false;
66
   isLoading: boolean = false;
50
-  addServiceTaskIds:any[] = [];
51
-  taskTypes:any[] = [];
52
-  changeTasktype(e) {
53
-    this.searchTimer(this.getTaskTypes, e);
67
+  deptNotAlertIds:any[] = [];
68
+  deptList:any[] = [];
69
+  changeDept(e) {
70
+    this.searchTimer(this.getDeptList, e);
54
   }
71
   }
55
   // 边输入边搜索节流阀
72
   // 边输入边搜索节流阀
56
   searchTimer(fun, e) {
73
   searchTimer(fun, e) {
57
     this.isLoading = true;
74
     this.isLoading = true;
58
     this.searchTimerSubject.next([fun, e]);
75
     this.searchTimerSubject.next([fun, e]);
59
   }
76
   }
60
-  //获取患者其他服务任务类型
61
-  getTaskTypes(e:string = '') {
77
+  openDeptList(flag){
78
+    if(flag){
79
+      this.getDeptList();
80
+    }
81
+  }
82
+  //获取科室列表
83
+  getDeptList(e:string = '') {
62
     let postData:any = {
84
     let postData:any = {
63
       idx: 0,
85
       idx: 0,
64
-      sum: 9999,
65
-      taskType: {
66
-        taskName: e,
67
-        simpleQuery: true,
68
-        hosId: {
69
-          id: this.hosId
70
-        },
71
-        associationType: {
72
-          key: 'association_types',
73
-          value: 'patientTransport'
74
-        }
86
+      sum: 20,
87
+      department: {
88
+        searchType: 1,// 简单查询
89
+        hospital: { id: this.hosId },
90
+        dept: e,
75
       }
91
       }
76
     };
92
     };
77
     this.isLoading = true;
93
     this.isLoading = true;
78
-    this.mainService.getFetchDataList("simple/data", "taskType", postData)
94
+    this.mainService.getFetchDataList("simple/data", "department", postData)
79
       .subscribe((result) => {
95
       .subscribe((result) => {
80
         this.isLoading = false;
96
         this.isLoading = false;
81
         if (result.status == 200) {
97
         if (result.status == 200) {
82
-          this.taskTypes = result.list || [];
98
+          this.deptList = result.list || [];
83
         }
99
         }
84
       });
100
       });
85
   }
101
   }
@@ -94,16 +110,18 @@ export class ConfigurationSpecimenComponent implements OnInit {
94
       this.msg.create("warning", "请先配置患者陪检任务类型!");
110
       this.msg.create("warning", "请先配置患者陪检任务类型!");
95
       return;
111
       return;
96
     }
112
     }
97
-    if(this.addService[0].checked && !this.addServiceTaskIds.length){
98
-      this.msg.create("warning", "请选择追加服务任务类型!");
113
+    if(this.deptNotAlert[0].checked && !this.deptNotAlertIds.length){
114
+      this.msg.create("warning", "请选择科室!");
99
       return;
115
       return;
100
     }
116
     }
101
     let postData:any = {
117
     let postData:any = {
102
       id: this.configs.id,
118
       id: this.configs.id,
103
       taskType: this.tasktype.id,
119
       taskType: this.tasktype.id,
104
       hosId: this.hosId,
120
       hosId: this.hosId,
105
-      addService: this.addService[0].checked ? 1 : 0,
106
-      addServiceTaskIds: this.addServiceTaskIds.length ? this.addServiceTaskIds.toString() : undefined,
121
+      deptNotAlert: this.deptNotAlert[0].checked ? 1 : 0,
122
+      arriveScanCode: this.arriveScanCode[0].checked ? 1 : 0,
123
+      arriveScanDynamicCode: this.arriveScanDynamicCode[0].checked ? 1 : 0,
124
+      deptNotAlertIds: this.deptNotAlertIds.length ? this.deptNotAlertIds.toString() : undefined,
107
     };
125
     };
108
     this.btnLoading = true;
126
     this.btnLoading = true;
109
     this.mainService
127
     this.mainService
@@ -128,7 +146,7 @@ export class ConfigurationSpecimenComponent implements OnInit {
128
         },
146
         },
129
         associationType: {
147
         associationType: {
130
           key:"association_types",
148
           key:"association_types",
131
-          value: 'inspect'
149
+          value: 'specimen'
132
         }
150
         }
133
       }
151
       }
134
     };
152
     };
@@ -163,8 +181,11 @@ export class ConfigurationSpecimenComponent implements OnInit {
163
         this.loading = false;
181
         this.loading = false;
164
         if (result.status == 200) {
182
         if (result.status == 200) {
165
           this.configs = result.list[0] || {};
183
           this.configs = result.list[0] || {};
166
-          this.addService[0].checked = this.configs.addService == 1;
167
-          this.addServiceTaskIds = this.configs.addServiceTaskIds ? this.configs.addServiceTaskIds.split(',').map(v => +v) : [];
184
+          this.deptNotAlert[0].checked = this.configs.deptNotAlert == 1;
185
+          this.arriveScanCode[0].checked = this.configs.arriveScanCode == 1;
186
+          this.arriveScanDynamicCode[0].checked = this.configs.arriveScanDynamicCode == 1;
187
+          this.deptNotAlertIds = this.configs.deptNotAlertIds ? this.configs.deptNotAlertIds.split(',').map(v => +v) : [];
188
+          this.deptList = this.configs.deptNotAlertList || [];
168
         }
189
         }
169
       });
190
       });
170
   }
191
   }

+ 8 - 8
src/app/views/incident-config/incident-config.component.html

@@ -3,37 +3,37 @@
3
     <div class="tags">
3
     <div class="tags">
4
       <div><i class="icon_transport transport-peizhizhongxin"></i>配置中心&emsp;&gt;&emsp;事件配置</div>
4
       <div><i class="icon_transport transport-peizhizhongxin"></i>配置中心&emsp;&gt;&emsp;事件配置</div>
5
       <div class="tagList">
5
       <div class="tagList">
6
-        <span *ngFor="let tag of tagList" [ngClass]="{ active: activeTagId === tag.id }" (click)="clickTag(tag)">{{ tag.name }}</span>
6
+        <span *ngFor="let tag of tagList" [ngClass]="{ active: activeTagLink === tag.link }" (click)="clickTag(tag)">{{ tag.title }}</span>
7
       </div>
7
       </div>
8
       <button nz-button class="btn default" (click)="goBack()">返回</button>
8
       <button nz-button class="btn default" (click)="goBack()">返回</button>
9
     </div>
9
     </div>
10
   </div>
10
   </div>
11
   <!-- 故障现象 -->
11
   <!-- 故障现象 -->
12
-  <ng-container *ngIf="activeTagId === 1">
12
+  <ng-container *ngIf="activeTagLink === 'incidentConfigCategory'">
13
     <app-configuration-category></app-configuration-category>
13
     <app-configuration-category></app-configuration-category>
14
   </ng-container>
14
   </ng-container>
15
   <!-- 优先级 -->
15
   <!-- 优先级 -->
16
-  <ng-container *ngIf="activeTagId === 2">
16
+  <ng-container *ngIf="activeTagLink === 'incidentConfigPriority'">
17
     <app-configuration-priority></app-configuration-priority>
17
     <app-configuration-priority></app-configuration-priority>
18
   </ng-container>
18
   </ng-container>
19
   <!-- 数据字典 -->
19
   <!-- 数据字典 -->
20
-  <ng-container *ngIf="activeTagId === 3">
20
+  <ng-container *ngIf="activeTagLink === 'incidentConfigDictionary'">
21
     <app-configuration-dictionary [dictionaryKeyList]="dictionaryKeyList"></app-configuration-dictionary>
21
     <app-configuration-dictionary [dictionaryKeyList]="dictionaryKeyList"></app-configuration-dictionary>
22
   </ng-container>
22
   </ng-container>
23
   <!-- 消息通知 -->
23
   <!-- 消息通知 -->
24
-  <ng-container *ngIf="activeTagId === 4">
24
+  <ng-container *ngIf="activeTagLink === 'incidentConfigMessage'">
25
     <app-configuration-message></app-configuration-message>
25
     <app-configuration-message></app-configuration-message>
26
   </ng-container>
26
   </ng-container>
27
 	<!-- 工时管理 -->
27
 	<!-- 工时管理 -->
28
-	<ng-container *ngIf="activeTagId === 5">
28
+	<ng-container *ngIf="activeTagLink === 'incidentConfigManHour'">
29
 	  <app-configuration-manHour></app-configuration-manHour>
29
 	  <app-configuration-manHour></app-configuration-manHour>
30
 	</ng-container>
30
 	</ng-container>
31
 	<!-- 科室绑定人员 -->
31
 	<!-- 科室绑定人员 -->
32
-	<ng-container *ngIf="activeTagId === 6">
32
+	<ng-container *ngIf="activeTagLink === 'incidentConfigDeptUser'">
33
 	  <app-configuration-deptUser></app-configuration-deptUser>
33
 	  <app-configuration-deptUser></app-configuration-deptUser>
34
 	</ng-container>
34
 	</ng-container>
35
   <!-- 院区配置 -->
35
   <!-- 院区配置 -->
36
-  <ng-container *ngIf="activeTagId === 7">
36
+  <ng-container *ngIf="activeTagLink === 'incidentConfigHospital'">
37
     <app-configuration-hospital></app-configuration-hospital>
37
     <app-configuration-hospital></app-configuration-hospital>
38
   </ng-container>
38
   </ng-container>
39
 </div>
39
 </div>

+ 13 - 10
src/app/views/incident-config/incident-config.component.ts

@@ -13,13 +13,13 @@ export class IncidentConfigComponent implements OnInit, AfterViewInit {
13
 
13
 
14
   // tab
14
   // tab
15
   tagList:any = [
15
   tagList:any = [
16
-    { id: 1, name: '故障现象',},
17
-    { id: 2, name: '优先级',},
18
-    { id: 3, name: '数据字典',},
19
-    { id: 4, name: '消息通知',},
20
-		{ id: 5, name: '工时管理',},
21
-		{ id: 6, name: '科室绑定人员',},
22
-    { id: 7, name: '院区配置',},
16
+    // { id: 1, title: '故障现象',},
17
+    // { id: 2, title: '优先级',},
18
+    // { id: 3, title: '数据字典',},
19
+    // { id: 4, title: '消息通知',},
20
+		// { id: 5, title: '工时管理',},
21
+		// { id: 6, title: '科室绑定人员',},
22
+    // { id: 7, title: '院区配置',},
23
   ];
23
   ];
24
 
24
 
25
   // 数据字典
25
   // 数据字典
@@ -36,13 +36,16 @@ export class IncidentConfigComponent implements OnInit, AfterViewInit {
36
   ngOnInit(): void {}
36
   ngOnInit(): void {}
37
 
37
 
38
   ngAfterViewInit(){
38
   ngAfterViewInit(){
39
-    this.clickTag(this.tagList[0]);
39
+    let menus = JSON.parse(localStorage.getItem("menu"));
40
+    let incidentConfig = menus.find(item => item.link == 'incidentConfig');
41
+    this.tagList = incidentConfig ? (incidentConfig.childrens || []) : [];
42
+    this.tagList.length && this.clickTag(this.tagList[0]);
40
   }
43
   }
41
 
44
 
42
   // 点击tab
45
   // 点击tab
43
-  activeTagId:any = 1;
46
+  activeTagLink:any;
44
   clickTag(tag){
47
   clickTag(tag){
45
-    this.activeTagId = tag.id;
48
+    this.activeTagLink = tag.link;
46
   }
49
   }
47
 
50
 
48
   // 返回
51
   // 返回

+ 4 - 4
src/app/views/other-config/other-config.component.html

@@ -3,21 +3,21 @@
3
     <div class="tags">
3
     <div class="tags">
4
       <div><i class="icon_transport transport-peizhizhongxin"></i>配置中心&emsp;&gt;&emsp;第三方配置</div>
4
       <div><i class="icon_transport transport-peizhizhongxin"></i>配置中心&emsp;&gt;&emsp;第三方配置</div>
5
       <div class="tagList">
5
       <div class="tagList">
6
-        <span *ngFor="let tag of tagList" [ngClass]="{ active: activeTagId === tag.id }" (click)="clickTag(tag)">{{ tag.name }}</span>
6
+        <span *ngFor="let tag of tagList" [ngClass]="{ active: activeTagLink === tag.link }" (click)="clickTag(tag)">{{ tag.title }}</span>
7
       </div>
7
       </div>
8
       <button nz-button class="btn default" (click)="goBack()">返回</button>
8
       <button nz-button class="btn default" (click)="goBack()">返回</button>
9
     </div>
9
     </div>
10
   </div>
10
   </div>
11
   <!-- 呼叫中心 -->
11
   <!-- 呼叫中心 -->
12
-  <ng-container *ngIf="activeTagId === 1">
12
+  <ng-container *ngIf="activeTagLink === 'otherConfigCallcenter'">
13
     <app-configuration-callcenter></app-configuration-callcenter>
13
     <app-configuration-callcenter></app-configuration-callcenter>
14
   </ng-container>
14
   </ng-container>
15
   <!-- 微信配置 -->
15
   <!-- 微信配置 -->
16
-  <ng-container *ngIf="activeTagId === 2">
16
+  <ng-container *ngIf="activeTagLink === 'otherConfigWechat'">
17
     <app-configuration-wechat></app-configuration-wechat>
17
     <app-configuration-wechat></app-configuration-wechat>
18
   </ng-container>
18
   </ng-container>
19
   <!-- 数据字典 -->
19
   <!-- 数据字典 -->
20
-  <ng-container *ngIf="activeTagId === 3">
20
+  <ng-container *ngIf="activeTagLink === 'otherConfigDictionary'">
21
     <app-configuration-dictionary [dictionaryKeyList]="dictionaryKeyList"></app-configuration-dictionary>
21
     <app-configuration-dictionary [dictionaryKeyList]="dictionaryKeyList"></app-configuration-dictionary>
22
   </ng-container>
22
   </ng-container>
23
 </div>
23
 </div>

+ 10 - 6
src/app/views/other-config/other-config.component.ts

@@ -13,9 +13,9 @@ export class OtherConfigComponent implements OnInit, AfterViewInit {
13
 
13
 
14
   // tab
14
   // tab
15
   tagList:any = [
15
   tagList:any = [
16
-    { id: 1, name: '呼叫中心',},
17
-    { id: 2, name: '微信配置',},
18
-    { id: 3, name: '数据字典',},
16
+    // { id: 1, name: '呼叫中心',},
17
+    // { id: 2, name: '微信配置',},
18
+    // { id: 3, name: '数据字典',},
19
   ];
19
   ];
20
 
20
 
21
   // 数据字典
21
   // 数据字典
@@ -26,13 +26,17 @@ export class OtherConfigComponent implements OnInit, AfterViewInit {
26
   ngOnInit(): void {}
26
   ngOnInit(): void {}
27
 
27
 
28
   ngAfterViewInit(){
28
   ngAfterViewInit(){
29
-    this.clickTag(this.tagList[0]);
29
+    let menus = JSON.parse(localStorage.getItem("menu"));
30
+    let otherConfig = menus.find(item => item.link == 'otherConfig');
31
+    this.tagList = otherConfig ? (otherConfig.childrens || []) : [];
32
+    this.tagList.length && this.clickTag(this.tagList[0]);
33
+    this.tagList.length && this.clickTag(this.tagList[0]);
30
   }
34
   }
31
 
35
 
32
   // 点击tab
36
   // 点击tab
33
-  activeTagId:any = 1;
37
+  activeTagLink:any = 1;
34
   clickTag(tag){
38
   clickTag(tag){
35
-    this.activeTagId = tag.id;
39
+    this.activeTagLink = tag.link;
36
   }
40
   }
37
 
41
 
38
   // 返回
42
   // 返回

+ 2 - 2
src/app/views/page-config/page-config.component.html

@@ -3,13 +3,13 @@
3
     <div class="tags">
3
     <div class="tags">
4
       <div><i class="icon_transport transport-peizhizhongxin"></i>配置中心&emsp;&gt;&emsp;业务页面控制</div>
4
       <div><i class="icon_transport transport-peizhizhongxin"></i>配置中心&emsp;&gt;&emsp;业务页面控制</div>
5
       <div class="tagList">
5
       <div class="tagList">
6
-        <span *ngFor="let tag of tagList" [ngClass]="{ active: activeTagId === tag.id }" (click)="clickTag(tag)">{{ tag.name }}</span>
6
+        <span *ngFor="let tag of tagList" [ngClass]="{ active: activeTagLink === tag.link }" (click)="clickTag(tag)">{{ tag.title }}</span>
7
       </div>
7
       </div>
8
       <button nz-button class="btn default" (click)="goBack()">返回</button>
8
       <button nz-button class="btn default" (click)="goBack()">返回</button>
9
     </div>
9
     </div>
10
   </div>
10
   </div>
11
   <!-- 标本 -->
11
   <!-- 标本 -->
12
-  <ng-container *ngIf="activeTagId === 1">
12
+  <ng-container *ngIf="activeTagLink === 'pageConfigSpecimen'">
13
     <app-configuration-specimen></app-configuration-specimen>
13
     <app-configuration-specimen></app-configuration-specimen>
14
   </ng-container>
14
   </ng-container>
15
 </div>
15
 </div>

+ 7 - 4
src/app/views/page-config/page-config.component.ts

@@ -13,19 +13,22 @@ export class PageConfigComponent implements OnInit, AfterViewInit {
13
 
13
 
14
   // tab
14
   // tab
15
   tagList:any = [
15
   tagList:any = [
16
-    { id: 1, name: '标本',},
16
+    // { id: 1, name: '标本',},
17
   ];
17
   ];
18
 
18
 
19
   ngOnInit(): void {}
19
   ngOnInit(): void {}
20
 
20
 
21
   ngAfterViewInit(){
21
   ngAfterViewInit(){
22
-    this.clickTag(this.tagList[0]);
22
+    let menus = JSON.parse(localStorage.getItem("menu"));
23
+    let pageConfig = menus.find(item => item.link == 'pageConfig');
24
+    this.tagList = pageConfig ? (pageConfig.childrens || []) : [];
25
+    this.tagList.length && this.clickTag(this.tagList[0]);
23
   }
26
   }
24
 
27
 
25
   // 点击tab
28
   // 点击tab
26
-  activeTagId:any = 1;
29
+  activeTagLink:any = 1;
27
   clickTag(tag){
30
   clickTag(tag){
28
-    this.activeTagId = tag.id;
31
+    this.activeTagLink = tag.link;
29
   }
32
   }
30
 
33
 
31
   // 返回
34
   // 返回

+ 3 - 0
src/common.less

@@ -1,6 +1,9 @@
1
 .ant-table-tbody tr:nth-of-type(2n){
1
 .ant-table-tbody tr:nth-of-type(2n){
2
   background-color: #e9f7e9!important;
2
   background-color: #e9f7e9!important;
3
 }
3
 }
4
+.w320px {
5
+  width: 320px;
6
+}
4
 .pt0{
7
 .pt0{
5
   padding-top: 0!important;
8
   padding-top: 0!important;
6
 }
9
 }