mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-01-03 10:28:18 +00:00
1 line
20 KiB
JavaScript
1 line
20 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-8b43bd72"],{"0ecc":function(t,e,n){"use strict";n.r(e);var r=n("c964"),o=n("f3f3"),a=(n("99af"),n("fb6a"),n("96cf"),n("2f62")),u=n("90e7");o={name:"smsTemplateApply",components:{editFrom:n("31b4").a},data:function(){return{grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,columns1:[],levelFrom:{type:"",status:"",title:"",page:1,limit:20},levelFrom2:{is_have:"",page:1,limit:20},total:0,FromData:null,delfromData:{},levelLists:[]}},watch:{$route:function(t,e){this.getList()}},created:function(){this.onIsLogin()},mounted:function(){var t=this;Object(u.db)().then((function(e){1!=e.data.sms.open&&t.$router.push(t.$routeProStr+"/setting/sms/sms_config/index?url="+t.$route.path)}))},computed:Object(o.a)(Object(o.a)({},Object(a.e)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:75},labelPosition:function(){return this.isMobile?"top":"right"}}),methods:{onIsLogin:function(){var t=this;this.spinShow=!0,Object(u.u)().then(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n.data.status?t.getList():(t.$Message.warning("请先登录"),t.$router.push(t.$routeProStr+"/setting/sms/sms_config/index?url="+t.$route.path));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getList:function(){var t=this,e=(this.loading=!0,this.levelFrom.status=this.levelFrom.status||"",this.levelFrom.is_have=this.levelFrom.is_have||"",{data:this.$route.path===this.$routeProStr+"/setting/sms/sms_template_apply/index"?this.levelFrom:this.levelFrom2,url:this.$route.path===this.$routeProStr+"/setting/sms/sms_template_apply/index"?"serve/sms/temps":"notify/sms/public_temp"}),n=[{title:"ID",key:"id",sortable:!0,width:80},{title:"模板ID",key:"templateid",minWidth:110},{title:"模板名称",key:"title",minWidth:150},{title:"模板内容",key:"content",minWidth:550},{title:"模板类型",key:"type",minWidth:100},{title:"模板状态",slot:"status",minWidth:100}];this.$route.path===this.$routeProStr+"/setting/sms/sms_template_apply/commons"?this.columns1=Object.assign([],n).slice(0,6).concat([{title:"是否拥有",slot:"is_have",minWidth:110}]):this.columns1=n,Object(u.Ib)(e).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.levelLists=r.data,t.total=r.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.levelFrom.page=t,this.getList()},add:function(){var t=this;Object(u.Hb)().then(function(){var e=Object(r.a)(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.FromData=n.data,t.$refs.edits.modals=!0;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},userSearchs:function(){this.levelFrom.page=1,this.getList()},submitFail:function(){this.getList()}}},n("d22e"),a=n("2877"),n=Object(a.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"i-layout-page-header header_top"},[n("div",{staticClass:"i-layout-page-header fl_header"},[n("router-link",{attrs:{to:{path:t.$routeProStr+"/setting/sms/sms_config/index"}}},[n("Button",{attrs:{icon:"ios-arrow-back",size:"small",type:"text"}},[t._v("返回")])],1),n("Divider",{attrs:{type:"vertical"}}),n("span",{staticClass:"ivu-page-header-title mr20",staticStyle:{padding:"0"}},[t._v(t._s(t.$route.meta.title))])],1)]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Form",{ref:"levelFrom",attrs:{model:t.levelFrom,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[t.$route.path===t.$routeProStr+"/setting/sms/sms_template_apply/index"?n("Row",{attrs:{type:"flex",gutter:24}},[n("Col",{attrs:{span:"24"}},[n("Button",{attrs:{type:"primary",icon:"md-add"},on:{click:t.add}},[t._v("申请模板")])],1)],1):n("Row",{attrs:{type:"flex",gutter:24}},[n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"是否拥有:"}},[n("Select",{attrs:{placeholder:"请选择",clearable:""},on:{"on-change":t.userSearchs},model:{value:t.levelFrom.is_have,callback:function(e){t.$set(t.levelFrom,"is_have",e)},expression:"levelFrom.is_have"}},[n("Option",{attrs:{value:"1"}},[t._v("有")]),n("Option",{attrs:{value:"0"}},[t._v("没有")])],1)],1)],1)],1)],1),n("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns1,data:t.levelLists,loading:t.loading,"no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"status",fn:function(e){var r=e.row;return e.index,[n("span",{directives:[{name:"show",rawName:"v-show",value:1===r.status,expression:"row.status === 1"}]},[t._v("可用")]),n("span",{directives:[{name:"show",rawName:"v-show",value:0===r.status,expression:"row.status === 0"}]},[t._v("不可用")])]}},{key:"is_have",fn:function(e){var r=e.row;return e.index,t.$route.path===t.$routeProStr+"/setting/sms/sms_template_apply/commons"?[n("span",{directives:[{name:"show",rawName:"v-show",value:1===r.status,expression:"row.status === 1"}]},[t._v("有")]),n("span",{directives:[{name:"show",rawName:"v-show",value:0===r.status,expression:"row.status === 0"}]},[t._v("没有")])]:void 0}}],null,!0)}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,current:t.levelFrom.page,"show-elevator":"","show-total":"","page-size":t.levelFrom.limit},on:{"on-change":t.pageChange}})],1)],1),n("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}})],1)}),[],!1,null,"f6f29b12",null);e.default=n.exports},"2ec3":function(t,e,n){},"31b4":function(t,e,n){"use strict";var r=n("f3f3"),o=n("9860"),a=(o=n.n(o),n("6b6c")),u=n("2f62");o={name:"edit",components:{formCreate:o.a.$form()},computed:Object(r.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(a.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"),r=n("2877"),u=Object(r.a)(o,(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},"423c":function(t,e,n){},"90e7":function(t,e,n){"use strict";n.d(e,"t",(function(){return o})),n.d(e,"j",(function(){return a})),n.d(e,"Ib",(function(){return u})),n.d(e,"Hb",(function(){return c})),n.d(e,"i",(function(){return i})),n.d(e,"eb",(function(){return s})),n.d(e,"Mb",(function(){return d})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return f})),n.d(e,"X",(function(){return m})),n.d(e,"db",(function(){return h})),n.d(e,"jb",(function(){return p})),n.d(e,"B",(function(){return g})),n.d(e,"Vb",(function(){return b})),n.d(e,"pb",(function(){return v})),n.d(e,"ob",(function(){return O})),n.d(e,"y",(function(){return j})),n.d(e,"z",(function(){return _})),n.d(e,"l",(function(){return y})),n.d(e,"fb",(function(){return w})),n.d(e,"m",(function(){return x})),n.d(e,"ib",(function(){return F})),n.d(e,"hb",(function(){return k})),n.d(e,"gb",(function(){return $})),n.d(e,"kb",(function(){return T})),n.d(e,"mb",(function(){return S})),n.d(e,"U",(function(){return C})),n.d(e,"nb",(function(){return P})),n.d(e,"zb",(function(){return D})),n.d(e,"G",(function(){return L})),n.d(e,"yb",(function(){return R})),n.d(e,"p",(function(){return E})),n.d(e,"n",(function(){return M})),n.d(e,"o",(function(){return G})),n.d(e,"q",(function(){return I})),n.d(e,"r",(function(){return q})),n.d(e,"qb",(function(){return W})),n.d(e,"Ub",(function(){return U})),n.d(e,"rb",(function(){return B})),n.d(e,"Pb",(function(){return N})),n.d(e,"sb",(function(){return z})),n.d(e,"ab",(function(){return A})),n.d(e,"Rb",(function(){return J})),n.d(e,"bb",(function(){return H})),n.d(e,"Y",(function(){return K})),n.d(e,"Z",(function(){return Q})),n.d(e,"R",(function(){return V})),n.d(e,"A",(function(){return X})),n.d(e,"E",(function(){return Y})),n.d(e,"D",(function(){return Z})),n.d(e,"v",(function(){return tt})),n.d(e,"F",(function(){return et})),n.d(e,"Tb",(function(){return nt})),n.d(e,"s",(function(){return rt})),n.d(e,"Qb",(function(){return ot})),n.d(e,"Sb",(function(){return at})),n.d(e,"x",(function(){return ut})),n.d(e,"C",(function(){return ct})),n.d(e,"w",(function(){return it})),n.d(e,"u",(function(){return st})),n.d(e,"Q",(function(){return dt})),n.d(e,"h",(function(){return lt})),n.d(e,"e",(function(){return ft})),n.d(e,"f",(function(){return mt})),n.d(e,"Jb",(function(){return ht})),n.d(e,"Kb",(function(){return pt})),n.d(e,"Lb",(function(){return gt})),n.d(e,"lb",(function(){return bt})),n.d(e,"Ab",(function(){return vt})),n.d(e,"S",(function(){return Ot})),n.d(e,"Cb",(function(){return jt})),n.d(e,"Bb",(function(){return _t})),n.d(e,"Db",(function(){return yt})),n.d(e,"Eb",(function(){return wt})),n.d(e,"Fb",(function(){return xt})),n.d(e,"Gb",(function(){return Ft})),n.d(e,"Nb",(function(){return kt})),n.d(e,"Ob",(function(){return $t})),n.d(e,"T",(function(){return Tt})),n.d(e,"g",(function(){return St})),n.d(e,"tb",(function(){return Ct})),n.d(e,"wb",(function(){return Pt})),n.d(e,"a",(function(){return Dt})),n.d(e,"b",(function(){return Lt})),n.d(e,"ub",(function(){return Rt})),n.d(e,"xb",(function(){return Et})),n.d(e,"vb",(function(){return Mt})),n.d(e,"k",(function(){return Gt})),n.d(e,"V",(function(){return It})),n.d(e,"W",(function(){return qt})),n.d(e,"cb",(function(){return Wt})),n.d(e,"O",(function(){return Ut})),n.d(e,"N",(function(){return Bt})),n.d(e,"I",(function(){return Nt})),n.d(e,"H",(function(){return zt})),n.d(e,"J",(function(){return At})),n.d(e,"M",(function(){return Jt})),n.d(e,"L",(function(){return Ht})),n.d(e,"P",(function(){return Kt})),n.d(e,"K",(function(){return Qt})),n("99af");var r=n("6b6c");function o(t){return Object(r.a)({url:"setting/config/header_basics",method:"get",params:t})}function a(t,e){return Object(r.a)({url:e,method:"get",params:t})}function u(t){return Object(r.a)({url:t.url,method:"get",params:t.data})}function c(){return Object(r.a)({url:"notify/sms/temp/create",method:"get"})}function i(t){return Object(r.a)({url:"serve/login",method:"post",data:t})}function s(t){return Object(r.a)({url:"serve/modify",method:"post",data:t})}function d(t){return Object(r.a)({url:"serve/update_phone",method:"post",data:t})}function l(t){return Object(r.a)({url:"serve/captcha",method:"post",data:t})}function f(t){return Object(r.a)({url:"serve/checkCode",method:"post",data:t})}function m(t){return Object(r.a)({url:"serve/register",method:"post",data:t})}function h(){return Object(r.a)({url:"serve/info",method:"get"})}function p(t){return Object(r.a)({url:"serve/sms/sign",method:"PUT",data:t})}function g(t){return Object(r.a)({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function b(t){return Object(r.a)({url:"app/wechat/speechcraft",method:"get",params:t})}function v(t){return Object(r.a)({url:"app/wechat/speechcraft/".concat(t,"/edit"),method:"get"})}function O(){return Object(r.a)({url:"app/wechat/speechcraft/create",method:"get"})}function j(t){return Object(r.a)({url:"app/feedback",method:"get",params:t})}function _(t){return Object(r.a)({url:"app/feedback/".concat(t,"/edit"),method:"get"})}function y(){return Object(r.a)({url:"serve/export_all",method:"get"})}function w(){return Object(r.a)({url:"serve/open",method:"get"})}function x(t){return Object(r.a)({url:"serve/export_temp",method:"get",params:t})}function F(t){return Object(r.a)({url:"serve/record",method:"get",params:t})}function k(t){return Object(r.a)({url:"serve/open",method:"get",params:t})}function $(t){return Object(r.a)({url:"serve/opn_express",method:"post",data:t})}function T(t){return Object(r.a)({url:"serve/sms/open",method:"get",params:t})}function S(t){return Object(r.a)({url:"serve/meal_list",method:"get",params:t})}function C(t){return Object(r.a)({url:"serve/pay_meal",method:"post",data:t})}function P(t){return Object(r.a)({url:"notify/sms/record",method:"get",params:t})}function D(){return Object(r.a)({url:"merchant/store",method:"GET"})}function L(){return Object(r.a)({url:"merchant/store/address",method:"GET"})}function R(t){return Object(r.a)({url:"merchant/store/".concat(t.id),method:"POST",data:t})}function E(t){return Object(r.a)({url:"freight/express",method:"get",params:t})}function M(){return Object(r.a)({url:"/freight/express/create",method:"get"})}function G(t){return Object(r.a)({url:"freight/express/".concat(t,"/edit"),method:"get"})}function I(t){return Object(r.a)({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function q(){return Object(r.a)({url:"freight/express/sync_express",method:"get"})}function W(){return Object(r.a)({url:"app/wechat/speechcraftcate",method:"get"})}function U(){return Object(r.a)({url:"app/wechat_qrcode/cate/list",method:"get"})}function B(){return Object(r.a)({url:"app/wechat/speechcraftcate/create",method:"get"})}function N(t){return Object(r.a)({url:"app/wechat_qrcode/cate/create/".concat(t),method:"get"})}function z(t){return Object(r.a)({url:"app/wechat/speechcraftcate/".concat(t,"/edit"),method:"get"})}function A(t){return Object(r.a)({url:"setting/role",method:"GET",params:t})}function J(t){return Object(r.a)({url:"app/wechat_qrcode/list",method:"GET",params:t})}function H(t){return Object(r.a)({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function K(t){return Object(r.a)({url:"setting/role/".concat(t.id),method:"post",data:t})}function Q(t){return Object(r.a)({url:"setting/role/".concat(t,"/edit"),method:"get"})}function V(){return Object(r.a)({url:"setting/role/create",method:"get"})}function X(t){return Object(r.a)({url:"app/wechat/kefu",method:"get",params:t})}function Y(t){return Object(r.a)({url:"app/wechat/kefu/create",method:"get",params:t})}function Z(){return Object(r.a)({url:"app/wechat/kefu/add",method:"get"})}function tt(t){return Object(r.a)({url:"app/wechat/kefu",method:"post",data:t})}function et(t){return Object(r.a)({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function nt(t){return Object(r.a)({url:"app/wechat_qrcode/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function rt(t){return Object(r.a)({url:"app/wechat_qrcode/user_list/".concat(t.id),method:"get",params:t})}function ot(t){return Object(r.a)({url:"app/wechat_qrcode/info/".concat(t),method:"get"})}function at(t,e){return Object(r.a)({url:"app/wechat_qrcode/save/".concat(t),method:"post",data:e})}function ut(t){return Object(r.a)({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function ct(t,e){return Object(r.a)({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function it(t){return Object(r.a)({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function st(){return Object(r.a)({url:"notify/sms/is_login",method:"GET"})}function dt(){return Object(r.a)({url:"notify/sms/logout",method:"GET"})}function lt(t){return Object(r.a)({url:"setting/city/list/".concat(t),method:"get"})}function ft(t){return Object(r.a)({url:"setting/city/add/".concat(t),method:"get"})}function mt(t){return Object(r.a)({url:"setting/city/".concat(t,"/edit"),method:"get"})}function ht(t){return Object(r.a)({url:"setting/shipping_templates/list",method:"get",params:t})}function pt(t){return Object(r.a)({url:"setting/shipping_templates/city_list",method:"get"})}function gt(t,e){return Object(r.a)({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function bt(t){return Object(r.a)({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function vt(){return Object(r.a)({url:"merchant/store/get_header",method:"get"})}function Ot(t){return Object(r.a)({url:"merchant/store",method:"get",params:t})}function jt(t,e){return Object(r.a)({url:"merchant/store/set_show/".concat(t,"/").concat(e),method:"put"})}function _t(t){return Object(r.a)({url:"merchant/store/get_info/".concat(t),method:"get"})}function yt(t){return Object(r.a)({url:"merchant/store_staff",method:"get",params:t})}function wt(){return Object(r.a)({url:"merchant/store_staff/create",method:"get"})}function xt(t){return Object(r.a)({url:"merchant/store_staff/".concat(t,"/edit"),method:"get"})}function Ft(t,e){return Object(r.a)({url:"merchant/store_staff/set_show/".concat(t,"/").concat(e),method:"put"})}function kt(t){return Object(r.a)({url:"merchant/verify_order",method:"get",params:t})}function $t(t){return Object(r.a)({url:"merchant/verify/spread_info/".concat(t),method:"get"})}function Tt(){return Object(r.a)({url:"merchant/store_list",method:"get"})}function St(){return Object(r.a)({url:"setting/city/clean_cache",method:"get"})}function Ct(){return Object(r.a)({url:"system/config/storage/config",method:"get"})}function Pt(t){return Object(r.a)({url:"system/config/storage/config",method:"post",data:t})}function Dt(t){return Object(r.a)({url:"system/config/storage/form/".concat(t),method:"get"})}function Lt(t){return Object(r.a)({url:"system/config/storage/create/".concat(t),method:"get"})}function Rt(t){return Object(r.a)({url:"system/config/storage",method:"get",params:t})}function Et(t){return Object(r.a)({url:"system/config/storage/synch/".concat(t),method:"put"})}function Mt(t){return Object(r.a)({url:"system/config/storage/status/".concat(t),method:"put"})}function Gt(t){return Object(r.a)({url:"system/config/storage/domain/".concat(t),method:"get"})}function It(){return Object(r.a)({url:"setting/config_list/31",method:"get"})}function qt(t){return Object(r.a)({url:"setting/config/save_basics",method:"post",data:t})}function Wt(t){return Object(r.a)({url:"system/config/storage/save_type/".concat(t),method:"get"})}function Ut(t){return Object(r.a)({url:"setting/lang_type/list",method:"get",params:t})}function Bt(t){return Object(r.a)({url:"setting/lang_type/form/".concat(t),method:"get"})}function Nt(t){return Object(r.a)({url:"setting/lang_code/list",method:"get",params:t})}function zt(t){return Object(r.a)({url:"setting/lang_code/info",method:"get",params:t})}function At(t){return Object(r.a)({url:"setting/lang_code/save",method:"post",data:t})}function Jt(t){return Object(r.a)({url:"setting/lang_country/list",method:"get",params:t})}function Ht(t){return Object(r.a)({url:"setting/lang_country/form/".concat(t),method:"get"})}function Kt(t,e){return Object(r.a)({url:"setting/lang_type/status/".concat(t,"/").concat(e),method:"put"})}function Qt(t){return Object(r.a)({url:"setting/lang_code/translate",method:"post",data:t})}},9646:function(t,e,n){"use strict";var r=n("2ec3");n.n(r).a},d22e:function(t,e,n){"use strict";var r=n("423c");n.n(r).a}}]); |