CRMEB/crmeb/public/admin/js/chunk-08c99b6c.24a0e992.js
2022-04-09 14:31:22 +08:00

1 line
15 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-08c99b6c"],{"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")),i=n("9860"),u=n.n(i),c=n("6b6c"),s=n("2f62");function l(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 d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={name:"edit",components:{formCreate:u.a.$form()},computed:d({},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(c["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}}},m=f,p=(n("bb05"),n("2877")),h=Object(p["a"])(m,r,a,!1,null,"7423233c",null);e["a"]=h.exports},8593:function(t,e,n){"use strict";n.d(e,"j",(function(){return a})),n.d(e,"h",(function(){return o})),n.d(e,"i",(function(){return i})),n.d(e,"P",(function(){return u})),n.d(e,"n",(function(){return c})),n.d(e,"l",(function(){return s})),n.d(e,"m",(function(){return l})),n.d(e,"k",(function(){return d})),n.d(e,"D",(function(){return f})),n.d(e,"v",(function(){return m})),n.d(e,"C",(function(){return p})),n.d(e,"A",(function(){return h})),n.d(e,"x",(function(){return b})),n.d(e,"y",(function(){return g})),n.d(e,"z",(function(){return O})),n.d(e,"B",(function(){return v})),n.d(e,"M",(function(){return j})),n.d(e,"Q",(function(){return y})),n.d(e,"o",(function(){return _})),n.d(e,"d",(function(){return w})),n.d(e,"f",(function(){return k})),n.d(e,"c",(function(){return x})),n.d(e,"e",(function(){return P})),n.d(e,"g",(function(){return D})),n.d(e,"r",(function(){return $})),n.d(e,"p",(function(){return T})),n.d(e,"q",(function(){return C})),n.d(e,"G",(function(){return F})),n.d(e,"H",(function(){return S})),n.d(e,"L",(function(){return E})),n.d(e,"K",(function(){return V})),n.d(e,"a",(function(){return L})),n.d(e,"b",(function(){return M})),n.d(e,"t",(function(){return R})),n.d(e,"O",(function(){return I})),n.d(e,"w",(function(){return G})),n.d(e,"S",(function(){return z})),n.d(e,"R",(function(){return A})),n.d(e,"E",(function(){return B})),n.d(e,"F",(function(){return J})),n.d(e,"u",(function(){return U})),n.d(e,"I",(function(){return W})),n.d(e,"J",(function(){return q})),n.d(e,"s",(function(){return H})),n.d(e,"N",(function(){return K}));var r=n("6b6c");function a(t){return Object(r["a"])({url:"setting/config_class",method:"get",params:t})}function o(t){return Object(r["a"])({url:"setting/config_class/create",method:"get"})}function i(t){return Object(r["a"])({url:"setting/config_class/".concat(t,"/edit"),method:"get"})}function u(t){return Object(r["a"])({url:"setting/config_class/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function c(t){return Object(r["a"])({url:"setting/config",method:"get",params:t})}function s(t){return Object(r["a"])({url:"setting/config/create",method:"get",params:t})}function l(t){return Object(r["a"])({url:"/setting/config/".concat(t,"/edit"),method:"get"})}function d(t,e){return Object(r["a"])({url:"setting/config/set_status/".concat(t,"/").concat(e),method:"PUT"})}function f(t){return Object(r["a"])({url:"setting/group",method:"get",params:t})}function m(t){return Object(r["a"])({url:t.url,method:t.method,data:t.datas})}function p(t){return Object(r["a"])({url:"setting/group/".concat(t),method:"get"})}function h(t,e){return Object(r["a"])({url:e,method:"get",params:t})}function b(t,e){return Object(r["a"])({url:e,method:"get",params:t})}function g(t,e){return Object(r["a"])({url:e,method:"get",params:t})}function O(t,e){return Object(r["a"])({url:e,method:"get",params:t})}function v(t){return Object(r["a"])({url:t,method:"PUT"})}function j(t){return Object(r["a"])({url:"system/log/search_admin",method:"GET"})}function y(t){return Object(r["a"])({url:"system/log",method:"GET",params:t})}function _(){return Object(r["a"])({url:"system/file",method:"GET"})}function w(){return Object(r["a"])({url:"system/backup",method:"GET"})}function k(t){return Object(r["a"])({url:"system/backup/read",method:"GET",params:t})}function x(t){return Object(r["a"])({url:"system/backup/backup",method:"put",data:t})}function P(t){return Object(r["a"])({url:"system/backup/optimize",method:"put",data:t})}function D(t){return Object(r["a"])({url:"system/backup/repair",method:"put",data:t})}function $(t){return Object(r["a"])({url:"system/backup/file_list",method:"GET"})}function T(t){return Object(r["a"])({url:"backup/download",method:"get",params:t})}function C(t){return Object(r["a"])({url:"system/backup/import",method:"POST",data:t})}function F(t){return Object(r["a"])({url:"system/file/opendir",method:"GET",params:t})}function S(t){return Object(r["a"])({url:"system/file/openfile?filepath=".concat(t),method:"GET"})}function E(t){return Object(r["a"])({url:"system/file/savefile",method:"post",data:t})}function V(t){return Object(r["a"])({url:"system/replace_site_url",method:"post",data:t})}function L(){return Object(r["a"])({url:"auth",method:"get"})}function M(t){return Object(r["a"])({url:"auth_apply",method:"post",data:t})}function R(){return Object(r["a"])({url:"setting/get_kf_adv",method:"get"})}function I(t){return Object(r["a"])({url:"setting/set_kf_adv",method:"post",data:t})}function G(){return Object(r["a"])({url:"setting/group_all",method:"get"})}function z(t){return Object(r["a"])({url:"system/version_list",method:"get",params:t})}function A(t){return Object(r["a"])({url:"system/version_crate/".concat(t),method:"get"})}function B(t){return Object(r["a"])({url:"setting/group_data/save_all",method:"POST",data:t})}function J(t){return Object(r["a"])({url:"diy/open_adv/add",method:"POST",data:t})}function U(){return Object(r["a"])({url:"diy/open_adv/info",method:"get"})}function W(t){return Object(r["a"])({url:"setting/config/get_system/".concat(t),method:"get"})}function q(t){return Object(r["a"])({url:"setting/config/save_basics",method:"POST",data:t})}function H(){return Object(r["a"])({url:"setting/get_user_agreement",method:"get"})}function K(t){return Object(r["a"])({url:"setting/set_user_agreement",method:"post",data:t})}},bb05:function(t,e,n){"use strict";var r=n("f557"),a=n.n(r);a.a},c59c: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:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[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.formValidate.status,callback:function(e){t.$set(t.formValidate,"status",e)},expression:"formValidate.status"}},[n("Option",{attrs:{value:"1"}},[t._v("显示")]),n("Option",{attrs:{value:"0"}},[t._v("不显示")])],1)],1)],1),n("Col",t._b({},"Col",t.grid,!1),[n("FormItem",{attrs:{label:"分类名称:","label-for":"status2"}},[n("Input",{attrs:{search:"","enter-button":"",placeholder:"请输入分类名称"},on:{"on-search":t.userSearchs},model:{value:t.formValidate.title,callback:function(e){t.$set(t.formValidate,"title",e)},expression:"formValidate.title"}})],1)],1)],1),n("Row",{attrs:{type:"flex"}},[n("Col",t._b({},"Col",t.grid,!1),[n("Button",{staticClass:"mr20",attrs:{type:"primary",icon:"md-add"},on:{click:t.classAdd}},[t._v("添加配置分类")])],1)],1)],1),n("vxe-table",{ref:"xTable",staticClass:"vxeTable mt25",attrs:{border:!1,"highlight-hover-row":"","highlight-current-row":"",loading:t.loading,"tree-config":t.tabconfig,data:t.classList,"row-id":"id"}},[n("vxe-table-column",{attrs:{field:"id",title:"ID",tooltip:"","min-width":"60"}}),n("vxe-table-column",{attrs:{field:"title","tree-node":"",title:"分类名称","min-width":"150"}}),n("vxe-table-column",{attrs:{field:"eng_title",title:"分类字段","min-width":"150"}}),n("vxe-table-column",{attrs:{field:"statuss",title:"状态","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row;return[n("i-switch",{attrs:{value:r.status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(r)}},model:{value:r.status,callback:function(e){t.$set(r,"status",e)},expression:"row.status"}},[n("span",{attrs:{slot:"open"},slot:"open"},[t._v("显示")]),n("span",{attrs:{slot:"close"},slot:"close"},[t._v("隐藏")])])]}}])}),n("vxe-table-column",{attrs:{field:"action",title:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.row,a=e.index;return[n("a",{on:{click:function(e){return t.goList(r)}}},[t._v("配置列表")]),n("Divider",{attrs:{type:"vertical"}}),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),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1),n("edit-from",{ref:"edits",attrs:{update:!0,FromData:t.FromData},on:{submitFail:t.submitFail}})],1)},a=[],o=(n("8e6e"),n("ac6a"),n("456d"),n("96cf"),n("3b8d")),i=n("bd86"),u=n("2f62"),c=n("31b4"),s=n("8593");function l(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 d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={name:"configTab",components:{editFrom:c["a"]},data:function(){return{tabconfig:{children:"children",reserve:!0,accordion:!0},grid:{xl:7,lg:7,md:12,sm:24,xs:24},loading:!1,formValidate:{status:"",page:1,limit:100,title:""},total:0,FromData:null,classId:0,classList:[]}},computed:d(d({},Object(u["e"])("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:75},labelPosition:function(){return this.isMobile?"top":"right"}}),mounted:function(){this.getList()},methods:{goList:function(t){this.$router.push({path:"/admin/system/config/system_config_tab/list/"+t.id})},classAdd:function(){var t=this;Object(s["h"])().then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)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)}))},edit:function(t){var e=this;Object(s["i"])(t.id).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!1!==n.data.status){t.next=2;break}return t.abrupt("return",e.$authLapse(n.data));case 2:e.FromData=n.data,e.$refs.edits.modals=!0;case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))},del:function(t,e,n){var r=this,a={title:e,num:n,url:"setting/config_class/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(a).then((function(t){r.$Message.success(t.msg),r.getList()})).catch((function(t){r.$Message.error(t.msg)}))},getList:function(){var t=this;this.loading=!0,this.formValidate.status=this.formValidate.status||"",Object(s["j"])(this.formValidate).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=n.data,t.classList=r.list,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.formValidate.page=t,this.getList()},userSearchs:function(){this.formValidate.page=1,this.getList()},submitFail:function(){},onchangeIsShow:function(t){var e=this,n={id:t.id,status:t.status};Object(s["P"])(n).then(function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$Message.success(n.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$Message.error(t.msg)}))}}},m=f,p=n("2877"),h=Object(p["a"])(m,r,a,!1,null,"59dbf8e5",null);e["default"]=h.exports},f557:function(t,e,n){}}]);