解决冲突

This commit is contained in:
wangshiming
2022-02-24 17:36:11 +08:00
parent 68806a8d60
commit 97fde5d6b9
5 changed files with 167 additions and 62 deletions

View File

@ -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() {