CRMEB/crmeb/public/admin/js/chunk-5af89ff8.61b85e95.js
2022-05-09 09:23:53 +08:00

1 line
8.9 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5af89ff8"],{"291b":function(t,e,n){},"4f88":function(t,e,n){"use strict";var r=n("291b"),u=n.n(r);u.a},8593:function(t,e,n){"use strict";n.d(e,"j",(function(){return u})),n.d(e,"h",(function(){return a})),n.d(e,"i",(function(){return c})),n.d(e,"R",(function(){return o})),n.d(e,"n",(function(){return i})),n.d(e,"l",(function(){return s})),n.d(e,"m",(function(){return d})),n.d(e,"k",(function(){return f})),n.d(e,"E",(function(){return l})),n.d(e,"w",(function(){return m})),n.d(e,"D",(function(){return b})),n.d(e,"B",(function(){return g})),n.d(e,"y",(function(){return h})),n.d(e,"z",(function(){return p})),n.d(e,"A",(function(){return O})),n.d(e,"C",(function(){return j})),n.d(e,"N",(function(){return v})),n.d(e,"S",(function(){return y})),n.d(e,"o",(function(){return _})),n.d(e,"d",(function(){return T})),n.d(e,"f",(function(){return w})),n.d(e,"c",(function(){return E})),n.d(e,"e",(function(){return k})),n.d(e,"g",(function(){return C})),n.d(e,"r",(function(){return P})),n.d(e,"p",(function(){return S})),n.d(e,"q",(function(){return x})),n.d(e,"H",(function(){return G})),n.d(e,"I",(function(){return V})),n.d(e,"M",(function(){return U})),n.d(e,"L",(function(){return M})),n.d(e,"a",(function(){return D})),n.d(e,"b",(function(){return R})),n.d(e,"u",(function(){return H})),n.d(e,"Q",(function(){return L})),n.d(e,"x",(function(){return F})),n.d(e,"U",(function(){return J})),n.d(e,"T",(function(){return W})),n.d(e,"F",(function(){return $})),n.d(e,"G",(function(){return z})),n.d(e,"v",(function(){return B})),n.d(e,"J",(function(){return I})),n.d(e,"K",(function(){return q})),n.d(e,"s",(function(){return A})),n.d(e,"O",(function(){return K})),n.d(e,"t",(function(){return N})),n.d(e,"P",(function(){return Q}));var r=n("6b6c");function u(t){return Object(r["a"])({url:"setting/config_class",method:"get",params:t})}function a(t){return Object(r["a"])({url:"setting/config_class/create",method:"get"})}function c(t){return Object(r["a"])({url:"setting/config_class/".concat(t,"/edit"),method:"get"})}function o(t){return Object(r["a"])({url:"setting/config_class/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function i(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 d(t){return Object(r["a"])({url:"/setting/config/".concat(t,"/edit"),method:"get"})}function f(t,e){return Object(r["a"])({url:"setting/config/set_status/".concat(t,"/").concat(e),method:"PUT"})}function l(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 b(t){return Object(r["a"])({url:"setting/group/".concat(t),method:"get"})}function g(t,e){return Object(r["a"])({url:e,method:"get",params:t})}function h(t,e){return Object(r["a"])({url:e,method:"get",params:t})}function p(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 j(t){return Object(r["a"])({url:t,method:"PUT"})}function v(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 T(){return Object(r["a"])({url:"system/backup",method:"GET"})}function w(t){return Object(r["a"])({url:"system/backup/read",method:"GET",params:t})}function E(t){return Object(r["a"])({url:"system/backup/backup",method:"put",data:t})}function k(t){return Object(r["a"])({url:"system/backup/optimize",method:"put",data:t})}function C(t){return Object(r["a"])({url:"system/backup/repair",method:"put",data:t})}function P(t){return Object(r["a"])({url:"system/backup/file_list",method:"GET"})}function S(t){return Object(r["a"])({url:"backup/download",method:"get",params:t})}function x(t){return Object(r["a"])({url:"system/backup/import",method:"POST",data:t})}function G(t){return Object(r["a"])({url:"system/file/opendir",method:"GET",params:t})}function V(t){return Object(r["a"])({url:"system/file/openfile?filepath=".concat(t),method:"GET"})}function U(t){return Object(r["a"])({url:"system/file/savefile",method:"post",data:t})}function M(t){return Object(r["a"])({url:"system/replace_site_url",method:"post",data:t})}function D(){return Object(r["a"])({url:"auth",method:"get"})}function R(t){return Object(r["a"])({url:"auth_apply",method:"post",data:t})}function H(){return Object(r["a"])({url:"setting/get_kf_adv",method:"get"})}function L(t){return Object(r["a"])({url:"setting/set_kf_adv",method:"post",data:t})}function F(){return Object(r["a"])({url:"setting/group_all",method:"get"})}function J(t){return Object(r["a"])({url:"system/version_list",method:"get",params:t})}function W(t){return Object(r["a"])({url:"system/version_crate/".concat(t),method:"get"})}function $(t){return Object(r["a"])({url:"setting/group_data/save_all",method:"POST",data:t})}function z(t){return Object(r["a"])({url:"diy/open_adv/add",method:"POST",data:t})}function B(){return Object(r["a"])({url:"diy/open_adv/info",method:"get"})}function I(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 A(){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})}function N(t){return Object(r["a"])({url:"setting/get_agreement/".concat(t),method:"get"})}function Q(t,e){return Object(r["a"])({url:"setting/save_agreement",method:"post",data:t})}},d9f0: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",{staticClass:"agreemant"},[n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[n("div",{staticClass:"new_card_pd"},[n("Tabs",{on:{"on-click":t.changeTab},model:{value:t.currentTab,callback:function(e){t.currentTab=e},expression:"currentTab"}},t._l(t.headerList,(function(t,e){return n("TabPane",{key:e,attrs:{label:t.label,name:t.value.toString()}})})),1)],1)]),n("Row",{staticClass:"mb10 content"},[n("Col",{attrs:{span:"16"}},[n("WangEditor",{staticStyle:{width:"100%"},attrs:{content:t.formValidate.content},on:{editorContent:t.getEditorContent}})],1),n("Col",{staticStyle:{width:"33%"},attrs:{span:"6"}},[n("div",{staticClass:"ifam"},[n("div",{staticClass:"content",domProps:{innerHTML:t._s(t.content)}})])])],1),n("Card",{staticClass:"fixed-card",style:{left:t.menuCollapse?t.isMobile?"0":"80px":"200px"},attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"acea-row row-center"},[n("Button",{staticClass:"bnt",attrs:{type:"primary",loading:t.loadingExist},on:{click:t.save}},[t._v("保存")])],1)])],1)},u=[],a=(n("8e6e"),n("ac6a"),n("456d"),n("96cf"),n("3b8d")),c=n("bd86"),o=n("2f62"),i=n("a069"),s=n("8593");function d(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 f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){Object(c["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l={components:{WangEditor:i["a"]},data:function(){return{loadingExist:!1,currentTab:"1",headerList:[{label:"付费会员协议",value:"1"},{label:"代理商协议",value:"2"},{label:"隐私协议",value:"3"},{label:"用户协议",value:"4"},{label:"注销协议",value:"5"},{label:"积分协议",value:"6"}],ueConfig:{autoHeightEnabled:!1,initialFrameHeight:500,initialFrameWidth:"100%",UEDITOR_HOME_URL:"/admin/UEditor/",serverUrl:""},id:0,formValidate:{content:""},content:"",spinShow:!1}},computed:f({},Object(o["e"])("admin/layout",["isMobile","menuCollapse"])),created:function(){this.changeTab(this.currentTab)},methods:{save:function(){var t=this;console.log(this.content),this.formValidate.content=this.content,Object(s["P"])(this.formValidate).then(function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$Message.success(n.msg);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))},getEditorContent:function(t){this.content=t},changeTab:function(t){var e=this;this.formValidate.content=" ",Object(s["t"])(t).then((function(t){e.formValidate.id=t.data.id||0,e.formValidate.type=t.data.type,e.formValidate.title=t.data.title,e.formValidate.content=t.data.content,e.content=t.data.content}))}}},m=l,b=(n("4f88"),n("2877")),g=Object(b["a"])(m,r,u,!1,null,"6419a52d",null);e["default"]=g.exports}}]);