@ebiz/designer-components 0.1.28 → 0.1.30
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/dist/designer-components.css +1 -1
- package/dist/index.mjs +24606 -28281
- package/package.json +1 -1
- package/src/components/EbizEmployeeSelector.vue +5 -6
- package/src/views/EbizEmployeeSelector.vue +1 -1
package/package.json
CHANGED
|
@@ -179,7 +179,6 @@ import {
|
|
|
179
179
|
MessagePlugin
|
|
180
180
|
} from 'tdesign-vue-next';
|
|
181
181
|
import dataService from '../apiService/simpleDataService';
|
|
182
|
-
import { get } from 'lodash';
|
|
183
182
|
|
|
184
183
|
// 定义组件属性
|
|
185
184
|
const props = defineProps({
|
|
@@ -501,13 +500,13 @@ const fetchEmployeesByNode = async (nodeId, type, keyword = searchText.value) =>
|
|
|
501
500
|
|
|
502
501
|
// 根据ID列表批量获取员工信息
|
|
503
502
|
const fetchEmployeesByIds = async (ids) => {
|
|
504
|
-
if (!ids || ids.length === 0) {
|
|
503
|
+
if (!ids || ids.length === 0 || ids == '') {
|
|
505
504
|
selectedItems.value = [];
|
|
506
505
|
return;
|
|
507
506
|
}
|
|
508
|
-
if( !(ids instanceof Array) ){
|
|
509
|
-
|
|
510
|
-
}
|
|
507
|
+
// if( !(ids instanceof Array) ){
|
|
508
|
+
// ids = [ids];
|
|
509
|
+
// }
|
|
511
510
|
|
|
512
511
|
loading.value = true;
|
|
513
512
|
try {
|
|
@@ -711,7 +710,7 @@ watch(() => props.modelValue, (newIds, oldIds) => {
|
|
|
711
710
|
|
|
712
711
|
if (newIdsStr !== oldIdsStr) {
|
|
713
712
|
// 获取员工详情数据
|
|
714
|
-
fetchEmployeesByIds(
|
|
713
|
+
fetchEmployeesByIds(computedModelValue.value);
|
|
715
714
|
}
|
|
716
715
|
}, { immediate: true, deep: true });
|
|
717
716
|
watch(() => props.visible, (val) => {
|
|
@@ -23,7 +23,7 @@ import { EbizEmployeeSelector } from '../index.js';
|
|
|
23
23
|
import { Button as TButton } from 'tdesign-vue-next';
|
|
24
24
|
|
|
25
25
|
// 演示数据
|
|
26
|
-
const selectedEmployees = ref("
|
|
26
|
+
const selectedEmployees = ref("");
|
|
27
27
|
const singleEmployee = ref([]);
|
|
28
28
|
const roleEmployees = ref([]);
|
|
29
29
|
const limitedEmployees = ref([]);
|