| | |
| | | <div style="width: 1200px; height: 750px" v-show="isPumpDetail"> |
| | | <LXBChart ref="lxbChartCtrl"></LXBChart> |
| | | </div> |
| | | <el-empty description="暂无性能曲线信息" v-show="!isPumpDetail" /> |
| | | <img width="1200" height="auto" :src="product.Chart" v-if="isFan" /> |
| | | <el-empty description="暂无性能曲线信息" v-show="!isPumpDetail && !isFan" /> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="变速曲线" name="params"> |
| | | <!-- <div style="width: 1200px; height: 750px"></div> --> |
| | |
| | | <el-empty description="暂无变速曲线信息" v-show="!isPumpDetail" /> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="选型报告" name="SelectReport"> |
| | | <el-empty description="暂无报告" /> |
| | | <img width="1200" height="auto" :src="product.SelectReport" v-if="isFan || isPumpDetail" /> |
| | | <el-empty description="暂无报告" v-show="!isPumpDetail && !isFan" /> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="测试报告" name="certificate"> |
| | | <div class="p-6 flex justify-center"> |
| | |
| | | import { useRoute, useRouter } from 'vue-router'; |
| | | import axios from 'axios'; |
| | | import pumpDetailInfo from './mock/DetailsInfo'; |
| | | import pumpDetailInfo_WQ from './mock/DetailsInfo_WQ'; |
| | | import LXBChart from '@/components/Chart/LXBChart.vue'; |
| | | import MultiSpeedChart from '@/components/Chart/MultiSpeedChart.vue'; |
| | | import prop from './components/prop.vue'; |
| | |
| | | const showBuyDialog = ref(false); |
| | | |
| | | const isPumpDetail = ref(false); |
| | | |
| | | const isFan = ref(false); |
| | | const orderForm = ref({ |
| | | name: '', |
| | | phone: '', |
| | |
| | | if (savedProduct) { |
| | | const productData = JSON.parse(savedProduct); |
| | | productDataRef.value = productData; |
| | | |
| | | // 合并默认值和保存的产品数据 |
| | | product.value = { |
| | | ...product.value, |
| | |
| | | }, |
| | | }; |
| | | isPumpDetail.value = productData.Id.includes('Pupm') ? true : false; |
| | | if (product.value.model.includes('DSWQ') && isPumpDetail.value) { |
| | | product.value.SelectReport = 'static/EecProductData/image/1/DSWQ_SelectReport.png'; |
| | | } |
| | | if (product.value.model.substring(0, 3).includes('DRL') && isPumpDetail.value) { |
| | | product.value.SelectReport = 'static/EecProductData/image/1/DRL_SelectReport.png'; |
| | | } |
| | | |
| | | isFan.value = productData.Id.includes('FJ') ? true : false; |
| | | if (isFan.value) { |
| | | product.value.Chart = 'static/EecProductData/image/3/fan_chart.png'; |
| | | product.value.SelectReport = 'static/EecProductData/image/3/SelectReport.png'; |
| | | } |
| | | } |
| | | initDetailData(); |
| | | }); |
| | |
| | | isAdjustCoordUnitByUserSetting: false, |
| | | }; |
| | | let pumpInfoData = pumpDetailInfo; |
| | | if (product.value.model.includes('DSWQ')) { |
| | | pumpInfoData = pumpDetailInfo_WQ; |
| | | } |
| | | let pumpBaseInfo = { |
| | | CorpID: 69, |
| | | SeriesID: 'C69S4', |
| | |
| | | multiSpeedChartCtrl.value.setWrkCurveInfo(curve); |
| | | }, |
| | | }; |
| | | if(!isPumpDetail.value)return; |
| | | if (!isPumpDetail.value) return; |
| | | lxbChartCtrl.value.initPumpInfoData(0, pumpInfoData, cb_dict, m_userUnitSetting); |
| | | multiSpeedChartCtrl.value.initPumpInfoData(0, pumpInfoData, () => {}, m_userUnitSetting); |
| | | //初始化属性控件 |