diff --git a/src/layout/components/ivr/ivrBar.vue b/src/layout/components/ivr/ivrBar.vue
index fd4e4c1..ba64d8e 100644
--- a/src/layout/components/ivr/ivrBar.vue
+++ b/src/layout/components/ivr/ivrBar.vue
@@ -352,9 +352,11 @@
},
// 保持
hold() {
- if (this.judgeStatus()) {
- const strSend = this.createCommand('hold')
- this.webSocket.send(strSend)
+ if (this.judgeStatus()) { // 判断坐席状态,判断通话状态
+ if (this.judgeCallStatus()) {
+ const strSend = this.createCommand('hold')
+ this.webSocket.send(strSend)
+ }
}
},
// 解除保持
@@ -667,7 +669,7 @@
}
return sendStr
},
- // 判断状态
+ // 判断坐席状态
judgeStatus() {
if (this.status == '已签入') {
return true
@@ -675,6 +677,15 @@
this.$message.warning('请先签入呼叫平台')
return false
}
+ },
+ // 判断通话状态
+ judgeCallStatus() {
+ if (this.isInCall) {
+ return true
+ } else {
+ this.$message.warning('未在通话中')
+ return false
+ }
}
}
}
diff --git a/src/layout/components/ivr/ivrBar.vue b/src/layout/components/ivr/ivrBar.vue
index fd4e4c1..ba64d8e 100644
--- a/src/layout/components/ivr/ivrBar.vue
+++ b/src/layout/components/ivr/ivrBar.vue
@@ -352,9 +352,11 @@
},
// 保持
hold() {
- if (this.judgeStatus()) {
- const strSend = this.createCommand('hold')
- this.webSocket.send(strSend)
+ if (this.judgeStatus()) { // 判断坐席状态,判断通话状态
+ if (this.judgeCallStatus()) {
+ const strSend = this.createCommand('hold')
+ this.webSocket.send(strSend)
+ }
}
},
// 解除保持
@@ -667,7 +669,7 @@
}
return sendStr
},
- // 判断状态
+ // 判断坐席状态
judgeStatus() {
if (this.status == '已签入') {
return true
@@ -675,6 +677,15 @@
this.$message.warning('请先签入呼叫平台')
return false
}
+ },
+ // 判断通话状态
+ judgeCallStatus() {
+ if (this.isInCall) {
+ return true
+ } else {
+ this.$message.warning('未在通话中')
+ return false
+ }
}
}
}
diff --git a/src/views/caseManage/components/knowledgeDetail.vue b/src/views/caseManage/components/knowledgeDetail.vue
new file mode 100644
index 0000000..f4ec86b
--- /dev/null
+++ b/src/views/caseManage/components/knowledgeDetail.vue
@@ -0,0 +1,75 @@
+
+