兰宝车间质量管理系统-前端
LiuHao
2024-12-27 2b1f5f2c7033eebee97de472b5f6195d95516b80
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();