Ver código fonte

cid回调改动

lmx 4 dias atrás
pai
commit
7f8a466e83

+ 5 - 2
src/views/company/companyConfig/index.vue

@@ -46,7 +46,9 @@
              <el-form-item label="是否允许重复客户导入" prop="allowRepeatCustomer">
              <el-form-item label="是否允许重复客户导入" prop="allowRepeatCustomer">
               <el-switch v-model="cidConfig.allowRepeatCustomer"></el-switch>
               <el-switch v-model="cidConfig.allowRepeatCustomer"></el-switch>
             </el-form-item>
             </el-form-item>
-
+            <el-form-item label="回调地址" prop="callbackUrl">
+               <el-input v-model="cidConfig.callbackUrl" style="width:800px"></el-input>
+            </el-form-item>
             <div class="line"></div>
             <div class="line"></div>
             <div style="float:right;margin-right:20px">
             <div style="float:right;margin-right:20px">
               <el-button type="primary" @click="onSubmitCidConfig">提交</el-button>
               <el-button type="primary" @click="onSubmitCidConfig">提交</el-button>
@@ -365,7 +367,8 @@ export default {
       userIsDefaultBlack: null,
       userIsDefaultBlack: null,
       redPacketConfig:{},
       redPacketConfig:{},
 
 
-      redPacketConfigForm:{}
+      redPacketConfigForm:{},
+      cidConfigForm:{}
     };
     };
   },
   },
   created() {
   created() {

+ 18 - 8
src/views/company/companyVoiceRobotic/index.vue

@@ -651,7 +651,7 @@
                             <i class="el-icon-s-operation"></i>
                             <i class="el-icon-s-operation"></i>
                             当前节点:<strong>{{ record.currentNodeTypeName }}</strong>
                             当前节点:<strong>{{ record.currentNodeTypeName }}</strong>
 
 
-                            <el-button
+                            <!-- <el-button
                               v-if="hasContent(record)"
                               v-if="hasContent(record)"
                               size="mini"
                               size="mini"
                               type="primary"
                               type="primary"
@@ -660,7 +660,7 @@
                               style="margin-left: 8px;"
                               style="margin-left: 8px;"
                               @click.stop="handleShowContent(record)">
                               @click.stop="handleShowContent(record)">
                                 查看对话内容
                                 查看对话内容
-                            </el-button>
+                            </el-button> -->
                             <!-- 外呼未执行标识 -->
                             <!-- 外呼未执行标识 -->
                             <el-button
                             <el-button
                                 v-if="record.waitCallNode"
                                 v-if="record.waitCallNode"
@@ -704,6 +704,16 @@
                           <div class="node-info">
                           <div class="node-info">
                             <i :class="getNodeIcon(log.nodeKey)" class="node-icon"></i>
                             <i :class="getNodeIcon(log.nodeKey)" class="node-icon"></i>
                             <span class="node-name">{{ log.nodeName }}</span>
                             <span class="node-name">{{ log.nodeName }}</span>
+                            <el-button
+                              v-if="hasContent(log)"
+                              size="mini"
+                              type="primary"
+                              plain
+                              icon="el-icon-chat-dot-round"
+                              style="margin-left: 8px;"
+                              @click.stop="handleShowContent(record,log)">
+                                查看对话内容
+                            </el-button>
                           </div>
                           </div>
                           <el-tag
                           <el-tag
                             :type="getStatusTagType(log.statusName)"
                             :type="getStatusTagType(log.statusName)"
@@ -1614,10 +1624,10 @@ export default {
       this.manualCallDialog.companyUserId = null;
       this.manualCallDialog.companyUserId = null;
       this.manualCallDialog.workflowInstanceId = null;
       this.manualCallDialog.workflowInstanceId = null;
     },
     },
-    handleShowContent(record) {
+     handleShowContent(record,log) {
       this.contentDialog.customerName = record.customerName || '';
       this.contentDialog.customerName = record.customerName || '';
       this.contentDialog.customerPhone = record.customerPhone || '';
       this.contentDialog.customerPhone = record.customerPhone || '';
-      this.contentDialog.content = record.contentList || '';
+      this.contentDialog.content = log.nodeContentList || '';
       this.contentDialog.visible = true;
       this.contentDialog.visible = true;
     },
     },
 
 
@@ -1645,12 +1655,12 @@ export default {
       }
       }
     },
     },
     hasContent(record) {
     hasContent(record) {
-      if (!record || !record.contentList) return false
+      if (!record || !record.nodeContentList) return false
 
 
       try {
       try {
-          const parsed = typeof record.contentList === 'string'
-              ? JSON.parse(record.contentList)
-              : record.contentList
+          const parsed = typeof record.nodeContentList === 'string'
+              ? JSON.parse(record.nodeContentList)
+              : record.nodeContentList
 
 
           if (!Array.isArray(parsed)) return false
           if (!Array.isArray(parsed)) return false