x-php-Admin/dist/static/js/30.163a435d.js

1 line
7.4 KiB
JavaScript
Raw Normal View History

2023-12-25 08:08:40 +00:00
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[30],{7030:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var l=a(6808),i=a(9511);const o={class:"left-panel"},n={key:0,class:"right-panel"};function s(e,t,a,s,r,d){const p=(0,l.up)("el-input"),h=(0,l.up)("el-header"),u=(0,l.up)("el-tree"),c=(0,l.up)("el-main"),m=(0,l.up)("el-aside"),g=(0,l.up)("el-tab-pane"),f=(0,l.up)("el-tabs"),b=(0,l.up)("el-button"),k=(0,l.up)("xFilterBar"),y=(0,l.up)("xEcharts"),w=(0,l.up)("el-table-column"),C=(0,l.up)("el-popconfirm"),x=(0,l.up)("el-button-group"),$=(0,l.up)("xTable"),_=(0,l.up)("el-container"),v=(0,l.up)("x-update"),j=(0,l.up)("x-stat");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(_,null,{default:(0,l.w5)((()=>[r.aside.items.length>0?((0,l.wg)(),(0,l.j4)(m,{key:0,width:(r.aside.width||160)+"px"},{default:(0,l.w5)((()=>[(0,l.Wm)(h,null,{default:(0,l.w5)((()=>[(0,l.Wm)(p,{placeholder:"输入关键字进行过滤",modelValue:r.groupFilterText,"onUpdate:modelValue":t[0]||(t[0]=e=>r.groupFilterText=e),clearable:""},null,8,["modelValue"])])),_:1}),(0,l.Wm)(c,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(u,{ref:"group",class:"menu","node-key":r.aside.key||"id",data:r.aside.items,"highlight-current":!0,"expand-on-click-node":!1,"filter-node-method":d.groupFilterNode,onNodeClick:d.groupClick},null,8,["node-key","data","filter-node-method","onNodeClick"])])),_:1})])),_:1},8,["width"])):(0,l.kq)("",!0),(0,l.Wm)(_,null,{default:(0,l.w5)((()=>[r.tabs.length>0?((0,l.wg)(),(0,l.j4)(h,{key:0,class:"header-tabs"},{default:(0,l.w5)((()=>[(0,l.Wm)(f,{type:"card",modelValue:r.search[r.tabskey],"onUpdate:modelValue":t[1]||(t[1]=e=>r.search[r.tabskey]=e),onTabChange:d.tabChange},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(r.tabs,(e=>((0,l.wg)(),(0,l.j4)(g,{key:e.value,label:e.label,name:e.value},null,8,["label","name"])))),128))])),_:1},8,["modelValue","onTabChange"])])),_:1})):(0,l.kq)("",!0),r.operation.plus||r.operation.batchdeletion||r.filter.length>0?((0,l.wg)(),(0,l.j4)(h,{key:1},{default:(0,l.w5)((()=>[(0,l._)("div",o,[r.operation.plus?((0,l.wg)(),(0,l.j4)(b,{key:0,type:"primary",icon:"el-icon-plus",onClick:d.plus},null,8,["onClick"])):(0,l.kq)("",!0)]),r.filter.length>0||r.stat.length>0?((0,l.wg)(),(0,l.iD)("div",n,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(r.stat,((e,t)=>((0,l.wg)(),(0,l.j4)(b,(0,l.dG)({key:t,class:"hidden-xs-only",onClick:t=>d.openStat(e)},e),{default:(0,l.w5)((()=>[(0,l.Uk)((0,i.zw)(e.label),1)])),_:2},1040,["onClick"])))),128)),r.filter.length>0?((0,l.wg)(),(0,l.j4)(k,{key:0,modelValue:r.search,"onUpdate:modelValue":t[2]||(t[2]=e=>r.search=e),filterName:e.$route.meta.tablename,options:r.filter,onFilterChange:d.filterChange},null,8,["modelValue","filterName","options","onFilterChange"])):(0,l.kq)("",!0)])):(0,l.kq)("",!0)])),_:1})):(0,l.kq)("",!0),"object"===typeof r.chartoption&&Object.keys(r.chartoption).length>0?((0,l.wg)(),(0,l.j4)(h,{key:2,style:{height:"120px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(y,{height:"100%",option:r.chartoption},null,8,["option"])])),_:1})):(0,l.kq)("",!0),(0,l.Wm)(c,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)($,{ref:"table",tableColumn:r.column,name:r.tablename,params:r.search,batchoperation:r.batch,api:r.api,"row-key":r.key,remoteSort:!0,remoteFilter:!0,stripe:""},{default:(0,l.w5)((()=>[r.isselection?((0,l.wg)(),(0,l.j4)(w,{key:0,type:"selection",width:"48"})):(0,l.kq)("",!0),r.operation.edit||r.operation.delete?((0,l.wg)(),(0,l.j4)(w,{key:1,label:r.operation.label||"操作",width:r.operation.width||124,fixed:r.operation.fixed||"right",align:r.operation.align||"left"},{default:(0,l.w5)((e=>[(0,l.Wm)(x,null,{default:(0,l.w5)((()=>[r.operation.edit?((0,l.wg)(),(0,l.j4)(b,{key:0,type:r.operation.edit.type||"primary",size:r.operation.edit.size||"small",onClick:t=>d.operationEdit(e.row,e.$index)},{default:(0,l.w5)((()=>[(0,l.Uk)((0,i.zw)(r.operation.edit.label||"编辑"),1)])),_:2},1032,["type","size","onClick"])):(0,l.kq)("",!0),r.operation.delete?((0,l.wg)(),(0,l.j4)(C,{key:1,title:r.operation.delete.title|