转移客服的前端js

pull/23/head
陶士涵 4 years ago
parent db6b5f0a5c
commit d21a83cbc9

@ -230,11 +230,15 @@
<el-table-column
prop="status"
label="操作">
<template slot-scope="scope">
<el-tag v-show="scope.row.status=='offline'"
disable-transitions>离线</el-tag>
<el-button v-show="scope.row.status=='online'" type="primary" @click="transKefuVisitor(scope.row.name,visitor.visitor_id)">转移</el-button>
</template>
</el-table-column>
</el-table>
<span slot="footer" class="dialog-footer">
<el-button @click="transKefuDialog = false">取 消</el-button>
<el-button type="primary" @click="transKefuBtn">确 定</el-button>
</span>
</el-dialog>
<!--//转接-->

@ -603,7 +603,13 @@ var app=new Vue({
_this.otherKefus=result;
});
},
transKefuBtn(){},
//转移访客客服
transKefuVisitor(kefu,visitorId){
var _this=this;
// this.sendAjax("/other_kefulist","get",{},function(result){
// _this.otherKefus=result;
// });
},
sendAjax(url,method,params,callback){
let _this=this;
$.ajax({

Loading…
Cancel
Save