|
@@ -59,6 +59,7 @@ import {
|
|
|
} from "@/request";
|
|
|
|
|
|
import { ref, reactive, unref, onMounted, watchEffect } from "vue";
|
|
|
+import { onUnmounted } from "vue";
|
|
|
const addPassFlag = ref(false)//图标显示标识
|
|
|
|
|
|
const baseFormRef = ref<FormInstance>();
|
|
@@ -124,17 +125,21 @@ let checkCodeBtn = reactive<any>({
|
|
|
})
|
|
|
|
|
|
onMounted(async () => {
|
|
|
- const data = await getOrgListFetch({
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 10000,
|
|
|
- })
|
|
|
- // console.log('allOrgs', data.records);
|
|
|
- allOrgs.value = Array.from(data.records).map((item: OrganizationType) => {
|
|
|
- const i: SelectType = { value: item['orgName'], id: item['orgId'] }
|
|
|
- return i
|
|
|
- });
|
|
|
+ // const data = await getOrgListFetch({
|
|
|
+ // pageNum: 1,
|
|
|
+ // pageSize: 10000,
|
|
|
+ // })
|
|
|
+ // // console.log('allOrgs', data.records);
|
|
|
+ // allOrgs.value = Array.from(data.records).map((item: OrganizationType) => {
|
|
|
+ // const i: SelectType = { value: item['orgName'], id: item['orgId'] }
|
|
|
+ // return i
|
|
|
+ // });
|
|
|
|
|
|
})
|
|
|
+onUnmounted(() => {
|
|
|
+ // 清除掉定时器
|
|
|
+ checkCodeBtn.timer && clearInterval(checkCodeBtn.timer)
|
|
|
+})
|
|
|
|
|
|
|
|
|
// const setParentId = () => {
|