doway-coms 2.10.0 → 2.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2787,10 +2787,15 @@ export default {
|
|
|
2787
2787
|
tempRows.push(tempRow)
|
|
2788
2788
|
}
|
|
2789
2789
|
|
|
2790
|
+
// console.debug('davis', (1 && null))
|
|
2791
|
+
|
|
2790
2792
|
let tempTableData = this.$refs.baseGrid.getTableData().fullData
|
|
2791
2793
|
for (let i = 0; i < tempTableData.length; i++) {
|
|
2792
2794
|
let tempRow = tempTableData[i]
|
|
2793
|
-
|
|
2795
|
+
// console.debug('232',this.$refs.baseGrid.isInsertByRow(tempRow))
|
|
2796
|
+
//注意,isInsertByRow 返回的不是Boolean的值,官方文档有错误,所以不能用于Boolean判断,返回的是一个对象
|
|
2797
|
+
//也可以采用替换方案用getInsertRecords方法获取改变的值
|
|
2798
|
+
if (this.$refs.baseGrid.isInsertByRow(tempRow)) {
|
|
2794
2799
|
tempRow['sysRowState'] = 'add'
|
|
2795
2800
|
tempRows.push(tempRow)
|
|
2796
2801
|
}
|
|
@@ -2994,7 +2999,7 @@ export default {
|
|
|
2994
2999
|
if (this.gridEdit !== true) {
|
|
2995
3000
|
return
|
|
2996
3001
|
}
|
|
2997
|
-
if (this.$refs.baseGrid.
|
|
3002
|
+
if (this.$refs.baseGrid.isEditByRow(row) === true) {
|
|
2998
3003
|
//判断当前行是否是编辑行
|
|
2999
3004
|
return
|
|
3000
3005
|
}
|
package/packages/index.js
CHANGED