12 |
- "use strict";(self["webpackChunkchouhua02"]=self["webpackChunkchouhua02"]||[]).push([[844],{35844:function(t,e,a){a.r(e),a.d(e,{default:function(){return Ht}});var l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xqch-contents"},[e("estimatePlan",{directives:[{name:"show",rawName:"v-show",value:t.estimatePlanVisible,expression:"estimatePlanVisible"}],on:{sentConflictCheck:t.getEstimatePlanVisible}}),e("xqchMain",{directives:[{name:"show",rawName:"v-show",value:t.xqchMainVisible,expression:"xqchMainVisible"}],on:{sentmodifyPlan:t.getxqchMainVisible}}),e("planConfirm",{directives:[{name:"show",rawName:"v-show",value:t.planConfirmVisible,expression:"planConfirmVisible"}]})],1)},i=[],s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xqch-content01"},[e("div",{staticStyle:{width:"100%",height:"100px"}}),t.commonFunction.getUserConfig(t.$store.state.userOwnMenus,400).available?e("div",{staticClass:"planEstimate-area"},[e("div",{staticClass:"planEstimate-title"}),e("div",{staticClass:"planEstimate-bottonArea"},[e("el-button",{staticClass:"planAdjustBtn",attrs:{size:"small",type:"text"}},[t._v("冲突情况检测")])],1),e("div",{staticClass:"planEstimate-table"},[e("xqchPlanEstimateTable",{attrs:{xqchPlanEstimateData:t.xqchPlanEstimateData}})],1)]):t._e(),t.commonFunction.getUserConfig(t.$store.state.userOwnMenus,401).available?e("div",{staticClass:"CHplan-area"},[e("div",{staticClass:"CHplan-title"}),e("div",{staticClass:"CHplan-table"},[e("xqchCHplanTable",{attrs:{xqchCHplanData:t.xqchCHplanData}})],1)]):t._e()])},n=[],o=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xqch-tableStyle"},[e("div",{staticClass:"planEstimateTable-content"},[e("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:"250",data:t.xqchPlanEstimateData,"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":t.handleRowStyle},on:{"row-click":t.handleRowClick,"row-dblclick":t.handRowDblClick}},[e("el-table-column",{attrs:{prop:"stepName",label:"名称",width:"80",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"satelliteCount",label:"卫星数",width:"50",align:"center"}}),e("el-table-column",{attrs:{prop:"resolvingPower",label:"分辨率",width:"60",align:"center"}}),e("el-table-column",{attrs:{prop:"observationMeans",label:"观测手段",width:"60",align:"center"}}),e("el-table-column",{attrs:{prop:"totalTimes",label:"总次数",width:"50",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"rateDay",label:"日频次",width:"50",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"earliestObservationTime",label:"最早观测时刻",width:"90",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"maximumInterval",label:"最大间隔",width:"90",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"minimumInterval",label:"最小间隔",width:"90",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"priority",label:"优先级",width:"50",align:"center"}})],1)],1)])},c=[],r={name:"xqchPlanEstimateTable",props:["xqchPlanEstimateData"],data(){return{tableData:[],currentPage:1,totalCount:1,pageSizes:[1,2,3,4],pageSize:5,normalBackground:"rgba(160, 160, 160, 0.3)",selectRowId:"",postPlanAdjustItem:{stepId:"",windowRelationDTOList:[]}}},computed:{xqchCHplanTableData(){return this.$store.state.xqchCHplanTableData}},methods:{handleRowStyle(t){return t.row.id===this.$store.state.xqchPGandCHsameId?{background:"#008df1",height:"30px"}:{background:this.normalBackground,height:"30px"}},handleRowClick(t){this.selectRowId=t.id,this.$store.dispatch("xqchPGandCHsameId",t.id),this.$store.dispatch("xqchPlanEstimateSelectRowTotalTimes",t.totalTimes);let e=this.xqchCHplanTableData.filter((e=>e.stepId===t.id)),a=[];e.forEach((t=>{a.push(t.windowId)})),this.$store.dispatch("xqchPlanEstimateVsCHPlans",e),this.$store.dispatch("xqchCHplanWindows",a),setTimeout((()=>{let t=this.$store.state.xqchPlanAdjustSelectionDatas,e=this.$store.state.xqchTransferSelectionData,a=[],l=[];var i=null;t.forEach((t=>{e.some((e=>{t.id===e.windowId&&(i={windowId:t.id,dataWindowId:e.id})})),null!==i&&a.push(i),i=null})),l.push({stepId:this.selectRowId,windowRelationDTOList:a}),console.log("**方案调整和数传列表匹配id:",a),console.log("**方案调整和数传列表匹配reqDTO:",l),this.$store.dispatch("postConfilctCheckData",l)}),1e3)},handRowDblClick(){this.$store.dispatch("xqchEstimatePlanToMainPageFlag",10),this.$store.dispatch("xqchEstimatePlanToMainPageFlag",1)},handleSizeChange(t){console.log(`每页 ${t} 条`)},handleCurrentChange(t){console.log(`当前页: ${t}`),this.currentPage=t}},mounted(){}},h=r,d=a(1001),p=(0,d.Z)(h,o,c,!1,null,"7dc33dac",null),m=p.exports,u=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xqch-tableStyle"},[e("div",{staticClass:"CHplanTable-content"},[e("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:"250",data:t.xqchCHplanData,"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":t.handleRowStyle}},[e("el-table-column",{attrs:{prop:"parentId",label:"编号",width:"80",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"targetName",label:"目标",width:"80",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"satelliteName",label:"卫星",width:"60",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"controlStationName",label:"测控站",width:"70",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"controlStartTime",label:"开始时间",width:"136",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"controlEndTime",label:"结束时间",width:"136",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"accessTime",label:"访问时间",width:"136",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"accessDuration",label:"时长(s)",width:"68",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"dataStationName",label:"数传站",width:"70",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"dataStartTime",label:"开始时间",width:"136",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"dataEndTime",label:"结束时间",width:"136",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"resolvingPower",label:"分辨率(m)",width:"86",align:"center"}}),e("el-table-column",{attrs:{prop:"sideSwayValue",label:"侧摆",width:"50",align:"center"}}),e("el-table-column",{attrs:{prop:"clothWith",label:"幅宽(km)",width:"80",align:"center"}})],1)],1)])},g=[],b={name:"xqchCHplanTable",props:["xqchCHplanData"],data(){return{tableData:[],currentPage:1,totalCount:1,pageSizes:[1,2,3,4],pageSize:8,normalBackground:"rgba(160, 160, 160, 0.3)",xqchSelecedItems:[]}},methods:{handleRowStyle(t){return console.log("@@@row.row.stepId",t.row.stepId),console.log("@@@this.$store.state.xqchPGandCHsameId:",this.$store.state.xqchPGandCHsameId),t.row.stepId===this.$store.state.xqchPGandCHsameId?{background:"#008df1",height:"30px"}:{background:this.normalBackground,height:"30px"}},handleSizeChange(t){console.log(`每页 ${t} 条`)},handleCurrentChange(t){console.log(`当前页: ${t}`),this.currentPage=t}},computed:{clickedXQitems(){return this.$store.state.xqchPGandCHsameId}},watch:{clickedXQitems(){this.$store.dispatch("xqchSelecedItems",[])},xqchSelecedItems(){console.log("筹划方案已选条目:",this.xqchSelecedItems)}},mounted(){}},w=b,f=(0,d.Z)(w,u,g,!1,null,"7fe73121",null),C=f.exports,x=a(84471);const q={base:"orbit-base-strip"};function v(t){return(0,x.Z)({url:q.base+"/api/scheme/v1/list",method:"get",params:t})}function D(t){return(0,x.Z)({url:q.base+"/api/scheme/v1/step/detail/list",method:"get",params:t})}function S(t){return(0,x.Z)({url:q.base+"/api/scheme/v1/step/window/list",method:"get",params:t})}function T(t){return(0,x.Z)({url:q.base+"/api/scheme/v1/step/satellite/mutex/list",method:"get",params:t})}function k(t){return(0,x.Z)({url:q.base+"/api/scheme/v1/step/pass/mutex/list",method:"get",params:t})}function P(t){return(0,x.Z)({url:q.base+"/api/scheme/v1/step/window/pass/list",method:"get",params:t})}function y(t){return(0,x.Z)({url:q.base+"/api/scheme/v1/step/window/relation/update",method:"post",data:t})}function E(t){return(0,x.Z)({url:q.base+"/api/scheme/v1/step/window/confirm",method:"post",data:t})}var I={name:"estimatePlan",components:{xqchCHplanTable:C,xqchPlanEstimateTable:m},data(){return{xqchPlanEstimateData:[],xqchPlanEstimateVisible:!1,xqchCHplanData:[],xqchCHplanVisible:!1}},watch:{$route(t){"xqchPage"===t.name&&(this.getTablePlanEstimateDataFromBackend(),this.getTableCHPlanDataFromBackend())}},mounted(){this.getTablePlanEstimateDataFromBackend(),this.getTableCHPlanDataFromBackend()},methods:{conflictCheck(){this.$emit("sentConflictCheck",1)},getTablePlanEstimateDataFromBackend(){v().then((t=>{console.log("需求筹划第一页面,方案评估数据:",t.resp),this.xqchPlanEstimateData=t.resp,this.xqchPlanEstimateVisible=!0}))},getTableCHPlanDataFromBackend(){D().then((t=>{console.log("需求筹划第一页面,筹划方案数据:",t.resp),this.xqchCHplanData=t.resp,this.xqchCHplanVisible=!0}))}}},H=I,$=(0,d.Z)(H,s,n,!1,null,"4766ec3a",null),F=$.exports,_=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xqch-content02"},[e("div",{staticClass:"left-area"},[e("div",{staticClass:"leftUp-area"},[e("div",{staticClass:"planEstimate-title"}),e("div",{staticClass:"planEstimate-area"},[e("el-button",{class:t.clickConflict?"xqch-content_unselectBtn":"",attrs:{type:"primary",size:"mini",disabled:t.clickConflict},on:{click:t.conflictTest}},[t._v("冲突情况检测 ")]),e("el-button",{class:t.clickConflict?"":"xqch-content_unselectBtn",attrs:{type:"primary",size:"mini",disabled:!t.clickConflict},on:{click:t.modifyPlan}},[t._v("修改方案 ")]),t.clickConflict?e("div",{staticClass:"xqch-modifyPlan_filterBtn"},[e("el-button",{class:0==t.selectFilterBtn?"":"xqch-content_unselectBtn",attrs:{type:"text",size:"mini"},on:{click:function(e){return t.modifyPlanFilter(0)}}},[t._v(" 优先数量 ")]),e("el-button",{class:1==t.selectFilterBtn?"":"xqch-content_unselectBtn",attrs:{type:"text",size:"mini"},on:{click:function(e){return t.modifyPlanFilter(1)}}},[t._v(" 高优先级 ")])],1):t._e(),e("xqchPlanEstimateTable",{attrs:{xqchPlanEstimateData:t.xqchPlanEstimateData}})],1)]),e("div",{staticClass:"leftDown-area"},[e("div",{staticClass:"adjustPlan-title"}),e("div",{staticClass:"adjustPlan-area"},[e("xqchPlanAdjustTable")],1)])]),e("div",{staticClass:"right-area"},[e("div",{staticClass:"rightUp-area"},[e("div",{staticClass:"rightUpleft-area"},[e("div",{staticStyle:{width:"100%",height:"80px"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:t.conflictAreaVisible,expression:"conflictAreaVisible"}],staticClass:"conflict-area",attrs:{type:t.selectConflictType}},[e("div",{staticClass:"conflict-btnPanel"},[e("div",{staticClass:"conflict-btn",on:{click:function(e){return t.switchConflictType("wx")}}}),e("div",{staticClass:"conflict-btn",on:{click:function(e){return t.switchConflictType("station")}}})]),e("xqglTableWXConfilct",{directives:[{name:"show",rawName:"v-show",value:"wx"==t.selectConflictType,expression:"selectConflictType == 'wx'"}],attrs:{WXConfilctData:t.WXConfilctData}}),e("xqglTableStationConfilct",{directives:[{name:"show",rawName:"v-show",value:"station"==t.selectConflictType,expression:"selectConflictType == 'station'"}],attrs:{StationConfilctData:t.StationConfilctData}})],1)]),e("div",{staticClass:"rightUpright-area"},[e("div",{staticClass:"rightUpright-area_content"},[e("div",{staticClass:"measure-title"}),e("div",{staticClass:"measure-table"},[e("xqchMeasureControlTable")],1)]),e("div",{staticClass:"rightUpright-area_content"},[e("div",{staticClass:"transfer-title"}),e("div",{staticClass:"transfer-table"},[e("xqchtransferTable")],1)])])]),e("div",{staticClass:"rightDown-area"},[e("div",{staticClass:"CHplan-title"}),e("div",{staticClass:"CHplan-table"},[e("xqchCHplanTable",{attrs:{xqchCHplanData:t.xqchCHplanData}})],1)])])])},B=[],A=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xqch-tableStyle"},[e("div",{staticClass:"planAdjustTable-content"},[e("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:"380",data:t.xqchPlanAdjustData,"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":t.handleRowStyle},on:{"selection-change":t.handleSelectionChange}},[e("el-table-column",{attrs:{type:"selection",selectable:t.selectEnable,align:"center",width:"40"}}),e("el-table-column",{attrs:{prop:"satellite",label:"卫星",width:"130",align:"center"}}),e("el-table-column",{attrs:{prop:"visitTime",label:"访问时刻",width:"130",align:"center"}}),e("el-table-column",{attrs:{prop:"time",label:"时长",width:"80",align:"center"}}),e("el-table-column",{attrs:{prop:"resolution",label:"分辨率",width:"80",align:"center"}})],1)],1)])},R=[],V={name:"xqchPlanAdjustTable",data(){return{multipleSelection:[],flag:null,slectionFlag:!0,multipleSelectionDatas:[],xqchPlanAdjustData:[],normalBackground:"rgba(160, 160, 160, 0.3)",originSelectionFlag:!1}},methods:{handleRowStyle(t){let e=this.$store.state.xqchCHplanWindows,a={background:this.normalBackground,height:"30px"},l=this.$refs.multipleTable.selection;return e.some((e=>{if(t.row.id===e)return a={background:t.row.colorid,height:"30px"},!0})),l.forEach((e=>{t.row.id===e.id&&(a={background:t.row.colorid,height:"30px"})})),a},toggleClicked(){console.log("**方案调整选中数据:",this.$store.state.xqchPlanAdjustSelectionDatas),console.log("**数传列表选中数据:",this.$store.state.xqchTransferSelectionData);let t=this.$store.state.xqchPlanAdjustSelectionDatas,e=this.$store.state.xqchTransferSelectionData,a=[];var l=null;t.forEach((t=>{e.some((e=>{t.id===e.windowId&&(l={windowId:t.id,dataWindowId:e.id})})),null!==l&&a.push(l),l=null})),console.log("**方案调整和数传列表匹配id:",a)},toggleSelection(t){console.log("tests"+t),t?t.forEach((t=>{this.$refs.multipleTable.toggleRowSelection(t)})):this.$refs.multipleTable.clearSelection()},handleSelectionChange(t){0!==t.length&&this.$store.dispatch("xqchPlanAdjustSelectionDatas",t),console.log("方案调整,multipleSelection:",t);let e=[];t.forEach((t=>{e.push(t.id)})),this.$store.dispatch("xqchPlanAdjustWindowIds",e);let a=this.$store.state.xqchPlanEstimateSelectRowTotalTimes;t.length>=a?(this.multipleSelection=t,this.flag=1):this.flag=0},selectEnable(t){console.log("selectEnable:",t);let e=this.slectionFlag;return t.selectid&&(e=!0),e},getTableDataFromBackend(t){if(console.log("@@方案评估信息@@stepId:",t),""===t)return;let e={stepId:this.$store.state.xqchPGandCHsameId};S(e).then((t=>{console.log("需求筹划第二页面,方案调整数据:",t.resp);let e=[];t.resp.forEach((t=>{e.push({satellite:t.satelliteName+"\n侧摆"+t.sideSwayValue,visitTime:t.accessTime+"\n覆盖"+t.coverage,time:t.accessDuration+"\n俯仰"+t.pitchAngle,resolution:t.resolvingPower,id:t.id,colorid:this.commonFunction.createRandomRGB()})})),console.log("方案调整数据,表格显示数据:",e),this.xqchPlanAdjustData=e,this.originSelectionFlag=!this.originSelectionFlag}))}},computed:{planEstimateClickedId(){return this.$store.state.xqchPGandCHsameId},xqchCHplanTableData(){return this.$store.state.xqchCHplanTableData}},watch:{flag(t){this.multipleSelection.forEach((t=>{t.selectid&&delete t.selectid})),1===t&&(this.multipleSelection.forEach((t=>{t["selectid"]=1})),this.slectionFlag=!1),0===t&&(this.slectionFlag=!0)},planEstimateClickedId:{handler(t){console.log("选中方案评估中的该行的id:",t),this.getTableDataFromBackend(t)},immediate:!0},originSelectionFlag(t){console.log("方案调整已经更新数据:",t);let e=this.$store.state.xqchCHplanWindows;this.multipleSelectionDatas=[],e.forEach((t=>{this.xqchPlanAdjustData.forEach((e=>{e.id===t&&this.multipleSelectionDatas.push(e)}))})),console.log("方案调整,多选数据,this.multipleSelectionDatas:",this.multipleSelectionDatas);let a=this;setTimeout((()=>{a.toggleSelection(a.multipleSelectionDatas)}),100)}},mounted(){this.getTableDataFromBackend(this.$store.state.xqchPGandCHsameId)}},j=V,M=(0,d.Z)(j,A,R,!1,null,"6423a862",null),W=M.exports,O=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xqch-tableStyle"},[e("div",{staticClass:"measureControlTable-content"},[e("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:"180",data:t.xqchMeasureControlData,"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":t.handleRowStyle},on:{"selection-change":t.handleChangeSelect}},[e("el-table-column",{attrs:{type:"selection",selectable:t.selectEnable,align:"center",width:"48"}}),e("el-table-column",{attrs:{prop:"satelliteCode",label:"卫星编号",width:"80",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"circleNumber",label:"圈号",width:"50",align:"center"}}),e("el-table-column",{attrs:{prop:"startTime",label:"开始时间",width:"140",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"duration",label:"时刻",width:"70",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"stationCode",label:"测控站",width:"64",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"passStatus",label:"状态",width:"50",align:"center"}})],1)],1)])},N=[],Z={name:"xqchMeasureControl",data(){return{selfwindowId:"",xqchMeasureControlData:[],normalBackground:"rgba(160, 160, 160, 0.3)",originSelectionFlag:!1,multipleSelections:[],selfTableGroupData:[]}},methods:{handleRowStyle(t){return t.row.colorid?{background:t.row.colorid,height:"30px"}:{background:this.normalBackground,height:"30px"}},handleChangeSelect(){let t=this.$refs.multipleTable.selection;const e=(t,e)=>t.concat(e).filter(((t,e,a)=>a.indexOf(t)===a.lastIndexOf(t)));let a=[];t.length>0&&t.forEach((t=>{a.push(t.windowId),console.log("测控被选:",t)})),a=Array.from(new Set(a));const l=e(this.planAdjustWindowIds,a);this.xqchMeasureControlData.length>0&&this.xqchMeasureControlData.forEach((t=>{t.selectbox=!1})),this.xqchMeasureControlData.length>0&&this.xqchMeasureControlData.forEach((e=>{-1!==t.indexOf(e)&&(e.selectbox=!0),l.length>0&&l.forEach((t=>{e.windowId===t&&(e.selectbox=!0)}))}))},selectEnable(t){return t.selectbox},toggleSelection(t){let e=[];this.planAdjustSelectionDatas.forEach((t=>{e.push(t.id)}));let a=[];const l=(t,e)=>t.concat(e).filter(((t,e,a)=>a.indexOf(t)===a.lastIndexOf(t)));if(t){t.forEach((t=>{1==t.isDefalut&&(this.$refs.multipleTable.toggleRowSelection(t),a.push(t.windowId))}));const i=l(e,a);i.length>0&&i.forEach((e=>{const a=t.filter((t=>t.windowId===e));this.$refs.multipleTable.toggleRowSelection(a[0])}))}else this.$refs.multipleTable.clearSelection()},getTableDataFromBackend(t){if(0===t.length)return this.xqchMeasureControlData=[],void(this.originSelectionFlag=!this.originSelectionFlag);let e={windowIds:t.toString(),passType:1},a=this;P(e).then((t=>{let e=[];t.resp.forEach((t=>{this.planAdjustSelectionDatas.forEach((e=>{t.windowId===e.id&&(t.colorid=e.colorid)})),e.push(t)})),console.log("添加了颜色id的,测控列表数据:",e),a.xqchMeasureControlData=e,a.originSelectionFlag=!this.originSelectionFlag}))}},computed:{planAdjustWindowIds(){return this.$store.state.xqchPlanAdjustWindowIds},planAdjustSelectionDatas(){return this.$store.state.xqchPlanAdjustSelectionDatas}},watch:{planAdjustWindowIds(t){console.log("查询测控列表的windowid:",t),this.getTableDataFromBackend(t)},originSelectionFlag(){let t=this;setTimeout((()=>{let e=t.xqchMeasureControlData.filter((t=>t.hasOwnProperty("colorid")));t.toggleSelection(e)}),100)}},mounted(){this.getTableDataFromBackend(this.planAdjustWindowIds)}},G=Z,z=(0,d.Z)(G,O,N,!1,null,"7d41aaa4",null),X=z.exports,U=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xqch-tableStyle"},[e("div",{staticClass:"transferTable-content"},[e("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:"180",data:t.xqchTransferData,"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":t.handleRowStyle},on:{"selection-change":t.handleSelectionChange}},[e("el-table-column",{attrs:{type:"selection",selectable:t.selectEnable,align:"center",width:"48"}}),e("el-table-column",{attrs:{prop:"satelliteCode",label:"卫星编号",width:"80",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"circleNumber",label:"圈号",width:"50",align:"center"}}),e("el-table-column",{attrs:{prop:"startTime",label:"开始时间",width:"140",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"duration",label:"时刻",width:"70",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"stationCode",label:"数传站",width:"64",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"passStatus",label:"状态",width:"50",align:"center"}})],1)],1)])},L=[],Q={name:"xqchTransferTable",data(){return{selfwindowId:"",xqchTransferData:[],normalBackground:"rgba(160, 160, 160, 0.3)",originSelectionFlag:!1,multipleSelections:[]}},methods:{handleRowStyle(t){return t.row.colorid?{background:t.row.colorid,height:"30px"}:{background:this.normalBackground,height:"30px"}},handleSelectionChange(){let t=this.$refs.multipleTable.selection;const e=(t,e)=>t.concat(e).filter(((t,e,a)=>a.indexOf(t)===a.lastIndexOf(t)));let a=[];t.length>0&&t.forEach((t=>{a.push(t.windowId),console.log("数传被选:",t)})),a=Array.from(new Set(a));const l=e(this.planAdjustWindowIds,a);this.xqchTransferData.length>0&&this.xqchTransferData.forEach((t=>{t.selectbox=!1})),this.xqchTransferData.length>0&&this.xqchTransferData.forEach((e=>{-1!==t.indexOf(e)&&(e.selectbox=!0),l.length>0&&l.forEach((t=>{e.windowId===t&&(e.selectbox=!0)}))}))},selectEnable(t){return t.selectbox},toggleSelection(t){let e=[];this.planAdjustSelectionDatas.forEach((t=>{e.push(t.id)}));let a=[];const l=(t,e)=>t.concat(e).filter(((t,e,a)=>a.indexOf(t)===a.lastIndexOf(t)));if(t){t.forEach((t=>{1==t.isDefalut&&(this.$refs.multipleTable.toggleRowSelection(t),a.push(t.windowId))}));const i=l(e,a);i.length>0&&i.forEach((e=>{const a=t.filter((t=>t.windowId===e));this.$refs.multipleTable.toggleRowSelection(a[0])}))}else this.$refs.multipleTable.clearSelection()},getTableDataFromBackend(t){if(0===t.length)return this.originSelectionFlag=!this.originSelectionFlag,void(this.xqchTransferData=[]);let e={windowIds:t.toString(),passType:2},a=this;P(e).then((t=>{let e=[];t.resp.forEach((t=>{this.planAdjustSelectionDatas.forEach((e=>{t.windowId===e.id&&(t.colorid=e.colorid)})),e.push(t)})),a.originSelectionFlag=!this.originSelectionFlag,a.xqchTransferData=e}))}},computed:{planAdjustWindowIds(){return this.$store.state.xqchPlanAdjustWindowIds},planAdjustSelectionDatas(){return this.$store.state.xqchPlanAdjustSelectionDatas}},watch:{planAdjustWindowIds(t){this.getTableDataFromBackend(t)},originSelectionFlag(){let t=this;setTimeout((()=>{let e=t.xqchTransferData.filter((t=>t.hasOwnProperty("colorid")));t.toggleSelection(e)}),100)}},mounted(){this.getTableDataFromBackend(this.planAdjustWindowIds)}},J=Q,K=(0,d.Z)(J,U,L,!1,null,"3c5725ad",null),Y=K.exports,tt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xqch-tableStyle"},[e("div",{staticClass:"planEstimateTable-content"},[e("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:"250",data:t.xqchPlanEstimateData,"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":t.handleRowStyle},on:{"row-click":t.handleRowClick}},[e("el-table-column",{attrs:{prop:"stepName",label:"名称",width:"80",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"satelliteCount",label:"卫星数",width:"50",align:"center"}}),e("el-table-column",{attrs:{prop:"resolvingPower",label:"分辨率",width:"60",align:"center"}}),e("el-table-column",{attrs:{prop:"observationMeans",label:"观测手段",width:"60",align:"center"}}),e("el-table-column",{attrs:{prop:"totalTimes",label:"总次数",width:"50",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"rateDay",label:"日频次",width:"50",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"earliestObservationTime",label:"最早观测时刻",width:"90",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"maximumInterval",label:"最大间隔",width:"90",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"minimumInterval",label:"最小间隔",width:"90",align:"center","show-overflow-tooltip":""}}),e("el-table-column",{attrs:{prop:"priority",label:"优先级",width:"50",align:"center"}})],1)],1)])},et=[],at={name:"xqchPlanEstimateTable",props:["xqchPlanEstimateData"],data(){return{normalBackground:"rgba(160, 160, 160, 0.3)",selectRowId:"",postPlanAdjustItem:{stepId:"",windowRelationDTOList:[]}}},computed:{xqchCHplanTableData(){return this.$store.state.xqchCHplanTableData}},methods:{handleRowStyle(t){return t.row.id===this.$store.state.xqchPGandCHsameId?{background:"#008df1",height:"30px"}:{background:this.normalBackground,height:"30px"}},handleRowClick(t){this.selectRowId=t.id,this.$store.dispatch("xqchPGandCHsameId",t.id),this.$store.dispatch("xqchPlanEstimateSelectRowTotalTimes",t.totalTimes);let e=this.xqchCHplanTableData.filter((e=>e.stepId===t.id)),a=[];e.forEach((t=>{a.push(t.windowId)})),this.$store.dispatch("xqchPlanEstimateVsCHPlans",e),this.$store.dispatch("xqchCHplanWindows",a),setTimeout((()=>{let t=this.$store.state.xqchPlanAdjustSelectionDatas,e=this.$store.state.xqchTransferSelectionData,a=[],l=[];var i=null;t.forEach((t=>{e.some((e=>{t.id===e.windowId&&(i={windowId:t.id,dataWindowId:e.id})})),null!==i&&a.push(i),i=null})),l.push({stepId:this.selectRowId,windowRelationDTOList:a}),console.log("**方案调整和数传列表匹配id:",a),console.log("**方案调整和数传列表匹配reqDTO:",l),this.$store.dispatch("postConfilctCheckData",l)}),500)}},mounted(){}},lt=at,it=(0,d.Z)(lt,tt,et,!1,null,"502371dc",null),st=it.exports,nt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xqch-tableStyle"},[e("div",{staticClass:"wxconfilct-title"},t._l(t.cols,(function(a,l){return e("div",{key:l,staticClass:"wxconfilct-title_item",style:{width:t.widths[l]+"px"}},[t._v(" "+t._s(a.name)+" ")])})),0),e("el-collapse",t._l(t.WXConfilctData,(function(a,l){return e("el-collapse-item",{key:l},[e("template",{slot:"title"},[e("div",{staticClass:"wxconfilct-content"},t._l(a,(function(a,l,i){return e("div",{key:l,staticClass:"wxconfilct-content_item",style:{width:t.widths[i]+"px"}},["children"!=l?[t._v(t._s(a))]:t._e()],2)})),0)]),a.hasOwnProperty("children")?t._l(a.children,(function(a,l){return e("div",{key:l,staticClass:"wxconfilct-content"},t._l(a,(function(a,l,i){return e("div",{key:l,staticClass:"wxconfilct-content_item",style:{width:t.widths[i]+"px"}},[t._v(t._s(a)+" ")])})),0)})):t._e()],2)})),1)],1)},ot=[],ct={name:"xqglTableWXconfilct",props:["WXConfilctData"],data(){return{widths:[100,100,190,190],cols:[{prop:"name",name:"需求名称"},{prop:"id",name:"卫星代号"},{prop:"stime",name:"侦察开始时间"},{prop:"etime",name:"侦察结束时间"}],tableDatas:[{name:"需求1",id:"1",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04",children:[{name:"需求1",id:"13",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"},{name:"需求1",id:"15",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"}]},{name:"需求2",id:"2",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04",children:[{name:"需求21",id:"23",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"},{name:"需求22",id:"25",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"}]},{name:"需求2",id:"2",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04",children:[{name:"需求21",id:"23",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"},{name:"需求22",id:"25",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"}]},{name:"需求2",id:"2",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04",children:[{name:"需求21",id:"23",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"},{name:"需求22",id:"25",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"}]},{name:"需求2",id:"2",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04",children:[{name:"需求21",id:"23",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"},{name:"需求22",id:"25",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"}]},{name:"需求2",id:"2",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04",children:[{name:"需求21",id:"23",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"},{name:"需求22",id:"25",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"}]},{name:"需求2",id:"2",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04",children:[{name:"需求21",id:"23",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"},{name:"需求22",id:"25",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"}]},{name:"需求2",id:"2",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04",children:[{name:"需求21",id:"23",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"},{name:"需求22",id:"25",stime:"2022-01-20 02:03:04",etime:"2022-01-20 02:03:04"}]}]}},methods:{handleClick(t,e,a){console.log("row, column, event:",t,e,a),this.leftClickSentData["rowClickFlag"]="1",this.leftClickSentData["rowData"]=t,this.$emit("getValues",this.leftClickSentData)},rightClick(t,e,a){console.log("row, column, event:",t,e,a),this.rightClickSentData["event"]=a,this.$emit("getRightClickValue",this.rightClickSentData)}},mounted(){}},rt=ct,ht=(0,d.Z)(rt,nt,ot,!1,null,"55b3ae8a",null),dt=ht.exports,pt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xqch-tableStyle"},[e("div",{staticClass:"sconfilct-title"},t._l(t.cols,(function(a,l){return e("div",{key:l,staticClass:"sconfilct-title_item",style:{width:t.widths[l]+"px"}},[t._v(" "+t._s(a.name)+" ")])})),0),e("el-collapse",t._l(t.StationConfilctData,(function(a,l){return e("el-collapse-item",{key:l},[e("template",{slot:"title"},[e("div",{staticClass:"sconfilct-content"},t._l(a,(function(a,l,i){return e("div",{key:l,staticClass:"sconfilct-content_item",style:{width:t.widths[i]+"px"},attrs:{title:"children"!=l?a:""}},["children"!=l?[t._v(t._s(a))]:t._e()],2)})),0)]),a.hasOwnProperty("children")?t._l(a.children,(function(a,l){return e("div",{key:l,staticClass:"sconfilct-content"},t._l(a,(function(a,l,i){return e("div",{key:l,staticClass:"sconfilct-content_item",style:{width:t.widths[i]+"px"},attrs:{title:a}},[t._v(t._s(a)+" ")])})),0)})):t._e()],2)})),1)],1)},mt=[],ut={name:"xqglTableStationConfilct",props:["StationConfilctData"],data(){return{widths:[90,90,90,150,150],cols:[{prop:"name",name:"需求名称"},{prop:"id",name:"卫星代号"},{prop:"saddr",name:"站址"},{prop:"stime",name:"数传开始时间"},{prop:"etime",name:"数传结束时间"}],tableDatas:[]}},methods:{handleClick(t,e,a){console.log("row, column, event:",t,e,a),this.leftClickSentData["rowClickFlag"]="1",this.leftClickSentData["rowData"]=t,this.$emit("getValues",this.leftClickSentData)},rightClick(t,e,a){console.log("row, column, event:",t,e,a),this.rightClickSentData["event"]=a,this.$emit("getRightClickValue",this.rightClickSentData)}},mounted(){}},gt=ut,bt=(0,d.Z)(gt,pt,mt,!1,null,"8aa35f1c",null),wt=bt.exports,ft={name:"xqchMain",components:{xqchPlanAdjustTable:W,xqchMeasureControlTable:X,xqchtransferTable:Y,xqchCHplanTable:C,xqchPlanEstimateTable:st,xqglTableWXConfilct:dt,xqglTableStationConfilct:wt},data(){return{conflictAreaVisible:!1,clickConflict:!1,selectFilterBtn:null,selectConflictType:"wx",xqchPlanEstimateData:[],xqchCHplanData:[],WXConfilctData:[],StationConfilctData:[]}},mounted(){this.getTablePlanEstimateDataFromBackend(),this.getTableCHPlanDataFromBackend(),this.getTableSatelliteConfilctDataFromBackend(),this.getTableStationConfilctDataFromBackend()},methods:{conflictTest(){this.conflictAreaVisible=!0,this.clickConflict=!0,console.log("**冲突检测,post后端所需数据:",this.$store.state.postConfilctCheckData);let t=this.$store.state.postConfilctCheckData;y(t).then((t=>{"操作成功"===t.resp.info&&(this.getTableSatelliteConfilctDataFromBackend(),this.getTableStationConfilctDataFromBackend())}))},modifyPlan(){null!=this.selectFilterBtn?(this.$emit("sentmodifyPlan",2),E().then((t=>{console.log("方案修改,后端正常返回值!")})),this.$store.dispatch("xqchAdjustPlanStatus",!this.$store.state.xqchAdjustPlanStatus)):this.$message.error("先选择类型")},modifyPlanFilter(t){this.selectFilterBtn=t},switchConflictType(t){this.selectConflictType=t},getTablePlanEstimateDataFromBackend(){v().then((t=>{console.log("需求筹划第二页面,方案评估数据:",t.resp),this.xqchPlanEstimateData=t.resp,this.xqchPlanEstimateVisible=!0}))},getTableCHPlanDataFromBackend(){D().then((t=>{console.log("需求筹划第二页面,筹划方案数据:",t.resp),this.xqchCHplanData=t.resp,this.xqchCHplanVisible=!0,this.$store.dispatch("xqchCHplanTableData",this.xqchCHplanData)}))},confilctDataRestructure(t){let e=[],a=null;return t.forEach((t=>{t instanceof Array&&(a=t[0],a.children=t.slice(1,t.length),e.push(a)),a=null})),e},getTableSatelliteConfilctDataFromBackend(){T().then((t=>{200==t.code&&(this.WXConfilctData=this.confilctDataRestructure(t.resp))}))},getTableStationConfilctDataFromBackend(){k().then((t=>{200==t.code?this.StationConfilctData=this.confilctDataRestructure(t.resp):this.StationConfilctData=[]}))}}},Ct=ft,xt=(0,d.Z)(Ct,_,B,!1,null,"27eb21d7",null),qt=xt.exports,vt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xqch-content03"},[e("div",{staticClass:"planEstimate-area"},[e("div",{staticClass:"planEstimate-bottonArea"},[e("el-button",{staticClass:"planAdjustBtn",attrs:{size:"small",type:"primary"},on:{click:t.confirmPlan}},[t._v("确认方案")])],1),e("div",{staticClass:"planEstimate-table"},[e("xqchPlanEstimateTable",{directives:[{name:"show",rawName:"v-show",value:t.xqchPlanEstimateVisible,expression:"xqchPlanEstimateVisible"}],attrs:{xqchPlanEstimateData:t.xqchPlanEstimateData}})],1)]),e("div",{staticClass:"CHplan-area"},[e("div",{staticClass:"CHplan-title"}),e("div",{staticClass:"CHplan-table"},[e("xqchCHplanTable",{directives:[{name:"show",rawName:"v-show",value:t.xqchCHplanVisible,expression:"xqchCHplanVisible"}],attrs:{xqchCHplanData:t.xqchCHplanData}})],1)])])},Dt=[],St={name:"planConfirm",components:{xqchCHplanTable:C,xqchPlanEstimateTable:st},data(){return{xqchPlanEstimateData:[],xqchPlanEstimateVisible:!1,xqchCHplanData:[],xqchCHplanVisible:!1,planConfirmIds:[]}},mounted(){},computed:{xqchAdjustPlanStatus(){return this.$store.state.xqchAdjustPlanStatus}},watch:{xqchAdjustPlanStatus(){this.getTablePlanEstimateDataFromBackend(),this.getTableCHPlanDataFromBackend()}},methods:{confirmPlan(){const t=this.planConfirmIds;E(t).then((t=>{200===t.code&&this.$message({message:"方案确认成功",type:"success",showClose:!0})}))},getTablePlanEstimateDataFromBackend(){v().then((t=>{200===t.code&&(console.log("需求筹划第三页面,方案评估数据:",t.resp),this.xqchPlanEstimateData=t.resp,this.xqchPlanEstimateVisible=!0,this.xqchPlanEstimateData.forEach((t=>{this.planConfirmIds.push(t.id)})))}))},getTableCHPlanDataFromBackend(){this.$store.state("xqchPGandCHsameId");D().then((t=>{200===t.code&&(console.log("需求筹划第三页面,筹划方案数据:",t.resp),this.xqchCHplanData=t.resp,this.xqchCHplanVisible=!0)}))}}},Tt=St,kt=(0,d.Z)(Tt,vt,Dt,!1,null,"3b1290e2",null),Pt=kt.exports,yt={name:"xqchPage",components:{estimatePlan:F,xqchMain:qt,planConfirm:Pt},data(){return{estimatePlanVisible:!0,xqchMainVisible:!1,planConfirmVisible:!1,ThreeComponentsStatus:null}},methods:{getEstimatePlanVisible(t){this.ThreeComponentsStatus=t},getxqchMainVisible(t){this.ThreeComponentsStatus=t}},computed:{xqchEstimatePlanToMainPageFlag(){return this.$store.state.xqchEstimatePlanToMainPageFlag}},watch:{xqchEstimatePlanToMainPageFlag(t){this.ThreeComponentsStatus=t},ThreeComponentsStatus(t){switch(t){case 1:this.estimatePlanVisible=!1,this.xqchMainVisible=!0,this.planConfirmVisible=!1;break;case 2:this.estimatePlanVisible=!1,this.xqchMainVisible=!1,this.planConfirmVisible=!0;break;default:break}}},mounted(){}},Et=yt,It=(0,d.Z)(Et,l,i,!1,null,"c8dc3568",null),Ht=It.exports}}]);
- //# sourceMappingURL=844.c93dbc5c.js.map
|