解决冲突
This commit is contained in:
@ -64,7 +64,7 @@ export class InsuranceTableComponent implements OnInit {
|
||||
};
|
||||
this.ui = {
|
||||
'*': {
|
||||
spanLabelFixed: 140,
|
||||
spanLabelFixed: 160,
|
||||
grid: { span: 24 }
|
||||
},
|
||||
$freightPrice: {
|
||||
@ -141,12 +141,11 @@ export class InsuranceTableComponent implements OnInit {
|
||||
|
||||
deleteRow(index: number) {
|
||||
console.log(index);
|
||||
this.data = this.data.filter((d, i) => {
|
||||
console.log(d);
|
||||
console.log(i);
|
||||
index !== i;
|
||||
});
|
||||
console.log(this.data);
|
||||
var newArr = this.data.concat();
|
||||
newArr.splice(this.data.length-1,1)
|
||||
// this.data = this.data.pop()
|
||||
console.log(newArr);
|
||||
this.data = [...newArr];
|
||||
}
|
||||
|
||||
save() {
|
||||
|
||||
Reference in New Issue
Block a user