CRMEB/crmeb/public/admin/js/chunk-23d53e14.73de67f0.js
2022-03-03 11:45:22 +08:00

1 line
8.3 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-23d53e14"],{"31b4":function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.FromData?n("div",[n("Modal",{attrs:{scrollable:"","footer-hide":"",closable:"",title:t.FromData.title,"z-index":1,width:"700"},on:{"on-cancel":t.cancel},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[["/marketing/coupon/save.html"===t.FromData.action?n("div",{staticClass:"radio acea-row row-middle"},[n("div",{staticClass:"name ivu-form-item-content"},[t._v("优惠券类型")]),n("Radio-group",{on:{"on-change":t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[n("Radio",{attrs:{label:0}},[t._v("通用券")]),n("Radio",{attrs:{label:1}},[t._v("品类券")]),n("Radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],n("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(t.FromData.rules),handleIcon:"false"},on:{"on-submit":t.onSubmit}})],2)],1):t._e()},a=[],o=(n("8e6e"),n("ac6a"),n("456d"),n("bd86")),c=n("9860"),u=n.n(c),i=n("6b6c"),s=n("2f62");function d(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?d(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p={name:"edit",components:{formCreate:u.a.$form()},computed:l({},Object(s["e"])("userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},update:{type:Boolean,default:!0}},data:function(){return{modals:!1,type:0,config:{global:{upload:{props:{onSuccess:function(t,e){200===t.status?e.url=t.data.src:this.Message.error(t.msg)}}}}}}},methods:{couponsType:function(){this.$parent.addType(this.type)},onSubmit:function(t){var e=this,n={};n=t,Object(i["a"])({url:this.FromData.action,method:this.FromData.method,data:n}).then((function(t){e.update&&e.$parent.getList(),e.$Message.success(t.msg),e.modals=!1,setTimeout((function(){e.$emit("submitFail")}),1e3)})).catch((function(t){e.$Message.error(t.msg)}))},cancel:function(){this.type=0}}},f=p,h=(n("bb05"),n("2877")),m=Object(h["a"])(f,r,a,!1,null,"7423233c",null);e["a"]=m.exports},"5ab6":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:"save_from ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.add}},[t._v(t._s("添加"+t.$route.meta.title))]),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:"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("删除")])]}}])})],1)],1)},a=[],o=(n("96cf"),n("3b8d")),c=n("b562"),u=n("31b4"),i={name:"tag",components:{editFrom:u["a"]},data:function(){return{FromData:null,loading:!1,tabList:[],columns1:[{title:"ID",key:"id",width:80},{title:"标签名",key:"name",minWidth:200},{title:"人数",key:"count",minWidth:120},{title:"操作",slot:"action",fixed:"right",minWidth:150}]}},watch:{$route:function(t,e){this.getList()}},created:function(){this.getList()},methods:{add:function(){var t=this;"/admin/app/wechat/wechat_user/user/tag"===this.$route.path?this.$modalForm(Object(c["u"])()).then((function(){return t.getList()})):this.$modalForm(Object(c["m"])()).then((function(){return t.getList()}))},edit:function(t){var e=this;"/admin/app/wechat/wechat_user/user/tag"===this.$route.path?this.$modalForm(Object(c["v"])(t.id)).then((function(){return e.getList()})):this.$modalForm(Object(c["n"])(t.id)).then((function(){return e.getList()}))},del:function(t,e,n){var r=this,a=null;a="/admin/app/wechat/wechat_user/user/tag"===this.$route.path?{title:e,num:n,url:"app/wechat/tag/".concat(t.id),method:"DELETE",ids:""}:{title:e,num:n,url:"app/wechat/group/".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)}))},getList:function(){var t,e=this;this.loading=!0,t="/admin/app/wechat/wechat_user/user/tag"===this.$route.path?Object(c["w"])():Object(c["o"])(),t.then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){var r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:r=n.data,e.tabList=r.list.list,e.loading=!1;case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))},pageChange:function(t){this.formValidate.page=t,this.getList()}}},s=i,d=n("2877"),l=Object(d["a"])(s,r,a,!1,null,"df0770d8",null);e["default"]=l.exports},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 c})),n.d(e,"a",(function(){return u})),n.d(e,"g",(function(){return i})),n.d(e,"h",(function(){return s})),n.d(e,"i",(function(){return d})),n.d(e,"d",(function(){return l})),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 O})),n.d(e,"w",(function(){return j})),n.d(e,"u",(function(){return v})),n.d(e,"v",(function(){return y})),n.d(e,"o",(function(){return E})),n.d(e,"m",(function(){return _})),n.d(e,"n",(function(){return T})),n.d(e,"l",(function(){return $})),n.d(e,"b",(function(){return k}));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 c(t){return Object(r["a"])({url:"app/wechat/menu",method:"get"})}function u(t){return Object(r["a"])({url:"app/wechat/menu",method:"post",data:t})}function i(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 d(){return Object(r["a"])({url:"app/routine/info",method:"get"})}function l(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 O(t){return Object(r["a"])({url:t,method:"GET"})}function j(){return Object(r["a"])({url:"app/wechat/tag",method:"GET"})}function v(){return Object(r["a"])({url:"app/wechat/tag/create",method:"GET"})}function y(t){return Object(r["a"])({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function E(){return Object(r["a"])({url:"app/wechat/group",method:"GET"})}function _(){return Object(r["a"])({url:"app/wechat/group/create",method:"GET"})}function T(t){return Object(r["a"])({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function $(t){return Object(r["a"])({url:"app/wechat/action",method:"GET",params:t})}function k(t){return Object(r["a"])({url:"app/wechat/code_reply/".concat(t),method:"GET"})}},bb05:function(t,e,n){"use strict";var r=n("f557"),a=n.n(r);a.a},f557:function(t,e,n){}}]);