web/src/views/modules/taskReliability/SimulatAssess.vue
@@ -35,6 +35,23 @@
            </div>
          </el-col>
    </el-row>
    <el-dialog :close-on-click-modal="false" :visible.sync="dialogVisible" title="模型检查" width="60%" @close="dialogVisible = false">
      <el-tag type="danger">模型定义/参数配置里存在以下问题:</el-tag>
      <el-table :data="modelCheckResult" height="100px" v-adaptive="{bottomOffset:30}"
                :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>
@@ -63,8 +80,10 @@
          dataType: 'fz',
          samplPeriod: '10',
          simulatFrequency: 500,
          simulatTime: ''
        }
          simulatTime: '',
        },
        dialogVisible: false,
        modelCheckResult: [],
      }
    },
    mounted() {
@@ -132,16 +151,20 @@
        }
      },
      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) {
          // let chkResult = res.data
          // console.log(chkResult)
          // if (chkResult.length == 0) {
          console.log(res.data)
          if (res.data != null && res.data.length > 0) {
            this.modelCheckResult = res.data
            this.dialogVisible = true
          } else {
            this.timers = window.setInterval(this.getStroke, 1000)
          // }
          }
        }
      }
    }