|
@@ -999,6 +999,22 @@ export default {
|
|
|
Object.values(data).forEach(errList => {
|
|
|
console.log('data',data)
|
|
|
console.log(errList)
|
|
|
+ // 将子表下标加入进入标识字段
|
|
|
+ this.basicForm.puDemandItemList.forEach((item,index) => {
|
|
|
+ item.rightIndex = index
|
|
|
+ })
|
|
|
+ console.log('所有列表', this.basicForm.puDemandItemList)
|
|
|
+ // 将校验未通过的项与整个表格数据进行过滤对比,得出校验通过的数据
|
|
|
+ let rightList = this.basicForm.puDemandItemList.filter((item, index) => {
|
|
|
+ return errList.find(item2 => {
|
|
|
+ return item2.rowIndex !== item.rightIndex
|
|
|
+ })
|
|
|
+ })
|
|
|
+ console.log('xxx',rightList)
|
|
|
+ rightList.forEach(items => {
|
|
|
+ this.$refs.table.$el.querySelector(`.elx-body--row:nth-of-type(${items.rightIndex+1})`).style.background = ''
|
|
|
+ })
|
|
|
+
|
|
|
errList.forEach(params => {
|
|
|
let { rowIndex, column, rules } = params
|
|
|
rules.forEach(rule => {
|
|
@@ -1033,6 +1049,7 @@ export default {
|
|
|
this.back()
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
+ console.log(err)
|
|
|
this.$modal.closeLoading();
|
|
|
})
|
|
|
},
|