CRMEB/crmeb/public/admin/system_static/js/chunk-1ef2b5e4.34e007d8.js
2023-04-06 18:14:33 +08:00

1 line
7.4 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-1ef2b5e4"],{"2ec3":function(t,e,n){},"31b4":function(t,e,n){"use strict";var a=n("f3f3"),r=n("9860"),o=(r=n.n(r),n("6b6c")),u=n("2f62");r={name:"edit",components:{formCreate:r.a.$form()},computed:Object(a.a)({},Object(u.e)("userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},update:{type:Boolean,default:!0}},data:function(){return{modals:!1,type:0,loading:!1,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;this.loading||(this.loading=!0,Object(o.a)({url:this.FromData.action,method:this.FromData.method,data:t}).then((function(t){e.update&&e.$parent.getList(),e.$Message.success(t.msg),e.modals=!1,setTimeout((function(){e.$emit("submitFail"),e.loading=!1}),1e3)})).catch((function(t){e.loading=!1,e.$Message.error(t.msg)})))},cancel:function(){this.type=0}}},n("9646"),a=n("2877"),u=Object(a.a)(r,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return t.FromData?e("div",[e("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?e("div",{staticClass:"radio acea-row row-middle"},[e("div",{staticClass:"name ivu-form-item-content"},[t._v("优惠券类型")]),e("Radio-group",{on:{"on-change":t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("Radio",{attrs:{label:0}},[t._v("通用券")]),e("Radio",{attrs:{label:1}},[t._v("品类券")]),e("Radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],e("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(t.FromData.rules),handleIcon:"false"},on:{submit:t.onSubmit}})],2)],1):t._e()}),[],!1,null,"5cc97a38",null);e.a=u.exports},"5ab6":function(t,e,n){"use strict";n.r(e);var a=n("c964"),r=(n("96cf"),n("a434"),n("b562")),o={name:"tag",components:{editFrom:n("31b4").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;(this.$route.path===this.$routeProStr+"/app/wechat/wechat_user/user/tag"?this.$modalForm(Object(r.u)()):this.$modalForm(Object(r.m)())).then((function(){return t.getList()}))},edit:function(t){var e=this;(this.$route.path===this.$routeProStr+"/app/wechat/wechat_user/user/tag"?this.$modalForm(Object(r.v)(t.id)):this.$modalForm(Object(r.n)(t.id))).then((function(){return e.getList()}))},del:function(t,e,n){var a=this,r=null;r=this.$route.path===this.$routeProStr+"/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(r).then((function(t){a.$Message.success(t.msg),a.tabList.splice(n,1)})).catch((function(t){a.$Message.error(t.msg)}))},getList:function(){var t=this;this.loading=!0,(this.$route.path===this.$routeProStr+"/app/wechat/wechat_user/user/tag"?Object(r.w):Object(r.o))().then(function(){var e=Object(a.a)(regeneratorRuntime.mark((function e(n){var a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=n.data,t.tabList=a.list.list,t.loading=!1;case 3: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()}}};n=n("2877"),n=Object(n.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[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 a=e.row,r=e.index;return[n("a",{on:{click:function(e){return t.edit(a)}}},[t._v("编辑")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.del(a,"删除标签",r)}}},[t._v("删除")])]}}])})],1)],1)}),[],!1,null,"6d9d8f6b",null);e.default=n.exports},9646:function(t,e,n){"use strict";var a=n("2ec3");n.n(a).a},b562:function(t,e,n){"use strict";n.d(e,"j",(function(){return r})),n.d(e,"t",(function(){return o})),n.d(e,"p",(function(){return u})),n.d(e,"a",(function(){return c})),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 h})),n.d(e,"f",(function(){return p})),n.d(e,"q",(function(){return f})),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 j})),n.d(e,"u",(function(){return O})),n.d(e,"v",(function(){return y})),n.d(e,"o",(function(){return $})),n.d(e,"m",(function(){return T})),n.d(e,"n",(function(){return E})),n.d(e,"l",(function(){return _})),n.d(e,"b",(function(){return k})),n("99af");var a=n("6b6c");function r(){return Object(a.a)({url:"app/routine/syncSubscribe",method:"GET"})}function o(){return Object(a.a)({url:"app/wechat/syncSubscribe",method:"GET"})}function u(t){return Object(a.a)({url:"app/wechat/menu",method:"get"})}function c(t){return Object(a.a)({url:"app/wechat/menu",method:"post",data:t})}function i(t){return Object(a.a)({url:t.url,method:"post",data:t.key})}function s(t){return Object(a.a)({url:"app/routine/download",method:"post",data:t})}function d(){return Object(a.a)({url:"app/routine/info",method:"get"})}function l(t){return Object(a.a)({url:"app/wechat/keyword",method:"get",params:t})}function h(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 f(t){return Object(a.a)({url:"/app/wechat/news",method:"POST",data:t})}function m(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 g(t){return Object(a.a)({url:"app/wechat/user",method:"GET",params:t})}function w(){return Object(a.a)({url:"app/wechat/user/tag_group",method:"GET"})}function v(t){return Object(a.a)({url:t,method:"GET"})}function j(){return Object(a.a)({url:"app/wechat/tag",method:"GET"})}function O(){return Object(a.a)({url:"app/wechat/tag/create",method:"GET"})}function y(t){return Object(a.a)({url:"app/wechat/tag/".concat(t,"/edit"),method:"GET"})}function $(){return Object(a.a)({url:"app/wechat/group",method:"GET"})}function T(){return Object(a.a)({url:"app/wechat/group/create",method:"GET"})}function E(t){return Object(a.a)({url:"app/wechat/group/".concat(t,"/edit"),method:"GET"})}function _(t){return Object(a.a)({url:"app/wechat/action",method:"GET",params:t})}function k(t){return Object(a.a)({url:"app/wechat/code_reply/".concat(t),method:"GET"})}}}]);