chunk-068ac28f.b54a64ad.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-068ac28f","chunk-2d0df437"],{"317c":function(t,e,a){},"88bc":function(t,e,a){(function(e){var a=1/0,n=9007199254740991,i="[object Arguments]",s="[object Function]",r="[object GeneratorFunction]",l="[object Symbol]",o="object"==typeof e&&e&&e.Object===Object&&e,c="object"==typeof self&&self&&self.Object===Object&&self,u=o||c||Function("return this")();function d(t,e,a){switch(a.length){case 0:return t.call(e);case 1:return t.call(e,a[0]);case 2:return t.call(e,a[0],a[1]);case 3:return t.call(e,a[0],a[1],a[2])}return t.apply(e,a)}function f(t,e){var a=-1,n=t?t.length:0,i=Array(n);while(++a<n)i[a]=e(t[a],a,t);return i}function p(t,e){var a=-1,n=e.length,i=t.length;while(++a<n)t[i+a]=e[a];return t}var h=Object.prototype,m=h.hasOwnProperty,v=h.toString,g=u.Symbol,b=h.propertyIsEnumerable,w=g?g.isConcatSpreadable:void 0,y=Math.max;function _(t,e,a,n,i){var s=-1,r=t.length;a||(a=L),i||(i=[]);while(++s<r){var l=t[s];e>0&&a(l)?e>1?_(l,e-1,a,n,i):p(i,l):n||(i[i.length]=l)}return i}function C(t,e){return t=Object(t),x(t,e,(function(e,a){return a in t}))}function x(t,e,a){var n=-1,i=e.length,s={};while(++n<i){var r=e[n],l=t[r];a(l,r)&&(s[r]=l)}return s}function j(t,e){return e=y(void 0===e?t.length-1:e,0),function(){var a=arguments,n=-1,i=y(a.length-e,0),s=Array(i);while(++n<i)s[n]=a[e+n];n=-1;var r=Array(e+1);while(++n<e)r[n]=a[n];return r[e]=s,d(t,this,r)}}function L(t){return I(t)||k(t)||!!(w&&t&&t[w])}function S(t){if("string"==typeof t||N(t))return t;var e=t+"";return"0"==e&&1/t==-a?"-0":e}function k(t){return U(t)&&m.call(t,"callee")&&(!b.call(t,"callee")||v.call(t)==i)}var I=Array.isArray;function O(t){return null!=t&&z(t.length)&&!R(t)}function U(t){return M(t)&&O(t)}function R(t){var e=A(t)?v.call(t):"";return e==s||e==r}function z(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=n}function A(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function M(t){return!!t&&"object"==typeof t}function N(t){return"symbol"==typeof t||M(t)&&v.call(t)==l}var F=j((function(t,e){return null==t?{}:C(t,f(_(e,1),S))}));t.exports=F}).call(this,a("c8ba"))},"9b2a":function(t,e,a){"use strict";a("317c")},b441:function(t,e,a){"use strict";var n=["舟山普陀机场","喀什机场","阿坝红原机场","太谷机场","博鳌机场","昌都机场","山东聊城军事机场","湘阴县军事机场","中江机场","吉林通化机场","泸州机场","山西临汾机场","山西运城机场","新疆乌鲁木齐水磨沟机场","宁夏回族自治区银川市魏家桥机场","北京首都国际机场","云南普尔机场"],i=["雨天","晴天","雪天","沙尘","雷暴"],s=["白天","黑夜"],r=["未定义","总参谋长","支队长","融合力量","远航终端","参谋终端","航管员","气象员","战勤","导调","领航","未定义","未定义","未定义","未定义","未定义","未定义","未定义","未定义","未定义","飞行员","机务"],l={Crew:21,z8:20,z9:20,z10:20,m171:20,y12:20,y7:20},o={z8:0,z9:1,z10:2,m171:3,y12:4,y7:5,Crew:-1},c=["直8","直9","直11","米171","运12","运7"],u=["岛礁起降","跟进飞行","编队飞行","航行转场飞行","空中投送飞行","巡逻侦查飞行","跟踪追击飞行","海上搜索飞行","灭火飞行","战斗起飞","静止着舰飞行","行进着舰飞行","全轮着陆机降飞行","悬停跳下机降飞行","悬停索降飞行","小速度掠地跳下机降飞行","舱门射击飞行","海上维权执法取证","宣传震慑飞行","跟踪追捕飞行","以执勤为背景的联合演练","以处突为背景的联合演练","以反恐为背景的联合演练","以海上维权执法为背景的联合演练","以抢险救援为背景的联合演练","以防卫作战为背景的联合演练","人员突发情况指挥协同","直升机突发情况指挥协同","环境突发情况指挥协同","航管突发情况指挥协同","任务中突发情况指挥协同"],d=[0,-1,-1,[0,8],-1,1,3,0,-1,-1,0,0,-1,-1,-1,-1,0,0,1,0,1,1,1,0,0,1];e["a"]={Maps:n,Weathers:i,Roles:r,VehicleNames:c,VehicleIds:o,Subjects:u,Subject2Map:d,AddableNames:l,TimeName:function(t){return 14==t?s[0]:21==t?s[1]:void 0}}},bed8:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("j-modal",{attrs:{title:t.title,width:t.width,visible:t.visible,confirmLoading:t.confirmLoading,switchFullscreen:"",cancelText:"关闭"},on:{ok:t.handleOk,cancel:t.handleCancel}},[e("template",{slot:"footer"},[e("a-button",{key:"back",on:{click:t.handleCancel}},[t._v("\n 取消\n ")]),e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleExportXls("训练详情")}}},[t._v("\n 导出打印\n ")])],1),e("a-spin",{attrs:{spinning:t.confirmLoading}},[e("p",{staticClass:"title first"},[t._v("训练配置")]),e("a-row",{staticClass:"detail-row",attrs:{gutter:24}},[e("a-col",{staticClass:"detail-item",attrs:{span:12}},[e("span",{staticClass:"label"},[t._v("训练名字:")]),e("span",[t._v(t._s(t.title))])]),e("a-col",{staticClass:"detail-item",attrs:{span:12}},[e("span",{staticClass:"label"},[t._v("科目名字:")]),e("span",[t._v(t._s(t.model.subject))])])],1),e("a-row",{staticClass:"detail-row",attrs:{gutter:24}},[e("a-col",{staticClass:"detail-item",attrs:{span:12}},[e("span",{staticClass:"label"},[t._v("训练地图:")]),e("span",[t._v(t._s(t._f("sceneName")(t.config.scene.id)))])]),e("a-col",{staticClass:"detail-item",attrs:{span:12}},[e("span",{staticClass:"label"},[t._v("初始天气:")]),e("span",[t._v(t._s(t._f("weatherName")(t.config.scene.weather)))])])],1),e("a-row",{staticClass:"detail-row",attrs:{gutter:24}},[e("a-col",{staticClass:"detail-item",attrs:{span:12}},[e("span",{staticClass:"label"},[t._v("初始时间:")]),e("span",[t._v(t._s(t._f("timeName")(t.config.scene.time)))])])],1),e("a-row",{staticClass:"detail-row",attrs:{gutter:24}},[e("a-col",{staticClass:"detail-item",attrs:{span:24}},[e("span",{staticClass:"label"},[t._v("训练标准:")]),t._l(t.config.objective,(function(a){return e("a-tag",{key:a.key,attrs:{size:"large"}},[t._v(t._s(a.key)+" : "+t._s(a.val))])}))],2)],1),e("p",{staticClass:"title"},[t._v("参训情况")]),e("a-table",{ref:"table",staticClass:"j-table-force-nowrap",attrs:{size:"small",bordered:"",rowKey:"user",columns:t.columns,dataSource:t.dataSource},scopedSlots:t._u([{key:"htmlSlot",fn:function(a){return[e("div",{domProps:{innerHTML:t._s(a)}})]}},{key:"imgSlot",fn:function(a){return[a?e("img",{staticStyle:{"max-width":"80px","font-size":"12px","font-style":"italic"},attrs:{src:t.getImgView(a),height:"25px",alt:""}}):e("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[t._v("无图片")])]}},{key:"fileSlot",fn:function(a){return[a?e("a-button",{attrs:{ghost:!0,type:"primary",icon:"download",size:"small"},on:{click:function(e){return t.uploadFile(a)}}},[t._v("\n 下载\n ")]):e("span",{staticStyle:{"font-size":"12px","font-style":"italic"}},[t._v("无文件")])]}},{key:"action",fn:function(a,n){return e("span",{},[e("a",{on:{click:function(e){return t.showUserDetail(n)}}},[t._v("详情")])])}}])}),e("p",{staticClass:"title"},[t._v("训练状态")]),e("a-row",{staticClass:"detail-row",attrs:{gutter:24}},[e("a-col",{staticClass:"detail-item",attrs:{span:12}},[e("span",{staticClass:"label"},[t._v("开始时间:")]),e("span",[t._v(t._s(t.model.start_time))])]),e("a-col",{staticClass:"detail-item",attrs:{span:12}},[e("span",{staticClass:"label"},[t._v("结束时间:")]),e("span",[t._v(t._s(t.model.end_time))])])],1),e("a-row",{staticClass:"detail-row",attrs:{gutter:24}},[e("a-col",{staticClass:"detail-item",attrs:{span:12}},[e("span",{staticClass:"label"},[t._v("持续时间:")]),e("span",[t._v(t._s(t.model.duration?t.model.duration:0)+"s")])]),e("a-col",{staticClass:"detail-item",attrs:{span:12}},[e("span",{staticClass:"label"},[t._v("任务状态:")]),e("span",[t._v(t._s(t._f("statestr")(t.model.state)))])])],1)],1)],2)},i=[],s=a("0fea"),r=(a("88bc"),a("ca00"),a("e610")),l=a("a061"),o=a("b441");function c(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var u={name:"RecordModal",components:{JImageUpload:r["default"],JEditor:l["default"]},data:function(){var t;return t={form:this.$form.createForm(this),title:"操作",width:800,visible:!1,model:{},confirmLoading:!1,config:{scene:{},ai:{},objective:[],role:[]}},c(t,"title",""),c(t,"columns",[{title:"#",dataIndex:"",width:60,align:"center",customRender:function(t,e,a){return parseInt(a)+1}},{title:"姓名",align:"center",dataIndex:"name",customRender:function(t,e,a){return e.name?e.name:"---"}},{title:"角色",align:"center",dataIndex:"role",customRender:function(t,e,a){return o["a"].Roles[parseInt(e.role)]}},{title:"飞机型号",align:"center",dataIndex:"vehicleid",customRender:function(t,e,a){return-1==e.vehicleid?"---":o["a"].VehicleNames[parseInt(e.vehicleid)]+"(".concat(e.num,")")}},{title:"所属小组",align:"center",dataIndex:"group",customRender:function(t,e,a){return e.group<1?"---":"小组"+e.group}},{title:"所属小队",align:"center",dataIndex:"team",customRender:function(t,e,a){return e.team<1?"---":"小队"+e.team}},{title:"操作",dataIndex:"action",align:"center",width:80,scopedSlots:{customRender:"action"}}]),c(t,"dataSource",[]),t},filters:{sceneName:function(t){return o["a"].Maps[parseInt(t)]},weatherName:function(t){if(void 0!=t)return o["a"].Weathers[parseInt(t)]},timeName:function(t){if(void 0!=t)return o["a"].TimeName(t)},statestr:function(t){return 0==t?"未开始":1==t?"进行中":"已结束"}},created:function(){},methods:{showUserDetail:function(t){var e=t.user;if(-1!=e){var a=this.rid;this.$router.push({path:"/app/userrecord?uid=".concat(e,"&rid=").concat(a),params:{rid:a,uid:e}})}},add:function(){this.edit({})},edit:function(t){this.visible=!0;var e=this;e.confirmLoading=!0,this.rid=t.id,Object(s["c"])("/admin/record/detail",{id:t.id}).then((function(t){t.success||(e.$message.warning(t.message),e.close());var a=t.result.config;e.$nextTick((function(){e.model=t.result,e.title=t.result.title,e.config=a,e.dataSource=a.role?a.role.filter((function(t){return-1!=t.user})):[]}))})).finally((function(){e.confirmLoading=!1}))},close:function(){this.$emit("close"),this.visible=!1},handleOk:function(){this.close()},handleCancel:function(){this.close()},parseUser:function(t){},handleExportXls:function(t){var e=this;t&&"string"==typeof t||(t="导出文件"),Object(s["b"])("/admin/record/detail/exportXls?id="+this.rid).then((function(a){if(a)if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(new Blob([a],{type:"application/vnd.ms-excel"}),t+".xls");else{var n=window.URL.createObjectURL(new Blob([a],{type:"application/vnd.ms-excel"})),i=document.createElement("a");i.style.display="none",i.href=n,i.setAttribute("download",t+".xls"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(n)}else e.$message.warning("文件下载失败")}))}}},d=u,f=(a("9b2a"),a("2877")),p=Object(f["a"])(d,n,i,!1,null,"9b19c592",null);e["default"]=p.exports},e610:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("a-upload",{attrs:{name:"file",listType:"picture-card",multiple:t.isMultiple,action:t.uploadAction,headers:t.headers,data:{biz:t.bizPath},fileList:t.fileList,beforeUpload:t.beforeUpload,disabled:t.disabled,isMultiple:t.isMultiple,showUploadList:t.isMultiple},on:{change:t.handleChange,preview:t.handlePreview}},[!t.isMultiple&&t.picUrl?e("img",{staticStyle:{height:"104px","max-width":"300px"},attrs:{src:t.getAvatarView()}}):e("div",[e("a-icon",{attrs:{type:t.uploadLoading?"loading":"plus"}}),e("div",{staticClass:"ant-upload-text"},[t._v(t._s(t.text))])],1),e("a-modal",{attrs:{visible:t.previewVisible,footer:null},on:{cancel:function(e){return t.handleCancel()}}},[e("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:t.previewImage}})])],1)},i=[],s=a("2b0e"),r=a("9fb0"),l=a("0fea"),o=function(){return"-"+parseInt(1e4*Math.random()+1,10)},c=function(t){if(t.lastIndexOf("\\")>=0){var e=new RegExp("\\\\","g");t=t.replace(e,"/")}return t.substring(t.lastIndexOf("/")+1)},u={name:"JImageUpload",data:function(){return{uploadAction:window._CONFIG["domianURL"]+"/sys/common/upload",uploadLoading:!1,picUrl:!1,headers:{},fileList:[],previewImage:"",previewVisible:!1}},props:{text:{type:String,required:!1,default:"上传"},bizPath:{type:String,required:!1,default:"temp"},value:{type:[String,Array],required:!1},disabled:{type:Boolean,required:!1,default:!1},isMultiple:{type:Boolean,required:!1,default:!1}},watch:{value:function(t){t instanceof Array?this.initFileList(t.join(",")):this.initFileList(t)}},created:function(){var t=s["default"].ls.get(r["a"]);this.headers={"X-Access-Token":t}},methods:{initFileList:function(t){if(t&&0!=t.length){this.picUrl=!0;for(var e=[],a=t.split(","),n=0;n<a.length;n++){var i=Object(l["e"])(a[n]);e.push({uid:o(),name:c(a[n]),status:"done",url:i,response:{status:"history",message:a[n]}})}this.fileList=e}else this.fileList=[]},beforeUpload:function(t){var e=t.type;if(e.indexOf("image")<0)return this.$message.warning("请上传图片"),!1},handleChange:function(t){this.picUrl=!1;var e=t.fileList;"done"===t.file.status?t.file.response.success&&(this.picUrl=!0,e=e.map((function(t){return t.response&&(t.url=t.response.message),t}))):"error"===t.file.status?this.$message.error("".concat(t.file.name," 上传失败.")):"removed"===t.file.status&&this.handleDelete(t.file),this.fileList=e,"done"!==t.file.status&&"removed"!==t.file.status||this.handlePathChange()},handlePreview:function(t){this.previewImage=t.url||t.thumbUrl,this.previewVisible=!0},getAvatarView:function(){if(this.fileList.length>0){var t=this.fileList[0].url;return Object(l["e"])(t)}},handlePathChange:function(){var t=this.fileList,e="";t&&0!=t.length||(e="");var a=[];if(this.isMultiple)for(var n=0;n<t.length;n++)a.push(t[n].response.message);else a.push(t[t.length-1].response.message);a.length>0&&(e=a.join(",")),this.$emit("change",e)},handleDelete:function(t){},handleCancel:function(){this.close(),this.previewVisible=!1},close:function(){}},model:{prop:"value",event:"change"}},d=u,f=a("2877"),p=Object(f["a"])(d,n,i,!1,null,"244aa1d3",null);e["default"]=p.exports}}]);