|
@@ -22,6 +22,7 @@
|
|
|
<script setup lang="ts">
|
|
|
import { getRoleList } from "@/api/roleManagementPage";
|
|
|
import { useMainStore } from "@/store";
|
|
|
+import { message } from "ant-design-vue";
|
|
|
import { watch, onMounted } from "vue";
|
|
|
|
|
|
const store = useMainStore();
|
|
@@ -34,6 +35,10 @@ let pageSize = $ref(10);
|
|
|
let pageNo = $ref(1);
|
|
|
|
|
|
async function search() {
|
|
|
+ if (typeof rootOrgId !== "number") {
|
|
|
+ void message.warn("请先选择顶级机构。");
|
|
|
+ return;
|
|
|
+ }
|
|
|
await fetchData();
|
|
|
}
|
|
|
|