| | |
| | | <!--点击站点 跳转至风险模型页面 --> |
| | | <script> |
| | | import SubFlightInspection from '@/views/exception/components/SubFlightInspection.vue' |
| | | import CompFlightInspection from '@/views/exception/components/CompFlightInspection.vue' |
| | | import CompDataRiskModel from '@/views/risk_assessment/components/CompDataRiskModel.vue' |
| | | |
| | | export default { |
| | | components: { |
| | | SubFlightInspection |
| | | CompFlightInspection, |
| | | CompDataRiskModel |
| | | }, |
| | | data() { |
| | | return { |
| | | siteName: '', |
| | | month: '', |
| | | // 页标题 |
| | | title:'' |
| | | time: '', |
| | | // 时间类型 |
| | | timeType: '', |
| | | // 1代表风险模型 2代表飞行巡检 |
| | | jumpPage: -1 |
| | | } |
| | | }, |
| | | watch: {}, |
| | |
| | | next((vm) => { |
| | | // 通过 `vm` 访问组件实例 |
| | | vm.siteName = to.params.siteName |
| | | vm.month = to.params.month |
| | | vm.$nextTick(() => { |
| | | // console.log('midd11', vm.siteName, vm.month); |
| | | }) |
| | | vm.time = to.params.time |
| | | vm.timeType = to.params.timeType |
| | | vm.jumpPage = to.params.jumpPage |
| | | |
| | | vm.$nextTick(() => {}) |
| | | }) |
| | | }, |
| | | methods: { |
| | |
| | | <template> |
| | | <el-page-header @back="onBack"> |
| | | <template #content> |
| | | <span> 异常详情 </span> |
| | | <span v-if="jumpPage == '1'"> 风险模型 </span> |
| | | <span v-else-if="jumpPage == '2'"> 异常详情 </span> |
| | | </template> |
| | | </el-page-header> |
| | | |
| | | <SubFlightInspection :site-name="siteName" :month="month"> </SubFlightInspection> |
| | | <div v-show="jumpPage == '1'"> |
| | | <CompDataRiskModel :site-name="siteName" :time="time" :show-all="false"></CompDataRiskModel> |
| | | </div> |
| | | |
| | | <div v-show="jumpPage == '2'"> |
| | | <CompFlightInspection |
| | | :site-name="siteName" |
| | | :time="time" |
| | | :time-type="timeType" |
| | | :show-all="false" |
| | | > |
| | | </CompFlightInspection> |
| | | </div> |
| | | </template> |
| | | |
| | | <style scoped> |