mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-13 11:52:51 +00:00
1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f14fb45c"],{"3b2b":function(t,e,n){var r=n("7726"),a=n("5dbc"),i=n("86cc").f,o=n("9093").f,c=n("aae3"),u=n("0bfb"),s=r.RegExp,l=s,d=s.prototype,f=/a/g,m=/a/g,g=new s(f)!==f;if(n("9e1e")&&(!g||n("79e5")((function(){return m[n("2b4c")("match")]=!1,s(f)!=f||s(m)==m||"/a/i"!=s(f,"i")})))){s=function(t,e){var n=this instanceof s,r=c(t),i=void 0===e;return!n&&r&&t.constructor===s&&i?t:a(g?new l(r&&!i?t.source:t,e):l((r=t instanceof s)?t.source:t,r&&i?u.call(t):e),n?this:d,s)};for(var p=function(t){t in s||i(s,t,{configurable:!0,get:function(){return l[t]},set:function(e){l[t]=e}})},h=o(l),b=0;h.length>b;)p(h[b++]);d.constructor=s,s.prototype=d,n("2aba")(r,"RegExp",s)}n("7a56")("RegExp")},"61f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return d}));n("8e6e"),n("ac6a"),n("456d");var r=n("bd86");n("6b54"),n("3b2b"),n("a481");function a(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 i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){Object(r["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var r in n)if(new RegExp("(".concat(r,")")).test(e)){var a=n[r]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?a:c(a))}return e}function c(t){return("00"+t).substr(t.length)}var u={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};var s=function(t,e){t.message=function(t){return e.replace("%s",t||"")}};function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i({required:!0,message:t,type:"string"},e)}function d(t){return f.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}s(l,"请输入%s"),s(d,"%s格式不正确");var f=Object.keys(u).reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="range"===e?{min:t[0],max:t[1]}:Object(r["a"])({},e,t);return i(i({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},o),a)},s(t[e],u[e]),t}),{})},8593:function(t,e,n){"use strict";n.d(e,"j",(function(){return a})),n.d(e,"h",(function(){return i})),n.d(e,"i",(function(){return o})),n.d(e,"P",(function(){return c})),n.d(e,"n",(function(){return u})),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 g})),n.d(e,"A",(function(){return p})),n.d(e,"x",(function(){return h})),n.d(e,"y",(function(){return b})),n.d(e,"z",(function(){return O})),n.d(e,"B",(function(){return y})),n.d(e,"M",(function(){return v})),n.d(e,"Q",(function(){return j})),n.d(e,"o",(function(){return _})),n.d(e,"d",(function(){return x})),n.d(e,"f",(function(){return w})),n.d(e,"c",(function(){return k})),n.d(e,"e",(function(){return P})),n.d(e,"g",(function(){return V})),n.d(e,"r",(function(){return C})),n.d(e,"p",(function(){return E})),n.d(e,"q",(function(){return S})),n.d(e,"G",(function(){return T})),n.d(e,"H",(function(){return D})),n.d(e,"L",(function(){return L})),n.d(e,"K",(function(){return R})),n.d(e,"a",(function(){return $})),n.d(e,"b",(function(){return M})),n.d(e,"t",(function(){return I})),n.d(e,"O",(function(){return G})),n.d(e,"w",(function(){return F})),n.d(e,"S",(function(){return W})),n.d(e,"R",(function(){return z})),n.d(e,"E",(function(){return A})),n.d(e,"F",(function(){return J})),n.d(e,"u",(function(){return U})),n.d(e,"I",(function(){return q})),n.d(e,"J",(function(){return B})),n.d(e,"s",(function(){return H})),n.d(e,"N",(function(){return Q}));var r=n("6b6c");function a(t){return Object(r["a"])({url:"setting/config_class",method:"get",params:t})}function i(t){return Object(r["a"])({url:"setting/config_class/create",method:"get"})}function o(t){return Object(r["a"])({url:"setting/config_class/".concat(t,"/edit"),method:"get"})}function c(t){return Object(r["a"])({url:"setting/config_class/set_status/".concat(t.id,"/").concat(t.status),method:"PUT"})}function u(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 g(t){return Object(r["a"])({url:"setting/group/".concat(t),method:"get"})}function p(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 b(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 y(t){return Object(r["a"])({url:t,method:"PUT"})}function v(t){return Object(r["a"])({url:"system/log/search_admin",method:"GET"})}function j(t){return Object(r["a"])({url:"system/log",method:"GET",params:t})}function _(){return Object(r["a"])({url:"system/file",method:"GET"})}function x(){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 k(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 V(t){return Object(r["a"])({url:"system/backup/repair",method:"put",data:t})}function C(t){return Object(r["a"])({url:"system/backup/file_list",method:"GET"})}function E(t){return Object(r["a"])({url:"backup/download",method:"get",params:t})}function S(t){return Object(r["a"])({url:"system/backup/import",method:"POST",data:t})}function T(t){return Object(r["a"])({url:"system/file/opendir",method:"GET",params:t})}function D(t){return Object(r["a"])({url:"system/file/openfile?filepath=".concat(t),method:"GET"})}function L(t){return Object(r["a"])({url:"system/file/savefile",method:"post",data:t})}function R(t){return Object(r["a"])({url:"system/replace_site_url",method:"post",data:t})}function $(){return Object(r["a"])({url:"auth",method:"get"})}function M(t){return Object(r["a"])({url:"auth_apply",method:"post",data:t})}function I(){return Object(r["a"])({url:"setting/get_kf_adv",method:"get"})}function G(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 W(t){return Object(r["a"])({url:"system/version_list",method:"get",params:t})}function z(t){return Object(r["a"])({url:"system/version_crate/".concat(t),method:"get"})}function A(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 q(t){return Object(r["a"])({url:"setting/config/get_system/".concat(t),method:"get"})}function B(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 Q(t){return Object(r["a"])({url:"setting/set_user_agreement",method:"post",data:t})}},fc59: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("div",{staticClass:"table_box"},[n("Form",{ref:"formValidate",staticClass:"tabform",attrs:{"label-width":t.labelWidth,"label-position":t.labelPosition},nativeOn:{submit:function(t){t.preventDefault()}}},[n("Row",{attrs:{gutter:24,type:"flex",justify:"end"}},[n("Col",{staticClass:"ivu-text-left",attrs:{span:"24"}},[n("FormItem",{attrs:{label:t.fromList.title+":"}},[n("RadioGroup",{staticClass:"mr15",attrs:{type:"button"},on:{"on-change":function(e){return t.selectChange(t.formValidate.data)}},model:{value:t.formValidate.data,callback:function(e){t.$set(t.formValidate,"data",e)},expression:"formValidate.data"}},t._l(t.fromList.fromTxt,(function(e,r){return n("Radio",{key:r,attrs:{label:e.val}},[t._v("\n "+t._s(e.text)+"\n ")])})),1),n("DatePicker",{staticStyle:{width:"200px"},attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-end",placeholder:"请选择时间"},on:{"on-change":t.onchangeTime}})],1)],1),n("Col",{staticClass:"ivu-text-left",attrs:{span:"24"}},[n("Col",{staticClass:"sex_box",attrs:{xl:5,lg:12,md:12,sm:24,xs:24}},[n("FormItem",{attrs:{label:"名称:"}},[n("Select",{staticStyle:{width:"90%"},attrs:{clearable:""},on:{"on-change":t.userSearchs},model:{value:t.formValidate.admin_id,callback:function(e){t.$set(t.formValidate,"admin_id",e)},expression:"formValidate.admin_id"}},t._l(t.dataList,(function(e,r){return n("Option",{key:r,attrs:{value:e.id}},[t._v(t._s(e.real_name))])})),1)],1)],1),n("Col",{staticClass:"subscribe_box",attrs:{xl:5,lg:12,md:12,sm:24,xs:24}},[n("FormItem",{attrs:{label:"链接:"}},[n("Input",{staticStyle:{width:"90%"},attrs:{placeholder:"请输入链接",clearable:""},model:{value:t.formValidate.path,callback:function(e){t.$set(t.formValidate,"path",e)},expression:"formValidate.path"}})],1)],1),n("Col",{staticClass:"subscribe_box",attrs:{xl:5,lg:12,md:12,sm:24,xs:24}},[n("FormItem",{attrs:{label:"IP:"}},[n("Input",{staticStyle:{width:"90%"},attrs:{placeholder:"请输入IP",clearable:""},model:{value:t.formValidate.ip,callback:function(e){t.$set(t.formValidate,"ip",e)},expression:"formValidate.ip"}})],1)],1),n("Col",{staticClass:"btn_box",attrs:{xl:3,lg:12,md:3,sm:24,xs:24}},[n("Button",{staticClass:"userSearch",attrs:{type:"primary",icon:"ios-search",label:"default"},on:{click:t.userSearchs}},[t._v("搜索")])],1)],1)],1)],1)],1),n("Table",{ref:"selection",attrs:{columns:t.columns4,data:t.tabList,loading:t.loading,"no-data-text":"暂无数据","highlight-row":"","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"nickname",fn:function(e){var r=e.row;return[n("span",[t._v(t._s(r.admin_id+" / "+r.admin_name))])]}},{key:"add_time",fn:function(e){var r=e.row;e.index;return[n("span",[t._v(" "+t._s(t._f("formatDate")(r.add_time)))])]}}])}),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)],1)},a=[],i=(n("8e6e"),n("ac6a"),n("456d"),n("96cf"),n("3b8d")),o=n("bd86"),c=n("2f62"),u=n("8593"),s=n("61f7");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:"systemLog",filters:{formatDate:function(t){if(0!==t){var e=new Date(1e3*t);return Object(s["a"])(e,"yyyy-MM-dd hh:mm")}}},data:function(){return{fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},timeVal:[],formValidate:{limit:20,page:1,pages:"",data:"",path:"",ip:"",admin_id:""},loading:!1,tabList:[],total:0,columns4:[{title:"ID",key:"id",width:80},{title:"ID/名称",slot:"nickname",minWidth:100},{title:"链接",key:"path",minWidth:300},{title:"操作ip",key:"ip",minWidth:150},{title:"类型",key:"type",minWidth:100},{title:"操作时间",slot:"add_time",minWidth:150}],dataList:[]}},computed:d(d({},Object(c["e"])("media",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:75},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getSearchAdmin(),this.getList()},methods:{onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal.join("-"),this.formValidate.page=1,this.getList()},selectChange:function(t){this.formValidate.data=t,this.timeVal=[],this.formValidate.page=1,this.getList()},getSearchAdmin:function(){var t=this;Object(u["M"])().then(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.dataList=n.data.info;case 1: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;this.loading=!0,Object(u["Q"])(this.formValidate).then(function(){var e=Object(i["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.tabList=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()}}},m=f,g=n("2877"),p=Object(g["a"])(m,r,a,!1,null,"6e2a0d2a",null);e["default"]=p.exports}}]); |