Browse Source

拉取代码

maotao 1 month ago
parent
commit
86f0ad65dd

+ 6 - 0
src/app/components/configurationCenter/configuration-system-security/configuration-system-security.component.html

@@ -41,6 +41,12 @@
41
 									<nz-input-number [(ngModel)]="validity" [nzMin]="0" [nzMax]="99999" [nzStep]="1"></nz-input-number>&nbsp;&nbsp;分钟 
41
 									<nz-input-number [(ngModel)]="validity" [nzMin]="0" [nzMax]="99999" [nzStep]="1"></nz-input-number>&nbsp;&nbsp;分钟 
42
 								</div>
42
 								</div>
43
 								
43
 								
44
+								<!-- 验证码干扰线数量 -->
45
+								<div class="display_flex align-items_center mb8" *ngIf="verificationCode[0].checked">
46
+									<nz-form-label class="label">验证码干扰线数量</nz-form-label>
47
+									<nz-input-number [(ngModel)]="verificationCodeNoiseLines" [nzMin]="1" [nzMax]="50" [nzStep]="1"></nz-input-number>
48
+								</div>
49
+								
44
                 <!-- 是否限制账户错误登录次数 -->
50
                 <!-- 是否限制账户错误登录次数 -->
45
                 <div class="display_flex align-items_center mb8">
51
                 <div class="display_flex align-items_center mb8">
46
                   <nz-form-label class="label">是否限制账户错误登录次数</nz-form-label>
52
                   <nz-form-label class="label">是否限制账户错误登录次数</nz-form-label>

+ 11 - 1
src/app/components/configurationCenter/configuration-system-security/configuration-system-security.component.ts

@@ -32,6 +32,7 @@ export class ConfigurationSystemSecurityComponent implements OnInit {
32
 	validity:any; //验证码有效期
32
 	validity:any; //验证码有效期
33
   isErrorTime:any = [{ label:'是否开启', value: 0 }];//是否限制账户错误登录次数
33
   isErrorTime:any = [{ label:'是否开启', value: 0 }];//是否限制账户错误登录次数
34
   errorTime:any;//支持错误次数
34
   errorTime:any;//支持错误次数
35
+	verificationCodeNoiseLines:any;//验证码干扰线数量
35
   astrictIp:any = [{ label:'是否开启', value: 1 }];//终点科室支持核对
36
   astrictIp:any = [{ label:'是否开启', value: 1 }];//终点科室支持核对
36
   drugsEndCheckScanIds:any = [];//是否限制单点登录ip
37
   drugsEndCheckScanIds:any = [];//是否限制单点登录ip
37
   rangeIp:any;//单点登录范围内IP
38
   rangeIp:any;//单点登录范围内IP
@@ -100,6 +101,10 @@ export class ConfigurationSystemSecurityComponent implements OnInit {
100
 				this.msg.error('验证码有效期不能为空')
101
 				this.msg.error('验证码有效期不能为空')
101
 				return 
102
 				return 
102
 			}
103
 			}
104
+			if(!this.verificationCodeNoiseLines){
105
+				this.msg.error('验证码干扰线数量不能为空')
106
+				return 
107
+			}
103
 		}
108
 		}
104
 		
109
 		
105
 		if(this.isErrorTime[0].checked){
110
 		if(this.isErrorTime[0].checked){
@@ -108,7 +113,7 @@ export class ConfigurationSystemSecurityComponent implements OnInit {
108
 				return 
113
 				return 
109
 			}
114
 			}
110
 		}
115
 		}
111
-	
116
+		
112
 		// if(this.astrictIp[0].checked){
117
 		// if(this.astrictIp[0].checked){
113
 		// 	let isEmpty = this.ipData.filter(i=>i.rangeIp=='')
118
 		// 	let isEmpty = this.ipData.filter(i=>i.rangeIp=='')
114
 		// 	if(isEmpty.length>0){
119
 		// 	if(isEmpty.length>0){
@@ -131,6 +136,8 @@ export class ConfigurationSystemSecurityComponent implements OnInit {
131
 			  item.configValue = this.digit;
136
 			  item.configValue = this.digit;
132
 			}else if (item.configKey === "verificationCodeDuration") {
137
 			}else if (item.configKey === "verificationCodeDuration") {
133
 		    item.configValue = this.validity;
138
 		    item.configValue = this.validity;
139
+		  }else if (item.configKey === "verificationCodeNoiseLines") {
140
+		    item.configValue = this.verificationCodeNoiseLines;
134
 		  }else if (item.configKey === "limitIncorrectLogin") {
141
 		  }else if (item.configKey === "limitIncorrectLogin") {
135
 		    let value = null
142
 		    let value = null
136
 		    if(this.isErrorTime[0].checked){
143
 		    if(this.isErrorTime[0].checked){
@@ -209,6 +216,9 @@ export class ConfigurationSystemSecurityComponent implements OnInit {
209
 								case "verificationCodeDuration":
216
 								case "verificationCodeDuration":
210
 									this.validity = c[1]
217
 									this.validity = c[1]
211
 									break;
218
 									break;
219
+								case "verificationCodeNoiseLines":
220
+									this.verificationCodeNoiseLines = c[1]
221
+									break;
212
 								case "limitIncorrectLogin":
222
 								case "limitIncorrectLogin":
213
 									if(c[1]=='1'){
223
 									if(c[1]=='1'){
214
 										this.isErrorTime[0].checked = true
224
 										this.isErrorTime[0].checked = true

+ 1 - 1
src/app/views/fuwutai/fuwutai.component.html

@@ -1,5 +1,5 @@
1
 <div class="fuwutai">
1
 <div class="fuwutai">
2
-  <div class="top" id="top" *ngIf="hurseInfoHiding != 1">
2
+  <div class="top" id="top" *ngIf="hurseInfoHiding != 1 && hsmsData.hsmsSwitch==1">
3
     <!-- 头部Tab -->
3
     <!-- 头部Tab -->
4
     <div class="tabBox">
4
     <div class="tabBox">
5
       <div class="tab" #tabs>
5
       <div class="tab" #tabs>

+ 10 - 8
src/app/views/fuwutai/fuwutai.component.ts

@@ -3680,7 +3680,6 @@ export class FuwutaiComponent implements OnInit {
3680
           hosId: this.incidentModel.hosId,
3680
           hosId: this.incidentModel.hosId,
3681
         },
3681
         },
3682
       };
3682
       };
3683
-      console.log(postData);
3684
       // return;
3683
       // return;
3685
       this.isLoading = true;
3684
       this.isLoading = true;
3686
       this.mainService
3685
       this.mainService
@@ -3718,12 +3717,15 @@ export class FuwutaiComponent implements OnInit {
3718
 							orders.push(this.malPriorityDTO.orders)
3717
 							orders.push(this.malPriorityDTO.orders)
3719
 							id.push(this.malPriorityDTO.id)
3718
 							id.push(this.malPriorityDTO.id)
3720
 						}
3719
 						}
3721
-						let minNumber = Math.min(...orders)
3722
-						let index = orders.indexOf(minNumber)
3723
-						console.log('最小值的orders', minNumber)
3724
-						setTimeout(_=>{
3725
-							this.incidentModel.priorityId = minNumber != Infinity ? id[index] : null
3726
-						})
3720
+						if(orders.length>0){
3721
+							let minNumber = Math.min(...orders)
3722
+							let index = orders.indexOf(minNumber)
3723
+							console.log('最小值的orders', orders, minNumber)
3724
+							setTimeout(_=>{
3725
+								this.incidentModel.priorityId = minNumber != Infinity ? id[index] : null
3726
+							})
3727
+						}
3728
+
3727
             // 根据院区和故障现象带出责任部门,优先级,维修人/组
3729
             // 根据院区和故障现象带出责任部门,优先级,维修人/组
3728
             this.incidentModel.duty = this.incidentCategoryConfig.dutyDTO;
3730
             this.incidentModel.duty = this.incidentCategoryConfig.dutyDTO;
3729
             // this.incidentModel.priorityId = this.incidentCategoryConfig.priority;
3731
             // this.incidentModel.priorityId = this.incidentCategoryConfig.priority;
@@ -6685,7 +6687,6 @@ export class FuwutaiComponent implements OnInit {
6685
     this.editOrder = cloneDeep(data);
6687
     this.editOrder = cloneDeep(data);
6686
     let incidentModel = cloneDeep(data);
6688
     let incidentModel = cloneDeep(data);
6687
     let incidentMsg:any = {};
6689
     let incidentMsg:any = {};
6688
-		
6689
     // incidentModel.department && (this.applicationDeptList = [cloneDeep(incidentModel.department)]);
6690
     // incidentModel.department && (this.applicationDeptList = [cloneDeep(incidentModel.department)]);
6690
     incidentModel.department && (incidentMsg.deptManyPhone = incidentModel.department.manyPhone);
6691
     incidentModel.department && (incidentMsg.deptManyPhone = incidentModel.department.manyPhone);
6691
     incidentModel.department && (incidentMsg.deptName = incidentModel.department.dept);
6692
     incidentModel.department && (incidentMsg.deptName = incidentModel.department.dept);
@@ -6705,6 +6706,7 @@ export class FuwutaiComponent implements OnInit {
6705
     incidentModel.category && (incidentModel.category = incidentModel.category.id);
6706
     incidentModel.category && (incidentModel.category = incidentModel.category.id);
6706
     this.incidentModel = incidentModel;
6707
     this.incidentModel = incidentModel;
6707
     this.incidentMsg = incidentMsg;
6708
     this.incidentMsg = incidentMsg;
6709
+		// this.incidentModel.department && this.changeApply(this.incidentModel.department.id);
6708
     this.incidentModel.category && this.changeApplyCategory(this.incidentModel.category, true);
6710
     this.incidentModel.category && this.changeApplyCategory(this.incidentModel.category, true);
6709
     console.log('this.applicationDeptList:', this.applicationDeptList)
6711
     console.log('this.applicationDeptList:', this.applicationDeptList)
6710
     console.log('incidentModel:', incidentModel)
6712
     console.log('incidentModel:', incidentModel)

+ 2 - 2
src/app/views/hushijiandan/hushijiandan.component.html

@@ -2426,7 +2426,7 @@
2426
             </nz-select>
2426
             </nz-select>
2427
           </nz-form-control>
2427
           </nz-form-control>
2428
         
2428
         
2429
-          <nz-form-label nzFor="contactsInformation">故障现象</nz-form-label>
2429
+    <!--      <nz-form-label nzFor="contactsInformation">故障现象</nz-form-label>
2430
           <nz-form-control style="display: inline-block;">
2430
           <nz-form-control style="display: inline-block;">
2431
             <nz-select style="width:185px;" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzPlaceHolder="请选择故障现象" formControlName="category" (ngModelChange)="changeApplyCategory($event)">
2431
             <nz-select style="width:185px;" [nzDropdownMatchSelectWidth]="false" nzShowSearch nzPlaceHolder="请选择故障现象" formControlName="category" (ngModelChange)="changeApplyCategory($event)">
2432
             	<ng-container *ngFor="let option of applicationCategoryList">
2432
             	<ng-container *ngFor="let option of applicationCategoryList">
@@ -2436,7 +2436,7 @@
2436
             		<i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
2436
             		<i nz-icon nzType="loading" class="loading-icon"></i> 搜索中...
2437
             	</nz-option>
2437
             	</nz-option>
2438
             </nz-select>
2438
             </nz-select>
2439
-          </nz-form-control>
2439
+          </nz-form-control> -->
2440
         </nz-form-item>
2440
         </nz-form-item>
2441
 				
2441
 				
2442
 				<nz-form-item>
2442
 				<nz-form-item>

+ 10 - 10
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -1635,20 +1635,20 @@ export class HushijiandanComponent implements OnInit {
1635
       contacts: [this.loginUser.name, [Validators.required]],
1635
       contacts: [this.loginUser.name, [Validators.required]],
1636
       contactsInformation: [this.loginUser.phone, [Validators.required]],
1636
       contactsInformation: [this.loginUser.phone, [Validators.required]],
1637
 			assetId: [null, []],
1637
 			assetId: [null, []],
1638
-			category: [null, []],
1638
+			// category: [null, []],
1639
     });
1639
     });
1640
 		if(this.cmdbRepair){
1640
 		if(this.cmdbRepair){
1641
 			this.validateBxForm.addControl(
1641
 			this.validateBxForm.addControl(
1642
 				'assetId',
1642
 				'assetId',
1643
 				new FormControl(null, [])
1643
 				new FormControl(null, [])
1644
 			);
1644
 			);
1645
-			this.validateBxForm.addControl(
1646
-				'category',
1647
-				new FormControl(null, [])
1648
-			);
1645
+			// this.validateBxForm.addControl(
1646
+			// 	'category',
1647
+			// 	new FormControl(null, [])
1648
+			// );
1649
 		}else{
1649
 		}else{
1650
 			this.validateBxForm.removeControl('assetId');
1650
 			this.validateBxForm.removeControl('assetId');
1651
-			this.validateBxForm.removeControl('category');
1651
+			// this.validateBxForm.removeControl('category');
1652
 		}
1652
 		}
1653
     this.getDeptById(this.currentDept.id);
1653
     this.getDeptById(this.currentDept.id);
1654
   }
1654
   }
@@ -1829,12 +1829,12 @@ export class HushijiandanComponent implements OnInit {
1829
               acceptUser: this.loginUser,
1829
               acceptUser: this.loginUser,
1830
               deleteFlag: 0,
1830
               deleteFlag: 0,
1831
 							assetId: this.validateBxForm.value.assetId || undefined,
1831
 							assetId: this.validateBxForm.value.assetId || undefined,
1832
-							category: this.validateBxForm.value.category ? { id: this.validateBxForm.value.category } : undefined,
1832
+							// category: this.validateBxForm.value.category ? { id: this.validateBxForm.value.category } : undefined,
1833
             },
1833
             },
1834
           };
1834
           };
1835
-          if (this.coopBx.category) {
1836
-            postData.incident.category = this.coopBx.categoryDTO;
1837
-          }
1835
+          // if (this.coopBx.category) {
1836
+          //   postData.incident.category = this.coopBx.categoryDTO;
1837
+          // }
1838
           this.mainService.flowPost("incident/task/request", postData).subscribe((res) => {
1838
           this.mainService.flowPost("incident/task/request", postData).subscribe((res) => {
1839
             this.btnLoading = false;
1839
             this.btnLoading = false;
1840
             this.cancenlLoading = false;
1840
             this.cancenlLoading = false;

+ 1 - 1
src/app/views/main/main.component.ts

@@ -4002,7 +4002,7 @@ export class MainComponent implements OnInit, OnDestroy {
4002
 		  idx: 0,
4002
 		  idx: 0,
4003
 		  sum: 20,
4003
 		  sum: 20,
4004
 		  asset: {
4004
 		  asset: {
4005
-		    hosId: this.hospitalModel!=1 ? this.incidentModel.hosId : this.currentHospital.id,
4005
+		    downHosId: this.hospitalModel!=1 ? this.incidentModel.hosId : this.currentHospital.id,
4006
 		    name: name
4006
 		    name: name
4007
 		  },
4007
 		  },
4008
 		};
4008
 		};