x-php-Admin/dist/static/js/811.11a16026.js

1 line
6.3 KiB
JavaScript
Raw Normal View History

2024-01-09 06:46:38 +00:00
"use strict";(self["webpackChunkx_php_admin"]=self["webpackChunkx_php_admin"]||[]).push([[811],{4811:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var l=a(6808),i=a(9511);const o={class:"left-panel"},s={key:0,class:"right-panel"};function n(e,t,a,n,r,h){const p=(0,l.up)("el-tab-pane"),c=(0,l.up)("el-tabs"),u=(0,l.up)("el-header"),d=(0,l.up)("el-button"),b=(0,l.up)("xFilterBar"),f=(0,l.up)("xEcharts"),m=(0,l.up)("el-popconfirm"),k=(0,l.up)("el-button-group"),g=(0,l.up)("el-table-column"),y=(0,l.up)("xTable"),w=(0,l.up)("el-main"),$=(0,l.up)("el-container");return(0,l.wg)(),(0,l.j4)($,{style:{padding:"10px 10px 6px 10px"}},{default:(0,l.w5)((()=>[(0,l.Wm)($,{class:"container"},{default:(0,l.w5)((()=>[r.tabs&&r.tabs.length>0?((0,l.wg)(),(0,l.j4)(u,{key:0},{default:(0,l.w5)((()=>[(0,l.Wm)(c,{modelValue:r.search[r.tabskey],"onUpdate:modelValue":t[0]||(t[0]=e=>r.search[r.tabskey]=e),onTabChange:h.tabChange,style:{"--el-tabs-header-height":"58px","line-height":"58px"}},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(r.tabs,(t=>((0,l.wg)(),(0,l.j4)(p,{key:t.value,label:t.label+(t.num||r.search[r.tabskey]==t.value&&!e.$refs.table.loading?"("+(r.search[r.tabskey]==t.value?e.$refs.table.total:t.num||0)+")":""),name:t.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)(u,{key:1},{default:(0,l.w5)((()=>[(0,l._)("div",o,[r.operation.plus?((0,l.wg)(),(0,l.j4)(d,{key:0,type:"primary",icon:"el-icon-plus",onClick:h.plus},null,8,["onClick"])):(0,l.kq)("",!0)]),r.filter.length>0||r.stat.length>0?((0,l.wg)(),(0,l.iD)("div",s,[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(r.stat,((e,t)=>((0,l.wg)(),(0,l.j4)(d,(0,l.dG)({key:t,class:"hidden-xs-only",onClick:t=>h.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)(b,{key:0,modelValue:r.search,"onUpdate:modelValue":t[1]||(t[1]=e=>r.search=e),filterName:e.$route.meta.tablename,options:r.filter,onFilterChange:h.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)(u,{key:2,style:{height:"120px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(f,{height:"100%",option:r.chartoption},null,8,["option"])])),_:1})):(0,l.kq)("",!0),(0,l.Wm)(w,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(y,{ref:"table",isselection:r.isselection,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.operation.edit||r.operation.delete?((0,l.wg)(),(0,l.j4)(g,{key:0,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)(k,null,{default:(0,l.w5)((()=>[r.operation.edit?((0,l.wg)(),(0,l.j4)(d,{key:0,type:r.operation.edit.type||"primary",size:r.operation.edit.size||"small",onClick:t=>h.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)(m,{key:1,title:r.operation.delete.title||"确定删除吗?",onConfirm:t=>h.operationDelete(e.row,e.$index)},{reference:(0,l.w5)((()=>[(0,l.Wm)(d,{type:r.operation.delete.type||"info",size:r.operation.delete.size||"small"},{default:(0,l.w5)((()=>[(0,l.Uk)((0,i.zw)(r.operation.delete.label||"删除"),1)])),_:1},8,["type","size"])])),_:2},1032,["title","onConfirm"])):(0,l.kq)("",!0)])),_:2},1024)])),_:1},8,["label","width","fixed","align"])):(0,l.kq)("",!0)])),_:1},8,["isselection","tableColumn","name","params","batchoperation","api","row-key"])])),_:1})])),_:1})])),_:1})}a(8311);var r=a(3679),h=a(7844),p={name:"table_1",components:{xEcharts:h.Z,xFilterBar:r.Z},props:{name:{type:String,default:""}},data(){ret