wente
2024-03-29 404bd17f83c0054388e4a02ff31dbc37c27a4b11
web/src/views/modules/taskReliability/SelectModelRbd.vue
@@ -1,21 +1,16 @@
<template>
  <zt-dialog ref="dialog" column="2" title="选择系统模型" append-to-body :editAble="false" :hasConfirm="false">
    <el-card shadow="never" class="aui-card--fill">
      <div class="mod-taskReliability-modelRbd}">
  <zt-dialog ref="dialog" column="1" title="选择系统模型" append-to-body :editAble="false" :hasConfirm="false">
        <zt-table-wraper ref="tableObj" query-url="/taskReliability/ModelRbd/page"
                         :paging='false'
                         v-slot="{ table }">
          <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()">
          </el-form>
          <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:30}"
          <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()"></el-form>
          <el-table v-loading="table.dataLoading" :data="table.dataList" height="300"
                    border @row-dblclick="selectModel"
                    @selection-change="table.selectionChangeHandle">
            <el-table-column prop="modelName" label="模型名称"/>
          </el-table>
          <!-- 弹窗, 新增 / 修改 -->
        </zt-table-wraper>
      </div>
    </el-card>
  </zt-dialog>
</template>
@@ -41,9 +36,10 @@
    components: {},
    methods: {
      init(param) {
        this.dataForm.productId = param.row.productId
        console.log(param)
        this.dataForm.productId = param.row.id
        this.dataForm.phaseId = param.phaseId
        this.dataForm.id = param.row.id
        this.dataForm.id = param.row.productId
      },
      async selectModel(row) {
        console.log(this.dataForm)