| 1 |
- System.register(["./index-legacy-f44ab23b.js","./CusNavigation.vue_vue_type_style_index_0_scoped_5e63f475_lang-legacy-aeac0d75.js","./CusNavigation-legacy-868eec01.js","./index-legacy-db54d967.js","./ReloadOutlined-legacy-dace4f0f.js"],(function(e,t){"use strict";var n,l,i,a,o,r,u,c,d,s,f,v,p,h,y,g,x,b,w,m,_,k,C;return{setters:[function(e){n=e.d,l=e.i,i=e.l,a=e.r,o=e.o,r=e.b,u=e.w,c=e.c,d=e.x,s=e.e,f=e.t,v=e.y,p=e.s,h=e.f,y=e.F,g=e.S,x=e.z,b=e.p,w=e.j,m=e._},null,function(e){_=e.C},function(e){k=e.p},function(e){C=e.R}],execute:function(){var t=document.createElement("style");t.textContent="[data-v-c77c9745] .ant-table-wrapper{height:0px;flex-grow:1}[data-v-c77c9745] .ant-spin-nested-loading{height:100%}[data-v-c77c9745] .ant-spin-container{height:100%;display:flex;flex-direction:column}[data-v-c77c9745] .ant-table{flex-grow:1;height:0px}[data-v-c77c9745] .ant-table-container{height:100%;display:flex;flex-direction:column}[data-v-c77c9745] .ant-table-body{overflow-y:auto!important;flex-grow:1;border-bottom:1px solid #eee;border-right:1px solid #eee}[data-v-c77c9745] .ant-table-body::-webkit-scrollbar{width:1px;height:8px;background:#0058FF}[data-v-c77c9745] .ant-table-body::-webkit-scrollbar-track{width:1px;background:#eee}[data-v-c77c9745] .ant-table-body::-webkit-scrollbar-thumb{width:1px;background:#0058FF}[data-v-c77c9745] .ant-table-body::-webkit-scrollbar-thumb:hover{background:#0058FF}[data-v-c77c9745] .ant-table-body::-webkit-scrollbar-corner{width:1px;background:#eee}.cus-forbidden[data-v-c77c9745]:hover{cursor:not-allowed}\n",document.head.appendChild(t);var S={style:{overflow:"visible"}},z=n({__name:"Detail",setup:function(e,t){var n=t.expose,v=function(e){console.log(e),p.value=!1},p=l(!1),h=l();return i((function(){})),n({show:function(e){p.value=!0,h.value=e},hidden:function(){p.value=!1}}),function(e,t){var n=a("a-button"),l=a("a-modal");return o(),r(l,{title:"设备日志",visible:p.value,"onUpdate:visible":t[0]||(t[0]=function(e){return p.value=e}),maskClosable:!1,width:580,bodyStyle:{height:"500px",overflow:"auto",padding:"10px"}},{footer:u((function(){return[c(n,{type:"primary",onClick:v},{default:u((function(){return[d("知道了")]})),_:1})]})),default:u((function(){return[s("pre",S,f(h.value),1)]})),_:1},8,["visible"])}}}),j={class:"cus-animation",style:{height:"100%",width:"100%",padding:"16px 20px",display:"flex","flex-direction":"column"}},F={style:{display:"flex","justify-content":"space-between","align-items":"flex-end"}},N={style:{display:"flex"}},R={style:{"white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"}},D={style:{"white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"}},E={key:0,style:{color:"green"}},J=[function(e){return b("data-v-c77c9745"),e=e(),w(),e}((function(){return s("span",null,"成功",-1)}))],O={key:1,style:{color:"red"}},I={style:{"white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"}},L=["onClick"];e("default",m(n({__name:"Index",setup:function(e){var t=l(null),n=v({}),r=v({pageSize:20,current:1,size:"default",showQuickJumper:!0,showTotal:function(e){return"共 ".concat(e," 条数据")},onChange:function(e,t){this.current=e,this.pageSize=t,m()}}),d=l([]),b=l(!1),w=v({size:20,page:1,sort:"time",order:"desc",keyWord:"",mac:""}),m=function(){b.value=!0,w.size=r.pageSize,w.page=r.current,k({url:"/device/searchRecord",data:w},(function(e){console.log(e),r.total=e.total,d.value=e.data,b.value=!1}))},S=function(){r.current=1,m()},U=l(null);return i((function(){var e;n.y=(null===(e=t.value)||void 0===e?void 0:e.clientHeight)-113,m()})),function(e,l){var i=a("a-tooltip"),v=a("a-input"),k=a("a-form-item"),q=a("a-form"),H=a("a-table-column"),M=a("a-table");return o(),p(y,null,[s("div",j,[c(h(_),{title:"设备日志"}),s("div",F,[s("div",N,[c(q,{layout:"inline",model:w},{default:u((function(){return[c(k,null,{default:u((function(){return[c(v,{allowClear:"",value:w.mac,"onUpdate:value":l[0]||(l[0]=function(e){return w.mac=e}),placeholder:"请输入要查询的内容",style:{width:"280px"}},{suffix:u((function(){return[c(i,{title:"点击搜索",onClick:S},{default:u((function(){return[c(h(g),{style:{color:"rgba(0, 0, 0, 0.45)"}})]})),_:1})]})),_:1},8,["value"])]})),_:1})]})),_:1},8,["model"])]),s("div",null,[c(i,{onClick:m},{default:u((function(){return[c(h(C),{style:{"font-size":"16px"},spin:b.value},null,8,["spin"])]})),_:1})])]),s("div",{ref_key:"table_container",ref:t,style:{"margin-top":"9px","border-top":"1px solid #eee",display:"flex","flex-direction":"column",overflow:"hidden",height:"0px","flex-grow":"1"}},[c(M,{"data-source":d.value,pagination:r,scroll:n,bordered:!0,loading:b.value,size:"middle"},{default:u((function(){return[c(H,{title:"序号",width:60,fixed:"left",align:"center"},{default:u((function(e){var t=e.index;return[s("div",null,f(t+1),1)]})),_:1}),c(H,{title:"设备编号","data-index":"deviceMac",width:200,fixed:"left",align:"center"}),c(H,{title:"创建时间",width:200},{default:u((function(e){var t=e.record;return[s("div",null,f(h(x)(t.time)),1)]})),_:1}),c(H,{title:"原始数据","min-width":200,ellipsis:!0},{default:u((function(e){var t=e.record;return[c(i,{placement:"topLeft",mouseEnterDelay:.8,overlayStyle:{"max-width":"800px"}},{title:u((function(){return[s("div",null,f(t.content),1)]})),default:u((function(){return[s("div",R,f(t.content),1)]})),_:2},1024)]})),_:1}),c(H,{title:"处理结果",width:150,ellipsis:!0},{default:u((function(e){var t=e.record;return[s("div",D,["success"==t.code?(o(),p("div",E,J)):(o(),p("span",O,f(t.reason),1))])]})),_:1}),c(H,{title:"模型数据","min-width":200,ellipsis:!0},{default:u((function(e){var t=e.record;return[c(i,{placement:"topLeft",mouseEnterDelay:.8,overlayStyle:{"max-width":"600px"}},{title:u((function(){return[s("div",null,f(JSON.stringify(t.items)),1)]})),default:u((function(){return[s("div",I,f(JSON.stringify(t.items)),1)]})),_:2},1024)]})),_:1}),c(H,{title:"操作",width:150,fixed:"right"},{default:u((function(e){var t=e.record;return[s("div",null,[s("a",{style:{"margin-left":"0px"},onClick:function(e){return function(e){var t;console.log(e),null===(t=U.value)||void 0===t||t.show(e)}(t)}},"查看",8,L)])]})),_:1})]})),_:1},8,["data-source","pagination","scroll","loading"])],512)]),c(z,{ref_key:"detailRef",ref:U},null,512)],64)}}}),[["__scopeId","data-v-c77c9745"]]))}}}));
|