|
@@ -1003,7 +1003,7 @@ import { getStore, setStore } from "@/util/store";
|
|
|
|
|
|
// 删除基础信息行
|
|
|
removeBasicInfo(item,index) {
|
|
|
- if(item.id==''){
|
|
|
+ if(!item.id){
|
|
|
this.ypDetail.info.splice(index, 1);
|
|
|
}else{
|
|
|
this.$confirm('删除后,数据将无法恢复,是否确认删除!', '提示', {
|
|
@@ -1393,8 +1393,10 @@ import { getStore, setStore } from "@/util/store";
|
|
|
|
|
|
// 删除基础信息行
|
|
|
removeBasicInfo1(item,index) {
|
|
|
+ console.log(item,'item');
|
|
|
+
|
|
|
|
|
|
- if(item.id==''){
|
|
|
+ if(item&&!item.id){
|
|
|
this.jsDetail.info.splice(index, 1);
|
|
|
}else{
|
|
|
this.$confirm('删除后,数据将无法恢复,是否确认删除!', '提示', {
|