|
@@ -72,6 +72,7 @@
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
<el-table-column label="ID" align="center" prop="callerId" />
|
|
|
<el-table-column label="员工姓名" align="center" prop="companyUserNickName" />
|
|
|
+ <el-table-column label="线路" align="center" prop="callerLine" />
|
|
|
<el-table-column label="坐席号" align="center" prop="callerNo" />
|
|
|
<el-table-column label="手机号" align="center" prop="mobile" />
|
|
|
<!-- <el-table-column label="状态" align="center" prop="status" >
|
|
@@ -116,7 +117,17 @@
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="坐席" prop="callerId">
|
|
|
+ <el-form-item label="线路" prop="callerLine">
|
|
|
+ <el-select v-model="form.callerLine" @change="handleCallerLineChange" placeholder="请选择线路" clearable size="small">
|
|
|
+ <el-option
|
|
|
+ v-for="item in callerApis"
|
|
|
+ :key="item.apiId"
|
|
|
+ :label="item.apiName"
|
|
|
+ :value="item.apiId"
|
|
|
+ />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="坐席" prop="callerId" v-if="form.callerLine != null">
|
|
|
<el-select v-model="form.callerId" placeholder="请选择坐席" clearable size="small">
|
|
|
<el-option
|
|
|
v-for="item in callers"
|
|
@@ -163,12 +174,14 @@
|
|
|
import { bindCallerNo,listCompanyVoiceCaller, getCompanyVoiceCaller, delCompanyVoiceCaller, addCompanyVoiceCaller, updateCompanyVoiceCaller, exportCompanyVoiceCaller } from "@/api/company/companyVoiceCaller";
|
|
|
import { getUserList } from "@/api/company/companyUser";
|
|
|
import { getCallerList } from "@/api/company/companyVoiceCaller";
|
|
|
+import {getCallerApiList} from "@/api/company/companyVoiceApi"
|
|
|
|
|
|
import { sendSmsCode } from "@/api/common";
|
|
|
export default {
|
|
|
name: "CompanyCaller",
|
|
|
data() {
|
|
|
return {
|
|
|
+ callerApis:[],
|
|
|
callers:[],
|
|
|
// codeShow: true, // 获取验证码样式
|
|
|
// codeFlag:true,
|
|
@@ -217,6 +230,9 @@ export default {
|
|
|
callerId: [
|
|
|
{ required: true, message: "坐席编号不能为空", trigger: "blur" }
|
|
|
],
|
|
|
+ callerLine:[
|
|
|
+ { required: true, message: "线路不能为空", trigger: "blur" }
|
|
|
+ ]
|
|
|
|
|
|
// code: [
|
|
|
// { required: true, message: "验证码不能为空", trigger: "blur" }
|
|
@@ -281,11 +297,23 @@ export default {
|
|
|
userChange(e){
|
|
|
console.log(e)
|
|
|
},
|
|
|
+ handleCallerLineChange(){
|
|
|
+ this.getCallerList();
|
|
|
+ },
|
|
|
+
|
|
|
getCallerList() {
|
|
|
- getCallerList().then(response => {
|
|
|
+ console.log("-------------------" + JSON.stringify(this.form))
|
|
|
+ const param = {callerLine :this.form.callerLine}
|
|
|
+ getCallerList(param).then(response => {
|
|
|
this.callers = response.data;
|
|
|
});
|
|
|
},
|
|
|
+ getCallerApiList() {
|
|
|
+ const param = {status:1}
|
|
|
+ getCallerApiList(param).then(response => {
|
|
|
+ this.callerApis = response.rows;
|
|
|
+ });
|
|
|
+ },
|
|
|
getUserList() {
|
|
|
getUserList().then(response => {
|
|
|
this.users = response.data;
|
|
@@ -338,7 +366,8 @@ export default {
|
|
|
this.reset();
|
|
|
this.open = true;
|
|
|
this.title = "员工坐席绑定";
|
|
|
- this.getCallerList();
|
|
|
+ this.getCallerApiList();
|
|
|
+ // this.getCallerList();
|
|
|
},
|
|
|
/** 修改按钮操作 */
|
|
|
// handleUpdate(row) {
|