CRMEB/crmeb/public/admin/js/chunk-44425198.b3dbee6e.js
2022-04-09 14:31:22 +08:00

1 line
9.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-44425198"],{"01c9":function(t,e,n){"use strict";var r=n("a071"),a=n.n(r);a.a},2430:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"i-layout-page-header"},[n("div",{staticClass:"i-layout-page-header"},[n("span",{staticClass:"ivu-page-header-title"},[t._v(t._s(t.$route.meta.title))])])]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Form",{ref:"levelFrom",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[n("Row",{attrs:{type:"flex",gutter:24}},[n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"回复类型:",prop:"type","label-for":"type"}},[n("Select",{attrs:{placeholder:"请选择","element-id":"type",clearable:""},on:{"on-change":t.userSearchs},model:{value:t.formValidate.type,callback:function(e){t.$set(t.formValidate,"type",e)},expression:"formValidate.type"}},[n("Option",{attrs:{value:"text"}},[t._v("文字消息")]),n("Option",{attrs:{value:"image"}},[t._v("图片消息")]),n("Option",{attrs:{value:"news"}},[t._v("图文消息")]),n("Option",{attrs:{value:"voice"}},[t._v("声音消息")])],1)],1)],1),n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"关键字:",prop:"key","label-for":"key"}},[n("Input",{attrs:{search:"","enter-button":"",placeholder:"请输入关键字"},on:{"on-search":t.userSearchs},model:{value:t.formValidate.key,callback:function(e){t.$set(t.formValidate,"key",e)},expression:"formValidate.key"}})],1)],1)],1),n("Row",{attrs:{type:"flex"}},[n("Col",t._b({},"Col",t.grid,!1),[n("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.add}},[t._v("添加关键字")])],1)],1)],1),n("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns1,data:t.tabList,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"status",fn:function(e){var r=e.row;e.index;return[n("i-switch",{attrs:{value:r.status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(r)}},model:{value:r.status,callback:function(e){t.$set(r,"status",e)},expression:"row.status"}},[n("span",{attrs:{slot:"open"},slot:"open"},[t._v("显示")]),n("span",{attrs:{slot:"close"},slot:"close"},[t._v("隐藏")])])]}},{key:"action",fn:function(e){var r=e.row,a=e.index;return[n("a",{on:{click:function(e){return t.edit(r)}}},[t._v("编辑")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.del(r,"关键字回复",a)}}},[t._v("删除")])]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1),n("Modal",{attrs:{title:"二维码","footer-hide":""},model:{value:t.modal,callback:function(e){t.modal=e},expression:"modal"}},[n("div",{staticClass:"acea-row row-around"},[n("div",{staticClass:"acea-row row-column-around row-between-wrapper"},[n("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"QRpic"},[n("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.qrcode,expression:"qrcode"}]})])])])])],1)},a=[],o=(n("8e6e"),n("ac6a"),n("456d"),n("96cf"),n("3b8d")),i=n("bd86"),c=n("b562"),u=n("2f62");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d={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:l(l({},Object(u["e"])("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:75},labelPosition:function(){return this.isMobile?"top":"right"}}),methods:{getList:function(){var t=this;this.loading=!0,Object(c["d"])(this.formValidate).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)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)}))},pageChange:function(t){this.formValidate.page=t,this.getList()},onchangeIsShow:function(t){var e=this,n={id:t.id,status:t.status};Object(c["e"])(n).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)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(){this.$router.push({path:"/admin/app/wechat/reply/keyword/save/0"})},edit:function(t){this.$router.push({path:"/admin/app/wechat/reply/keyword/save/"+t.id})},del:function(t,e,n){var r=this,a={title:e,num:n,url:"app/wechat/keyword/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(a).then((function(t){r.$Message.success(t.msg),r.tabList.splice(n,1)})).catch((function(t){r.$Message.error(t.msg)}))},download:function(t){var e=this;this.$Spin.show(),Object(c["b"])(t.id).then((function(t){e.$Spin.hide(),e.modal=!0,e.qrcode=t.data.url})).catch((function(t){e.$Spin.hide(),e.$Message.error(t.msg)}))}}},p=d,f=(n("01c9"),n("2877")),h=Object(f["a"])(p,r,a,!1,null,"539fd1a8",null);e["default"]=h.exports},a071:function(t,e,n){},b562:function(t,e,n){"use strict";n.d(e,"j",(function(){return a})),n.d(e,"t",(function(){return o})),n.d(e,"p",(function(){return i})),n.d(e,"a",(function(){return c})),n.d(e,"g",(function(){return u})),n.d(e,"h",(function(){return s})),n.d(e,"i",(function(){return l})),n.d(e,"d",(function(){return d})),n.d(e,"e",(function(){return p})),n.d(e,"f",(function(){return f})),n.d(e,"q",(function(){return h})),n.d(e,"s",(function(){return m})),n.d(e,"r",(function(){return b})),n.d(e,"x",(function(){return g})),n.d(e,"k",(function(){return w})),n.d(e,"c",(function(){return v})),n.d(e,"w",(function(){return y})),n.d(e,"u",(function(){return O})),n.d(e,"v",(function(){return j})),n.d(e,"o",(function(){return k})),n.d(e,"m",(function(){return E})),n.d(e,"n",(function(){return _})),n.d(e,"l",(function(){return x})),n.d(e,"b",(function(){return T}));var r=n("6b6c");function a(){return Object(r["a"])({url:"app/routine/syncSubscribe",method:"GET"})}function o(){return Object(r["a"])({url:"app/wechat/syncSubscribe",method:"GET"})}function i(t){return Object(r["a"])({url:"app/wechat/menu",method:"get"})}function c(t){return Object(r["a"])({url:"app/wechat/menu",method:"post",data:t})}function u(t){return Object(r["a"])({url:t.url,method:"post",data:t.key})}function s(t){return Object(r["a"])({url:"app/routine/download",method:"post",data:t})}function l(){return Object(r["a"])({url:"app/routine/info",method:"get"})}function d(t){return Object(r["a"])({url:"app/wechat/keyword",method:"get",params:t})}function p(t){return Object(r["a"])({url:"app/wechat/keyword/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function f(t,e){return Object(r["a"])({url:t,method:"get",params:e.key})}function h(t){return Object(r["a"])({url:"/app/wechat/news",method:"POST",data:t})}function m(t){return Object(r["a"])({url:"app/wechat/news",method:"GET",params:t})}function b(t){return Object(r["a"])({url:"app/wechat/news/".concat(t),method:"GET"})}function g(t){return Object(r["a"])({url:"app/wechat/user",method:"GET",params:t})}function w(){return Object(r["a"])({url:"app/wechat/user/tag_group",method:"GET"})}function v(t){return Object(r["a"])({url:t,method:"GET"})}function y(){return Object(r["a"])({url:"app/wechat/tag",method:"GET"})}function O(){return Object(r["a"])({url:"app/wechat/tag/create",method:"GET"})}function j(t){return Object(r["a"])({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function k(){return Object(r["a"])({url:"app/wechat/group",method:"GET"})}function E(){return Object(r["a"])({url:"app/wechat/group/create",method:"GET"})}function _(t){return Object(r["a"])({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function x(t){return Object(r["a"])({url:"app/wechat/action",method:"GET",params:t})}function T(t){return Object(r["a"])({url:"app/wechat/code_reply/".concat(t),method:"GET"})}}}]);