shop_mer_admin/mer/js/chunk-3e308a0d.10536957.js

1 line
9.7 KiB
JavaScript
Raw Permalink Normal View History

2024-03-16 17:53:53 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e308a0d"],{"42db":function(t,e,a){"use strict";a("ca0b")},ca0b:function(t,e,a){},cdfe:function(t,e,a){t.exports=a.p+"mer/img/f.5aa43cd3.png"},ceef:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"divBox"},[i("div",{staticClass:"selCard"},[i("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,inline:"",size:"small","label-width":"65px"}},[i("el-form-item",{attrs:{label:"状态:",prop:"status"}},[i("el-select",{staticClass:"selWidth",attrs:{placeholder:"客服状态:",clearable:""},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},t._l(t.optionsData,(function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),i("el-form-item",{attrs:{label:"关键字:",prop:"keyword"}},[i("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入关键字",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}})],1),t._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),i("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),i("el-card",{staticClass:"mt14"},[i("el-button",{staticClass:"mb20",attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加客服")]),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{data:t.tableData.data,size:"small"}},[i("el-table-column",{attrs:{prop:"service_id",label:"ID","min-width":"60"}}),t._v(" "),i("el-table-column",{attrs:{prop:"user.nickname",label:"微信用户名称","min-width":"130"}}),t._v(" "),i("el-table-column",{attrs:{label:"客服头像","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(t){return[i("div",{staticClass:"demo-image__preview"},[i("el-image",{staticClass:"tabImage",attrs:{src:t.row.avatar,"preview-src-list":[t.row.avatar]}})],1)]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"nickname",label:"客服名称","min-width":"130"}}),t._v(" "),i("el-table-column",{attrs:{label:"帐号状态","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-switch",{attrs:{"active-value":1,"inactive-value":0,disabled:!e.row.user||e.row.user.cancel_time,"active-text":"开","inactive-text":"关"},nativeOn:{click:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_open,callback:function(a){t.$set(e.row,"is_open",a)},expression:"scope.row.is_open"}})]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"create_time",label:"添加时间","min-width":"150"}}),t._v(" "),i("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.is_open&&e.row.status?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.login(e.row.service_id,e.$index)}}},[t._v("进入工作台\n ")]):t._e(),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.goList(e.row.service_id,e.$index)}}},[t._v("聊天记录")]),t._v(" "),e.row.user&&!e.row.user.cancel_time?i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.service_id)}}},[t._v("编辑")]):t._e(),t._v(" "),i("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onDel(e.row.service_id,e.$index)}}},[t._v("删除")])]}}])})],1),t._v(" "),i("div",{staticClass:"block"},[i("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-chang