|
@ -64,7 +64,7 @@ |
|
|
<div v-else class="div-content">{{ scope.row.startDate + ' - ' + scope.row.endDate }}</div> |
|
|
<div v-else class="div-content">{{ scope.row.startDate + ' - ' + scope.row.endDate }}</div> |
|
|
</template> |
|
|
</template> |
|
|
</el-table-column> |
|
|
</el-table-column> |
|
|
<el-table-column label="操作" align="center" width="120"> |
|
|
<el-table-column v-if="btnType == 'add'" label="操作" align="center" width="120"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<template v-if="scope.row.isEdit"> |
|
|
<template v-if="scope.row.isEdit"> |
|
|
<el-button |
|
|
<el-button |
|
@ -123,7 +123,7 @@ export default { |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
|
btnDisabled: false, |
|
|
btnDisabled: false, |
|
|
btnType: 'add', |
|
|
btnType: 'cancle', |
|
|
isEdit: false, |
|
|
isEdit: false, |
|
|
tableData: [], |
|
|
tableData: [], |
|
|
tempRow: {} |
|
|
tempRow: {} |
|
@ -217,6 +217,7 @@ export default { |
|
|
this.$message.success('保存成功') |
|
|
this.$message.success('保存成功') |
|
|
row.isEdit = false |
|
|
row.isEdit = false |
|
|
this.isEdit = false |
|
|
this.isEdit = false |
|
|
|
|
|
this.btnType = 'cancle' |
|
|
this.getList() |
|
|
this.getList() |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|