12 |
- "use strict";(self["webpackChunkchouhua02"]=self["webpackChunkchouhua02"]||[]).push([[893],{47893:function(e,t,s){s.r(t),s.d(t,{default:function(){return C}});var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xqjy-page"},[e.commonFunction.getUserConfig(e.$store.state.userOwnMenus,300).available?t("div",{staticClass:"xqjy-task_panel"},[t("xqjyTaskList",{ref:"xqjyTk",on:{select:e.isShow}}),t("div",{staticClass:"xqjy-page_btn"},[e.commonFunction.getUserConfig(e.$store.state.userOwnMenus,3001).available?t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.addPlan}},[e._v("筹划 ")]):e._e()],1)],1):e._e(),e.commonFunction.getUserConfig(e.$store.state.userOwnMenus,301).available?t("div",{directives:[{name:"show",rawName:"v-show",value:e.windowShow,expression:"windowShow"}],staticClass:"xqjy-analysisResult_panel"},[t("i",{staticClass:"el-icon-close",on:{click:e.closeWindow}}),t("xqjyAnalysisResult",{ref:"xqjyAr",on:{add:e.addStrip,delete:e.deleteStrip}}),t("div",{staticClass:"xqjy-page_btn"},[e.commonFunction.getUserConfig(e.$store.state.userOwnMenus,3002).available?t("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.showWindowList}},[e._v("确认 ")]):e._e()],1)],1):e._e()])},i=[],l=function(){var e=this,t=e._self._c;return t("div",{staticClass:"top-table-style"},[t("el-input",{attrs:{placeholder:"输入筛选目标点",size:"mini"},model:{value:e.search,callback:function(t){e.search=t},expression:"search"}}),t("el-table",{ref:"xqtasklist",attrs:{height:"480",data:e.tableDatas.filter((t=>!e.search||t.targetName.includes(e.search.toLowerCase()))),"tooltip-effect":"light","header-row-style":{background:"rgba(160, 160, 160, 0.3)"},"header-cell-style":{padding:"0px",fontFamily:"SourceHanSansCN-Regular",color:"#fff",backgroundColor:"transparent"},"cell-style":{padding:"0px"},"row-style":e.selectRowStyle},on:{"row-click":e.selectRow,"selection-change":e.handleSelectionChange}},[t("el-table-column",{attrs:{type:"selection",width:"40",align:"center"}}),e._l(e.cols,(function(e,s){return t("el-table-column",{key:s,attrs:{prop:e.prop,label:e.name,align:"center",width:e.width,"show-overflow-tooltip":""}})}))],2)],1)},n=[],o=s(38898),r={name:"xqjyTaskList",props:[],data(){return{tableDatas:[],cols:[{name:"目标",prop:"targetName",width:80},{name:"目的",prop:"observationPurposeChinese",width:80},{name:"状态",prop:"statusChinese",width:80},{name:"类型",prop:"typeChinese",width:80},{name:"编号",prop:"parentId",width:140}],search:"",selections:[],selectId:null}},methods:{handleSelectionChange(e){this.selections=e},selectRow(e){const t=this.selectId;this.selectId=e.id,t!=this.selectId&&(this.$events.emit("xqjywindowlist",e.parentId),this.$emit("select",e))},selectRowStyle({row:e}){let t={background:"rgba(160, 160, 160, 0.3)",height:"30px"};return this.selections.some((s=>{if(s.id==e.id)return t.background="rgba(0, 149, 255, 0.6)",!0})),this.selectId==e.id&&(t.background="#0095ff"),t},updateDatas(){(0,o.Du)({status:1}).then((e=>{let t=[];200==e.code&&(t=e.resp,t.forEach((e=>{null!=e.observationPurpose&&(e.observationPurposeChinese=this.dictionary.observationPurpose[e.observationPurpose]),null!=e.status&&(e.statusChinese=this.dictionary.taskStatus[e.status]),null!=e.type&&(e.typeChinese=this.dictionary.targetType[e.type])}))),this.tableDatas=t}))}},mounted(){let e=this;e.updateDatas()},watch:{$route(e){"xqjyPage"===e.name&&this.updateDatas()}},destroyed(){this.$events.$off("xqglXQTBData")}},c=r,d=s(1001),p=(0,d.Z)(c,l,n,!1,null,"1f56d21b",null),u=p.exports,h=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xqjy-tableStyle"},[t("div",{staticClass:"xqjy-window_title"},[e._v(" 可用窗口列表 "),e._l(e.operations,(function(s,a){return t("div",{key:a,staticClass:"xqjy-operat_btn",on:{click:function(t){return e.operation(a)}}},[e._v(e._s(s))])}))],2),t("div",{staticClass:"xqjy-window_content"},[t("div",{staticClass:"xqjy-window_header"},e._l(e.cols,(function(s,a){return t("div",{key:a,staticClass:"xqjy-window_header_item",style:{width:e.widths[a]+"px"}},[e._v(" "+e._s(s.name)+" ")])})),0),t("el-collapse",{model:{value:e.allPanel,callback:function(t){e.allPanel=t},expression:"allPanel"}},e._l(e.tableDatas,(function(s,a){return t("el-collapse-item",{key:a,attrs:{name:a}},[t("template",{slot:"title"},[t("div",{staticClass:"xqjy-window_body"},[t("el-checkbox",{attrs:{size:"mini"},on:{change:function(t){return e.selectAll(s)}},model:{value:s.select,callback:function(t){e.$set(s,"select",t)},expression:"data.select"}}),e._l(s,(function(s,a,i){return t("div",{key:a,staticClass:"xqjy-window_body_item",style:{width:e.widths[i]+"px"}},["params"!=a&&"select"!=a?[e._v(e._s(s))]:e._e()],2)}))],2)]),s.hasOwnProperty("params")?e._l(s.params,(function(a,i){return t("div",{key:i,staticClass:"xqjy-window_body"},[t("el-checkbox",{attrs:{size:"mini"},on:{change:function(t){return e.selectItem(s,a,i)}},model:{value:a.select,callback:function(t){e.$set(a,"select",t)},expression:"param.select"}}),t("div",{staticClass:"xqjy-window_body_item xqjy-window_bodycontent_item"},[e._v("侧摆"+e._s(a.rollAngle)+"°")]),t("div",{staticClass:"xqjy-window_body_item xqjy-window_bodycontent_item"},[e._v("覆盖"+e._s(a.coverage)+"%")]),t("div",{staticClass:"xqjy-window_body_item xqjy-window_bodycontent_item"},[e._v("俯仰"+e._s(a.pitchAngle)+"°")])],1)})):e._e()],2)})),1)],1)])},m=[],w=s(98098),y={name:"xqjyAnalysisResult",props:["parentId"],data(){return{operaIndex:null,operations:["全选","全部隐藏","全部展开","全部折叠"],widths:[160,170,75,75],cols:[{prop:"name",name:"卫星"},{prop:"accessTime",name:"访问时刻"},{prop:"accessDuration",name:"时长"},{prop:"resolvingPower",name:"分辨率"}],tableDatas:[],allPanel:[]}},methods:{operation(e){switch(this.operaIndex=e,e){case 2:let t=[];for(let e=0;e<this.tableDatas.length;e++)t.push(e);this.allPanel=t;break;case 3:this.allPanel=[];break;default:let s=0===e,a=[];this.tableDatas.forEach((e=>{s!==e.select&&e.params&&Array.isArray(e.params)&&(s&&e.params.length>0&&(e.params[0].select=!0,a.push({id:e.params[0].id,pointDTOList:e.params[0].pointDTOList})),s||e.params.forEach((e=>{e.select&&a.push(e.id),e.select=s}))),e.select=s})),this.$emit(s?"add":"delete",a)}},selectAll(e){if(e.params&&Array.isArray(e.params)&&(e.select&&e.params.length>0&&(e.params[0].select=!0,this.$emit("add",[{id:e.params[0].id,pointDTOList:e.params[0].pointDTOList}])),!e.select)){let t=null;e.params.forEach((e=>{t=e.select?e.id:null,e.select=!1})),t&&this.$emit("delete",[t])}},selectItem(e,t,s){let a=t.select;e.select=a;let i=null;e.params.some((e=>{if(e.select&&e.id!==t.id)return i=e.id,e.select=!1,!0})),e.params[s].select=a,i&&this.$emit("delete",[i]),a?this.$emit("add",[{id:t.id,pointDTOList:t.pointDTOList}]):this.$emit("delete",[t.id])}},mounted(){let e=this;this.$events.on("xqjywindowlist",(t=>{t={parentId:t},(0,w.r_)(t).then((t=>{let s=[],a=[];if(200===t.code){let e=t.resp;e=Array.isArray(e)?e:[],e.forEach((e=>{let t={name:null==e.satelliteName?"-":e.satelliteName,accessTime:null==e.accessTime?"-":e.accessTime,accessDuration:null==e.accessDuration?"-":e.accessDuration,resolvingPower:null==e.resolvingPower?"-":e.resolvingPower,select:!1,params:[]},i=!1;Array.isArray(e.subStripList)&&e.subStripList.forEach((e=>{e.select=!1,t.params.push({id:e.stripId,coverage:null==e.coverage?"-":e.coverage,pitchAngle:null==e.pitchAngle?"-":e.pitchAngle,rollAngle:null==e.rollAngle?"-":e.rollAngle,pointDTOList:e.pointDTOList,select:2===e.isSelected}),2===e.isSelected&&(i=!0,a.push({id:e.stripId,pointDTOList:e.pointDTOList}))})),t.select=i,s.push(t)}))}else e.$message.error(t.info);e.tableDatas=s,a.length>0&&this.$emit("add",a)}))}))}},g=y,f=(0,d.Z)(g,h,m,!1,null,"97f7e690",null),v=f.exports,b=(s(4801),{name:"xqjyPage",components:{xqjyTaskList:u,xqjyAnalysisResult:v},data(){return{windowShow:!1,windowList:[]}},methods:{isShow(e){this.windowShow=!0;let t=null,s="point";if(1===e.pointDTOList.length)t={id:e.id,name:e.targetName,size:20,outlineColor:Cesium.Color.fromCssColorString("#f10808"),outlineWidth:2,color:Cesium.Color.fromCssColorString("#edf50b"),lon:e.pointDTOList[0].lng,lat:e.pointDTOList[0].lat,zIndex:2};else{s="polygon";let a=[];e.pointDTOList.forEach((e=>{a.push(e.lng),a.push(e.lat)})),t={id:e.id,name:e.targetName,isRhumb:!0,polygon:a}}this.$events.$emit("xqjy-target",{data:t,type:s})},closeWindow(){this.windowShow=!1,this.$events.$emit("xqjy-target",{data:null,type:null}),this.$refs.xqjyTk.selectId=null},showWindowList(){let e=this.$refs.xqjyAr.tableDatas,t=[];e.forEach((e=>{e.select?e.params.some((e=>{e.select&&t.push({stripId:e.id,isSelected:2})})):e.params.length>0&&t.push({stripId:e.params[0].id,isSelected:2})})),(0,w.I$)(t).then((e=>{200===e.code?this.$message.success("确认成功!"):console.log(e.data)}))},addPlan(){let e=this.$refs.xqjyTk.selections;if(e.length<1)return void this.$message.error("未选择筹划任务。");let t=[];e.forEach((e=>{t.push(e.parentId)})),(0,w.qH)(t).then((e=>{console.log(e),200===e.code&&(this.$message.success("提交筹划成功"),this.$router.push({name:"xqchPage"}))}))},addStrip(e){let t=[];e.length>0&&e.forEach((e=>{if(e.pointDTOList&&e.pointDTOList.length>0){let s=[];e.pointDTOList.forEach((e=>{s.push(e.lng),s.push(e.lat)})),t.push({id:e.id,material:Cesium.Color.fromCssColorString("rgba(237,245,11,0.5)"),isRhumb:!1,polygon:s})}})),this.$events.$emit("xqjy-addwindow",t)},deleteStrip(e){this.$events.$emit("xqjy-deletewindow",e)}},mounted(){}}),_=b,x=(0,d.Z)(_,a,i,!1,null,"13e5cccc",null),C=x.exports},98098:function(e,t,s){s.d(t,{I$:function(){return n},oc:function(){return r},qH:function(){return o},r_:function(){return l}});var a=s(84471);const i="orbit-base-strip";function l(e){return(0,a.Z)({url:i+"/api/v1/strip/list",method:"get",params:e})}function n(e){return(0,a.Z)({url:i+"/api/v1/strip/post/selected",method:"get",params:e})}function o(e){return(0,a.Z)({url:i+"/api/demand/plan",method:"post",data:e})}function r(e){return(0,a.Z)({url:i+"/api/demand/submit",method:"post",data:e})}}}]);
- //# sourceMappingURL=893.8d286ad0.js.map
|