jinlin
2024-04-09 4d2033854f0770dba993bff26ea09a0a523682fc
web/src/views/modules/taskReliability/Task.vue
@@ -7,8 +7,8 @@
                     v-slot="{ table }">
      <el-form :inline="true" :model="dataForm" @keyup.enter.native="table.query()">
        <el-form-item>
          <zt-button type="add" @click="add()" />
          <zt-button type="delete" @click="table.deleteHandle()"/>
          <zt-button v-if="dataForm.productId" type="add" @click="add()" />
          <zt-button v-if="dataForm.productId" type="delete" @click="table.deleteHandle()"/>
        </el-form-item>
      </el-form>
      <el-table v-loading="table.dataLoading" :data="table.dataList" height="100px" v-adaptive="{bottomOffset:30}"
@@ -16,7 +16,8 @@
                @selection-change="table.selectionChangeHandle">
        <el-table-column type="selection" width="40" align="center"/>
        <el-table-column prop="taskName" label="任务名称"/>
        <el-table-column prop="taskSort" label="任务顺序"/>
        <!--<el-table-column prop="taskSort" label="任务顺序" align="center"/>-->
        <el-table-column prop="taskDuration" label="任务总时长" align="right"/>
        <zt-table-column-handle :table="table"
                                delete-perm="taskReliability::delete"/>
      </el-table>
@@ -35,6 +36,7 @@
      return {
        productList: [],
        dataForm: {
          id:'',
          productId: ''
        }
      }