Browse Source

协和南京优化开发

maotao 2 months ago
parent
commit
7880eb280b

+ 1 - 1
src/app/components/configurationCenter/configuration-dictionary/configuration-dictionary.component.html

@@ -11,7 +11,7 @@
11 11
           <div class="orders">排序号</div>
12 12
           <div class="name">键</div>
13 13
           <div [ngClass]="{value_2: activeDictionaryKey.key == 'alarm_urgency', value: activeDictionaryKey.key != 'alarm_urgency'}">值</div>
14
-					<div class="value_2" *ngIf="activeDictionaryKey.key == 'alarm_urgency'">关键字</div>
14
+					<!-- <div class="value_2" *ngIf="activeDictionaryKey.key == 'alarm_urgency'">关键字</div> -->
15 15
         </div>
16 16
         <overlay-scrollbars #osComponentRef2 class="contentBody2">
17 17
           <form nz-form [formGroup]="validateDictionaryForm" class="w100">

+ 1 - 1
src/app/components/configurationCenter/configuration-dictionary/configuration-dictionary.component.ts

@@ -234,7 +234,7 @@ export class ConfigurationDictionaryComponent implements OnInit {
234 234
         name: rawValueObj['name_' + this.dictionaryList[i].id],
235 235
         value: rawValueObj['value_' + this.dictionaryList[i].id],
236 236
         orders: rawValueObj['orders_' + this.dictionaryList[i].id],
237
-				extra1: this.activeDictionaryKey.key == 'alarm_urgency' ? rawValueObj['extra1_' + this.dictionaryList[i].id]: undefined,
237
+				// extra1: this.activeDictionaryKey.key == 'alarm_urgency' ? rawValueObj['extra1_' + this.dictionaryList[i].id]: undefined,
238 238
         system: uuidValidate(this.dictionaryList[i].id) ? false : this.dictionaryList[i].system,
239 239
         key: this.activeDictionaryKey.key,
240 240
       })

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

@@ -1869,7 +1869,7 @@
1869 1869
   // 右侧悬浮菜单-录音盒或呼叫中心状态
1870 1870
   .fixedAll {
1871 1871
     position: fixed;
1872
-    top: 40%;
1872
+    top: 0;
1873 1873
     right: 0;
1874 1874
     z-index: 10;
1875 1875
     border-radius: 5px 0 0 5px;

+ 34 - 29
src/app/views/fuwutai/fuwutai.component.ts

@@ -1663,7 +1663,6 @@ export class FuwutaiComponent implements OnInit {
1663 1663
         console.log(data);
1664 1664
         console.log(this.incidentModel);
1665 1665
         this.websocketLoading = false;
1666
-
1667 1666
         // 200签入 201摘机 202来电
1668 1667
         if (data.status == 200 && data.phone) {
1669 1668
           this.incomingService.setPhoneNumber(phoneNumber);
@@ -1672,6 +1671,7 @@ export class FuwutaiComponent implements OnInit {
1672 1671
           this.incidentModel.callID = data.callId || undefined;
1673 1672
           this.msg.info('签入成功');
1674 1673
           this.cancelBindExtensionNumber();
1674
+					this.moveMenuAll("fixedMenuAll");
1675 1675
         } else if (data.status == 201 && data.phone) {
1676 1676
           this.incidentModel = { repairIncidentType: 'dept' };
1677 1677
           this.incidentMsg = {};
@@ -1679,6 +1679,7 @@ export class FuwutaiComponent implements OnInit {
1679 1679
 					this.contactsPhone = data.phone;
1680 1680
           this.incidentModel.incomingPhone = this.callNumber = this.incidentModel.contactsInformation = data.phone;
1681 1681
           this.searchBxDept();
1682
+					this.moveMenuAll("fixedMenuAll");
1682 1683
         } else if (data.status == 201 && data.phone === "") {
1683 1684
           this.incidentModel = { repairIncidentType: 'dept' };
1684 1685
           this.incidentMsg = {};
@@ -1688,6 +1689,7 @@ export class FuwutaiComponent implements OnInit {
1688 1689
             this.applyDept = null;
1689 1690
             this.showNewOrder(1, "no", data.phone, true, '来电弹屏');
1690 1691
           }
1692
+					this.moveMenuAll("fixedMenuAll");
1691 1693
         } else if (data.status == 202) {
1692 1694
           this.msg.warning(data.msg);
1693 1695
         }
@@ -6135,34 +6137,37 @@ export class FuwutaiComponent implements OnInit {
6135 6137
 
6136 6138
   // 菜单拖拽-自由
6137 6139
   moveMenuAll(nodeId) {
6138
-    let fixedMenu = document.getElementById(nodeId);
6139
-    if (!fixedMenu) return;
6140
-    fixedMenu.onmousedown = function (e) {
6141
-      fixedMenu.classList.remove('maskFull');
6142
-      let x = e.clientX - fixedMenu.offsetLeft;
6143
-      let y = e.clientY - fixedMenu.offsetTop;
6144
-      document.onmousemove = function (ev) {
6145
-        fixedMenu.classList.add('maskFull');
6146
-        var _y = ev.clientY - y > 0 ? ev.clientY - y : 0;
6147
-        var h = window.innerHeight;
6148
-        if (_y > h - fixedMenu.clientHeight) {
6149
-          _y = h - fixedMenu.clientHeight;
6150
-        }
6151
-        fixedMenu.style.top = _y + "px";
6152
-
6153
-        var _x = ev.clientX - x > 0 ? ev.clientX - x : 0;
6154
-        var w = window.innerWidth;
6155
-        if (_x > w - fixedMenu.clientWidth) {
6156
-          _x = w - fixedMenu.clientWidth;
6157
-        }
6158
-        fixedMenu.style.right = w - _x - fixedMenu.clientWidth + "px";
6159
-      };
6160
-      document.onmouseup = function () {
6161
-        fixedMenu.classList.remove('maskFull');
6162
-        document.onmousemove = null;
6163
-        document.onmouseup = null;
6164
-      };
6165
-    };
6140
+		setTimeout(_=>{
6141
+			let fixedMenu = document.getElementById(nodeId);
6142
+			console.log(88888,fixedMenu)
6143
+			if (!fixedMenu) return;
6144
+			fixedMenu.onmousedown = function (e) {
6145
+			  fixedMenu.classList.remove('maskFull');
6146
+			  let x = e.clientX - fixedMenu.offsetLeft;
6147
+			  let y = e.clientY - fixedMenu.offsetTop;
6148
+			  document.onmousemove = function (ev) {
6149
+			    fixedMenu.classList.add('maskFull');
6150
+			    var _y = ev.clientY - y > 0 ? ev.clientY - y : 0;
6151
+			    var h = window.innerHeight;
6152
+			    if (_y > h - fixedMenu.clientHeight) {
6153
+			      _y = h - fixedMenu.clientHeight;
6154
+			    }
6155
+			    fixedMenu.style.top = _y + "px";
6156
+			
6157
+			    var _x = ev.clientX - x > 0 ? ev.clientX - x : 0;
6158
+			    var w = window.innerWidth;
6159
+			    if (_x > w - fixedMenu.clientWidth) {
6160
+			      _x = w - fixedMenu.clientWidth;
6161
+			    }
6162
+			    fixedMenu.style.right = w - _x - fixedMenu.clientWidth + "px";
6163
+			  };
6164
+			  document.onmouseup = function () {
6165
+			    fixedMenu.classList.remove('maskFull');
6166
+			    document.onmousemove = null;
6167
+			    document.onmouseup = null;
6168
+			  };
6169
+			};
6170
+		},500)
6166 6171
   }
6167 6172
 
6168 6173
   @ViewChild("msgTemplate", { static: false }) msgTemplate: TemplateRef<any>; //消息通知模板

+ 6 - 0
src/app/views/hushijiandan/hushijiandan.component.ts

@@ -1994,6 +1994,7 @@ export class HushijiandanComponent implements OnInit {
1994 1994
 				.subscribe((result) => {
1995 1995
 					let arr = result.start.start.list;
1996 1996
 					arr.forEach(i=>{
1997
+						i.inputcode = i.inputcode.toUpperCase()
1997 1998
 						if(this.deptDisplay == 2){
1998 1999
 							i.deptalias = i.deptalias + '('+i.inputcode+')'
1999 2000
 						}else{
@@ -2018,6 +2019,7 @@ export class HushijiandanComponent implements OnInit {
2018 2019
 				.subscribe((result) => {
2019 2020
 					let arr = result.end.end.list;
2020 2021
 					arr.forEach(i=>{
2022
+						i.inputcode = i.inputcode.toUpperCase()
2021 2023
 						if(this.deptDisplay == 2){
2022 2024
 							i.deptalias = i.deptalias + '('+i.inputcode+')'
2023 2025
 						}else{
@@ -2066,6 +2068,7 @@ export class HushijiandanComponent implements OnInit {
2066 2068
       .subscribe((data) => {
2067 2069
         if (type == "target") {
2068 2070
 					data.list.forEach(i=>{
2071
+						i.inputcode = i.inputcode.toUpperCase()
2069 2072
 						if(this.deptDisplay == 2){
2070 2073
 							i.deptalias = i.deptalias + '('+i.inputcode+')'
2071 2074
 						}else{
@@ -2075,6 +2078,7 @@ export class HushijiandanComponent implements OnInit {
2075 2078
           msg.end.end.list = data.list;
2076 2079
         } else if (type == "start") {
2077 2080
 					data.list.forEach(i=>{
2081
+						i.inputcode = i.inputcode.toUpperCase()
2078 2082
 						if(this.deptDisplay == 2){
2079 2083
 							i.deptalias = i.deptalias + '('+i.inputcode+')'
2080 2084
 						}else{
@@ -3588,6 +3592,7 @@ export class HushijiandanComponent implements OnInit {
3588 3592
       .postCustom("nurse", "workOrder/buildTrip", postData)
3589 3593
       .subscribe((result) => {
3590 3594
 				result.start.start.list.forEach(i=>{
3595
+					i.inputcode = i.inputcode.toUpperCase()
3591 3596
 					if(this.deptDisplay ==2){
3592 3597
 						i.deptalias = i.deptalias + '('+i.inputcode+')'
3593 3598
 					}else{
@@ -3595,6 +3600,7 @@ export class HushijiandanComponent implements OnInit {
3595 3600
 					}
3596 3601
 				})
3597 3602
 				result.end.end.list.forEach(i=>{
3603
+					i.inputcode = i.inputcode.toUpperCase()
3598 3604
 					if(this.deptDisplay ==2){
3599 3605
 						i.deptalias = i.deptalias + '('+i.inputcode+')'
3600 3606
 					}else{

+ 1 - 1
src/app/views/users-management/users-management.component.html

@@ -264,7 +264,7 @@
264 264
 </app-dialog-delete>
265 265
 
266 266
 <!-- 恢复账号 -->
267
-<app-dialog-delete [delModal]="recoverModal" [btnLoading]="recoverLoading"
267
+<app-dialog-delete [delModal]="recoverModal" [btnLoading]="recoverLoading" (hideDelModalEvent)="hideRecoverModal()"
268 268
   (confirmDelEvent)="confirmRecover()" (cancelDelEvent)="hideRecoverModal()" content="您确认恢复此用户吗?" confirmTxt="是" cancelTxt="否">
269 269
 </app-dialog-delete>
270 270