jinlin
2024-06-11 c1c99506314644355c105de2a525ea3a248fd91f
web/src/views/modules/taskReliability/OperatCondit.vue
@@ -5,9 +5,11 @@
        <div class="mod-taskReliability-operatCondit}">
          <div class="fa-card-a">
            <div style="margin-top: 10px">
              <zt-select v-model="dataForm.productId" placeholder="请选择产品节点"  :datas="productList" @change="onProductSelected"/>
              <zt-select v-model="dataForm.productId" placeholder="请选择产品节点" :datas="productList"
                         @change="onProductSelected"/>
            </div>
            <zt-table-wraper ref="tableObj" query-url="/taskReliability/OperatCondit/page" defaultNotQuery="true"  delete-url="/taskReliability/OperatCondit"
            <zt-table-wraper ref="tableObj" query-url="/taskReliability/OperatCondit/page" defaultNotQuery="true"
                             delete-url="/taskReliability/OperatCondit"
                             v-slot="{ table }" :paging='false'>
              <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()">
                <el-form-item>
@@ -17,11 +19,13 @@
                </el-form-item>
              </el-form>
              <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px"
                        :highlight-current-row="isSelect"
                        v-adaptive="{bottomOffset:70}"
                        border @row-click="selectOperatCondit" @selection-change="table.selectionChangeHandle">
                <el-table-column type="selection" width="40" align="center"/>
                <el-table-column prop="name" label="工况名称"/>
                <el-table-column prop="remark" label="备注"/>
                <el-table-column prop="remark" label="备注"
                /
                <zt-table-column-handle :table="table"
                                        delete-perm="taskReliability::delete"/>
              </el-table>
@@ -50,7 +54,8 @@
        productList: [],
        dataForm: {
          productId: '',
        }
        },
        isSelect: false,
      }
    },
    mounted() {
@@ -63,7 +68,7 @@
    methods: {
      add() {
        this.$refs.AddOrUpdate.$refs.dialog.init(null,{productId: this.dataForm.productId})
        this.$refs.AddOrUpdate.$refs.dialog.init(null, {productId: this.dataForm.productId})
      },
      onProductSelected(data) {
        this.dataForm.productId = data.id