提交 820b2653 编写于 作者: ibizdev's avatar ibizdev

tony001 发布系统代码 [TrainSys,网页端]

上级 c77833b4
......@@ -834,7 +834,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -75,7 +75,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlLogics" : [ {
......
......@@ -281,7 +281,7 @@
}
} ],
"getPSAppViewRefs" : [ {
"name" : "NEWDATA",
"name" : "EDITDATA",
"realOpenMode" : "POPUPMODAL",
"realTitle" : "学生信息编辑视图",
"getRefPSAppView" : {
......@@ -290,7 +290,7 @@
"viewType" : "DEEDITVIEW"
}
}, {
"name" : "EDITDATA",
"name" : "NEWDATA",
"realOpenMode" : "POPUPMODAL",
"realTitle" : "学生信息编辑视图",
"getRefPSAppView" : {
......@@ -493,7 +493,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -159,7 +159,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -533,7 +533,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -1786,7 +1786,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -945,7 +945,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -911,7 +911,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......@@ -2084,7 +2084,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -833,7 +833,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -1133,7 +1133,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -75,7 +75,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlLogics" : [ {
......
......@@ -281,7 +281,7 @@
}
} ],
"getPSAppViewRefs" : [ {
"name" : "NEWDATA",
"name" : "EDITDATA",
"realOpenMode" : "POPUPMODAL",
"realTitle" : "学生信息编辑视图",
"getRefPSAppView" : {
......@@ -290,7 +290,7 @@
"viewType" : "DEEDITVIEW"
}
}, {
"name" : "EDITDATA",
"name" : "NEWDATA",
"realOpenMode" : "POPUPMODAL",
"realTitle" : "学生信息编辑视图",
"getRefPSAppView" : {
......@@ -493,7 +493,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -158,7 +158,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -103,7 +103,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -532,7 +532,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -1251,7 +1251,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -1582,7 +1582,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......@@ -2755,7 +2755,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -1785,7 +1785,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
......@@ -943,7 +943,7 @@
},
"getPSControlAttributes" : [ {
"attrName" : "spanMethod",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"attrValue" : "({\r\n row,\r\n column,\r\n rowIndex,\r\n columnIndex,\r\n }) => {\r\n console.log('测试合并');\r\n const { property } = column;\r\n const rowspankeys = ['reginfoname','age'];\r\n const tableData = ctrl.state.rows;\r\n // 合并行\r\n if (rowspankeys.length > 0 && rowspankeys.includes(property)) {\r\n // 只有第一列或有值时才和并\r\n const allow = columnIndex === 0 || row[property];\r\n // 第二行开始合并\r\n if (\r\n rowIndex > 0 &&\r\n allow &&\r\n row[property] === tableData[rowIndex - 1].data[property]\r\n ) {\r\n return {\r\n rowspan: 0,\r\n colspan: 0,\r\n };\r\n }\r\n // 第一行计算出合并长度\r\n let rowspan = 1;\r\n for (let i = rowIndex + 1; i < tableData.length; i++) {\r\n if (allow && tableData[i].data[property] === row[property]) {\r\n rowspan += 1;\r\n } else {\r\n break;\r\n }\r\n }\r\n return {\r\n rowspan,\r\n colspan: 1,\r\n };\r\n }\r\n}",
"name" : "logic"
} ],
"getPSControlHandler" : {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册