vue2-client 1.16.89 → 1.16.90

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": "vue2-client",
3
- "version": "1.16.89",
3
+ "version": "1.16.90",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -1486,7 +1486,23 @@ export default {
1486
1486
  this.emitFunc('recordingData', data)
1487
1487
  },
1488
1488
  getPopupContainer (triggerNode) {
1489
- // return document.body
1489
+ // 行编辑模式特殊处理
1490
+ if (this.$vnode?.key.startsWith('editRow')) {
1491
+ // 限制最多向上查找5层
1492
+ let parent = triggerNode.parentNode
1493
+ let depth = 0
1494
+ const maxDepth = 10
1495
+
1496
+ while (parent && parent !== document.body && depth < maxDepth) {
1497
+ if (parent.tagName === 'TBODY') {
1498
+ return parent
1499
+ }
1500
+ parent = parent.parentNode
1501
+ depth++
1502
+ }
1503
+ // 如果5层内没找到,回退到body
1504
+ return document.body
1505
+ }
1490
1506
  return triggerNode.parentNode
1491
1507
  },
1492
1508
  colorPickerComboboxSelect (val) {
@@ -26,7 +26,7 @@ export default {
26
26
  data () {
27
27
  return {
28
28
  // 查询配置文件名
29
- queryParamsName: 'checkPlanListCRUD',
29
+ queryParamsName: 'ceshiCRUD',
30
30
  // 查询配置左侧tree
31
31
  xTreeConfigName: 'addressType',
32
32
  // 新增表单固定值