|
|
@ -129,6 +129,15 @@ export default { |
|
|
|
this.dialogVisible = true |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 跳转记录页面 |
|
|
|
goMaintenanceRecords(row) { |
|
|
|
this.$router.push({ |
|
|
|
path: '/maintenanceRecords', |
|
|
|
query: { |
|
|
|
name: row.name |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 保存维修计划 |
|
|
|
submitForm(formName) { |
|
|
|
this.$refs[formName].validate((valid) => { |
|
|
@ -254,7 +263,8 @@ export default { |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-button @click="viewOrEditPlanDetails(scope.row)" type="text" size="small">查看</el-button> |
|
|
|
<el-button @click="viewOrEditPlanDetails(scope.row, true)" type="text" size="small">编辑</el-button> |
|
|
|
<el-button style=" margin-right: 9px;" type="text" size="small">记录</el-button> |
|
|
|
<el-button style=" margin-right: 9px;" type="text" size="small" |
|
|
|
@click="goMaintenanceRecords(scope.row)">记录</el-button> |
|
|
|
<el-popconfirm confirm-button-text='确定' cancel-button-text='取消' icon="el-icon-info" icon-color="red" |
|
|
|
title="确定删除吗?" @confirm="deleteTableItem(scope.row)"> |
|
|
|
<el-button style="color: red;" type="text" size="small" slot="reference">删除</el-button> |
|
|
|