| | |
| | | <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" basic="4"/> |
| | | ref="ProductModelTree" :isShow="false" basic="4" :productId="dataForm.productId"/> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="20"> |
| | |
| | | this.dataForm.productId = data.id |
| | | this.getTaskList() |
| | | this.dataForm.taskModelId = '' |
| | | this.$nextTick(() => { |
| | | this.$refs.ProductModelTree.getProductList() |
| | | }) |
| | | }, |
| | | onTaskSelected(data) { |
| | | console.log(data, ' onProductSelected(data)') |
| | |
| | | this.getSimulatList() |
| | | this.dataForm.id = '' |
| | | }, |
| | | onSimulatSelected(data) { |
| | | async onSimulatSelected(data) { |
| | | this.dataForm.id = data.id |
| | | this.dataForm.samplPeriod = data.samplPeriod |
| | | this.getSimulatParams() |
| | | this.$refs.SimulatCurve.initEcharts(this.dataForm) |
| | | }, |
| | | async getSimulatParams() { |
| | | let params = { |
| | | id: this.dataForm.id, |
| | | taskModelId: this.dataForm.taskModelId |
| | | } |
| | | let res = await this.$http.get('/taskReliability/SimulatAssess/getSimulatParams', {params: params}) |
| | | console.log(res.data.samplPeriod) |
| | | this.dataForm.taskDuration = res.data.taskDuration |
| | | this.dataForm.samplPeriod = res.data.samplPeriod |
| | | this.dataForm.simulatFrequency = res.data.simulatFrequency |
| | | } |
| | | this.$nextTick(() => { |
| | | this.$refs.SimulatCurve.initEcharts(this.dataForm) |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |