1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0ced7d"],{"60d1":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e._self._c;return t("div",[t("j-modal",{attrs:{title:e.title,width:e.width,visible:e.visible,confirmLoading:e.confirmLoading,switchFullscreen:"",cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[t("a-spin",{attrs:{spinning:e.confirmLoading}},[t("a-card",{attrs:{bordered:!1}},[t("div",{staticClass:"table-page-search-wrapper"},[t("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery.apply(null,arguments)}}},[t("a-row",{attrs:{gutter:24}},[t("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[t("a-form-item",{attrs:{label:"日志类型"}},[t("a-select",{attrs:{placeholder:"日志类型",disabled:""},model:{value:e.queryParam.type,callback:function(t){e.$set(e.queryParam,"type",t)},expression:"queryParam.type"}},e._l(e.options,(function(a){return t("a-select-option",{key:a.key,attrs:{value:a.key}},[t("span",{staticStyle:{display:"inline-block",width:"100%"},attrs:{title:a}},[e._v("\n "+e._s(a.val)+"\n ")])])})),1)],1)],1),t("a-col",{attrs:{xl:12,lg:17,md:16,sm:24}},[t("a-form-item",{attrs:{label:"角色用户"}},[t("a-select",{attrs:{mode:"multiple",placeholder:"角色用户"},on:{change:e.changeUser},model:{value:e.queryParam.userid,callback:function(t){e.$set(e.queryParam,"userid",t)},expression:"queryParam.userid"}},e._l(e.users,(function(a){return t("a-select-option",{key:a.key,attrs:{value:a.key}},[t("span",{attrs:{title:a}},[e._v("\n "+e._s(a.val)+"\n ")])])})),1)],1)],1),t("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[t("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(t){return e.handleExportXls("训练日志")}}},[e._v("导出打印")])],1)],1)],1)],1),t("div",[t("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[t("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),e._v(" 已选择 "),t("a",{staticStyle:{"font-weight":"600"}},[e._v(e._s(e.selectedRowKeys.length))]),e._v("项\n "),t("a",{staticStyle:{"margin-left":"24px"},on:{click:e.onClearSelected}},[e._v("清空")])]),t("a-table",{ref:"table",staticClass:"j-table-force-nowrap",attrs:{size:"middle",bordered:"",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"htmlSlot",fn:function(a){return[t("div",{domProps:{innerHTML:e._s(a)}})]}},{key:"imgSlot",fn:function(a){return[a?t("img",{staticStyle:{"max-width":"80px","font-size":"12px","font-style":"italic"},attrs:{src:e.getImgView(a),height:"25px",alt:""}}):t("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[e._v("无图片")])]}},{key:"fileSlot",fn:function(a){return[a?t("a-button",{attrs:{ghost:!0,type:"primary",icon:"download",size:"small"},on:{click:function(t){return e.uploadFile(a)}}},[e._v("\n 下载\n ")]):t("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[e._v("无文件")])]}},{key:"action",fn:function(a,n){return t("span",{},[t("a",{on:{click:function(t){return e.showMessageDetail(n)}}},[e._v("详情")])])}}])})],1)])],1)],1),t("MessageDetail",{ref:"detailForm"})],1)},i=[],l=a("0fea"),s=(a("88bc"),a("ca00"),a("e610")),r=a("b65a"),o=a("b441"),c=a("2555"),d={name:"RecordLogsModal",mixins:[r["a"]],components:{JImageUpload:s["default"],MessageDetail:c["default"]},data:function(){var e=this;return{title:"辅助评估",width:"80%",visible:!1,roles:{},options:[{key:0,val:"普通日志"},{key:1,val:"飞行日志"},{key:2,val:"作战文书"}],model:{},labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,queryParam:{type:0,userid:[]},url:{list:"/admin/logs/list",exportXlsUrl:"/admin/logs/exportXls"},config:{scene:{},ai:{},objective:[],role:[]},columns:[],columns0:[{title:"#",dataIndex:"id",width:60,align:"center"},{title:"时间",align:"center",width:80,dataIndex:"tick"},{title:"日志",align:"center",dataIndex:"text"},{title:"参训人员",align:"center",width:140,dataIndex:"uid",customRender:function(t,a,n){if(!e.roles)return"异常";var i=e.roles[a.uid+""];return i||"异常"}},{title:"提交时间",align:"center",width:100,dataIndex:"add_time"}],columns1:[{title:"#",dataIndex:"id",width:60,align:"center"},{title:"时间",align:"center",width:80,dataIndex:"tick"},{title:"经度",align:"center",dataIndex:"longtitude"},{title:"纬度",align:"center",dataIndex:"latitude"},{title:"海拔",align:"center",dataIndex:"altitude"},{title:"俯仰",align:"center",dataIndex:"pitch"},{title:"滚转",align:"center",dataIndex:"roll"},{title:"偏航",align:"center",dataIndex:"yaw"},{title:"参训人员",align:"center",width:140,dataIndex:"uid",customRender:function(t,a,n){if(!e.roles)return"异常";var i=e.roles[a.uid+""];return i||"异常"}},{title:"提交时间",align:"center",width:100,dataIndex:"add_time"}],columns2:[{title:"#",dataIndex:"id",width:60,align:"center"},{title:"时间",align:"center",width:80,dataIndex:"tick"},{title:"标题",align:"center",dataIndex:"title"},{title:"发送者",align:"center",dataIndex:"from",width:140,customRender:function(e,t,a){var n=o["a"].Roles[parseInt(t.from)];return n||"异常"}},{title:"接收者",align:"center",dataIndex:"to",width:140,customRender:function(t,a,n){return e.roles?a.to:"异常"}},{title:"提交时间",align:"center",width:100,dataIndex:"add_time"},{title:"操作",align:"center",width:100,dataIndex:"action",scopedSlots:{customRender:"action"}}]}},created:function(){},computed:{users:function(){var e=this.config.role,t=[];return e.forEach((function(e){var a=o["a"].Roles[parseInt(e.role)],n="";20==e.role&&(n=o["a"].VehicleNames[parseInt(e.vehicleid)]),-1!=e.user&&t.push({key:e.user,val:"".concat(n).concat(a,"(").concat(e.name," - ").concat(e.user,")")})})),t}},methods:{changeUser:function(){this.queryParam.uids=this.queryParam.userid.join(","),this.loadData(1)},add:function(){this.edit({})},setLogType:function(e){this.queryParam.type=e;var t=["/admin/logs/list","/admin/logs/flyPosture","/admin/logs/message"];this.url.list=t[e];var a=[this.columns0,this.columns1,this.columns2];this.columns=a[e]},edit:function(e,t){this.roles={},this.config={scene:{},ai:{},objective:[],role:[]},this.queryParam.userid=[],this.queryParam.uids=void 0,this.queryParam.rid=e.id,this.setLogType(t),this.confirmLoading=!0;var a=this;Object(l["c"])("/admin/record/detail",{id:e.id}).then((function(e){e.success||(a.$message.warning(e.message),a.close());var t=e.result.config,n=t?t.role:[],i={};n.forEach((function(e){if(-1!=e.user){var t=o["a"].Roles[parseInt(e.role)],a="";20==e.role&&(a=o["a"].VehicleNames[parseInt(e.vehicleid)]),i[e.user+""]="".concat(a).concat(t,"(").concat(e.name,")")}})),a.roles=i,a.model=e.result,t&&(a.config=t),a.loadData(1)})).finally((function(){a.confirmLoading=!1})),this.visible=!0},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){},handleCancel:function(){this.close()},showMessageDetail:function(e){this.$refs.detailForm.edit(e)}}},u=d,m=a("2877"),h=Object(m["a"])(u,n,i,!1,null,null,null);t["default"]=h.exports}}]);
|