|
|
@@ -37,54 +37,46 @@
|
|
|
>新增
|
|
|
</el-button>
|
|
|
</el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="danger"
|
|
|
- icon="el-icon-delete"
|
|
|
- size="mini"
|
|
|
- :disabled="multiple"
|
|
|
- @click="handleDelete"
|
|
|
- v-hasPermi="['system:companyVoiceRobotic:remove']"
|
|
|
- >删除
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="warning"
|
|
|
- icon="el-icon-download"
|
|
|
- size="mini"
|
|
|
- @click="handleExport"
|
|
|
- v-hasPermi="['system:companyVoiceRobotic:export']"
|
|
|
- >导出
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
- <el-col :span="1.5">
|
|
|
- <el-button
|
|
|
- type="success"
|
|
|
- icon="el-icon-refresh"
|
|
|
- size="mini"
|
|
|
- @click="updateStatusFun"
|
|
|
- v-hasPermi="['system:companyVoiceRobotic:list']"
|
|
|
- >更新状态
|
|
|
- </el-button>
|
|
|
- </el-col>
|
|
|
+<!-- <el-col :span="1.5">-->
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- type="danger"-->
|
|
|
+<!-- icon="el-icon-delete"-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- :disabled="multiple"-->
|
|
|
+<!-- @click="handleDelete"-->
|
|
|
+<!-- v-hasPermi="['system:companyVoiceRobotic:remove']"-->
|
|
|
+<!-- >删除-->
|
|
|
+<!-- </el-button>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- <el-col :span="1.5">-->
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- type="warning"-->
|
|
|
+<!-- icon="el-icon-download"-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- @click="handleExport"-->
|
|
|
+<!-- v-hasPermi="['system:companyVoiceRobotic:export']"-->
|
|
|
+<!-- >导出-->
|
|
|
+<!-- </el-button>-->
|
|
|
+<!-- </el-col>-->
|
|
|
+<!-- <el-col :span="1.5">-->
|
|
|
+<!-- <el-button-->
|
|
|
+<!-- type="success"-->
|
|
|
+<!-- icon="el-icon-refresh"-->
|
|
|
+<!-- size="mini"-->
|
|
|
+<!-- @click="updateStatusFun"-->
|
|
|
+<!-- v-hasPermi="['system:companyVoiceRobotic:list']"-->
|
|
|
+<!-- >更新状态-->
|
|
|
+<!-- </el-button>-->
|
|
|
+<!-- </el-col>-->
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
|
|
|
|
- <el-table v-loading="loading" :data="roboticList" @selection-change="handleSelectionChange">
|
|
|
- <el-table-column type="selection" width="55" align="center"/>
|
|
|
+ <el-table v-loading="loading" :data="roboticList">
|
|
|
<el-table-column label="ID" align="center" prop="id"/>
|
|
|
<el-table-column label="任务名称" align="center" prop="name"/>
|
|
|
- <el-table-column label="三方名称" align="center" prop="taskName"/>
|
|
|
- <el-table-column label="三方ID" align="center" prop="taskId"/>
|
|
|
- <el-table-column label="机器人" align="center" prop="robot">
|
|
|
+ <el-table-column label="任务流程" align="center" prop="name">
|
|
|
<template slot-scope="scope">
|
|
|
- <p v-for="(item, index) in robotList" v-if="scope.row.robot && scope.row.robot == item.id">{{item.name}}</p>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <el-table-column label="话术" align="center" prop="dialogId">
|
|
|
- <template slot-scope="scope">
|
|
|
- <p v-for="(item, index) in dialogList" v-if="scope.row.dialogId && scope.row.dialogId == item.id">{{item.name}}</p>
|
|
|
+ <el-tag v-for="item in workflowList" v-if="scope.row.companyAiWorkflowId == item.value">{{item.label}}</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="加微方式" align="center" prop="dialogId">
|
|
|
@@ -93,23 +85,6 @@
|
|
|
<el-tag v-if="scope.row.addType == 1">意向</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
-<!-- <el-table-column label="星期" align="center" prop="weekDay1">-->
|
|
|
-<!-- <template slot-scope="scope">-->
|
|
|
-<!-- <el-tag v-for="(item, index) in weekList" v-if="scope.row.weekDay1 && scope.row.weekDay1.indexOf(item.value) != -1">{{item.label}}</el-tag>-->
|
|
|
-<!-- </template>-->
|
|
|
-<!-- </el-table-column>-->
|
|
|
-<!-- <el-table-column label="开始时间" align="center" prop="startTime1"/>-->
|
|
|
-<!-- <el-table-column label="结束时间" align="center" prop="endTime1"/>-->
|
|
|
- <el-table-column label="任务流程" align="center" width="230">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div v-if="scope.row.taskFlow" v-model="scope.row.taskFlow.split(',')" class="flow-parent">
|
|
|
- <div v-for="(item, index) in scope.row.taskFlow.split(',')">
|
|
|
- <el-tag :type="scope.row.runTaskFlow != null && scope.row.runTaskFlow.split(',').indexOf(item) != -1 ? 'success' : 'warning'">{{ taskFlowMap[item] }}</el-tag>
|
|
|
- <i class="el-icon-arrow-right" v-if="index != 2"></i>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
<el-table-column label="任务状态" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-tag v-if="scope.row.taskStatus == 0">未启动</el-tag>
|
|
|
@@ -118,19 +93,19 @@
|
|
|
<el-tag v-if="scope.row.taskStatus == 3" type="success">执行完成</el-tag>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="外呼状态" align="center">
|
|
|
- <template slot-scope="scope">
|
|
|
- <div v-loading="loadingStatus">
|
|
|
- <p v-if="statusObj.hasOwnProperty(scope.row.taskId)">
|
|
|
- <el-tag v-if="statusObj[scope.row.taskId].runningStatus == 0">未启动</el-tag>
|
|
|
- <el-tag v-if="statusObj[scope.row.taskId].runningStatus == 1">运行中</el-tag>
|
|
|
- <el-tag v-if="statusObj[scope.row.taskId].runningStatus == 2">已暂停</el-tag>
|
|
|
- <el-tag v-if="statusObj[scope.row.taskId].runningStatus == 3">已停止</el-tag>
|
|
|
- </p>
|
|
|
- <p v-if="!statusObj.hasOwnProperty(scope.row.taskId)"><el-tag>空</el-tag></p>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
+<!-- <el-table-column label="外呼状态" align="center">-->
|
|
|
+<!-- <template slot-scope="scope">-->
|
|
|
+<!-- <div v-loading="loadingStatus">-->
|
|
|
+<!-- <p v-if="statusObj.hasOwnProperty(scope.row.taskId)">-->
|
|
|
+<!-- <el-tag v-if="statusObj[scope.row.taskId].runningStatus == 0">未启动</el-tag>-->
|
|
|
+<!-- <el-tag v-if="statusObj[scope.row.taskId].runningStatus == 1">运行中</el-tag>-->
|
|
|
+<!-- <el-tag v-if="statusObj[scope.row.taskId].runningStatus == 2">已暂停</el-tag>-->
|
|
|
+<!-- <el-tag v-if="statusObj[scope.row.taskId].runningStatus == 3">已停止</el-tag>-->
|
|
|
+<!-- </p>-->
|
|
|
+<!-- <p v-if="!statusObj.hasOwnProperty(scope.row.taskId)"><el-tag>空</el-tag></p>-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </el-table-column>-->
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
<el-button
|