company/src/components/enterprise/addEmployee.vue
@@ -32,6 +32,7 @@ components: { GlobalWindow }, data () { return { tempIndex : -1, list: [ { memberName: '', @@ -48,9 +49,10 @@ } }, methods: { open (title, obj) { open (title, obj,tempIndex) { this.title = title this.visible = true this.tempIndex = tempIndex this.list = [ { memberName: '', @@ -73,11 +75,12 @@ worktypeId: '', duName: '', duId: '', fee: '' fee: '', id:this.tempIndex - 1 }) }, dele(index) { this.form.list.splice(index, 1) this.list.splice(index, 1) }, hasDuplicates(arr) { return arr.some((value, index) => arr.indexOf(value) !== index);