maotao hai 1 mes
pai
achega
86f0ad65dd

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

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

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

@@ -1,5 +1,5 @@
1 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 3
     <!-- 头部Tab -->
4 4
     <div class="tabBox">
5 5
       <div class="tab" #tabs>

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

@@ -3680,7 +3680,6 @@ export class FuwutaiComponent implements OnInit {
3680 3680
           hosId: this.incidentModel.hosId,
3681 3681
         },
3682 3682
       };
3683
-      console.log(postData);
3684 3683
       // return;
3685 3684
       this.isLoading = true;
3686 3685
       this.mainService
@@ -3718,12 +3717,15 @@ export class FuwutaiComponent implements OnInit {
3718 3717
 							orders.push(this.malPriorityDTO.orders)
3719 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 3730
             this.incidentModel.duty = this.incidentCategoryConfig.dutyDTO;
3729 3731
             // this.incidentModel.priorityId = this.incidentCategoryConfig.priority;
@@ -6685,7 +6687,6 @@ export class FuwutaiComponent implements OnInit {
6685 6687
     this.editOrder = cloneDeep(data);
6686 6688
     let incidentModel = cloneDeep(data);
6687 6689
     let incidentMsg:any = {};
6688
-		
6689 6690
     // incidentModel.department && (this.applicationDeptList = [cloneDeep(incidentModel.department)]);
6690 6691
     incidentModel.department && (incidentMsg.deptManyPhone = incidentModel.department.manyPhone);
6691 6692
     incidentModel.department && (incidentMsg.deptName = incidentModel.department.dept);
@@ -6705,6 +6706,7 @@ export class FuwutaiComponent implements OnInit {
6705 6706
     incidentModel.category && (incidentModel.category = incidentModel.category.id);
6706 6707
     this.incidentModel = incidentModel;
6707 6708
     this.incidentMsg = incidentMsg;
6709
+		// this.incidentModel.department && this.changeApply(this.incidentModel.department.id);
6708 6710
     this.incidentModel.category && this.changeApplyCategory(this.incidentModel.category, true);
6709 6711
     console.log('this.applicationDeptList:', this.applicationDeptList)
6710 6712
     console.log('incidentModel:', incidentModel)

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

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

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

@@ -1635,20 +1635,20 @@ export class HushijiandanComponent implements OnInit {
1635 1635
       contacts: [this.loginUser.name, [Validators.required]],
1636 1636
       contactsInformation: [this.loginUser.phone, [Validators.required]],
1637 1637
 			assetId: [null, []],
1638
-			category: [null, []],
1638
+			// category: [null, []],
1639 1639
     });
1640 1640
 		if(this.cmdbRepair){
1641 1641
 			this.validateBxForm.addControl(
1642 1642
 				'assetId',
1643 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 1649
 		}else{
1650 1650
 			this.validateBxForm.removeControl('assetId');
1651
-			this.validateBxForm.removeControl('category');
1651
+			// this.validateBxForm.removeControl('category');
1652 1652
 		}
1653 1653
     this.getDeptById(this.currentDept.id);
1654 1654
   }
@@ -1829,12 +1829,12 @@ export class HushijiandanComponent implements OnInit {
1829 1829
               acceptUser: this.loginUser,
1830 1830
               deleteFlag: 0,
1831 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 1838
           this.mainService.flowPost("incident/task/request", postData).subscribe((res) => {
1839 1839
             this.btnLoading = false;
1840 1840
             this.cancenlLoading = false;

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

@@ -4002,7 +4002,7 @@ export class MainComponent implements OnInit, OnDestroy {
4002 4002
 		  idx: 0,
4003 4003
 		  sum: 20,
4004 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 4006
 		    name: name
4007 4007
 		  },
4008 4008
 		};