table_1 优化
This commit is contained in:
parent
e9ab2ba4cc
commit
25fb8fbc65
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/elicons.4bccae06.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.38cafffe.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.09556da4.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.70e682f6.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.bb01c8a0.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/elicons.4bccae06.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/modules.38cafffe.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/js/app.7b2644a9.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/modules.70e682f6.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/x-Admin/static/css/app.2b9688c7.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/280.b183b5f8.css
vendored
Normal file
1
dist/static/css/280.b183b5f8.css
vendored
Normal file
@ -0,0 +1 @@
|
||||
.container .el-header{padding:0 20px}.container .el-tabs__header{margin:0}@media (max-width:992px){.adminui-main>.el-container>.el-container>.el-header .right-panel[data-v-1e8cbbab]{display:block;margin-top:0}}.container[data-v-1e8cbbab]{border:1px solid var(--el-border-color-light);border-radius:4px;background-color:var(--el-fill-color-blank);overflow:hidden}
|
1
dist/static/css/30.ccc35c95.css
vendored
1
dist/static/css/30.ccc35c95.css
vendored
@ -1 +0,0 @@
|
||||
@media (max-width:992px){.adminui-main>.el-container>.el-container>.el-header .right-panel[data-v-4951dacc]{display:block;margin-top:0}}
|
1
dist/static/css/app.2b9688c7.css
vendored
Normal file
1
dist/static/css/app.2b9688c7.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/static/css/app.bb01c8a0.css
vendored
1
dist/static/css/app.bb01c8a0.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
dist/static/js/280.52e3e6a6.js
vendored
Normal file
1
dist/static/js/280.52e3e6a6.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/static/js/30.163a435d.js
vendored
1
dist/static/js/30.163a435d.js
vendored
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[370],{5370:function(e,t,a){a.r(t),a.d(t,{default:function(){return g}});var l=a(6808),n=a(9511);const r={class:"left-panel"},i={class:"right-panel"},o={class:"right-panel-search"};function u(e,t,a,u,c,s){const d=(0,l.up)("el-tree"),p=(0,l.up)("el-aside"),h=(0,l.up)("el-date-picker"),m=(0,l.up)("el-input"),g=(0,l.up)("el-button"),f=(0,l.up)("el-header"),w=(0,l.up)("xEcharts"),y=(0,l.up)("el-table-column"),k=(0,l.up)("xTable"),C=(0,l.up)("el-main"),b=(0,l.up)("el-container"),_=(0,l.up)("info"),W=(0,l.up)("el-drawer");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(b,null,{default:(0,l.w5)((()=>[(0,l.Wm)(p,{width:"210px"},{default:(0,l.w5)((()=>[(0,l.Wm)(d,{ref:"typeList",class:"menu","node-key":"label",data:c.typeList,"default-expand-all":!0,onNodeClick:s.nodeClick,"current-node-key":c.current,"highlight-current":!0,"expand-on-click-node":!1},null,8,["data","onNodeClick","current-node-key"])])),_:1}),(0,l.Wm)(b,null,{default:(0,l.w5)((()=>[(0,l.Wm)(C,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(b,null,{default:(0,l.w5)((()=>[(0,l.Wm)(f,null,{default:(0,l.w5)((()=>[(0,l._)("div",r,[(0,l.Wm)(h,{modelValue:c.date,"onUpdate:modelValue":t[0]||(t[0]=e=>c.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),(0,l._)("div",i,[(0,l._)("div",o,[(0,l.Wm)(m,{modelValue:c.search.keyword,"onUpdate:modelValue":t[1]||(t[1]=e=>c.search.keyword=e),placeholder:"输入关键词",clearable:""},null,8,["modelValue"]),(0,l.Wm)(g,{type:"primary",icon:"el-icon-search",onClick:s.upsearch},null,8,["onClick"])])])])),_:1}),"object"===typeof c.chartoption&&Object.keys(c.chartoption).length>0?((0,l.wg)(),(0,l.j4)(f,{key:0,style:{height:"120px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(w,{height:"100%",option:c.chartoption},null,8,["option"])])),_:1})):(0,l.kq)("",!0),(0,l.Wm)(C,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(k,{ref:"table",api:c.api,params:c.search,tableColumn:c.tableColumn,stripe:"",highlightCurrentRow:"",onRowClick:s.rowClick},{default:(0,l.w5)((()=>[(0,l.Wm)(y,{type:"index",width:"60",align:"center"},{default:(0,l.w5)((e=>[(0,l._)("span",null,(0,n.zw)(e.$index+(c.currentPage-1)*c.limit+1),1)])),_:1})])),_:1},8,["api","params","tableColumn","onRowClick"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),(0,l.Wm)(W,{modelValue:c.infoDrawer,"onUpdate:modelValue":t[2]||(t[2]=e=>c.infoDrawer=e),title:"日志详情",size:700,"destroy-on-close":""},{default:(0,l.w5)((()=>[(0,l.Wm)(_,{ref:"info"},null,512)])),_:1},8,["modelValue"])],64)}var c=a(3834),s=a(7844),d=a(2326),p={name:"log",components:{info:c["default"],columnItem:d.Z,xEcharts:s.Z},data(){return{infoDrawer:!1,chartoption:{},typeList:[],date:[],data:[],search:{keyword:this.$route.query.keyword||"",type:this.$route.query.type||""},api:"",current:"",config:{},tableColumn:{},column:"default",currentPage:1,limit:20}},mounted(){this.getType()},watch:{current(){this.search.type=this.current,this.getCurrent()}},methods:{changeURLArg(e,t,a){var l=t+"=([^&]*)";if(""===a)return e=e.replace(new RegExp("&?"+l,"gi"),""),e=e.replace(new RegExp("\\??"+l+"&?","gi"),"?"),e;var n=t+"="+a;if(e.match(l)){var r="("+t+"=)([^&]*)";return r=e.replace(new RegExp(r,"gi"),n),r}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.search.type},{cacheparameters:!0}).then((e=>{200==e.code&&Object.assign(this.$data,e.data)}))},getCurrent(){this.tableColumn=this.config[this.column]||this.config.default,this.api||(this.api="log/admin/lists"),this.$refs.table.reload(this.search);var e=this.changeURLArg(window.location.href,"type",this.current);e=this.changeURLArg(e,"keyword",this.search.keyword),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)}))}}},h=a(8700);const m=(0,h.Z)(p,[["render",u]]);var g=m}}]);
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[370],{5370:function(e,t,a){a.r(t),a.d(t,{default:function(){return g}});var l=a(6808),n=a(9511);const r={class:"left-panel"},i={class:"right-panel"},o={class:"right-panel-search"};function u(e,t,a,u,c,s){const d=(0,l.up)("el-tree"),p=(0,l.up)("el-aside"),h=(0,l.up)("el-date-picker"),m=(0,l.up)("el-input"),g=(0,l.up)("el-button"),f=(0,l.up)("el-header"),w=(0,l.up)("xEcharts"),y=(0,l.up)("el-table-column"),k=(0,l.up)("xTable"),C=(0,l.up)("el-main"),b=(0,l.up)("el-container"),_=(0,l.up)("info"),W=(0,l.up)("el-drawer");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(b,null,{default:(0,l.w5)((()=>[(0,l.Wm)(p,{width:"210px"},{default:(0,l.w5)((()=>[(0,l.Wm)(d,{ref:"typeList",class:"menu","node-key":"label",data:c.typeList,"default-expand-all":!0,onNodeClick:s.nodeClick,"current-node-key":c.current,"highlight-current":!0,"expand-on-click-node":!1},null,8,["data","onNodeClick","current-node-key"])])),_:1}),(0,l.Wm)(b,null,{default:(0,l.w5)((()=>[(0,l.Wm)(C,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(b,null,{default:(0,l.w5)((()=>[(0,l.Wm)(f,null,{default:(0,l.w5)((()=>[(0,l._)("div",r,[(0,l.Wm)(h,{modelValue:c.date,"onUpdate:modelValue":t[0]||(t[0]=e=>c.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),(0,l._)("div",i,[(0,l._)("div",o,[(0,l.Wm)(m,{modelValue:c.search.keyword,"onUpdate:modelValue":t[1]||(t[1]=e=>c.search.keyword=e),placeholder:"输入关键词",clearable:""},null,8,["modelValue"]),(0,l.Wm)(g,{type:"primary",icon:"el-icon-search",onClick:s.upsearch},null,8,["onClick"])])])])),_:1}),"object"===typeof c.chartoption&&Object.keys(c.chartoption).length>0?((0,l.wg)(),(0,l.j4)(f,{key:0,style:{height:"120px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(w,{height:"100%",option:c.chartoption},null,8,["option"])])),_:1})):(0,l.kq)("",!0),(0,l.Wm)(C,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(k,{ref:"table",api:c.api,params:c.search,tableColumn:c.tableColumn,stripe:"",highlightCurrentRow:"",onRowClick:s.rowClick},{default:(0,l.w5)((()=>[(0,l.Wm)(y,{type:"index",width:"60",align:"center"},{default:(0,l.w5)((e=>[(0,l._)("span",null,(0,n.zw)(e.$index+(c.currentPage-1)*c.limit+1),1)])),_:1})])),_:1},8,["api","params","tableColumn","onRowClick"])])),_:1})])),_:1})])),_:1})])),_:1})])),_:1}),(0,l.Wm)(W,{modelValue:c.infoDrawer,"onUpdate:modelValue":t[2]||(t[2]=e=>c.infoDrawer=e),title:"日志详情",size:700,"destroy-on-close":""},{default:(0,l.w5)((()=>[(0,l.Wm)(_,{ref:"info"},null,512)])),_:1},8,["modelValue"])],64)}var c=a(3834),s=a(7844),d=a(2669),p={name:"log",components:{info:c["default"],columnItem:d.Z,xEcharts:s.Z},data(){return{infoDrawer:!1,chartoption:{},typeList:[],date:[],data:[],search:{keyword:this.$route.query.keyword||"",type:this.$route.query.type||""},api:"",current:"",config:{},tableColumn:{},column:"default",currentPage:1,limit:20}},mounted(){this.getType()},watch:{current(){this.search.type=this.current,this.getCurrent()}},methods:{changeURLArg(e,t,a){var l=t+"=([^&]*)";if(""===a)return e=e.replace(new RegExp("&?"+l,"gi"),""),e=e.replace(new RegExp("\\??"+l+"&?","gi"),"?"),e;var n=t+"="+a;if(e.match(l)){var r="("+t+"=)([^&]*)";return r=e.replace(new RegExp(r,"gi"),n),r}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.search.type},{cacheparameters:!0}).then((e=>{200==e.code&&Object.assign(this.$data,e.data)}))},getCurrent(){this.tableColumn=this.config[this.column]||this.config.default,this.api||(this.api="log/admin/lists"),this.$refs.table.reload(this.search);var e=this.changeURLArg(window.location.href,"type",this.current);e=this.changeURLArg(e,"keyword",this.search.keyword),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)}))}}},h=a(8700);const m=(0,h.Z)(p,[["render",u]]);var g=m}}]);
|
@ -1 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[457],{9457:function(e,n,t){t.r(n),t.d(n,{default:function(){return o}});var u=t(6808);function a(e,n,t,a,r,c){const s=(0,u.up)("table2");return(0,u.wg)(),(0,u.j4)(s,{name:"user"})}var r=t(1910),c={name:"user",components:{table2:r["default"]},data(){return{}},computed:{},watch:{},mounted(){},methods:{}},s=t(8700);const d=(0,s.Z)(c,[["render",a]]);var o=d}}]);
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[457],{9457:function(e,n,t){t.r(n),t.d(n,{default:function(){return o}});var u=t(6808);function a(e,n,t,a,r,c){const s=(0,u.up)("table2");return(0,u.wg)(),(0,u.j4)(s,{name:"user"})}var r=t(944),c={name:"user",components:{table2:r["default"]},data(){return{}},computed:{},watch:{},mounted(){},methods:{}},s=t(8700);const d=(0,s.Z)(c,[["render",a]]);var o=d}}]);
|
@ -1 +1 @@
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[823],{2823:function(e,l,n){n.r(l),n.d(l,{default:function(){return C}});var t=n(6808);const a={class:"message-body"},s={class:"message-content"},o={class:"message-body-side"},i={class:"message-body-flexbox"},c={class:"message-body-item"},r={class:"message-body-content"};function d(e,l,n,d,u,m){const g=(0,t.up)("x-page-header"),b=(0,t.up)("x-menu-item"),h=(0,t.up)("table2"),p=(0,t.Q2)("loading");return(0,t.wg)(),(0,t.iD)("div",a,[(0,t.wy)(((0,t.wg)(),(0,t.iD)("div",s,[(0,t._)("div",o,[(0,t._)("div",i,[(0,t.Wm)(g,{title:u.title,icon:u.icon},null,8,["title","icon"])]),(0,t._)("div",c,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(u.items,((e,l)=>((0,t.wg)(),(0,t.j4)(b,{key:l,label:e.label,num:e.num,icon:e.icon,"icon-color":e.color,select:u.search[u.key]==e.value,onClick:l=>m.sideClick(e)},null,8,["label","num","icon","icon-color","select","onClick"])))),128))])]),(0,t._)("div",r,[(0,t.Wm)(h,{ref:"table",onChildLoaded:m.getChildData},null,8,["onChildLoaded"])])])),[[p,u.loading]])])}var u=n(9511);const m={class:"x-menu-item__label"};function g(e,l,n,a,s,o){const i=(0,t.up)("el-icon"),c=(0,t.up)("el-badge");return(0,t.wg)(),(0,t.iD)("div",{class:(0,u.C_)([{"is-select":n.select},"x-menu-item"]),style:(0,u.j5)(s.beforeStyles)},[(0,t.Wm)(i,{style:(0,u.j5)({backgroundColor:n.select?n.iconColor||"var(--el-color-primary)":"#edf2f6"}),class:(0,u.C_)(["x-menu-item__icon",e.iconClass])},{default:(0,t.w5)((()=>[((0,t.wg)(),(0,t.j4)((0,t.LL)(n.icon)))])),_:1},8,["style","class"]),(0,t._)("span",m,(0,u.zw)(n.label),1),n.num>0?((0,t.wg)(),(0,t.j4)(c,{key:0,max:999,value:n.num},null,8,["value"])):(0,t.kq)("",!0)],6)}var b={name:"xMenuItem",components:{},props:{icon:String,iconColor:String,label:String,name:String,num:[String,Number],select:Boolean},data(){return{beforeStyles:{"--background-color":this.iconColor||"var(--el-color-primary)"}}},computed:{},watch:{},mounted(){},methods:{}},h=n(8700);const p=(0,h.Z)(b,[["render",g],["__scopeId","data-v-6f16ea6a"]]);var _=p,f=n(1910),v={name:"table_3",components:{table2:f["default"],xMenuItem:_},data(){return{loading:!0,icon:"",title:"",items:[],key:"",search:{}}},methods:{sideClick(e){this.info=e,this.search[this.key||"type"]=e.value,this.$refs.table.filterChange(this.search)},getChildData(e){Object.assign(this.$data,e),this.loading=!1}}};const y=(0,h.Z)(v,[["render",d],["__scopeId","data-v-dcd32f46"]]);var C=y}}]);
|
||||
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[823],{2823:function(e,l,n){n.r(l),n.d(l,{default:function(){return C}});var t=n(6808);const a={class:"message-body"},s={class:"message-content"},o={class:"message-body-side"},i={class:"message-body-flexbox"},c={class:"message-body-item"},r={class:"message-body-content"};function d(e,l,n,d,u,m){const g=(0,t.up)("x-page-header"),b=(0,t.up)("x-menu-item"),h=(0,t.up)("table2"),p=(0,t.Q2)("loading");return(0,t.wg)(),(0,t.iD)("div",a,[(0,t.wy)(((0,t.wg)(),(0,t.iD)("div",s,[(0,t._)("div",o,[(0,t._)("div",i,[(0,t.Wm)(g,{title:u.title,icon:u.icon},null,8,["title","icon"])]),(0,t._)("div",c,[((0,t.wg)(!0),(0,t.iD)(t.HY,null,(0,t.Ko)(u.items,((e,l)=>((0,t.wg)(),(0,t.j4)(b,{key:l,label:e.label,num:e.num,icon:e.icon,"icon-color":e.color,select:u.search[u.key]==e.value,onClick:l=>m.sideClick(e)},null,8,["label","num","icon","icon-color","select","onClick"])))),128))])]),(0,t._)("div",r,[(0,t.Wm)(h,{ref:"table",onChildLoaded:m.getChildData},null,8,["onChildLoaded"])])])),[[p,u.loading]])])}var u=n(9511);const m={class:"x-menu-item__label"};function g(e,l,n,a,s,o){const i=(0,t.up)("el-icon"),c=(0,t.up)("el-badge");return(0,t.wg)(),(0,t.iD)("div",{class:(0,u.C_)([{"is-select":n.select},"x-menu-item"]),style:(0,u.j5)(s.beforeStyles)},[(0,t.Wm)(i,{style:(0,u.j5)({backgroundColor:n.select?n.iconColor||"var(--el-color-primary)":"#edf2f6"}),class:(0,u.C_)(["x-menu-item__icon",e.iconClass])},{default:(0,t.w5)((()=>[((0,t.wg)(),(0,t.j4)((0,t.LL)(n.icon)))])),_:1},8,["style","class"]),(0,t._)("span",m,(0,u.zw)(n.label),1),n.num>0?((0,t.wg)(),(0,t.j4)(c,{key:0,max:999,value:n.num},null,8,["value"])):(0,t.kq)("",!0)],6)}var b={name:"xMenuItem",components:{},props:{icon:String,iconColor:String,label:String,name:String,num:[String,Number],select:Boolean},data(){return{beforeStyles:{"--background-color":this.iconColor||"var(--el-color-primary)"}}},computed:{},watch:{},mounted(){},methods:{}},h=n(8700);const p=(0,h.Z)(b,[["render",g],["__scopeId","data-v-6f16ea6a"]]);var _=p,f=n(944),v={name:"table_3",components:{table2:f["default"],xMenuItem:_},data(){return{loading:!0,icon:"",title:"",items:[],key:"",search:{}}},methods:{sideClick(e){this.info=e,this.search[this.key||"type"]=e.value,this.$refs.table.filterChange(this.search)},getChildData(e){Object.assign(this.$data,e),this.loading=!1}}};const y=(0,h.Z)(v,[["render",d],["__scopeId","data-v-dcd32f46"]]);var C=y}}]);
|
1
dist/static/js/app.09556da4.js
vendored
1
dist/static/js/app.09556da4.js
vendored
File diff suppressed because one or more lines are too long
1
dist/static/js/app.7b2644a9.js
vendored
Normal file
1
dist/static/js/app.7b2644a9.js
vendored
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-badge v-if="item.status && item.status.key && row[item.status.key]" is-dot class="item" :type="item.status.type || 'primary'" style="height: 14px;cursor: pointer;"></el-badge>
|
||||
<div style="display: flex;">
|
||||
<el-badge v-if="item.status && item.status.key && row[item.status.key]" is-dot class="item" :type="item.status.type || 'primary'" style="width: 10px;cursor: pointer;line-height: 38px;"></el-badge>
|
||||
<x-avatar v-if="item.columntype=='avatar' || item.component=='avatar'" :name="item.name" :options="item.options" :data="row"></x-avatar>
|
||||
<el-badge v-else-if="item.columntype=='badge' || item.columntype=='imagegroup'" :value="getType(row[item.name])" @click="handleClick(row, item)" :type="item.options.type || 'warning'"></el-badge>
|
||||
<el-image v-else-if="item.columntype=='image'" :preview-src-list="[getImg(row[item.name])]" :preview-teleported="true" hide-on-click-modal="true" lazy="true" style="max-width: 60px; height: 26px; border-radius: 2px;" fit="cover" :src="getImg(row[item.name])">
|
||||
@ -56,9 +56,6 @@
|
||||
</div>
|
||||
</template>
|
||||
<style scoped>
|
||||
.el-input__inner{
|
||||
width: auto;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
export default {
|
||||
|
@ -26,7 +26,7 @@
|
||||
</div>
|
||||
<div class="xTable-page" v-if="total && (!hidePagination || !hideDo)">
|
||||
<el-row style="float: left;">
|
||||
<el-affix position="bottom" :offset="height == 'auto' ? 20 : 9" v-if="selection.length > 0 && batchoperation.length > 0" style="padding: 0 10px;z-index: 100;white-space: nowrap; overflow-wrap: normal;">
|
||||
<el-affix position="bottom" :offset="height == 'auto' ? 20 : 9" v-if="selection.length > 0 && batchoperation.length > 0" style="padding-right: 10px;z-index: 100;white-space: nowrap; overflow-wrap: normal;">
|
||||
<el-button v-for="(o, index) in batchoperation" :key="index" @click="operation(o)" :type="o.type || 'danger'" plain :icon="o.icon">{{ o.label || '删除' }} ( {{ selection.length }} )</el-button>
|
||||
</el-affix>
|
||||
<el-button v-if="isselection" @click="toggleAllSelection()">全选</el-button>
|
||||
@ -49,15 +49,15 @@
|
||||
.xTable {}
|
||||
|
||||
.xTable-table {
|
||||
height: calc(100% - 50px);
|
||||
height: calc(100% - 45px);
|
||||
}
|
||||
|
||||
.xTable-page {
|
||||
height: 50px;
|
||||
height: 45px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 5px 0 15px;
|
||||
padding: 0 5px 0 10px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@ -148,7 +148,7 @@ export default {
|
||||
return Number(this.height) ? Number(this.height) + 'px' : this.height
|
||||
},
|
||||
_table_height() {
|
||||
return this.hidePagination && this.hideDo ? "100%" : "calc(100% - 50px)"
|
||||
return this.hidePagination && this.hideDo ? "100%" : "calc(100% - 45px)"
|
||||
}
|
||||
},
|
||||
data() {
|
||||
|
@ -1,16 +1,8 @@
|
||||
<template>
|
||||
<el-container>
|
||||
<el-aside :width="(aside.width || 160) + 'px'" v-if="aside.items.length > 0">
|
||||
<el-header>
|
||||
<el-input placeholder="输入关键字进行过滤" v-model="groupFilterText" clearable></el-input>
|
||||
</el-header>
|
||||
<el-main class="nopadding">
|
||||
<el-tree ref="group" class="menu" :node-key="aside.key || 'id'" :data="aside.items" :highlight-current="true" :expand-on-click-node="false" :filter-node-method="groupFilterNode" @node-click="groupClick"></el-tree>
|
||||
</el-main>
|
||||
</el-aside>
|
||||
<el-container>
|
||||
<el-header class="header-tabs" v-if="tabs.length > 0">
|
||||
<el-tabs type="card" v-model="search[tabskey]" @tab-change="tabChange">
|
||||
<el-container style="padding: 10px 10px 6px 10px">
|
||||
<el-container class="container">
|
||||
<el-header v-if="tabs && tabs.length > 0">
|
||||
<el-tabs v-model="search[tabskey]" @tab-change="tabChange" style="--el-tabs-header-height: 58px; line-height: 58px;">
|
||||
<el-tab-pane v-for="item in tabs" :key="item.value" :label="item.label" :name="item.value"> </el-tab-pane>
|
||||
</el-tabs>
|
||||
</el-header>
|
||||
@ -215,13 +207,27 @@ export default {
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
.container .el-header{
|
||||
padding: 0 20px;
|
||||
}
|
||||
.container .el-tabs__header{
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
<style scoped>
|
||||
@media (max-width: 992px) {
|
||||
|
||||
.adminui-main>.el-container>.el-container>.el-header .right-panel {
|
||||
display: block;
|
||||
margin-top: 0px;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.container {
|
||||
border: 1px solid var(--el-border-color-light);
|
||||
border-radius: 4px;
|
||||
background-color: var(--el-fill-color-blank);;
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
|
@ -103,7 +103,7 @@ export default {
|
||||
this.search[res.data.tabskey] = res.data.tabsdefaultvalue
|
||||
}
|
||||
// 子组件加载完毕后调用回调函数,并传递数据
|
||||
this.$emit('child-loaded', Object.assign({}, this.$data.aside, {search: this.$data.search}));
|
||||
this.$emit('child-loaded', Object.assign({}, this.$data.aside, { search: this.$data.search }));
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -112,8 +112,8 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
getWidth() {
|
||||
return function(item) {
|
||||
return item.width ? item.width+'px' : 'auto';
|
||||
return function (item) {
|
||||
return item.width ? item.width + 'px' : 'auto';
|
||||
}
|
||||
},
|
||||
filterObj() {
|
||||
@ -180,7 +180,7 @@ export default {
|
||||
plus() {
|
||||
this.dialog.save = true
|
||||
this.$nextTick(() => {
|
||||
this.$refs.saveDialog.open('plus').getComponentType(this.operation.plus.component).setData({}).setConfig(this.operation.plus)
|
||||
this.$refs.saveDialog.open('plus').getComponentType(this.operation.plus.component).setData(this.operation.plus.data || {}).setConfig(this.operation.plus)
|
||||
})
|
||||
},
|
||||
//编辑
|
||||
@ -218,14 +218,17 @@ export default {
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.expandtextarea .el-textarea__inner{ box-shadow: none}
|
||||
.expandtextarea .el-textarea__inner {
|
||||
box-shadow: none
|
||||
}
|
||||
|
||||
.xtable {
|
||||
margin-top: 0px;
|
||||
margin-bottom: 0px !important;
|
||||
}
|
||||
|
||||
.xtable .el-card__body {
|
||||
padding: 5px
|
||||
padding: 2px 5px
|
||||
}
|
||||
|
||||
.xtable .el-tabs__nav {
|
||||
@ -258,5 +261,4 @@ export default {
|
||||
.xtable .el-tabs__nav-next,
|
||||
.el-tabs__nav-prev {
|
||||
padding: 10px 0;
|
||||
}
|
||||
</style>
|
||||
}</style>
|
Loading…
Reference in New Issue
Block a user