"use strict";(self["webpackChunkscui"]=self["webpackChunkscui"]||[]).push([[788],{221:function(t,e,a){a.r(e),a.d(e,{default:function(){return m}});var n=a(66252),i=a(3577);const l={key:0},s={key:0},o={key:0},d={key:0},c={class:"sc-icon"},r=["onClick"],u=["onClick"];function w(t,e,a,w,p,h){const g=(0,n.up)("el-table-column"),_=(0,n.up)("sc-icon-BehaviorLog"),m=(0,n.up)("el-table"),k=(0,n.up)("el-main"),f=(0,n.up)("el-container"),b=(0,n.Q2)("loading");return(0,n.wg)(),(0,n.j4)(f,null,{default:(0,n.w5)((()=>[(0,n.Wm)(k,null,{default:(0,n.w5)((()=>[(0,n.wy)(((0,n.wg)(),(0,n.j4)(m,{stripe:"",data:p.list,"element-loading-text":"努力加载中..."},{default:(0,n.w5)((()=>[(0,n.Wm)(g,{label:"生产线",width:"120"},{default:(0,n.w5)((t=>[(0,n._)("span",null,(0,i.toDisplayString)(t.row.name),1)])),_:1}),(0,n.Wm)(g,{label:"大屏状态",width:"80"},{default:(0,n.w5)((t=>[t.row?((0,n.wg)(),(0,n.iD)("span",l,"在线")):(0,n.kq)("",!0)])),_:1}),(0,n.Wm)(g,{label:"投屏码",width:"300"},{default:(0,n.w5)((t=>[(0,n._)("span",null,(0,i.toDisplayString)(t.row.projection_code),1)])),_:1}),(0,n.Wm)(g,{label:"运行时间",width:"100"},{default:(0,n.w5)((t=>[t.row?((0,n.wg)(),(0,n.iD)("span",s,"3天5小时")):(0,n.kq)("",!0)])),_:1}),(0,n.Wm)(g,{label:"终端IP地址",width:"100"},{default:(0,n.w5)((t=>[t.row?((0,n.wg)(),(0,n.iD)("span",o)):(0,n.kq)("",!0)])),_:1}),(0,n.Wm)(g,{label:"行为日志",align:"center"},{default:(0,n.w5)((t=>[t.row?((0,n.wg)(),(0,n.iD)("span",d,[(0,n._)("i",c,[(0,n.Wm)(_)])])):(0,n.kq)("",!0)])),_:1}),(0,n.Wm)(g,{label:"操作",fixed:"right",width:"120"},{default:(0,n.w5)((t=>[(0,n._)("span",null,[t.row.projection_code&&""!=t.row.projection_code?((0,n.wg)(),(0,n.iD)("div",{key:0,class:"btn link",onClick:e=>h.link(t.row)},"查看数据大屏",8,r)):((0,n.wg)(),(0,n.iD)("div",{key:1,class:"btn",onClick:e=>h.generate(t.row)},"生成数据大屏",8,u))])])),_:1})])),_:1},8,["data"])),[[b,p.loading]])])),_:1})])),_:1})}a(57658);var p=a(10844),h={name:"board",data(){return{size:"small",loading:!1,list:[]}},mounted(){this.getList()},methods:{async getList(){this.loading=!0;const t=await this.$API.system.dashboard.list.post();200==t.code&&(this.list=[...t.data.product_dashboard,...t.data.schedule_dashboard]),this.loading=!1},async generate(t){p.T.prompt("请填写您的本机地址","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((async({value:e})=>{let a={client_ip:e,code_type:t.code_type};const n=await this.$API.system.dashboard.config.post(a);200==n.code&&(this.$message.success("保存成功"),await this.getList())})).catch((()=>{}))},link(t){this.$router.push({name:"screen",params:{code:t.projection_code}})}}},g=a(83744);const _=(0,g.Z)(h,[["render",w],["__scopeId","data-v-d4186e40"]]);var m=_}}]);