jinlin
2024-12-02 18f682f736914e427070b9bb769df538ad9f6d1c
web/src/views/modules/taskReliability/ReliabilityAssess.vue
@@ -17,7 +17,7 @@
            <el-input v-model="dataForm.confidence" placeholder="置信度" clearable></el-input>
          </zt-form-item>
          <el-button type="primary" @click="assess()">评定</el-button>
          <el-button type="primary" @click="add()">新增评定数据</el-button>
          <el-button type="primary" @click="assessData()">评定数据管理</el-button>
          <el-button type="primary" @click="handleExpand()">{{expandText}}</el-button>
          <el-dropdown style="margin-left: 10px" @command="download">
            <el-button type="primary">
@@ -45,7 +45,7 @@
          <el-table-column prop="assessResult" label="评定结果" align="right">
          </el-table-column>
        </el-table>
        <add-or-update @refreshDataList="refreshData" ref="AddOrUpdate"/>
        <assess-manage @refreshDataList="refreshData" ref="AssessManage"/>
      </zt-table-wraper>
      <el-dialog v-dialogDrag :close-on-click-modal="false" top="8vh" :visible.sync="dialogVisible" title="模型检查"
                 width="60%" @close="dialogVisible = false">
@@ -69,9 +69,9 @@
  </div>
</template>
<script>
  import AddOrUpdate from './RelisbilityAssess-AddOrUpdate'
  import qs from "qs";
  import Cookies from "js-cookie";
  import AssessManage from "./RelisbilityAssess-Manage";
  export default {
    data() {
@@ -102,7 +102,7 @@
      }
    },
    components: {
      AddOrUpdate
      AssessManage,
    },
    mounted() {
      this.getProductList()
@@ -128,6 +128,9 @@
          }
        })
      },
      refreshData(){
        this.getAssessDataList()
      },
      async zhixin() {
        await this.getTaskList()
        await this.getAssessDataList()
@@ -149,9 +152,6 @@
          this.page()
        }
      },
      refreshData() {
        this.getAssessDataList();
      },
      async getAssessDataList() {
        let params = {
          productId: this.dataForm.productId
@@ -165,11 +165,11 @@
        }
        this.flag2 = true
      },
      add() {
        this.$refs.AddOrUpdate.$refs.dialog.init(null, {
      assessData(){
        this.$refs.AssessManage.$refs.dialog.init(null, {
          productId: this.dataForm.productId,
          shipName: this.dataForm.shipName
        })
          })
      },
      async assess() {
        this.dialogVisible = false