doway-coms 2.10.68 → 2.10.69
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
|
@@ -3066,7 +3066,7 @@ export default {
|
|
|
3066
3066
|
}
|
|
3067
3067
|
}
|
|
3068
3068
|
},
|
|
3069
|
-
cellClick({ row, column }) {
|
|
3069
|
+
async cellClick({ row, column }) {
|
|
3070
3070
|
this.$emit('cellClick', { row, column })
|
|
3071
3071
|
//判断是否可以跳转
|
|
3072
3072
|
if (
|
|
@@ -3104,6 +3104,32 @@ export default {
|
|
|
3104
3104
|
return
|
|
3105
3105
|
}
|
|
3106
3106
|
// column.editRender.enabled = false
|
|
3107
|
+
|
|
3108
|
+
// 检查其他行的编辑状态
|
|
3109
|
+
const checkEditStatus = async () => {
|
|
3110
|
+
let maxAttempts = 10 // 最大尝试次数
|
|
3111
|
+
let attempt = 0
|
|
3112
|
+
|
|
3113
|
+
while (attempt < maxAttempts) {
|
|
3114
|
+
const editingRecord = this.$refs.baseGrid.getEditRecord()
|
|
3115
|
+
// 如果没有正在编辑的行,或者只有当前行在编辑,则退出等待
|
|
3116
|
+
if (!editingRecord || editingRecord.row===row) {
|
|
3117
|
+
// console.debug('当前行编辑')
|
|
3118
|
+
return true
|
|
3119
|
+
}
|
|
3120
|
+
// console.debug('等待',editingRecord.sort)
|
|
3121
|
+
// 等待100ms后重试
|
|
3122
|
+
await new Promise(resolve => setTimeout(resolve, 5))
|
|
3123
|
+
attempt++
|
|
3124
|
+
}
|
|
3125
|
+
return false
|
|
3126
|
+
}
|
|
3127
|
+
// 等待其他行编辑状态关闭
|
|
3128
|
+
await checkEditStatus()
|
|
3129
|
+
|
|
3130
|
+
//检查是否存在其他行还是编辑状态,如果还是编辑状态就等待关闭编辑状态后再执行当前行的编辑
|
|
3131
|
+
//因为会存在如果有校验的话会存在切换快,并且页面卡顿的情况的话会出现当前行打开编辑后又
|
|
3132
|
+
|
|
3107
3133
|
if (column.editRender && column.editRender.enabled === true) {
|
|
3108
3134
|
this.$refs.baseGrid.setEditCell(row, column)
|
|
3109
3135
|
} else {
|