chunk-2454.463b68e9.js 5.2 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2454"],{"7WZi":function(t,e,a){"use strict";a.r(e);var i={data:function(){return{order_type:"2",list:[],times:[],search_form:{rule_kwd:""},rules:{},current_page:1,total:1,per_page:1}},created:function(){},components:{yun_service_side:a("2gMQ").a},mounted:function(){this.getData(1)},methods:{getData:function(t){var e=this,a={page:t,rule_kwd:this.search_form.rule_kwd};$http.pc_post("plugin/YunChat/wordsReplyGetList",a,"loading").then(function(t){t.result?(e.list=t.data.data,e.current_page=t.data.current_page,e.total=t.data.total,e.per_page=t.data.per_page):e.$message({message:t.msg,type:"error"})},function(t){e.$message({message:t.msg,type:"error"})})},edit:function(t){this.$router.push(this.fun.getUrl("serviceWordsReplyDetail",{},{id:t.id}))},search:function(t){this.getData(t)},addModal:function(){this.$router.push(this.fun.getUrl("serviceWordsReplyDetail"))},deleteData:function(t){var e=this;this.$confirm("确定删除回复吗","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){$http.pc_post("plugin/YunChat/wordsReplyDelete",{id:t},"loading").then(function(t){t.result?(e.$message({type:"success",message:"操作成功!"}),e.getData(e.current_page)):e.$message({type:"error",message:t.msg}),e.search(e.current_page)},function(t){e.$message({type:"error",message:t.msg})})}).catch(function(){e.$message({type:"info",message:"已取消操作"})})},gotoOther:function(t){1==t?this.$router.push(this.fun.getUrl("serviceBasic")):3==t&&this.$router.push(this.fun.getUrl("customerServiceSettings"))}}},s=(a("Ks45"),a("KHd+")),l=Object(s.a)(i,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"all"},[a("yun_service_side",{attrs:{defaultActive:"serviceBasic"}}),t._v(" "),a("div",{attrs:{id:"app"}},[a("div",{staticClass:"vue-head"},[a("el-radio-group",{model:{value:t.order_type,callback:function(e){t.order_type=e},expression:"order_type"}},[a("el-radio-button",{attrs:{label:"1"},nativeOn:{click:function(e){t.gotoOther(1)}}},[t._v("基础设置")]),t._v(" "),a("el-radio-button",{attrs:{label:"2"},nativeOn:{click:function(e){t.gotoOther(2)}}},[t._v("关键词回复")]),t._v(" "),a("el-radio-button",{attrs:{label:"3"},nativeOn:{click:function(e){t.gotoOther(3)}}},[t._v("企业微信客服设置")])],1)],1),t._v(" "),a("div",{staticClass:"vue-head"},[a("div",{staticClass:"vue-main-title",staticStyle:{"margin-bottom":"20px"}},[a("div",{staticClass:"vue-main-title-left"}),t._v(" "),a("div",{staticClass:"vue-main-title-content"},[t._v("关键词回复")]),t._v(" "),a("div",{staticClass:"vue-main-title-button"},[a("el-button",{attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"small"},on:{click:t.addModal}},[t._v("添加回复")])],1)]),t._v(" "),a("div",{staticClass:"vue-search"},[a("el-form",{staticClass:"demo-form-inline",attrs:{inline:!0,model:t.search_form}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"关键词/规则名称"},model:{value:t.search_form.rule_kwd,callback:function(e){t.$set(t.search_form,"rule_kwd",e)},expression:"search_form.rule_kwd"}})],1),t._v(" "),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.search(1)}}},[t._v("搜索")])],1)],1)],1)]),t._v(" "),a("div",{staticClass:"vue-main"},[a("div",{staticClass:"vue-main-form"},[a("div",{staticClass:"vue-main-title",staticStyle:{"margin-bottom":"20px"}},[a("div",{staticClass:"vue-main-title-left"}),t._v(" "),a("div",{staticClass:"vue-main-title-content",staticStyle:{flex:"0 0 130px"}},[t._v("关键词回复列表")]),t._v(" "),a("div",{staticStyle:{"text-align":"left","font-size":"14px",color:"#999"}},[a("span",[t._v("关键词回复数量:"+t._s(t.total))]),t._v("   \n ")]),t._v(" "),a("div",{staticClass:"vue-main-title-button"})]),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.list}},[a("el-table-column",{attrs:{label:"ID",align:"center",prop:"id",width:"100"}}),t._v(" "),a("el-table-column",{attrs:{label:"规则名称",align:"center",prop:"title"}}),t._v(" "),a("el-table-column",{attrs:{label:"关键词",align:"center",prop:"key_words"}}),t._v(" "),a("el-table-column",{attrs:{label:"回复内容",align:"center",prop:"reply_contents_txt"}}),t._v(" "),a("el-table-column",{attrs:{prop:"refund_time",label:"操作",align:"center",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"table-option"},[a("el-link",{staticStyle:{"text-align":"center",width:"30px"},attrs:{title:"编辑",underline:!1},on:{click:function(a){t.edit(e.row)}}},[a("a",[t._v("编辑")])]),t._v(" "),a("el-link",{staticStyle:{"text-align":"center",width:"30px"},attrs:{title:"删除",underline:!1},on:{click:function(a){t.deleteData(e.row.id)}}},[a("a",[t._v("删除")])])],1)]}}])})],1)],1)]),t._v(" "),t.total>0?a("div",{staticClass:"vue-page"},[a("el-row",[a("el-col",{attrs:{align:"right"}},[a("el-pagination",{attrs:{layout:"prev, pager, next,jumper",total:t.total,"page-size":t.per_page,"current-page":t.current_page,background:""},on:{"current-change":t.search}})],1)],1)],1):t._e()])],1)},[],!1,null,"07d5796a",null);l.options.__file="wordsReply_list.vue";e.default=l.exports},Ks45:function(t,e,a){"use strict";var i=a("Xj8s");a.n(i).a},Xj8s:function(t,e,a){}}]);