new_naweigete/crmeb/public/admin/dist/system_static/js/chunk-2cd2fbd9.b4ae734a.js
2025-03-13 09:24:48 +08:00

1 line
18 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2cd2fbd9"],{"0ecc":function(t,e,n){n.r(e);var r=n("c7eb"),o=n("1da1"),a=n("5530"),u=(n("99af"),n("14d9"),n("fb6a"),n("2f62")),i=n("90e7");a={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(i.cb)().then((function(e){1!=e.data.sms.open&&t.$router.push(t.$routeProStr+"/setting/sms/sms_config/index?url="+t.$route.path)}))},computed:Object(a.a)(Object(a.a)({},Object(u.c)("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:"80px"},labelPosition:function(){return this.isMobile?"top":"right"}}),methods:{onIsLogin:function(){var t=this;this.spinShow=!0,Object(i.v)().then((()=>{var e=Object(o.a)(Object(r.a)().mark((function e(n){return Object(r.a)().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,minWidth: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(i.tb)(e).then((()=>{var e=Object(o.a)(Object(r.a)().mark((function e(n){var o;return Object(r.a)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=n.data,t.levelLists=o.data,t.total=o.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)}))},add:function(){var t=this;Object(i.sb)().then((()=>{var e=Object(o.a)(Object(r.a)().mark((function e(n){return Object(r.a)().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("9090"),u=n("2877"),n=Object(u.a)(a,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"i-layout-page-header header_top"},[e("div",{staticClass:"i-layout-page-header fl_header"},[e("router-link",{attrs:{to:{path:t.$routeProStr+"/setting/sms/sms_config/index"}}},[e("el-button",{attrs:{size:"small",type:"text"}},[t._v("返回")])],1),e("el-divider",{attrs:{direction:"vertical"}}),e("span",{staticClass:"ivu-page-header-title mr20",staticStyle:{padding:"0"}},[t._v(t._s(t.$route.meta.title))])],1)]),e("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never"}},[e("el-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"?e("el-row",{attrs:{gutter:24}},[e("el-col",{attrs:{span:24}},[e("el-button",{attrs:{type:"primary"},on:{click:t.add}},[t._v("申请模板")])],1)],1):e("el-row",{attrs:{gutter:24}},[e("el-col",t._b({},"el-col",t.grid,!1),[e("el-form-item",{attrs:{label:"是否拥有:"}},[e("el-select",{attrs:{placeholder:"请选择",clearable:""},on:{change:t.userSearchs},model:{value:t.levelFrom.is_have,callback:function(e){t.$set(t.levelFrom,"is_have",e)},expression:"levelFrom.is_have"}},[e("el-option",{attrs:{value:"1",label:"有"}}),e("el-option",{attrs:{value:"0",label:"没有"}})],1)],1)],1)],1)],1),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:t.levelLists,"no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},t._l(t.columns,(function(n,r){return e("el-table-column",{key:r,attrs:{label:n.title,"min-width":n.minWidth},scopedSlots:t._u([{key:"default",fn:function(r){return[n.key?[e("div",[e("span",[t._v(t._s(r.row[n.key]))])])]:"status"===n.slot?[e("span",{directives:[{name:"show",rawName:"v-show",value:1===r.row.status,expression:"scope.row.status === 1"}]},[t._v("可用")]),e("span",{directives:[{name:"show",rawName:"v-show",value:0===r.row.status,expression:"scope.row.status === 0"}]},[t._v("不可用")])]:"is_have"===n.slot&&t.$route.path===t.$routeProStr+"/setting/sms/sms_template_apply/commons"?[e("span",{directives:[{name:"show",rawName:"v-show",value:1===r.row.status,expression:"scope.row.status === 1"}]},[t._v("有")]),e("span",{directives:[{name:"show",rawName:"v-show",value:0===r.row.status,expression:"scope.row.status === 0"}]},[t._v("没有")])]:t._e()]}}],null,!0)})})),1),e("div",{staticClass:"acea-row row-right page"},[t.total?e("pagination",{attrs:{total:t.total,page:t.levelFrom.page,limit:t.levelFrom.limit},on:{"update:page":function(e){return t.$set(t.levelFrom,"page",e)},"update:limit":function(e){return t.$set(t.levelFrom,"limit",e)},pagination:t.getList}}):t._e()],1)],1),e("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}})],1)}),[],!1,null,"1bd5ddbc",null);e.default=n.exports},"31b4":function(t,e,n){n("a630"),n("3ca3");var r=n("5530"),o=(n("e9f5"),n("7d54"),n("d3b7"),n("159b"),n("da05")),a=n("6b6c"),u=n("2f62");o={name:"edit",components:{formCreate:o.a.$form()},computed:Object(r.a)({},Object(u.c)("userLevel",["taskId","levelId"])),props:{FromData:{type:Object,default:null},update:{type:Boolean,default:!0}},watch:{FromData:function(){this.FromData.rules.forEach((function(t){t.title+=""}))}},data:function(){return{modals:!1,type:0,loading:!1,fapi:null,config:{form:{labelWidth:"100px"},resetBtn:!1,submitBtn:!1,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)},formSubmit:function(){this.fapi.submit()},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("fae3"),r=n("2877"),u=Object(r.a)(o,(function(){var t=this,e=t._self._c;return t.FromData?e("div",[e("el-dialog",{attrs:{visible:t.modals,title:t.FromData.title,"z-index":1,width:"720px"},on:{"update:visible":function(e){t.modals=e},closed:t.cancel}},[["/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("el-radio-group",{on:{input:t.couponsType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("el-radio",{attrs:{label:0}},[t._v("通用券")]),e("el-radio",{attrs:{label:1}},[t._v("品类券")]),e("el-radio",{attrs:{label:2}},[t._v("商品券")])],1)],1):t._e()],e("form-create",{ref:"fc",staticClass:"formBox",attrs:{option:t.config,rule:Array.from(this.FromData.rules),handleIcon:"false"},on:{submit:t.onSubmit},model:{value:t.fapi,callback:function(e){t.fapi=e},expression:"fapi"}}),e("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){t.modals=!1}}},[t._v("取 消")]),e("el-button",{attrs:{type:"primary"},on:{click:t.formSubmit}},[t._v("确 定")])],1)],2)],1):t._e()}),[],!1,null,"224af4d2",null);e.a=u.exports},4967:function(t,e,n){},9090:function(t,e,n){n("b2c3")},"90e7":function(t,e,n){n.d(e,"u",(function(){return a})),n.d(e,"k",(function(){return u})),n.d(e,"tb",(function(){return i})),n.d(e,"sb",(function(){return s})),n.d(e,"j",(function(){return c})),n.d(e,"db",(function(){return l})),n.d(e,"xb",(function(){return d})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return f})),n.d(e,"T",(function(){return p})),n.d(e,"cb",(function(){return h})),n.d(e,"ib",(function(){return g})),n.d(e,"A",(function(){return b})),n.d(e,"m",(function(){return v})),n.d(e,"eb",(function(){return j})),n.d(e,"n",(function(){return O})),n.d(e,"hb",(function(){return _})),n.d(e,"gb",(function(){return y})),n.d(e,"fb",(function(){return w})),n.d(e,"jb",(function(){return x})),n.d(e,"lb",(function(){return F})),n.d(e,"Q",(function(){return k})),n.d(e,"mb",(function(){return $})),n.d(e,"r",(function(){return S})),n.d(e,"p",(function(){return D})),n.d(e,"q",(function(){return T})),n.d(e,"s",(function(){return P})),n.d(e,"t",(function(){return L})),n.d(e,"W",(function(){return C})),n.d(e,"X",(function(){return W})),n.d(e,"U",(function(){return E})),n.d(e,"V",(function(){return I})),n.d(e,"P",(function(){return B})),n.d(e,"z",(function(){return G})),n.d(e,"D",(function(){return N})),n.d(e,"C",(function(){return U})),n.d(e,"w",(function(){return z})),n.d(e,"E",(function(){return A})),n.d(e,"y",(function(){return M})),n.d(e,"B",(function(){return q})),n.d(e,"x",(function(){return J})),n.d(e,"v",(function(){return H})),n.d(e,"O",(function(){return K})),n.d(e,"h",(function(){return Q})),n.d(e,"e",(function(){return R})),n.d(e,"f",(function(){return V})),n.d(e,"ub",(function(){return X})),n.d(e,"vb",(function(){return Y})),n.d(e,"wb",(function(){return Z})),n.d(e,"kb",(function(){return tt})),n.d(e,"g",(function(){return et})),n.d(e,"nb",(function(){return nt})),n.d(e,"qb",(function(){return rt})),n.d(e,"a",(function(){return ot})),n.d(e,"b",(function(){return at})),n.d(e,"ob",(function(){return ut})),n.d(e,"rb",(function(){return it})),n.d(e,"pb",(function(){return st})),n.d(e,"l",(function(){return ct})),n.d(e,"R",(function(){return lt})),n.d(e,"S",(function(){return dt})),n.d(e,"Y",(function(){return mt})),n.d(e,"M",(function(){return ft})),n.d(e,"L",(function(){return pt})),n.d(e,"G",(function(){return ht})),n.d(e,"F",(function(){return gt})),n.d(e,"H",(function(){return bt})),n.d(e,"K",(function(){return vt})),n.d(e,"J",(function(){return jt})),n.d(e,"N",(function(){return Ot})),n.d(e,"I",(function(){return _t})),n.d(e,"i",(function(){return yt})),n.d(e,"bb",(function(){return wt})),n.d(e,"ab",(function(){return xt})),n.d(e,"o",(function(){return Ft})),n.d(e,"Z",(function(){return kt})),n("99af");var r=n("6b6c"),o=n("c276");function a(t){return Object(r.a)({url:"setting/config/header_basics",method:"get",params:t})}function u(t,e){return Object(r.a)({url:e,method:"get",params:t})}function i(t){return Object(r.a)({url:t.url,method:"get",params:t.data})}function s(){return Object(r.a)({url:"notify/sms/temp/create",method:"get"})}function c(t){return Object(r.a)({url:"serve/login",method:"post",data:t})}function l(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 m(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 p(t){return Object(r.a)({url:"serve/register",method:"post",data:t})}function h(){return Object(r.a)({url:"serve/info",method:"get"})}function g(t){return Object(r.a)({url:"serve/sms/sign",method:"PUT",data:t})}function b(t){return Object(r.a)({url:"app/wechat/kefu/login/".concat(t),method:"get"})}function v(){return Object(r.a)({url:"serve/export_all",method:"get"})}function j(){return Object(r.a)({url:"serve/open",method:"get"})}function O(t){return Object(r.a)({url:"serve/export_temp",method:"get",params:t})}function _(t){return Object(r.a)({url:"serve/record",method:"get",params:t})}function y(t){return Object(r.a)({url:"serve/open",method:"get",params:t})}function w(t){return Object(r.a)({url:"serve/opn_express",method:"post",data:t})}function x(t){return Object(r.a)({url:"serve/sms/open",method:"get",params:t})}function F(t){return Object(r.a)({url:"serve/meal_list",method:"get",params:t})}function k(t){return Object(r.a)({url:"serve/pay_meal",method:"post",data:t})}function $(t){return Object(r.a)({url:"notify/sms/record",method:"get",params:t})}function S(t){return Object(r.a)({url:"freight/express",method:"get",params:t})}function D(){return Object(r.a)({url:"/freight/express/create",method:"get"})}function T(t){return Object(r.a)({url:"freight/express/".concat(t,"/edit"),method:"get"})}function P(t){return Object(r.a)({url:"freight/express/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function L(){return Object(r.a)({url:"freight/express/sync_express",method:"get"})}function C(t){return Object(r.a)({url:"setting/role",method:"GET",params:t})}function W(t){return Object(r.a)({url:"setting/role/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function E(t){return Object(r.a)({url:"setting/role/".concat(t.id),method:"post",data:t})}function I(t){return Object(r.a)({url:"setting/role/".concat(t,"/edit"),method:"get"})}function B(){return Object(r.a)({url:"setting/role/create",method:"get"})}function G(t){return Object(r.a)({url:"app/wechat/kefu",method:"get",params:t})}function N(t){return Object(r.a)({url:"app/wechat/kefu/create",method:"get",params:t})}function U(){return Object(r.a)({url:"app/wechat/kefu/add",method:"get"})}function z(t){return Object(r.a)({url:"app/wechat/kefu",method:"post",data:t})}function A(t){return Object(r.a)({url:"app/wechat/kefu/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function M(t){return Object(r.a)({url:"app/wechat/kefu/".concat(t,"/edit"),method:"GET"})}function q(t,e){return Object(r.a)({url:"app/wechat/kefu/record/".concat(e),method:"GET",params:t})}function J(t){return Object(r.a)({url:"app/wechat/kefu/chat_list",method:"GET",params:t})}function H(){return Object(r.a)({url:"notify/sms/is_login",method:"GET"})}function K(){return Object(r.a)({url:"notify/sms/logout",method:"GET"})}function Q(t){return Object(r.a)({url:"setting/city/list/".concat(t),method:"get"})}function R(t){return Object(r.a)({url:"setting/city/add/".concat(t),method:"get"})}function V(t){return Object(r.a)({url:"setting/city/".concat(t,"/edit"),method:"get"})}function X(t){return Object(r.a)({url:"setting/shipping_templates/list",method:"get",params:t})}function Y(t){return Object(r.a)({url:"setting/shipping_templates/city_list",method:"get"})}function Z(t,e){return Object(r.a)({url:"setting/shipping_templates/save/".concat(t),method:"post",data:e})}function tt(t){return Object(r.a)({url:"setting/shipping_templates/".concat(t,"/edit"),method:"get"})}function et(){return Object(r.a)({url:"setting/city/clean_cache",method:"get"})}function nt(){return Object(r.a)({url:"system/config/storage/config",method:"get"})}function rt(t){return Object(r.a)({url:"system/config/storage/config",method:"post",data:t})}function ot(t){return Object(r.a)({url:"system/config/storage/form/".concat(t),method:"get"})}function at(t){return Object(r.a)({url:"system/config/storage/create/".concat(t),method:"get"})}function ut(t){return Object(r.a)({url:"system/config/storage",method:"get",params:t})}function it(t){return Object(r.a)({url:"system/config/storage/synch/".concat(t),method:"put"})}function st(t){return Object(r.a)({url:"system/config/storage/status/".concat(t),method:"put"})}function ct(t){return Object(r.a)({url:"system/config/storage/domain/".concat(t),method:"get"})}function lt(){return Object(r.a)({url:"setting/config_list/31",method:"get"})}function dt(t){return Object(r.a)({url:"setting/config/save_basics",method:"post",data:t})}function mt(t){return Object(r.a)({url:"system/config/storage/save_type/".concat(t),method:"get"})}function ft(t){return Object(r.a)({url:"setting/lang_type/list",method:"get",params:t})}function pt(t){return Object(r.a)({url:"setting/lang_type/form/".concat(t),method:"get"})}function ht(t){return Object(r.a)({url:"setting/lang_code/list",method:"get",params:t})}function gt(t){return Object(r.a)({url:"setting/lang_code/info",method:"get",params:t})}function bt(t){return Object(r.a)({url:"setting/lang_code/save",method:"post",data:t})}function vt(t){return Object(r.a)({url:"setting/lang_country/list",method:"get",params:t})}function jt(t){return Object(r.a)({url:"setting/lang_country/form/".concat(t),method:"get"})}function Ot(t,e){return Object(r.a)({url:"setting/lang_type/status/".concat(t,"/").concat(e),method:"put"})}function _t(t){return Object(r.a)({url:"setting/lang_code/translate",method:"post",data:t})}function yt(t){return Object(r.a)({url:"system/crud",method:"post",data:t})}function wt(t){return Object(r.a)({url:"file/scan_upload/qrcode?pid=".concat(t),method:"get"})}function xt(t){return Object(r.a)({url:"file/scan_upload/image/".concat(t),method:"get"})}function Ft(t){return Object(r.a)({url:"file/upload",method:"post",headers:{"Authori-zation":"Bearer "+Object(o.c)("token"),"content-type":"multipart/form-data;Bearer "+Object(o.c)("token")},data:t})}function kt(t){return Object(r.a)({url:"image/scan_upload",method:"post",headers:{"content-type":"multipart/form-data;"},data:t})}},b2c3:function(t,e,n){},fae3:function(t,e,n){n("4967")}}]);