| | |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | | <el-dialog v-dialogDrag :close-on-click-modal="false" top="8vh" :visible.sync="dialogVisible" title="模型检查" width="60%" @close="dialogVisible = false"> |
| | | <el-tag type="danger" style="margin-bottom: 10px">模型定义/参数配置里存在以下问题:</el-tag> |
| | | <el-table :data="modelCheckResult" height="350" |
| | | :header-cell-style="{'text-align':'center'}"> |
| | | <el-table-column prop="category" label="检查结果" align="center" width="150"/> |
| | | <el-table-column prop="taskName" label="任务名称" align="center"/> |
| | | <el-table-column prop="taskPhaseName" label="任务阶段名称" align="center"/> |
| | | <el-table-column prop="gkName" label="工况名称" align="center"/> |
| | | <el-table-column prop="nodeName" label="节点名称" align="center"/> |
| | | <el-table-column prop="modelName" label="模型名称" align="center"/> |
| | | <el-table-column prop="deviceName" label="设备名称" align="center"/> |
| | | <el-table-column prop="paramName" label="参数名称" align="center"/> |
| | | </el-table> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button type="primary" @click="dialogVisible = false">关 闭</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | showProductId: '', |
| | | taskModelId: '', |
| | | dataType: 'fz', |
| | | samplPeriod: '', |
| | | simulatFrequency: '', |
| | | simulatTime: '' |
| | | } |
| | | samplPeriod: '10', |
| | | simulatFrequency: 500, |
| | | simulatTime: '', |
| | | }, |
| | | dialogVisible: false, |
| | | modelCheckResult: [], |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | console.log(data, ' onProductSelected(data)') |
| | | this.dataForm.productId = data.id |
| | | this.getTaskList() |
| | | this.dataForm.taskModelId = '' |
| | | this.$nextTick(() => { |
| | | this.$refs.ProductModelTree.getProductList() |
| | | }) |
| | |
| | | this.taskList = res.data |
| | | }, |
| | | getStroke() { |
| | | //console.log('getStroke:',this.progress.start,",",this.progress.speed) |
| | | if (this.percentage < 100) { |
| | | //console.log('getStroke2') |
| | | this.$http.get(`/taskReliability/SimulatAssess/getCalcProgress?taskId=${this.dataForm.id}`).then( |
| | | let param = { |
| | | taskList: [this.dataForm.id] |
| | | } |
| | | this.$http.get(`/taskReliability/SimulatAssess/getCalcProgress`, {params: param}).then( |
| | | res => { |
| | | // console.log(res.data, 'res.data') |
| | | if (res.data) { |
| | | this.percentage = parseFloat(res.data) |
| | | } |
| | |
| | | } |
| | | }, |
| | | async analyze() { |
| | | this.dialogVisible = false |
| | | this.modelCheckResult = [] |
| | | this.isShow = true |
| | | let result = await this.$http.get(`/basicInfo/TyProductModel/getUuid`) |
| | | this.dataForm.id = result.data |
| | | let res = await this.$http.post('/taskReliability/SimulatAssess/analyze', this.dataForm) |
| | | if (res.success) { |
| | | this.timers = window.setInterval(this.getStroke, 1000) |
| | | console.log(res.data) |
| | | if (res.data && res.data.length > 0) { |
| | | this.modelCheckResult = res.data |
| | | this.dialogVisible = true |
| | | } else { |
| | | this.timers = window.setInterval(this.getStroke, 1000) |
| | | } |
| | | } |
| | | } |
| | | } |