|
|
@@ -207,7 +207,7 @@
|
|
|
width: 40,
|
|
|
align: 'center',
|
|
|
customCell: (_, index) => {
|
|
|
- const columnNum = _.modalTyoe === 'lijing_3' ? 3 : 2;
|
|
|
+ const columnNum = _.modalTyoe ? (_.modalTyoe.endsWith('_3') ? 3 : _.modalTyoe.endsWith('_1') ? 1 : 2) : 2;
|
|
|
if (_.rowIndex % columnNum == 0) {
|
|
|
return { rowSpan: columnNum };
|
|
|
} else {
|
|
|
@@ -221,8 +221,7 @@
|
|
|
width: 80,
|
|
|
align: 'center',
|
|
|
customCell: (_, index) => {
|
|
|
- debugger;
|
|
|
- const columnNum = _.modalTyoe === 'lijing_3' ? 3 : 2;
|
|
|
+ const columnNum = _.modalTyoe ? (_.modalTyoe.endsWith('_3') ? 3 : _.modalTyoe.endsWith('_1') ? 1 : 2) : 2;
|
|
|
if (_.rowIndex % columnNum == 0) {
|
|
|
return { rowSpan: columnNum };
|
|
|
} else {
|
|
|
@@ -230,7 +229,6 @@
|
|
|
}
|
|
|
},
|
|
|
customRender: ({ text, record, index }) => {
|
|
|
- const columnNum = record.modalTyoe === 'lijing_3' ? 3 : 2;
|
|
|
return record.index + 1;
|
|
|
},
|
|
|
};
|
|
|
@@ -252,7 +250,8 @@
|
|
|
});
|
|
|
if (strinstallpos) {
|
|
|
strinstallpos.customCell = (_, index) => {
|
|
|
- const columnNum = _.modalTyoe === 'lijing_3' ? 3 : 2;
|
|
|
+ debugger;
|
|
|
+ const columnNum = _.modalTyoe ? (_.modalTyoe.endsWith('_3') ? 3 : _.modalTyoe.endsWith('_1') ? 1 : 2) : 2;
|
|
|
if (_.rowIndex % columnNum == 0) {
|
|
|
return { rowSpan: columnNum };
|
|
|
} else {
|
|
|
@@ -263,7 +262,7 @@
|
|
|
columns.value.forEach((item) => {
|
|
|
if (item.dataIndex === 'strinstallpos' || item.dataIndex === 'strname' || item.dataIndex.endsWith('_merge')) {
|
|
|
item.customCell = (_, index) => {
|
|
|
- const columnNum = _.modalTyoe === 'lijing_3' ? 3 : 2;
|
|
|
+ const columnNum = _.modalTyoe ? (_.modalTyoe.endsWith('_3') ? 3 : _.modalTyoe.endsWith('_1') ? 1 : 2) : 2;
|
|
|
if (_.rowIndex % columnNum == 0) {
|
|
|
return { rowSpan: columnNum };
|
|
|
} else {
|
|
|
@@ -290,7 +289,7 @@
|
|
|
align: 'center',
|
|
|
slots: { customRender: 'operation' },
|
|
|
customCell: (_, index) => {
|
|
|
- const columnNum = _.modalTyoe === 'lijing_3' ? 3 : 2;
|
|
|
+ const columnNum = _.modalTyoe ? (_.modalTyoe.endsWith('_3') ? 3 : _.modalTyoe.endsWith('_1') ? 1 : 2) : 2;
|
|
|
if (_.rowIndex % columnNum == 0) {
|
|
|
return { rowSpan: columnNum };
|
|
|
} else {
|
|
|
@@ -392,6 +391,7 @@
|
|
|
}
|
|
|
});
|
|
|
resultData1['deviceID'] = resultData2['deviceID'] = data['deviceID'];
|
|
|
+ debugger;
|
|
|
if (props.columnsType.startsWith('fanlocal') && sysOrgCode !== 'zmhjhzmy') {
|
|
|
resultData1['runDevice'] = '主机';
|
|
|
resultData2['runDevice'] = '备机';
|
|
|
@@ -415,8 +415,10 @@
|
|
|
resultData2['index'] = index;
|
|
|
resultData3['index'] = index;
|
|
|
}
|
|
|
- if (modalTyoe === 'lijing_3') {
|
|
|
+ if (modalTyoe && modalTyoe.endsWith('_3')) {
|
|
|
list.push(resultData1, resultData2, resultData3);
|
|
|
+ } else if (modalTyoe && modalTyoe.endsWith('_1')) {
|
|
|
+ list.push(resultData1);
|
|
|
} else {
|
|
|
list.push(resultData1, resultData2);
|
|
|
}
|