"use strict";(self["webpackChunkscui"]=self["webpackChunkscui"]||[]).push([[5840],{68598:function(e,a,t){t.r(a),t.d(a,{default:function(){return g}});var s=t(66252),l=t(3577);const i={key:0,class:"scTableSearch"},o={class:"searchItem searchBtn"},r=(0,s.Uk)("查询"),n=(0,s.Uk)("重置"),c=(0,s._)("div",{class:"left-panel"},null,-1),p={class:"right-panel"},h=(0,s.Uk)("导出");function d(e,a,t,d,u,m){const f=(0,s.up)("el-button"),w=(0,s.up)("scTableHerderListSearch"),g=(0,s.up)("el-header"),y=(0,s.up)("el-table-column"),k=(0,s.up)("scNewTable"),C=(0,s.up)("el-main"),b=(0,s.up)("el-container"),D=(0,s.up)("info"),S=(0,s.up)("el-drawer");return(0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s.Wm)(b,{class:"mainBox mainBoxHeaderNoBorder"},{default:(0,s.w5)((()=>[u.list.column.length>0?((0,s.wg)(),(0,s.iD)("div",i,[(0,s.Wm)(w,{ref:"scSearch",searchList:u.list.column,paramsData:u.params,onFetchSelectData:m.getSelectData,onChangeHeaderData:m.getHeaderData},{default:(0,s.w5)((()=>[(0,s._)("div",o,[(0,s.Wm)(f,{size:u.size,type:"primary",icon:"el-icon-search",onClick:m.upSearch},{default:(0,s.w5)((()=>[r])),_:1},8,["size","onClick"]),(0,s.Wm)(f,{size:u.size,type:"info",icon:"el-icon-RefreshRight",onClick:m.reset},{default:(0,s.w5)((()=>[n])),_:1},8,["size","onClick"])])])),_:1},8,["searchList","paramsData","onFetchSelectData","onChangeHeaderData"])])):(0,s.kq)("",!0),(0,s.Wm)(g,{class:"nopadding"},{default:(0,s.w5)((()=>[c,(0,s._)("div",p,[(0,s.Wm)(f,{size:u.size,type:"primary",plain:"",onClick:m.exportData},{default:(0,s.w5)((()=>[h])),_:1},8,["size","onClick"])])])),_:1}),(0,s.Wm)(C,{class:"nopadding"},{default:(0,s.w5)((()=>[(0,s.Wm)(k,{ref:"table",onSelectionChange:m.selectionChange,onColumnBack:m.columnBack,apiObj:u.list.apiObj,column:u.list.column,params:u.params,stripe:"",border:"",size:u.size,highlightCurrentRow:"",onRowClick:m.rowClick},{type:(0,s.w5)((({row:e})=>[(0,s._)("span",null,(0,l.toDisplayString)(e.type_text),1)])),default:(0,s.w5)((()=>[(0,s.Wm)(y,{type:"selection",align:"center",width:"50"}),(0,s.Wm)(y,{type:"index",align:"center",label:"序号",width:"50"})])),_:1},8,["onSelectionChange","onColumnBack","apiObj","column","params","size","onRowClick"])])),_:1})])),_:1}),(0,s.Wm)(S,{modelValue:u.infoDrawer,"onUpdate:modelValue":a[0]||(a[0]=e=>u.infoDrawer=e),title:"日志详情",size:600,"destroy-on-close":""},{default:(0,s.w5)((()=>[(0,s.Wm)(D,{ref:"info"},null,512)])),_:1},8,["modelValue"])],64)}var u=t(3114),m={components:{info:u["default"]},data(){return{size:"small",setMap:{name:[]},infoDrawer:!1,list:{apiObj:this.$API.system.log.list,column:[]},exportShow:!1,selection:[],filterMap:{data:{}},params:{url:"sys.log.list",sys_type:1}}},provide(){return{columnHeaderParams:!1}},methods:{columnBack(e){this.list.column=e},getHeaderData(e){this.params=e,this.filterMap.data=e},async getSelectData(e){let{data:a,params:t}=e;this.params=t,this.filterMap.data=t;let s=this.$TOOL.objCopy(t);s.field="","string"===typeof a.prop?s.field=a.prop:s.field=a.prop[0],"select"!=a.search_type&&"checkbox"!=a.search_type||await this.getField(a,s)},async getField(e,a){const t=await this.$API.orders.order.field.post(a);200===t.code&&(t.data&&t.data.length>0&&t.data.forEach((a=>{a.label=a[e.prop],a.value=a[e.prop]})),this.list.column.forEach((a=>{a.prop==e.prop&&(a.data=t.data)})))},selectionChange(e){this.selection=e},exportChangeShow(e){32==e.type&&(this.exportShow=0==e.status)},async exportData(){if(this.exportShow)return;const e=await this.$API.system.log.commandExport.post(this.params);200==e.code&&(this.exportShow=!0,this.$message.success("开始导出"))},upSearch(){this.$refs.table.upData(this.params)},reset(){this.params={sys_type:1,url:"sys.log.list"},this.$refs.scSearch.reload(this.params),this.$refs.table.reload(this.params)},rowClick(){}}},f=t(83744);const w=(0,f.Z)(m,[["render",d]]);var g=w}}]);