vue2-client 1.15.49 → 1.15.50
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
@@ -1054,8 +1054,8 @@ export default {
|
|
1054
1054
|
this.getDataCallback(
|
1055
1055
|
res.filter(h => {
|
1056
1056
|
if (fromModel.indexOf('org') > -1) {
|
1057
|
-
if(type === '部门'){
|
1058
|
-
return formModelData?.includes(h.orgid || h.f_organization_id
|
1057
|
+
if (type === '部门') {
|
1058
|
+
return formModelData?.includes(h.orgid || h.f_organization_id) || formModelData?.includes(h.parentid)
|
1059
1059
|
} else {
|
1060
1060
|
return formModelData?.includes(h.orgid || h.f_organization_id || h.parentid)
|
1061
1061
|
}
|
@@ -315,7 +315,11 @@ export default {
|
|
315
315
|
return k === key
|
316
316
|
})
|
317
317
|
if (!col || !col.width || col.slotType === 'action') {
|
318
|
-
|
318
|
+
if (children) {
|
319
|
+
return h('th', { ...restProps }, [...children])
|
320
|
+
} else {
|
321
|
+
return h('th', { ...restProps })
|
322
|
+
}
|
319
323
|
}
|
320
324
|
|
321
325
|
// 创建一个防止点击排序的容器
|
@@ -407,7 +411,11 @@ export default {
|
|
407
411
|
}
|
408
412
|
}
|
409
413
|
|
410
|
-
|
414
|
+
if (children) {
|
415
|
+
return h('th', { ...newRestProps, class: 'resize-table-th' }, [...children, preventSort, drag])
|
416
|
+
} else {
|
417
|
+
return h('th', { ...newRestProps, class: 'resize-table-th' }, [preventSort, drag])
|
418
|
+
}
|
411
419
|
},
|
412
420
|
}
|
413
421
|
}
|