1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9442b142"],{"19cc":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("a-card",{attrs:{bordered:!1}},[e("div",{staticClass:"table-page-search-wrapper"},[e("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.searchQuery.apply(null,arguments)}}},[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[e("a-form-item",{attrs:{label:"训练任务"}},[e("a-input",{attrs:{placeholder:"请输入训练任务"},model:{value:t.queryParam.title,callback:function(e){t.$set(t.queryParam,"title",e)},expression:"queryParam.title"}})],1)],1),e("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[e("a-form-item",{attrs:{label:"导调员"}},[e("f-popup",{ref:"teacher",model:{value:t.queryParam.teacher_id,callback:function(e){t.$set(t.queryParam,"teacher_id",e)},expression:"queryParam.teacher_id"}})],1)],1),e("a-col",{attrs:{xl:6,lg:7,md:8,sm:24}},[e("span",{staticClass:"table-page-search-submitButtons",staticStyle:{float:"left",overflow:"hidden"}},[e("a-button",{attrs:{type:"primary",icon:"search"},on:{click:t.searchQuery}},[t._v("查询")]),e("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:t.searchReset}},[t._v("重置")])],1)])],1)],1)],1),e("div",{staticClass:"table-operator"},[e("a-button",{attrs:{type:"primary",icon:"download"},on:{click:function(e){return t.handleExportXls("训练记录")}}},[t._v("导出打印")])],1),e("div",[e("div",{staticClass:"ant-alert ant-alert-info",staticStyle:{"margin-bottom":"16px"}},[e("i",{staticClass:"anticon anticon-info-circle ant-alert-icon"}),t._v(" 已选择 "),e("a",{staticStyle:{"font-weight":"600"}},[t._v(t._s(t.selectedRowKeys.length))]),t._v("项\n "),e("a",{staticStyle:{"margin-left":"24px"},on:{click:t.onClearSelected}},[t._v("清空")])]),e("a-table",{ref:"table",staticClass:"j-table-force-nowrap",attrs:{size:"middle",bordered:"",rowKey:"id",columns:t.columns,dataSource:t.dataSource,pagination:t.ipagination,loading:t.loading,rowSelection:{selectedRowKeys:t.selectedRowKeys,onChange:t.onSelectChange}},on:{change:t.handleTableChange},scopedSlots:t._u([{key:"htmlSlot",fn:function(a){return[e("div",{domProps:{innerHTML:t._s(a)}})]}},{key:"playback",fn:function(a,n){return[e("a",{attrs:{href:"wjtrain:playback="+a+","+n.title+","+n.subject+","+n.start_time}},[t._v(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.handleEdit(n)}}},[t._v("详情")]),e("a-divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.handleBigScreen(n)}}},[t._v("大屏")]),e("a-divider",{attrs:{type:"vertical"}}),e("a-dropdown",[e("a",{staticClass:"ant-dropdown-link"},[t._v("日志 "),e("a-icon",{attrs:{type:"down"}})],1),e("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[e("a-menu-item",[e("a",{on:{click:function(e){return t.handleLogs(n,0)}}},[t._v("普通日志")])]),e("a-menu-item",[e("a",{on:{click:function(e){return t.handleLogs(n,1)}}},[t._v("飞行日志")])]),e("a-menu-item",[e("a",{on:{click:function(e){return t.handleLogs(n,2)}}},[t._v("作战文书")])])],1)],1),e("a-divider",{attrs:{type:"vertical"}}),e("a-dropdown",[e("a",{staticClass:"ant-dropdown-link"},[t._v("更多 "),e("a-icon",{attrs:{type:"down"}})],1),e("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[e("a-menu-item",[e("a-popconfirm",{attrs:{title:"确定删除吗?"},on:{confirm:function(){return t.handleDelete(n.id)}}},[e("a",[t._v("删除")])])],1)],1)],1)],1)}}])})],1),e("record-modal",{ref:"modalForm",on:{ok:t.modalFormOk}}),e("RecordLogsModal",{ref:"logForm"})],1)},i=[],o=(a("6eb7"),a("ac0d")),r=a("b65a"),l=a("bed8"),c=a("60d1"),s={name:"TourismSpotList",mixins:[r["a"],o["b"]],components:{RecordModal:l["default"],RecordLogsModal:c["default"]},data:function(){return{description:"训练成绩",columns:[{title:"#",dataIndex:"id",width:60,align:"center"},{title:"训练任务",align:"center",dataIndex:"title"},{title:"导调",align:"center",dataIndex:"teacher_name"},{title:"训练时长",align:"center",dataIndex:"duration",customRender:function(t,e,a){var n=e.duration;if(n){var i=Math.floor(n/3600),o=Math.floor(n/60)%60,r=n-3600*i-60*o;return"".concat(i,"小时").concat(o,"分钟").concat(r,"秒")}return 0}},{title:"开始时间",align:"center",width:80,dataIndex:"start_time"},{title:"结束时间",align:"center",width:80,dataIndex:"end_time"},{title:"回放文件",align:"center",dataIndex:"playback",scopedSlots:{customRender:"playback"}},{title:"状态",align:"center",dataIndex:"state",customRender:function(t,e,a){var n=["创建","开始","完成","取消"];return n[e.state]}},{title:"操作",dataIndex:"action",align:"center",width:147,scopedSlots:{customRender:"action"}}],url:{list:"/admin/record/list",delete:"/admin/record/delete",exportXlsUrl:"/admin/record/exportXls"},dictOptions:{}}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},watch:{queryParam:function(){var t=this;this.$nextTick((function(){t.queryParam.teacher_id||t.$refs.teacher.clean()}))}},methods:{initDictConfig:function(){},handleLogs:function(t,e){this.$refs.logForm.edit(t,e),this.$refs.logForm.title="训练日志"},handleBigScreen:function(t){window.location.host;window.open("/evaluation/home/".concat(t.id))}}},d=s,u=(a("6e21"),a("2877")),m=Object(u["a"])(d,n,i,!1,null,"9c6aa072",null);e["default"]=m.exports},"6e21":function(t,e,a){"use strict";a("c468")},"6eb7":function(t,e,a){},c468:function(t,e,a){}}]);
|