| | |
| | | <el-col :span="4"> |
| | | <div style="margin-right: 5px;height: calc(88vh - 100px)" v-if="isSelect"> |
| | | <product-model-tree @on-selected="onTreeSelected" showXdy="false" |
| | | ref="ProductModelTree" :isShow="false"/> |
| | | ref="ProductModelTree" :isShow="false" basic="4" :productId="dataForm.productId"/> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="20"> |
| | | |
| | | <div style="margin-top: 20px"> |
| | | <div> |
| | | <SimulatCurve ref="SimulatCurve"></SimulatCurve> |
| | |
| | | |
| | | <script> |
| | | import SimulatCurve from "./SimulatCurve"; |
| | | import SimulatData from "./SimulatData"; |
| | | import ProductModelTree from "../basicInfo/ProductModelTree"; |
| | | |
| | | |
| | |
| | | components: { |
| | | ProductModelTree, |
| | | SimulatCurve, |
| | | SimulatData |
| | | }, |
| | | |
| | | methods: { |
| | | onTreeSelected(data) { |
| | | console.log(data, 'onProductSelected') |
| | | this.dataForm.showProductId = data.id |
| | | this.$refs.SimulatCurve.getProductEcharts(this.dataForm); |
| | | if (this.dataForm.id){ |
| | | console.log(data, 'onProductSelected') |
| | | this.dataForm.showProductId = data.id |
| | | this.$refs.SimulatCurve.getProductEcharts(this.dataForm); |
| | | } |
| | | }, |
| | | // 获取信息 |
| | | onProductSelected(data) { |
| | |
| | | console.log(data, ' onProductSelected(data)') |
| | | this.dataForm.productId = data.id |
| | | this.getTaskList() |
| | | this.$nextTick(() => { |
| | | this.$refs.ProductModelTree.getProductList() |
| | | }) |
| | | }, |
| | | onTaskSelected(data) { |
| | | console.log(data, ' onProductSelected(data)') |