|
@@ -293,12 +293,27 @@
|
293
|
293
|
row.index = rowIndex
|
294
|
294
|
},
|
295
|
295
|
onRowClicks(row, event, column) {
|
296
|
|
- console.log("row---",row)
|
297
|
|
- console.log("column",column)
|
|
296
|
+
|
298
|
297
|
this.table_current_index = row.index
|
299
|
298
|
this.row_id = row.id
|
300
|
|
- }, selectGoodInfo(selection, row) {
|
301
|
|
- var goodInfos = this.propForm.goods[this.table_current_index][this.currentGoodTypeId]
|
|
299
|
+
|
|
300
|
+ },
|
|
301
|
+ selectGoodInfo(selection, row) {
|
|
302
|
+
|
|
303
|
+ var arr = []
|
|
304
|
+ var id = 0
|
|
305
|
+ for(let i=0;i<this.propForm.goods.length;i++){
|
|
306
|
+ for(let key in this.propForm.goods[i]){
|
|
307
|
+ if(key == this.row_id){
|
|
308
|
+ arr.push(this.propForm.goods[i])
|
|
309
|
+ id = i
|
|
310
|
+ }
|
|
311
|
+ }
|
|
312
|
+ }
|
|
313
|
+ console.log("arrr33333",arr)
|
|
314
|
+ console.log("i9999",id)
|
|
315
|
+ var goodInfos = this.propForm.goods[id][this.currentGoodTypeId]
|
|
316
|
+ // var goodInfos = this.propForm.goods[this.table_current_index][this.currentGoodTypeId]
|
302
|
317
|
for (let y = 0; y < goodInfos.length; y++) {
|
303
|
318
|
goodInfos[y].isSelected = false
|
304
|
319
|
}
|