|
@@ -1825,7 +1825,8 @@ a {
|
|
//工作内容
|
|
//工作内容
|
|
workContextDig:false,
|
|
workContextDig:false,
|
|
functionalId:null,
|
|
functionalId:null,
|
|
- workContextList:[]
|
|
|
|
|
|
+ workContextList:[],
|
|
|
|
+ oldValue:null,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
// 过滤器
|
|
// 过滤器
|
|
@@ -5072,23 +5073,26 @@ a {
|
|
row.editFlag = false
|
|
row.editFlag = false
|
|
if (row.isSubmit) {
|
|
if (row.isSubmit) {
|
|
if(type=="functional"){
|
|
if(type=="functional"){
|
|
- this.functionalList[index] = row
|
|
|
|
|
|
+ // this.functionalList[index]=this.oldValue
|
|
|
|
+ this.$set(this.functionalList,index,this.oldValue);
|
|
}else if(type=="workContext"){
|
|
}else if(type=="workContext"){
|
|
- this.workContextList[index] = row
|
|
|
|
|
|
+ this.workContextList[index] = this.oldValue
|
|
}
|
|
}
|
|
-
|
|
|
|
}
|
|
}
|
|
- // else {
|
|
|
|
- // if(type=="functional"){
|
|
|
|
- // this.functionalDelVersion(row,index);
|
|
|
|
- // }else if(type=="workContext"){
|
|
|
|
- // this.workContextDelVersion(row,index);
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
|
|
+ else if(!row.id){
|
|
|
|
+ if(type=="functional"){
|
|
|
|
+ this.functionalDelVersion(row,index);
|
|
|
|
+ }else if(type=="workContext"){
|
|
|
|
+ this.workContextDelVersion(row,index);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
},
|
|
},
|
|
// 编辑
|
|
// 编辑
|
|
functionalEditVersion(row){
|
|
functionalEditVersion(row){
|
|
// v.value = JSON.parse(JSON.stringify(row));
|
|
// v.value = JSON.parse(JSON.stringify(row));
|
|
|
|
+ this.oldValue= Object.assign({}, row);;
|
|
|
|
+ console.log("row",row,"old",this.oldValue)
|
|
row.editFlag = true;
|
|
row.editFlag = true;
|
|
},
|
|
},
|
|
// 删除
|
|
// 删除
|