Explorar o código

AI外呼话术、个微客户代码调整

Long hai 1 semana
pai
achega
f9107a667d

+ 8 - 4
src/views/company/companyClient/index.vue

@@ -102,7 +102,8 @@
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
-    <el-table v-loading="loading" :data="companyClientList">
+    <el-table v-loading="loading" :data="companyClientList" @selection-change="handleSelectionChange">
+      <el-table-column type="selection" width="55" />
       <el-table-column label="外呼任务" align="center" prop="roboticName"/>
       <el-table-column label="销售" align="center" prop="wxNickName"/>
       <el-table-column label="个微昵称" align="center" prop="nickName"/>
@@ -315,6 +316,7 @@ export default {
     reset() {
       this.form = {
         id: null,
+        roboticId: null,
         roboticWxId: null,
         nickAnme: null,
         avatar: null,
@@ -368,9 +370,11 @@ export default {
         if (valid) {
           let list = [];
           this.form.qwUser.forEach(l => {
-            list = list.concat(l.qwUserId.map(e => {
-              return {intention: l.intention, qwUserId: e, wxDialogId: l.wxDialogId}
-            }))
+            if (l.qwUserId && l.qwUserId.length) {
+              list = list.concat(l.qwUserId.map(e => {
+                return {intention: l.intention, qwUserId: e, wxDialogId: l.wxDialogId}
+              }))
+            }
           })
           this.form.qwUserList = list;
           if (!this.form.qwUserList || this.form.qwUserList.length === 0) {

+ 1 - 1
src/views/company/companyVoiceDialog/index.vue

@@ -78,7 +78,7 @@
             size="mini"
             type="text"
             @click="initUrl(scope.row.id)"
-            v-hasPermi="['company:companyVoiceDialog:list']"
+            v-hasPermi="['system:companyVoiceDialog:list']"
           >配置话术</el-button>
           <el-button
             size="mini"