1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-be23f23a"],{"31b4":function(t,e,n){"use strict";var r=n("9860"),a=n.n(r),o=n("b6bd"),u=n("2f62");function c(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 i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s={name:"edit",components:{formCreate:a.a.$form()},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(n,!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(u.e)("admin/userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},userEdit:{type:Number,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)}}}}},isDisable:!1}},methods:{couponsType:function(){this.$parent.addType(this.type)},onSubmit:function(t){var e,n=this;(setTimeout((function(){n.isDisable=!1}),1e3),this.isDisable)||(this.isDisable=!0,e=t,Object(o.a)({url:this.FromData.action,method:this.FromData.method,data:e}).then((function(t){n.$parent.getList(),n.$Message.success(t.msg),n.modals=!1,setTimeout((function(){n.$emit("submitFail")}),1e3)})).catch((function(t){n.$Message.error(t.msg)})))},cancel:function(){this.type=0}}},d=(n("cf4e"),n("2877")),l=Object(d.a)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.FromData?n("div",[n("Modal",{class:t.userEdit?"userEdit":"",attrs:{scrollable:"","footer-hide":"",closable:"",title:t.FromData.title,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()}),[],!1,null,"9db30b62",null);e.a=l.exports},"5ab6":function(t,e,n){"use strict";n.r(e);var r=n("a34a"),a=n.n(r),o=n("b562"),u=n("31b4"),c=n("d708");function i(t,e,n,r,a,o,u){try{var c=t[o](u),i=c.value}catch(t){return void n(t)}c.done?e(i):Promise.resolve(i).then(r,a)}var s={name:"tag",components:{editFrom:u.a},data:function(){return{roterPre:c.a.roterPre,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;this.$route.path===this.roterPre+"/app/wechat/wechat_user/user/tag"?this.$modalForm(Object(o.E)()).then((function(){return t.getList()})):this.$modalForm(Object(o.u)()).then((function(){return t.getList()}))},edit:function(t){var e=this;this.$route.path===this.roterPre+"/app/wechat/wechat_user/user/tag"?this.$modalForm(Object(o.F)(t.id)).then((function(){return e.getList()})):this.$modalForm(Object(o.v)(t.id)).then((function(){return e.getList()}))},del:function(t,e,n){var r=this,a=null;a=this.$route.path===this.roterPre+"/app/wechat/wechat_user/user/tag"?{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=this;this.loading=!0,(this.$route.path===this.roterPre+"/app/wechat/wechat_user/user/tag"?Object(o.G)():Object(o.w)()).then(function(){var e,n=(e=a.a.mark((function e(n){var r;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.data,t.tabList=r.list.list,t.loading=!1;case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function u(t){i(o,r,a,u,c,"next",t)}function c(t){i(o,r,a,u,c,"throw",t)}u(void 0)}))});return function(t){return n.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.formValidate.page=t,this.getList()}}},d=n("2877"),l=Object(d.a)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"i-layout-page-header"},[n("PageHeader",{staticClass:"product_tabs",attrs:{title:t.$route.meta.title,"hidden-breadcrumb":""}})],1),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)}),[],!1,null,"3e6dc2e7",null);e.default=l.exports},b562:function(t,e,n){"use strict";n.d(e,"l",(function(){return a})),n.d(e,"n",(function(){return o})),n.d(e,"D",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"j",(function(){return i})),n.d(e,"m",(function(){return s})),n.d(e,"y",(function(){return d})),n.d(e,"a",(function(){return l})),n.d(e,"x",(function(){return p})),n.d(e,"s",(function(){return f})),n.d(e,"t",(function(){return h})),n.d(e,"C",(function(){return m})),n.d(e,"g",(function(){return b})),n.d(e,"i",(function(){return g})),n.d(e,"k",(function(){return w})),n.d(e,"d",(function(){return O})),n.d(e,"e",(function(){return j})),n.d(e,"f",(function(){return v})),n.d(e,"z",(function(){return y})),n.d(e,"B",(function(){return E})),n.d(e,"A",(function(){return T})),n.d(e,"H",(function(){return _})),n.d(e,"o",(function(){return $})),n.d(e,"c",(function(){return P})),n.d(e,"G",(function(){return k})),n.d(e,"E",(function(){return D})),n.d(e,"F",(function(){return F})),n.d(e,"w",(function(){return G})),n.d(e,"u",(function(){return L})),n.d(e,"v",(function(){return x})),n.d(e,"p",(function(){return C})),n.d(e,"b",(function(){return S})),n.d(e,"r",(function(){return M})),n.d(e,"q",(function(){return I}));var r=n("b6bd");function a(t){return Object(r.a)({url:"app/routine",method:"get",params:t})}function o(){return Object(r.a)({url:"app/routine/syncSubscribe",method:"GET"})}function u(){return Object(r.a)({url:"app/wechat/syncSubscribe",method:"GET"})}function c(){return Object(r.a)({url:"app/routine/create",method:"get"})}function i(t){return Object(r.a)({url:"app/routine/".concat(t,"/edit"),method:"get"})}function s(t){return Object(r.a)({url:"app/routine/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function d(t){return Object(r.a)({url:"app/wechat/menu",method:"get"})}function l(t){return Object(r.a)({url:"app/wechat/menu",method:"post",data:t})}function p(t){return Object(r.a)({url:"app/wechat/template",method:"get",params:t})}function f(){return Object(r.a)({url:"app/wechat/template/create",method:"get"})}function h(t){return Object(r.a)({url:"app/wechat/template/".concat(t,"/edit"),method:"get"})}function m(t){return Object(r.a)({url:"app/wechat/template/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function b(t){return Object(r.a)({url:t.url,method:"post",data:t.key})}function g(t){return Object(r.a)({url:"app/routine/download",method:"post",data:t})}function w(){return Object(r.a)({url:"app/routine/info",method:"get"})}function O(t){return Object(r.a)({url:"app/wechat/keyword",method:"get",params:t})}function j(t){return Object(r.a)({url:"app/wechat/keyword/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function v(t,e){return Object(r.a)({url:t,method:"get",params:e.key})}function y(t){return Object(r.a)({url:"/app/wechat/news",method:"POST",data:t})}function E(t){return Object(r.a)({url:"app/wechat/news",method:"GET",params:t})}function T(t){return Object(r.a)({url:"app/wechat/news/".concat(t),method:"GET"})}function _(t){return Object(r.a)({url:"app/wechat/user",method:"GET",params:t})}function $(){return Object(r.a)({url:"app/wechat/user/tag_group",method:"GET"})}function P(t){return Object(r.a)({url:t,method:"GET"})}function k(){return Object(r.a)({url:"app/wechat/tag",method:"GET"})}function D(){return Object(r.a)({url:"app/wechat/tag/create",method:"GET"})}function F(t){return Object(r.a)({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function G(){return Object(r.a)({url:"app/wechat/group",method:"GET"})}function L(){return Object(r.a)({url:"app/wechat/group/create",method:"GET"})}function x(t){return Object(r.a)({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function C(t){return Object(r.a)({url:"app/wechat/action",method:"GET",params:t})}function S(t){return Object(r.a)({url:"app/wechat/code_reply/".concat(t),method:"GET"})}function M(){return Object(r.a)({url:"/app/wechat/card",method:"GET"})}function I(t){return Object(r.a)({url:"/app/wechat/card",method:"post",data:t})}},cf4e:function(t,e,n){"use strict";var r=n("f047");n.n(r).a},f047:function(t,e,n){}}]);
|