| | |
| | | <template #default="scope"> |
| | | <el-button-group> |
| | | <el-button text type="primary" size="small" @click="table_edit(scope.row)">编辑</el-button> |
| | | <!-- <el-button text type="primary" size="small">复制</el-button> --> |
| | | <el-button text type="primary" size="small" @click="copy(scope.row)">复制</el-button> |
| | | <el-popconfirm width="220" title="确定将选择的数据删除" @confirm="del(scope.$index)"> |
| | | <template #reference> |
| | | <el-button text type="primary" size="small">删除</el-button> |
| | |
| | | del(index) { |
| | | this.tabledata.splice(index, 1) |
| | | }, |
| | | copy(row) { |
| | | this.tabledata.push(Object.assign({}, row, { status: '1' })) |
| | | }, |
| | | //表单提交方法 |
| | | submit() { |
| | | let isRequiredKey = this.cols.filter(v => v.isRequired).map(v => v.prop) |