|
@@ -469,9 +469,9 @@ export default {
|
|
|
...obj,
|
|
|
proofGroupId:response.data,
|
|
|
}
|
|
|
+ this.updateSort(obj.featureSort,invalidStatueId,'add')
|
|
|
if(type == 'up'){
|
|
|
this.tableData.splice(index,0,data)
|
|
|
- row.featureSort = Number(featureSort) + 1
|
|
|
}else{
|
|
|
this.tableData.splice(index+1,0,data)
|
|
|
}
|
|
@@ -481,6 +481,23 @@ export default {
|
|
|
this.loading = false
|
|
|
})
|
|
|
},
|
|
|
+ //更新序号
|
|
|
+ updateSort(sort,invalidStatueId,type){
|
|
|
+ var arr = this.tableData.filter(item=>{
|
|
|
+ return item.invalidReasonDTO.invalidStatueId == invalidStatueId
|
|
|
+ })
|
|
|
+ for(var i = 1;i<arr.length+1;i++){
|
|
|
+ var featureSort = Number(arr[i].featureSort)
|
|
|
+ if(featureSort>= sort){
|
|
|
+ if(type == 'add'){
|
|
|
+ arr[i].featureSort = featureSort+1
|
|
|
+ }else if(type == 'del'){
|
|
|
+ arr[i].featureSort = featureSort-1
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
//删除无效理由
|
|
|
delInvalidStatue(scope){
|
|
|
this.$confirm('确认删除本条数据吗?', '提示', {
|