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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doway-coms",
3
- "version": "2.10.68",
3
+ "version": "2.10.69",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -852,7 +852,7 @@ export default {
852
852
  top: 0px;
853
853
  right: 0px;
854
854
  padding: 4px 8px;
855
- z-index: 1000;
855
+ z-index: 100;
856
856
  background-color: #fff; // 添加背景色使按钮更突出
857
857
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); // 添加阴影效果
858
858
  border-radius: 4px;
@@ -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 {
@@ -1317,6 +1317,9 @@ export default {
1317
1317
 
1318
1318
  // 清除筛选条件
1319
1319
  clearColumnFilter() {
1320
+ if(!this.$refs.pupupGridView){
1321
+ return
1322
+ }
1320
1323
  let columns = []
1321
1324
  let vm = this
1322
1325
  try {