web/src/views/modules/taskReliability/ReliabilityAssess.vue
@@ -47,6 +47,24 @@
        </el-table>
        <add-or-update @refreshDataList="refreshData" ref="AddOrUpdate"/>
      </zt-table-wraper>
      <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>
  </div>
</template>
@@ -78,7 +96,9 @@
        flag2: false,
        defultKey: [],
        isExpand:false,
        expandText:"一键展开"
        expandText:"一键展开",
        dialogVisible: false,
        modelCheckResult: [],
      }
    },
    components: {
@@ -152,13 +172,28 @@
        })
      },
      async assess() {
        this.dialogVisible = false
        this.modelCheckResult = []
        if (!this.dataForm.productId || !this.dataForm.taskId || !this.dataForm.itemId || !this.dataForm.confidence) {
          this.$tip.alert("有未填写的数据")
          return
        }
        let res = await this.$http.post('/taskReliability/ReliabilityAssess/assess', this.dataForm)
        console.log(res.data)
        this.dataList = res.data
        let res = await this.$http.post('/taskReliability/ReliabilityAssess/assessCheck', this.dataForm)
        if (res.success) {
          if (res.data && res.data.length > 0) {
            this.modelCheckResult = res.data
            this.dialogVisible = true
          } else {
            let res = await this.$http.post('/taskReliability/ReliabilityAssess/assess', this.dataForm)
            if (res.success) {
              console.log(res.data)
              this.dataList = res.data
              this.$alert('评定成功', '提示', {
                confirmButtonText: '确定'
              })
            }
          }
        }
      },
      async getProductList() {
        let res = await this.$http.get('/basicInfo/XhProductModel/getTaskProductList')