|
|
@ -30,7 +30,7 @@ |
|
|
|
<el-button |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
@click="addOrUpdateHandle(scope.row.id,scope.row)" |
|
|
|
@click="addOrUpdateHandle(scope.row.id,{...scope.row})" |
|
|
|
>{{ $t('update') }}</el-button> |
|
|
|
<el-button |
|
|
|
type="text" |
|
|
@ -102,6 +102,17 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
// addOrUpdateCrf() { |
|
|
|
// this.addOrUpdateVisible = true |
|
|
|
// this.$nextTick(() => { |
|
|
|
// this.$refs.addOrUpdate.dataForm.id = id |
|
|
|
// noParams ? '' : this.$refs.addOrUpdate.params = params || {} |
|
|
|
// this.$refs.addOrUpdate.dataForm.title = title |
|
|
|
// // 存在BUG,params无法覆盖,弃用 |
|
|
|
// // this.$refs.addOrUpdate.dataForm = { id, ...params, title } |
|
|
|
// this.$refs.addOrUpdate.init() |
|
|
|
// }) |
|
|
|
// } |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|