"use strict";(self["webpackChunkscui"]=self["webpackChunkscui"]||[]).push([[6071],{23691:function(e,t,a){a.r(t),a.d(t,{default:function(){return m}});var l=a(66252),o=a(3577);const n={class:"left-panel"},i={class:"right-panel companyName"};function p(e,t,a,p,u,d){const c=(0,l.up)("el-icon"),s=(0,l.up)("el-menu-item"),r=(0,l.up)("el-menu-item-group"),m=(0,l.up)("el-menu"),w=(0,l.up)("el-main"),g=(0,l.up)("el-container"),f=(0,l.up)("el-aside"),h=(0,l.up)("el-date-picker"),_=(0,l.up)("el-header"),b=(0,l.up)("sc-table-column"),W=(0,l.up)("el-table-column"),k=(0,l.up)("scTable"),x=(0,l.up)("info"),y=(0,l.up)("el-drawer");return(0,l.wg)(),(0,l.iD)(l.HY,null,[(0,l.Wm)(g,{class:"mainBox mainNoBack userBox"},{default:(0,l.w5)((()=>[(0,l.Wm)(f,{class:"userAside",width:"200px"},{default:(0,l.w5)((()=>[(0,l.Wm)(g,null,{default:(0,l.w5)((()=>[(0,l.Wm)(w,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(m,{class:"menu mainMenu","default-active":u.page},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(u.menu,(t=>((0,l.wg)(),(0,l.j4)(r,{key:t.groupName,title:t.groupName},{default:(0,l.w5)((()=>[((0,l.wg)(!0),(0,l.iD)(l.HY,null,(0,l.Ko)(t.list,(t=>((0,l.wg)(),(0,l.j4)(s,{key:t.component,index:t.component,onClick:a=>e.openPage(t)},{title:(0,l.w5)((()=>[(0,l._)("span",null,(0,o.toDisplayString)(t.title),1)])),default:(0,l.w5)((()=>[t.icon?((0,l.wg)(),(0,l.j4)(c,{key:0},{default:(0,l.w5)((()=>[((0,l.wg)(),(0,l.j4)((0,l.LL)(t.icon)))])),_:2},1024)):(0,l.kq)("",!0)])),_:2},1032,["index","onClick"])))),128))])),_:2},1032,["title"])))),128))])),_:1},8,["default-active"])])),_:1})])),_:1})])),_:1}),(0,l.Wm)(w,{class:"nopadding",style:{padding:"0 0 0 10px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(g,{class:"logBox",style:{padding:"0 10px"}},{default:(0,l.w5)((()=>[(0,l.Wm)(_,null,{default:(0,l.w5)((()=>[(0,l._)("div",n,[(0,l.Wm)(h,{modelValue:u.params.date,"onUpdate:modelValue":t[0]||(t[0]=e=>u.params.date=e),type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},null,8,["modelValue"])]),(0,l._)("div",i,(0,o.toDisplayString)(u.name),1)])),_:1}),(0,l.Wm)(w,{class:"nopadding"},{default:(0,l.w5)((()=>[(0,l.Wm)(k,{ref:"table",apiObj:u.apiObj,params:u.params,stripe:"",highlightCurrentRow:"",onRowClick:d.rowClick},{default:(0,l.w5)((()=>[(0,l.Wm)(b,{label:"序号",type:"index"}),(0,l.Wm)(W,{label:"请求接口",prop:"route",width:"190"}),(0,l.Wm)(W,{label:"用户",prop:"creator_name",width:"140"}),(0,l.Wm)(W,{label:"操作行为",prop:"type_text",width:"215"}),(0,l.Wm)(W,{label:"日志内容",prop:"remark",width:"340"}),(0,l.Wm)(W,{label:"客户端IP",prop:"ip",width:"100"}),(0,l.Wm)(W,{label:"归属地",prop:"location",width:"170"}),(0,l.Wm)(W,{label:"日志时间",prop:"created_at",width:"150"})])),_:1},8,["apiObj","params","onRowClick"])])),_:1})])),_:1})])),_:1})])),_:1}),(0,l.Wm)(y,{modelValue:u.infoDrawer,"onUpdate:modelValue":t[1]||(t[1]=e=>u.infoDrawer=e),title:"日志详情",size:600,"destroy-on-close":""},{default:(0,l.w5)((()=>[(0,l.Wm)(x,{ref:"info"},null,512)])),_:1},8,["modelValue"])],64)}var u=a(3114),d=a(60581),c={name:"company-logs",components:{info:u["default"],scEcharts:d.Z},data(){return{id:this.$route.query.id,name:this.$route.query.name,infoDrawer:!1,page:"text1",menu:[{groupName:"MES系统日志",list:[{icon:"sc-icon-BusinessLog",title:"后台业务日志",component:"text1",id:1},{icon:"sc-icon-MobileLog",title:"手机端日志",component:"text2",id:2},{icon:"sc-icon-SdkLog",title:"对外SDK日志",component:"text3",id:3},{icon:"sc-icon-CommandLog",title:"后台命令日志",component:"text4",id:4}]},{groupName:"上位机&硬件日志",list:[{icon:"sc-icon-MutualLog",title:"生产线交互日志",component:"text5",id:5},{icon:"sc-icon-SecureLog",title:"设备自检/安全日志",component:"text6",id:6},{icon:"sc-icon-HardwareLog",title:"上位机/硬件日志",component:"text7",id:7}]}],params:{date:[],company_id:this.$route.query.id},apiObj:this.$API.system.logs.listCompany}},mounted(){},methods:{rowClick(e){this.infoDrawer=!0,this.$nextTick((()=>{this.$refs.info.setData(e)}))}}},s=a(83744);const r=(0,s.Z)(c,[["render",p],["__scopeId","data-v-18b37b31"]]);var m=r}}]);