Commit f1d798e0 authored by asdf's avatar asdf

表单复制功能

parent 988e7741
......@@ -232,7 +232,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy {
this.save();
}
onCopyData(index) {
this.contentObj.dataArray.push(this.contentObj.dataArray[index]);
this.contentObj.dataArray.push(JSON.parse(JSON.stringify(this.contentObj.dataArray[index])));
this.save();
setTimeout(() => {
window.scrollTo(0, document.body.scrollHeight);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment