3 天以前 22229c67d87f0fae4c4bc90db106b8a1e2c49b53
src/views/basicData/customerFileOpenSea/index.vue
@@ -779,6 +779,9 @@
  import { getToken } from "@/utils/auth.js";
  const { proxy } = getCurrentInstance();
  const userStore = useUserStore();
  const isAdminUser = computed(() =>
    ["admin", "普通2", "最高1"].some(r => (userStore.roles || []).includes(r))
  );
  const assignDialogVisible = ref(false);
  const assignFormRef = ref();
  const assignForm = reactive({
@@ -1433,9 +1436,9 @@
  const handleDelete = () => {
    let ids = [];
    if (selectedRows.value.length > 0) {
      // 检查是否有他人维护的数据
      // 检查是否有他人维护的数据(管理员不受限)
      const unauthorizedData = selectedRows.value.filter(
        item => item.maintainer !== userStore.nickName
        item => item.maintainer !== userStore.nickName && !isAdminUser.value
      );
      if (unauthorizedData.length > 0) {
        proxy.$modal.msgWarning("不可删除他人维护的数据");