You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
shipin/public/admin/system_static/js/chunk-96f91f8c.66bb6262.js

1 lines
8.7 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-96f91f8c"],{"0d39":function(t,e,n){"use strict";n("84571")},5085:function(t,e,n){"use strict";n.r(e);var a=n("c7eb"),r=n("1da1"),i=n("5530"),o=(n("a434"),n("b562")),u=n("2f62");i={name:"keyword",data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,formValidate:{key:"",type:"",page:1,limit:20},tabList:[],total:0,columns1:[{title:"ID",key:"id",width:80},{title:"关键字",key:"key",minWidth:120},{title:"回复类型",key:"type",minWidth:150},{title:"是否显示",slot:"status",minWidth:120},{title:"操作",slot:"action",fixed:"right",minWidth:120}],modal:!1,qrcode:""}},created:function(){this.getList()},computed:Object(i.a)(Object(i.a)({},Object(u.d)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),methods:{getList:function(){var t=this;this.loading=!0,Object(o.e)(this.formValidate).then(function(){var e=Object(r.a)(Object(a.a)().mark((function e(n){var r;return Object(a.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data,t.tabList=r.list,t.total=n.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},onchangeIsShow:function(t){var e=this;t={id:t.id,status:t.status};Object(o.g)(t).then(function(){var t=Object(r.a)(Object(a.a)().mark((function t(n){return Object(a.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$message.success(n.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))},userSearchs:function(){this.formValidate.page=1,this.getList()},add:function(){var t=this;this.$modalForm(Object(o.d)(0)).then((function(){return t.getList()}))},edit:function(t){var e=this;this.$modalForm(Object(o.d)(t.id)).then((function(){return e.getList()}))},del:function(t,e,n){var a=this;e={title:e,num:n,url:"app/kefu/auto_reply/del/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){a.$message.success(t.msg),a.tabList.splice(n,1)})).catch((function(t){a.$message.error(t.msg)}))}}},n("0d39"),u=n("2877"),n=Object(u.a)(i,(function(){var t=this,e=t._self._c;return e("div",[e("el-card",{staticClass:"ivu-mb-16",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[e("div",{staticClass:"padding-add"},[e("el-form",{ref:"levelFrom",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("el-form-item",{attrs:{label:"回复类型:",prop:"type","label-for":"type"}},[e("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择",clearable:""},on:{change:t.userSearchs},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},[e("el-option",{attrs:{value:"text",label:"文字消息"}}),e("el-option",{attrs:{value:"image",label:"图片消息"}})],1)],1),e("el-form-item",{attrs:{label:"关键字:",prop:"key","label-for":"key"}},[e("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入关键字"},model:{value:t.formValidate.key,callback:function(e){t.$set(t.formValidate,"key",e)},expression:"formValidate.key"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1)],1)]),e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("el-button",{attrs:{type:"primary"},on:{click:t.add}},[t._v("添加自动回复")]),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:t.tabList,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[e("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.id))])]}}])}),e("el-table-column",{attrs:{label:"关键字","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(n.row.key))])]}}])}),e("el-table-column",{attrs:{label:"回复类型","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s("text"==n.row.type?"文字消息":"图片消息"))])]}}])}),e("el-table-column",{attrs:{label:"回复内容","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return["text"==n.row.type?e("span",[t._v(t._s(n.row.data.content))]):e("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.row.data.src,expression:"scope.row.data.src"}]})])]}}])}),e("el-table-column",{attrs:{label:"是否开启","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-switch",{staticClass:"defineSwitch",attrs:{"active-value":1,"inactive-value":0,value:n.row.status,size:"large","active-text":"开启","inactive-text":"关闭"},on:{change:function(e){return t.onchangeIsShow(n.row)}},model:{value:n.row.status,callback:function(e){t.$set(n.row,"status",e)},expression:"scope.row.status"}})]}}])}),e("el-table-column",{attrs:{label:"操作",fixed:"right",width:"170"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("a",{on:{click:function(e){return t.edit(n.row)}}},[t._v("编辑")]),e("el-divider",{attrs:{direction:"vertical"}}),e("a",{on:{click:function(e){return t.del(n.row,"客服自动回复",n.$index)}}},[t._v("删除")])]}}])})],1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.getList}}):t._e()],1)],1)],1)}),[],!1,null,"e1e1f4f4",null);e.default=n.exports},84571:function(t,e,n){},b562:function(t,e,n){"use strict";n.d(e,"l",(function(){return r})),n.d(e,"u",(function(){return i})),n.d(e,"q",(function(){return o})),n.d(e,"a",(function(){return u})),n.d(e,"i",(function(){return c})),n.d(e,"j",(function(){return l})),n.d(e,"k",(function(){return s})),n.d(e,"f",(function(){return d})),n.d(e,"g",(function(){return f})),n.d(e,"h",(function(){return p})),n.d(e,"r",(function(){return m})),n.d(e,"t",(function(){return h})),n.d(e,"s",(function(){return b})),n.d(e,"x",(function(){return w})),n.d(e,"v",(function(){return g})),n.d(e,"w",(function(){return v})),n.d(e,"p",(function(){return y})),n.d(e,"n",(function(){return O})),n.d(e,"o",(function(){return j})),n.d(e,"m",(function(){return k})),n.d(e,"c",(function(){return _})),n.d(e,"b",(function(){return x})),n.d(e,"e",(function(){return E})),n.d(e,"d",(function(){return S})),n("99af");var a=n("6b6c");function r(){return Object(a.a)({url:"app/routine/syncSubscribe",method:"GET"})}function i(){return Object(a.a)({url:"app/wechat/syncSubscribe",method:"GET"})}function o(t){return Object(a.a)({url:"app/wechat/menu",method:"get"})}function u(t){return Object(a.a)({url:"app/wechat/menu",method:"post",data:t})}function c(t){return Object(a.a)({url:t.url,method:"post",data:t.key})}function l(t){return Object(a.a)({url:"app/routine/download",method:"post",data:t})}function s(){return Object(a.a)({url:"app/routine/info",method:"get"})}function d(t){return Object(a.a)({url:"app/wechat/keyword",method:"get",params:t})}function f(t){return Object(a.a)({url:"app/wechat/keyword/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function p(t,e){return Object(a.a)({url:t,method:"get",params:e.key})}function m(t){return Object(a.a)({url:"/app/wechat/news",method:"POST",data:t})}function h(t){return Object(a.a)({url:"app/wechat/news",method:"GET",params:t})}function b(t){return Object(a.a)({url:"app/wechat/news/".concat(t),method:"GET"})}function w(){return Object(a.a)({url:"app/wechat/tag",method:"GET"})}function g(){return Object(a.a)({url:"app/wechat/tag/create",method:"GET"})}function v(t){return Object(a.a)({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function y(){return Object(a.a)({url:"app/wechat/group",method:"GET"})}function O(){return Object(a.a)({url:"app/wechat/group/create",method:"GET"})}function j(t){return Object(a.a)({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function k(t){return Object(a.a)({url:"app/wechat/action",method:"GET",params:t})}function _(t){return Object(a.a)({url:"app/wechat/code_reply/".concat(t),method:"GET"})}function x(){return Object(a.a)({url:"setting/city/full_list",method:"GET"})}function E(t){return Object(a.a)({url:"app/kefu/auto_reply/list",method:"get",params:t})}function S(t){return Object(a.a)({url:"app/kefu/auto_reply/form/"+t,method:"get"})}}}]);