chenhj
19 小时以前 a7e6e4c69e17f1b10acf75d03c0a46327c1b3dcf
src/views/equipmentManagement/upkeep/index.vue
@@ -135,14 +135,6 @@
          <div class="actions">
            <el-text class="mx-1" size="large">任务记录</el-text>
            <div>
              <el-button
                type="primary"
                icon="Plus"
                :disabled="multipleList.length !== 1"
                @click="addMaintain"
              >
                新增保养
              </el-button>
              <el-button type="success" icon="Van" @click="addPlan">
                新增计划
              </el-button>
@@ -181,6 +173,13 @@
          <el-tag v-if="row.status === 0" type="warning">待保养</el-tag>
        </template>
        <template #operation="{ row }">
          <el-button
              type="primary"
              text
              @click="addMaintain(row)"
          >
            新增保养
          </el-button>
          <el-button
            type="primary"
            text
@@ -379,7 +378,7 @@
      dataType: "slot",
      slot: "operation",
      align: "center",
      width: "200px",
      width: "300px",
   },
])
@@ -500,8 +499,7 @@
  getTableData()
}
const addMaintain = () => {
  const row = multipleList.value[0]
const addMaintain = (row) => {
  maintainModalRef.value.open(row.id, row)
}