兰宝车间质量管理系统-前端
疯狂的狮子Li
2024-11-29 b61865f45fe8ec9f22edc18e2ae51052562a671b
src/components/UserSelect/index.vue
@@ -166,7 +166,7 @@
const computedIds = (data) => {
  if (data instanceof Array) {
    return [...data];
    return data.map(item => String(item));
  } else if (typeof data === 'string') {
    return data.split(',');
  } else if (typeof data === 'number') {
@@ -283,11 +283,11 @@
watch(
  () => userDialog.visible.value,
  (newValue: boolean) => {
  async (newValue: boolean) => {
    if (newValue) {
      getTreeSelect(); // 初始化部门数据
      getList(); // 初始化列表数据
      initSelectUser();
      await getTreeSelect(); // 初始化部门数据
      await getList(); // 初始化列表数据
      await initSelectUser();
    } else {
      tableRef.value.clearCheckboxReserve();
      tableRef.value.clearCheckboxRow();