作者 Rico
... ... @@ -330,6 +330,7 @@
:columnOptions="columnOptionslook2"
:data="dianjianleftright"
@selection-change="handleSelectionChangerightD"
ref="getdianjianList"
>
<template slot="column-first">
<el-table-column
... ... @@ -377,6 +378,7 @@
:columnOptions="columnOptionslook2"
:data="baoyangleftright"
@selection-change="handleSelectionChangerightB"
ref="getbaoyangList"
>
<template slot="column-first">
<el-table-column
... ... @@ -1259,6 +1261,7 @@ export default {
if (this.guanlianshebeiList.length > 0) {
this.guanlianshebeiList.forEach((item) => {
this.apparatusList.forEach((item1) => {
console.log(item.id === item1.id);
if (item.id === item1.id) {
this.$nextTick(() => {
this.$refs.getProductList.toggleRowSelection(item1);
... ... @@ -1442,6 +1445,18 @@ export default {
baoyangListid(params).then((res) => {
console.log(res.items);
this.dianjianleftright = res.items;
if (this.dianjianList.length > 0) {
this.dianjianList.forEach((item) => {
this.dianjianleftright.forEach((item1) => {
console.log(item.id === item1.id);
if (item.id === item1.id) {
this.$nextTick(() => {
this.$refs.getdianjianList.toggleRowSelection(item1);
});
}
});
});
}
this.dianjianleftright.forEach((item) => {
console.log(item);
item.modCheckUpkeepFromId = row.id;
... ... @@ -1487,9 +1502,22 @@ export default {
let params = {
fromId: row.id,
};
baoyangListid(params).then((res) => {
console.log(res.items);
this.baoyangleftright = res.items;
if (this.baoyangList.length > 0) {
this.baoyangList.forEach((item) => {
this.baoyangleftright.forEach((item1) => {
console.log(item.id === item1.id);
if (item.id === item1.id) {
this.$nextTick(() => {
this.$refs.getbaoyangList.toggleRowSelection(item1);
});
}
});
});
}
this.baoyangleftright.forEach((item) => {
item.modCheckUpkeepFromId = row.id;
if (item.projectIsSelect == 0) {
... ...