mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-23 19:32:33 +00:00
1 line
8.2 KiB
JavaScript
1 line
8.2 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-779e3b9c"],{"163c":function(t,e,n){"use strict";var r=n("89ee");n.n(r).a},2430:function(t,e,n){"use strict";n.r(e);var r=n("c964"),a=n("f3f3"),o=(n("a434"),n("96cf"),n("b562")),i=n("2f62");a={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(a.a)(Object(a.a)({},Object(i.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(o.d)(this.formValidate).then(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.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)}))},pageChange:function(t){this.formValidate.page=t,this.getList()},onchangeIsShow:function(t){var e=this;t={id:t.id,status:t.status};Object(o.e)(t).then(function(){var t=Object(r.a)(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.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(){this.$router.push({path:this.$routeProStr+"/app/wechat/reply/keyword/save/0"})},edit:function(t){this.$router.push({path:this.$routeProStr+"/app/wechat/reply/keyword/save/"+t.id})},del:function(t,e,n){var r=this;e={title:e,num:n,url:"app/wechat/keyword/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).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(o.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)}))}}},n("163c"),i=n("2877"),n=Object(i.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[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;return e.index,[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)}),[],!1,null,"602105a8",null);e.default=n.exports},"89ee":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 w})),n.d(e,"k",(function(){return g})),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 x})),n.d(e,"n",(function(){return E})),n.d(e,"l",(function(){return T})),n.d(e,"b",(function(){return $})),n("99af");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 w(t){return Object(r.a)({url:"app/wechat/user",method:"GET",params:t})}function g(){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 x(){return Object(r.a)({url:"app/wechat/group/create",method:"GET"})}function E(t){return Object(r.a)({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function T(t){return Object(r.a)({url:"app/wechat/action",method:"GET",params:t})}function $(t){return Object(r.a)({url:"app/wechat/code_reply/".concat(t),method:"GET"})}}}]); |