|
@@ -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>; //消息通知模板
|