修复时间显示格式
This commit is contained in:
parent
b59ac66be8
commit
cb64ceb81b
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -1,4 +1,4 @@
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0" name="viewport"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/favicon.ico"><title>X-PHP</title><script>document.write("<script src='config.js'><\/script>");</script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/echarts.49558cc4.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/elicons.4bccae06.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.af2834df.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.4b614e00.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.34563575.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.debec177.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but X-PHP doesn't work properly without JavaScript enabled.</strong></noscript><div id="app" class="aminui"><div class="app-loading"><div class="app-loading__logo"></div><div class="app-loading__loader"></div></div></div></body><div id="versionCheck" class="versionCheck"><h2>当前浏览器内核版本过低</h2><p>当前版本:<span id="versionCheck-type">--</span> <span id="versionCheck-version">--</span></p><p>最低版本要求:Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p><p>请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。</p></div><style>.app-loading {
|
||||
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible"/><meta content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0" name="viewport"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/favicon.ico"><title>X-PHP</title><script>document.write("<script src='config.js'><\/script>");</script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/echarts.49558cc4.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/elicons.4bccae06.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.af2834df.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.62cc22b5.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.34563575.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.e110d068.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but X-PHP doesn't work properly without JavaScript enabled.</strong></noscript><div id="app" class="aminui"><div class="app-loading"><div class="app-loading__logo"></div><div class="app-loading__loader"></div></div></div></body><div id="versionCheck" class="versionCheck"><h2>当前浏览器内核版本过低</h2><p>当前版本:<span id="versionCheck-type">--</span> <span id="versionCheck-version">--</span></p><p>最低版本要求:Chrome 71+、Firefox 65+、Safari 12+、Edge 97+。</p><p>请升级浏览器版本,或更换现代浏览器,如果你使用的是双核浏览器,请切换到极速/高速模式。</p></div><style>.app-loading {
|
||||
position: absolute;
|
||||
top:0px;
|
||||
left:0px;
|
||||
|
4
dist/report.html
vendored
4
dist/report.html
vendored
File diff suppressed because one or more lines are too long
1
dist/static/css/app.debec177.css
vendored
1
dist/static/css/app.debec177.css
vendored
File diff suppressed because one or more lines are too long
1
dist/static/css/app.e110d068.css
vendored
Normal file
1
dist/static/css/app.e110d068.css
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[251],{251:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var r=a(6808),l=a(9511);const n={class:"left-panel"},i={class:"right-panel"},s={class:"right-panel-search"};function c(e,t,a,c,o,u){const h=(0,r.up)("el-date-picker"),p=(0,r.up)("el-input"),d=(0,r.up)("el-button"),m=(0,r.up)("el-header"),g=(0,r.up)("el-table-column"),f=(0,r.up)("xTable"),w=(0,r.up)("el-main"),b=(0,r.up)("el-container");return(0,r.wg)(),(0,r.j4)(b,{class:"container"},{default:(0,r.w5)((()=>[(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r._)("div",n,[(0,r.Wm)(h,{modelValue:o.date,"onUpdate:modelValue":t[0]||(t[0]=e=>o.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),(0,r._)("div",i,[(0,r._)("div",s,[(0,r.Wm)(p,{modelValue:o.search.keyword,"onUpdate:modelValue":t[1]||(t[1]=e=>o.search.keyword=e),placeholder:"输入关键词",clearable:""},null,8,["modelValue"]),(0,r.Wm)(d,{type:"primary",icon:"el-icon-search",onClick:u.upsearch},null,8,["onClick"])])])])),_:1}),(0,r.Wm)(w,{class:"nopadding"},{default:(0,r.w5)((()=>[(0,r.Wm)(f,{ref:"table",api:o.api,params:o.search,tableColumn:o.tableColumn,stripe:"",highlightCurrentRow:"",onRowClick:u.rowClick},{default:(0,r.w5)((()=>[(0,r.Wm)(g,{type:"index",width:"60",align:"center"},{default:(0,r.w5)((e=>[(0,r._)("span",null,(0,l.zw)(e.$index+(o.currentPage-1)*o.limit+1),1)])),_:1})])),_:1},8,["api","params","tableColumn","onRowClick"])])),_:1})])),_:1})}var o=a(6351),u=a(1843),h={name:"log",components:{columnItem:o.Z,xMenuItem:u.Z},data(){return{infoDrawer:!1,chartoption:{},typeList:[],date:[],data:[],search:{},api:"",current:"",config:{},tableColumn:{},column:"default",currentPage:1,limit:20}},mounted(){this.getType()},watch:{current(){this.search.type=this.current,this.getCurrent()}},methods:{sideClick(e){this.info=e,this.search.type=e.value,this.current=e.value,this.column=e.column||"column"},changeURLArg(e,t,a){var r=t+"=([^&]*)";if(""===a)return e=e.replace(new RegExp("&?"+r,"gi"),""),e=e.replace(new RegExp("\\??"+r+"&?","gi"),"?"),e;var l=t+"="+a;if(e.match(r)){var n="("+t+"=)([^&]*)";return n=e.replace(new RegExp(n,"gi"),l),n}return e.match("[?]")?e+"&"+l:e+"?"+l},nodeClick(e){if(e.disabled)return!1;this.current=e.label,this.column=e.column||"column"},getType(){this.$http.get("log/admin/types",{type:this.$route.query.type},{cacheparameters:!0}).then((e=>{if(200==e.code){Object.assign(this.$data,e.data);for(const e in this.search)Object.prototype.hasOwnProperty.call(this.$route.query,e)&&(this.search[e]=this.$route.query[e])}}))},getCurrent(){this.tableColumn=this.config[this.column]||this.config.default,this.api||(this.api="log/admin/lists"),this.$refs.table.reload(this.search);let e=window.location.href;for(const[t,a]of Object.entries(this.search))e=this.changeURLArg(e,t,a);history.replaceState(Object.assign({},window.history.state,{url:e}),"null",e)},upsearch(){this.getCurrent()},rowClick(e){this.infoDrawer=!0,this.$nextTick((()=>{this.$refs.info.setData(e)}))}}},p=a(8700);const d=(0,p.Z)(h,[["render",c],["__scopeId","data-v-eba8b6d4"]]);var m=d}}]);
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[251],{251:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var r=a(6808),l=a(9511);const n={class:"left-panel"},i={class:"right-panel"},s={class:"right-panel-search"};function c(e,t,a,c,o,u){const h=(0,r.up)("el-date-picker"),p=(0,r.up)("el-input"),d=(0,r.up)("el-button"),m=(0,r.up)("el-header"),g=(0,r.up)("el-table-column"),f=(0,r.up)("xTable"),w=(0,r.up)("el-main"),b=(0,r.up)("el-container");return(0,r.wg)(),(0,r.j4)(b,{class:"container"},{default:(0,r.w5)((()=>[(0,r.Wm)(m,null,{default:(0,r.w5)((()=>[(0,r._)("div",n,[(0,r.Wm)(h,{modelValue:o.date,"onUpdate:modelValue":t[0]||(t[0]=e=>o.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),(0,r._)("div",i,[(0,r._)("div",s,[(0,r.Wm)(p,{modelValue:o.search.keyword,"onUpdate:modelValue":t[1]||(t[1]=e=>o.search.keyword=e),placeholder:"输入关键词",clearable:""},null,8,["modelValue"]),(0,r.Wm)(d,{type:"primary",icon:"el-icon-search",onClick:u.upsearch},null,8,["onClick"])])])])),_:1}),(0,r.Wm)(w,{class:"nopadding"},{default:(0,r.w5)((()=>[(0,r.Wm)(f,{ref:"table",api:o.api,params:o.search,tableColumn:o.tableColumn,stripe:"",highlightCurrentRow:"",onRowClick:u.rowClick},{default:(0,r.w5)((()=>[(0,r.Wm)(g,{type:"index",width:"60",align:"center"},{default:(0,r.w5)((e=>[(0,r._)("span",null,(0,l.zw)(e.$index+(o.currentPage-1)*o.limit+1),1)])),_:1})])),_:1},8,["api","params","tableColumn","onRowClick"])])),_:1})])),_:1})}var o=a(9379),u=a(1843),h={name:"log",components:{columnItem:o.Z,xMenuItem:u.Z},data(){return{infoDrawer:!1,chartoption:{},typeList:[],date:[],data:[],search:{},api:"",current:"",config:{},tableColumn:{},column:"default",currentPage:1,limit:20}},mounted(){this.getType()},watch:{current(){this.search.type=this.current,this.getCurrent()}},methods:{sideClick(e){this.info=e,this.search.type=e.value,this.current=e.value,this.column=e.column||"column"},changeURLArg(e,t,a){var r=t+"=([^&]*)";if(""===a)return e=e.replace(new RegExp("&?"+r,"gi"),""),e=e.replace(new RegExp("\\??"+r+"&?","gi"),"?"),e;var l=t+"="+a;if(e.match(r)){var n="("+t+"=)([^&]*)";return n=e.replace(new RegExp(n,"gi"),l),n}return e.match("[?]")?e+"&"+l:e+"?"+l},nodeClick(e){if(e.disabled)return!1;this.current=e.label,this.column=e.column||"column"},getType(){this.$http.get("log/admin/types",{type:this.$route.query.type},{cacheparameters:!0}).then((e=>{if(200==e.code){Object.assign(this.$data,e.data);for(const e in this.search)Object.prototype.hasOwnProperty.call(this.$route.query,e)&&(this.search[e]=this.$route.query[e])}}))},getCurrent(){this.tableColumn=this.config[this.column]||this.config.default,this.api||(this.api="log/admin/lists"),this.$refs.table.reload(this.search);let e=window.location.href;for(const[t,a]of Object.entries(this.search))e=this.changeURLArg(e,t,a);history.replaceState(Object.assign({},window.history.state,{url:e}),"null",e)},upsearch(){this.getCurrent()},rowClick(e){this.infoDrawer=!0,this.$nextTick((()=>{this.$refs.info.setData(e)}))}}},p=a(8700);const d=(0,p.Z)(h,[["render",c],["__scopeId","data-v-eba8b6d4"]]);var m=d}}]);
|
@ -1 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[537],{1537:function(e,t,l){l.r(t),l.d(t,{default:function(){return g}});var a=l(6808),n=l(9511);const i={class:"left-panel"},r={class:"right-panel"},o={class:"right-panel-search"};function c(e,t,l,c,u,s){const p=(0,a.up)("x-page-header"),h=(0,a.up)("el-header"),d=(0,a.up)("x-menu-item"),m=(0,a.up)("el-main"),f=(0,a.up)("el-container"),g=(0,a.up)("el-aside"),w=(0,a.up)("el-date-picker"),y=(0,a.up)("el-input"),b=(0,a.up)("el-button"),_=(0,a.up)("xEcharts"),k=(0,a.up)("el-table-column"),C=(0,a.up)("xTable"),x=(0,a.up)("info"),W=(0,a.up)("el-drawer");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a.Wm)(f,null,{default:(0,a.w5)((()=>[(0,a.Wm)(g,{width:"210px"},{default:(0,a.w5)((()=>[(0,a.Wm)(f,null,{default:(0,a.w5)((()=>[(0,a.Wm)(h,null,{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"日志",icon:"el-icon-Calendar"})])),_:1}),(0,a.Wm)(m,{style:{padding:"0"}},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(u.typeList,((e,t)=>((0,a.wg)(),(0,a.j4)(d,{key:t,label:e.label,num:e.num,icon:e.icon,"icon-color":e.color,select:u.search.type==e.value,onClick:t=>s.sideClick(e)},null,8,["label","num","icon","icon-color","select","onClick"])))),128))])),_:1})])),_:1})])),_:1}),(0,a.Wm)(f,{style:{padding:"10px 10px 6px 10px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{class:"nopadding"},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{class:"container"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,null,{default:(0,a.w5)((()=>[(0,a._)("div",i,[(0,a.Wm)(w,{modelValue:u.date,"onUpdate:modelValue":t[0]||(t[0]=e=>u.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),(0,a._)("div",r,[(0,a._)("div",o,[(0,a.Wm)(y,{modelValue:u.search.keyword,"onUpdate:modelValue":t[1]||(t[1]=e=>u.search.keyword=e),placeholder:"输入关键词",clearable:""},null,8,["modelValue"]),(0,a.Wm)(b,{type:"primary",icon:"el-icon-search",onClick:s.upsearch},null,8,["onClick"])])])])),_:1}),"object"===typeof u.chartoption&&Object.keys(u.chartoption).length>0?((0,a.wg)(),(0,a.j4)(h,{key:0,style:{height:"120px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(_,{height:"100%",option:u.chartoption},null,8,["option"])])),_:1})):(0,a.kq)("",!0),(0,a.Wm)(m,{class:"nopadding"},{default:(0,a.w5)((()=>[(0,a.Wm)(C,{ref:"table",api:u.api,params:u.search,tableColumn:u.tableColumn,stripe:"",highlightCurrentRow:"",onRowClick:s.rowClick},{default:(0,a.w5)((()=>[(0,a.Wm)(k,{type:"index",width:"60",align:"center"},{default:(0,a.w5)((e=>[(0,a._)("span",null,(0,n.zw)(e.$index+(u.currentPage-1)*u.limit+1),1)])),_:1})])),_:1},8,["api","params","tableColumn","onRowClick"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.Wm)(W,{modelValue:u.infoDrawer,"onUpdate:modelValue":t[2]||(t[2]=e=>u.infoDrawer=e),title:"日志详情",size:700,"destroy-on-close":""},{default:(0,a.w5)((()=>[(0,a.Wm)(x,{ref:"info"},null,512)])),_:1},8,["modelValue"])],64)}var u=l(328),s=l(7844),p=l(6351),h=l(1843),d={name:"log",components:{info:u["default"],columnItem:p.Z,xMenuItem:h.Z,xEcharts:s.Z},data(){return{infoDrawer:!1,chartoption:{},typeList:[],date:[],data:[],search:{},api:"",current:"",config:{},tableColumn:{},column:"default",currentPage:1,limit:20}},mounted(){this.getType()},watch:{current(){this.search.type=this.current,this.getCurrent()}},methods:{sideClick(e){this.info=e,this.search.type=e.value,this.current=e.value,this.column=e.column||"column"},changeURLArg(e,t,l){var a=t+"=([^&]*)";if(""===l)return e=e.replace(new RegExp("&?"+a,"gi"),""),e=e.replace(new RegExp("\\??"+a+"&?","gi"),"?"),e;var n=t+"="+l;if(e.match(a)){var i="("+t+"=)([^&]*)";return i=e.replace(new RegExp(i,"gi"),n),i}return e.match("[?]")?e+"&"+n:e+"?"+n},nodeClick(e){if(e.disabled)return!1;this.current=e.label,this.column=e.column||"column"},getType(){this.$http.get("log/admin/types",{type:this.$route.query.type},{cacheparameters:!0}).then((e=>{if(200==e.code){Object.assign(this.$data,e.data);for(const e in this.search)Object.prototype.hasOwnProperty.call(this.$route.query,e)&&(this.search[e]=this.$route.query[e])}}))},getCurrent(){this.tableColumn=this.config[this.column]||this.config.default,this.api||(this.api="log/admin/lists"),this.$refs.table.reload(this.search);let e=window.location.href;for(const[t,l]of Object.entries(this.search))e=this.changeURLArg(e,t,l);history.replaceState(Object.assign({},window.history.state,{url:e}),"null",e)},upsearch(){this.getCurrent()},rowClick(e){this.infoDrawer=!0,this.$nextTick((()=>{this.$refs.info.setData(e)}))}}},m=l(8700);const f=(0,m.Z)(d,[["render",c],["__scopeId","data-v-79c6f9d2"]]);var g=f}}]);
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[537],{1537:function(e,t,l){l.r(t),l.d(t,{default:function(){return g}});var a=l(6808),n=l(9511);const i={class:"left-panel"},r={class:"right-panel"},o={class:"right-panel-search"};function c(e,t,l,c,u,s){const p=(0,a.up)("x-page-header"),h=(0,a.up)("el-header"),d=(0,a.up)("x-menu-item"),m=(0,a.up)("el-main"),f=(0,a.up)("el-container"),g=(0,a.up)("el-aside"),w=(0,a.up)("el-date-picker"),y=(0,a.up)("el-input"),b=(0,a.up)("el-button"),_=(0,a.up)("xEcharts"),k=(0,a.up)("el-table-column"),C=(0,a.up)("xTable"),x=(0,a.up)("info"),W=(0,a.up)("el-drawer");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a.Wm)(f,null,{default:(0,a.w5)((()=>[(0,a.Wm)(g,{width:"210px"},{default:(0,a.w5)((()=>[(0,a.Wm)(f,null,{default:(0,a.w5)((()=>[(0,a.Wm)(h,null,{default:(0,a.w5)((()=>[(0,a.Wm)(p,{title:"日志",icon:"el-icon-Calendar"})])),_:1}),(0,a.Wm)(m,{style:{padding:"0"}},{default:(0,a.w5)((()=>[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(u.typeList,((e,t)=>((0,a.wg)(),(0,a.j4)(d,{key:t,label:e.label,num:e.num,icon:e.icon,"icon-color":e.color,select:u.search.type==e.value,onClick:t=>s.sideClick(e)},null,8,["label","num","icon","icon-color","select","onClick"])))),128))])),_:1})])),_:1})])),_:1}),(0,a.Wm)(f,{style:{padding:"10px 10px 6px 10px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(m,{class:"nopadding"},{default:(0,a.w5)((()=>[(0,a.Wm)(f,{class:"container"},{default:(0,a.w5)((()=>[(0,a.Wm)(h,null,{default:(0,a.w5)((()=>[(0,a._)("div",i,[(0,a.Wm)(w,{modelValue:u.date,"onUpdate:modelValue":t[0]||(t[0]=e=>u.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),(0,a._)("div",r,[(0,a._)("div",o,[(0,a.Wm)(y,{modelValue:u.search.keyword,"onUpdate:modelValue":t[1]||(t[1]=e=>u.search.keyword=e),placeholder:"输入关键词",clearable:""},null,8,["modelValue"]),(0,a.Wm)(b,{type:"primary",icon:"el-icon-search",onClick:s.upsearch},null,8,["onClick"])])])])),_:1}),"object"===typeof u.chartoption&&Object.keys(u.chartoption).length>0?((0,a.wg)(),(0,a.j4)(h,{key:0,style:{height:"120px"}},{default:(0,a.w5)((()=>[(0,a.Wm)(_,{height:"100%",option:u.chartoption},null,8,["option"])])),_:1})):(0,a.kq)("",!0),(0,a.Wm)(m,{class:"nopadding"},{default:(0,a.w5)((()=>[(0,a.Wm)(C,{ref:"table",api:u.api,params:u.search,tableColumn:u.tableColumn,stripe:"",highlightCurrentRow:"",onRowClick:s.rowClick},{default:(0,a.w5)((()=>[(0,a.Wm)(k,{type:"index",width:"60",align:"center"},{default:(0,a.w5)((e=>[(0,a._)("span",null,(0,n.zw)(e.$index+(u.currentPage-1)*u.limit+1),1)])),_:1})])),_:1},8,["api","params","tableColumn","onRowClick"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),(0,a.Wm)(W,{modelValue:u.infoDrawer,"onUpdate:modelValue":t[2]||(t[2]=e=>u.infoDrawer=e),title:"日志详情",size:700,"destroy-on-close":""},{default:(0,a.w5)((()=>[(0,a.Wm)(x,{ref:"info"},null,512)])),_:1},8,["modelValue"])],64)}var u=l(328),s=l(7844),p=l(9379),h=l(1843),d={name:"log",components:{info:u["default"],columnItem:p.Z,xMenuItem:h.Z,xEcharts:s.Z},data(){return{infoDrawer:!1,chartoption:{},typeList:[],date:[],data:[],search:{},api:"",current:"",config:{},tableColumn:{},column:"default",currentPage:1,limit:20}},mounted(){this.getType()},watch:{current(){this.search.type=this.current,this.getCurrent()}},methods:{sideClick(e){this.info=e,this.search.type=e.value,this.current=e.value,this.column=e.column||"column"},changeURLArg(e,t,l){var a=t+"=([^&]*)";if(""===l)return e=e.replace(new RegExp("&?"+a,"gi"),""),e=e.replace(new RegExp("\\??"+a+"&?","gi"),"?"),e;var n=t+"="+l;if(e.match(a)){var i="("+t+"=)([^&]*)";return i=e.replace(new RegExp(i,"gi"),n),i}return e.match("[?]")?e+"&"+n:e+"?"+n},nodeClick(e){if(e.disabled)return!1;this.current=e.label,this.column=e.column||"column"},getType(){this.$http.get("log/admin/types",{type:this.$route.query.type},{cacheparameters:!0}).then((e=>{if(200==e.code){Object.assign(this.$data,e.data);for(const e in this.search)Object.prototype.hasOwnProperty.call(this.$route.query,e)&&(this.search[e]=this.$route.query[e])}}))},getCurrent(){this.tableColumn=this.config[this.column]||this.config.default,this.api||(this.api="log/admin/lists"),this.$refs.table.reload(this.search);let e=window.location.href;for(const[t,l]of Object.entries(this.search))e=this.changeURLArg(e,t,l);history.replaceState(Object.assign({},window.history.state,{url:e}),"null",e)},upsearch(){this.getCurrent()},rowClick(e){this.infoDrawer=!0,this.$nextTick((()=>{this.$refs.info.setData(e)}))}}},m=l(8700);const f=(0,m.Z)(d,[["render",c],["__scopeId","data-v-79c6f9d2"]]);var g=f}}]);
|
1
dist/static/js/app.4b614e00.js
vendored
1
dist/static/js/app.4b614e00.js
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/app.62cc22b5.js
vendored
Normal file
1
dist/static/js/app.62cc22b5.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -6,7 +6,7 @@
|
||||
<el-avatar v-if="copiedData.anonymous" title="匿名发布" size="small">匿</el-avatar>
|
||||
<el-avatar v-else :src="copiedData[name]" size="small">空</el-avatar>
|
||||
<label v-if="options.subfield" class="input-mask">
|
||||
<input class="el-input__inner" type="text" readonly :value="copiedData[options.subfield]">
|
||||
<el-text style="cursor: pointer;display: inline;"> {{ copiedData[options.subfield] }} </el-text>
|
||||
</label>
|
||||
</div>
|
||||
<el-drawer :with-header="false" append-to-body="true" v-if="visible" v-model="visible" :size="options.size || 1000" :show-close="false" style="overflow: initial;" destroy-on-close @closed="visible=false;$emit('closed')">
|
||||
@ -82,8 +82,10 @@
|
||||
|
||||
.xavatar .input-mask {
|
||||
margin-left: 28px;
|
||||
z-indexz: 1;
|
||||
z-index: 1;
|
||||
position: absolute;
|
||||
width: calc( 100% - 32px);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.xavatar .input-mask::before {
|
||||
|
@ -126,6 +126,7 @@ export default {
|
||||
.xcard:deep(.el-card__body) {
|
||||
padding: 10px
|
||||
}
|
||||
|
||||
.number-data {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
@ -138,7 +139,7 @@ export default {
|
||||
padding: 0 20px;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.number-data .item:last-child {
|
||||
|
@ -31,7 +31,7 @@
|
||||
<el-link v-bind="item.options" @click="handleClick(row, item)"> {{ row[item.name] }} </el-link>
|
||||
</p>
|
||||
<p v-else-if="item.columntype == 'text'">
|
||||
<el-text v-bind="item.options" v-copy="row[item.name]"> {{ row[item.name] }} </el-text>
|
||||
<el-text v-bind="item.options" @click="handleClick(row, item)" style="cursor: pointer;display: inline;"> {{ row[item.name] }} </el-text>
|
||||
</p>
|
||||
<p v-else-if="item.columntype == 'tag' || item.columntype == 'time'" @click="handleClick(row, item)" v-time.tip="row[item.name]"></p>
|
||||
<slot v-else :name="item.name">
|
||||
|
@ -2,12 +2,12 @@ import tool from '@/utils/tool'
|
||||
|
||||
var Time = {
|
||||
//获取当前时间戳
|
||||
getUnix: function() {
|
||||
getUnix: function () {
|
||||
var date = new Date();
|
||||
return date.getTime();
|
||||
},
|
||||
//获取今天0点0分0秒的时间戳
|
||||
getTodayUnix: function() {
|
||||
getTodayUnix: function () {
|
||||
var date = new Date();
|
||||
date.setHours(0);
|
||||
date.setMinutes(0);
|
||||
@ -16,7 +16,7 @@ var Time = {
|
||||
return date.getTime();
|
||||
},
|
||||
//获取今年1月1日0点0秒的时间戳
|
||||
getYearUnix: function() {
|
||||
getYearUnix: function () {
|
||||
var date = new Date();
|
||||
date.setMonth(0);
|
||||
date.setDate(1);
|
||||
@ -27,44 +27,54 @@ var Time = {
|
||||
return date.getTime();
|
||||
},
|
||||
//获取标准年月日
|
||||
getLastDate: function(time) {
|
||||
getLastDate: function (time, hideY = false) {
|
||||
var date = new Date(time);
|
||||
var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1;
|
||||
var day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate();
|
||||
var Hour = date.getHours() < 10 ? '0' + date.getHours() : date.getHours();
|
||||
var Minute = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes();
|
||||
if (hideY) {
|
||||
return month + '-' + day + ' ' + Hour + ':' + Minute;
|
||||
}
|
||||
return date.getFullYear() + '-' + month + '-' + day;
|
||||
},
|
||||
//转换时间
|
||||
getFormateTime: function(timestamp) {
|
||||
timestamp = new Date(timestamp)
|
||||
var now = this.getUnix();
|
||||
var today = this.getTodayUnix();
|
||||
//var year = this.getYearUnix();
|
||||
var timer = (now - timestamp) / 1000;
|
||||
getFormateTime: function (timestamp) {
|
||||
var now = new Date();
|
||||
var todayStart = new Date(now.getFullYear(), now.getMonth(), now.getDate());
|
||||
var yesterdayStart = new Date(now.getFullYear(), now.getMonth(), now.getDate() - 1);
|
||||
var beforeYesterdayStart = new Date(now.getFullYear(), now.getMonth(), now.getDate() - 2);
|
||||
|
||||
timestamp = new Date(timestamp);
|
||||
var timer = (now - timestamp) / 1000; // 差值秒数
|
||||
var tip = '';
|
||||
|
||||
if (timer <= 0) {
|
||||
tip = '刚刚';
|
||||
} else if (Math.floor(timer / 60) <= 0) {
|
||||
} else if (timer < 60) {
|
||||
tip = '刚刚';
|
||||
} else if (timer < 3600) {
|
||||
tip = Math.floor(timer / 60) + '分钟前';
|
||||
} else if (timer >= 3600 && (timestamp - today >= 0)) {
|
||||
tip = Math.floor(timer / 3600) + '小时前';
|
||||
} else if (timer / 86400 <= 31) {
|
||||
tip = Math.ceil(timer / 86400) + '天前';
|
||||
} else if (timestamp >= todayStart) {
|
||||
tip = Math.floor(timer / 3600) + '小时' + Math.floor((timer % 3600) / 60) + '分前';
|
||||
} else if (timestamp >= yesterdayStart) {
|
||||
tip = '昨天' + timestamp.getHours() + '时' + timestamp.getMinutes() + '分';
|
||||
} else if (timestamp >= beforeYesterdayStart) {
|
||||
tip = '前天' + timestamp.getHours() + '时' + timestamp.getMinutes() + '分';
|
||||
} else {
|
||||
tip = this.getLastDate(timestamp);
|
||||
var currentYearStart = new Date(now.getFullYear(), 0, 1);
|
||||
return this.getLastDate(timestamp, timestamp >= currentYearStart ? true : false)
|
||||
}
|
||||
return tip;
|
||||
}
|
||||
}
|
||||
|
||||
export default (el, binding) => {
|
||||
let { value, modifiers} = binding
|
||||
if(!value){
|
||||
let { value, modifiers } = binding
|
||||
if (!value) {
|
||||
return false
|
||||
}
|
||||
if(value.toString().length == 10){
|
||||
if (value.toString().length == 10) {
|
||||
value = value * 1000
|
||||
}
|
||||
if (modifiers.tip) {
|
||||
|
2
src/x.js
2
src/x.js
@ -80,6 +80,7 @@ export default {
|
||||
app.component('xQrCode', xQrCode);
|
||||
app.component('xStatusIndicator', xStatusIndicator);
|
||||
app.component('xTrend', xTrend);
|
||||
app.component('ContentWrap', ContentWrap);
|
||||
//注册全局指令
|
||||
app.directive('auth', auth)
|
||||
app.directive('auths', auths)
|
||||
@ -96,7 +97,6 @@ export default {
|
||||
app.component(`xIcon${icon}`, xIcons[icon])
|
||||
}
|
||||
|
||||
app.component('ContentWrap', ContentWrap);
|
||||
//关闭async-validator全局控制台警告
|
||||
window.ASYNC_VALIDATOR_NO_WARNING = 1
|
||||
//全局代码错误捕捉
|
||||
|
Loading…
Reference in New Issue
Block a user