Index-legacy-7638c0c1.js 6.8 KB

1
  1. !function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var l={}.toString.call(e).slice(8,-1);return"Object"===l&&e.constructor&&(l=e.constructor.name),"Map"===l||"Set"===l?Array.from(e):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=Array(t);n<t;n++)l[n]=e[n];return l}System.register(["./index-legacy-7f6656e1.js","./CusNavigation.vue_vue_type_style_index_0_scoped_5a71d35e_lang-legacy-2e6df359.js","./CusNavigation-legacy-ce721f1c.js","./index-legacy-c2eb0980.js","./ReloadOutlined-legacy-23a37b93.js"],function(t,n){"use strict";var l,i,r,a,o,u,c,d,s,f,v,p,y,h,g,b,m,x,w,_,k;return{setters:[function(e){l=e.d,i=e.i,r=e.k,a=e.o,o=e.b,u=e.w,c=e.r,d=e.c,s=e.s,f=e.e,v=e.t,p=e.v,y=e.p,h=e.f,g=e.F,b=e.S,m=e.x,x=e._},null,function(e){w=e.C},function(e){_=e.p},function(e){k=e.R}],execute:function(){var n=document.createElement("style");n.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(n);var S={style:{overflow:"visible"}},C=l({__name:"Detail",setup:function(t,n){var l=n.expose,p=function(e){console.log(e),y.value=!1},y=i(!1),h=i();return r(function(){}),l({show:function(e){y.value=!0,h.value=e},hidden:function(){y.value=!1}}),function(t,n){var l=c("a-button"),i=c("a-modal");return a(),o(i,{title:"设备日志",visible:y.value,"onUpdate:visible":n[0]||(n[0]=function(e){return y.value=e}),maskClosable:!1,width:580,bodyStyle:{height:"500px",overflow:"auto",padding:"10px"}},{footer:u(function(){return[d(l,{type:"primary",onClick:p},{default:u(function(){return e(n[1]||(n[1]=[s("知道了",-1)]))}),_:1})]}),default:u(function(){return[f("pre",S,v(h.value),1)]}),_:1},8,["visible"])}}}),j={class:"cus-animation",style:{height:"100%",width:"100%",padding:"16px 20px",display:"flex","flex-direction":"column"}},z={style:{display:"flex","justify-content":"space-between","align-items":"flex-end"}},A={style:{display:"flex"}},F={style:{"white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"}},I={style:{"white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"}},E={key:0,style:{color:"green"}},N={key:1,style:{color:"red"}},O={style:{"white-space":"nowrap","text-overflow":"ellipsis",overflow:"hidden"}},R=["onClick"];t("default",x(l({__name:"Index",setup:function(t){var n=i(null),l=p({}),o=p({pageSize:20,current:1,size:"default",showQuickJumper:!0,showTotal:function(e){return"共 ".concat(e," 条数据")},onChange:function(e,t){this.current=e,this.pageSize=t,D()}}),s=i([]),x=i(!1),S=p({size:20,page:1,sort:"time",order:"desc",keyWord:"",mac:""}),D=function(){x.value=!0,S.size=o.pageSize,S.page=o.current,_({url:"/device/searchRecord",data:S},function(e){console.log(e),o.total=e.total,s.value=e.data,x.value=!1})},J=function(){o.current=1,D()},U=i(null);return r(function(){var e;l.y=(null===(e=n.value)||void 0===e?void 0:e.clientHeight)-113,D()}),function(t,i){var r=c("a-tooltip"),p=c("a-input"),_=c("a-form-item"),L=c("a-form"),M=c("a-table-column"),T=c("a-table");return a(),y(g,null,[f("div",j,[d(h(w),{title:"设备日志"}),f("div",z,[f("div",A,[d(L,{layout:"inline",model:S},{default:u(function(){return[d(_,null,{default:u(function(){return[d(p,{allowClear:"",value:S.mac,"onUpdate:value":i[0]||(i[0]=function(e){return S.mac=e}),placeholder:"请输入要查询的内容",style:{width:"280px"}},{suffix:u(function(){return[d(r,{title:"点击搜索",onClick:J},{default:u(function(){return[d(h(b),{style:{color:"rgba(0, 0, 0, 0.45)"}})]}),_:1})]}),_:1},8,["value"])]}),_:1})]}),_:1},8,["model"])]),f("div",null,[d(r,{onClick:D},{default:u(function(){return[d(h(k),{style:{"font-size":"16px"},spin:x.value},null,8,["spin"])]}),_:1})])]),f("div",{ref_key:"table_container",ref:n,style:{"margin-top":"9px","border-top":"1px solid #eee",display:"flex","flex-direction":"column",overflow:"hidden",height:"0px","flex-grow":"1"}},[d(T,{"data-source":s.value,pagination:o,scroll:l,bordered:!0,loading:x.value,size:"middle"},{default:u(function(){return[d(M,{title:"序号",width:60,fixed:"left",align:"center"},{default:u(function(e){var t=e.index;return[f("div",null,v(t+1),1)]}),_:1}),d(M,{title:"设备编号","data-index":"deviceMac",width:200,fixed:"left",align:"center"}),d(M,{title:"创建时间",width:200},{default:u(function(e){var t=e.record;return[f("div",null,v(h(m)(t.time)),1)]}),_:1}),d(M,{title:"原始数据","min-width":200,ellipsis:!0},{default:u(function(e){var t=e.record;return[d(r,{placement:"topLeft",mouseEnterDelay:.8,overlayStyle:{"max-width":"800px"}},{title:u(function(){return[f("div",null,v(t.content),1)]}),default:u(function(){return[f("div",F,v(t.content),1)]}),_:2},1024)]}),_:1}),d(M,{title:"处理结果",width:150,ellipsis:!0},{default:u(function(t){var n=t.record;return[f("div",I,["success"==n.code?(a(),y("div",E,e(i[1]||(i[1]=[f("span",null,"成功",-1)])))):(a(),y("span",N,v(n.reason),1))])]}),_:1}),d(M,{title:"模型数据","min-width":200,ellipsis:!0},{default:u(function(e){var t=e.record;return[d(r,{placement:"topLeft",mouseEnterDelay:.8,overlayStyle:{"max-width":"600px"}},{title:u(function(){return[f("div",null,v(JSON.stringify(t.items)),1)]}),default:u(function(){return[f("div",O,v(JSON.stringify(t.items)),1)]}),_:2},1024)]}),_:1}),d(M,{title:"操作",width:150,fixed:"right"},{default:u(function(e){var t=e.record;return[f("div",null,[f("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,R)])]}),_:1})]}),_:1},8,["data-source","pagination","scroll","loading"])],512)]),d(C,{ref_key:"detailRef",ref:U},null,512)],64)}}}),[["__scopeId","data-v-c77c9745"]]))}}})}();