| | |
| | | </Button> |
| | | </FormItem> |
| | | </Form> |
| | | |
| | | </template> |
| | | <script lang="ts" setup> |
| | | import { reactive, ref, unref, computed, onMounted,h } from 'vue'; |
| | |
| | | import { accountFormSchema } from './loginDept.data'; |
| | | import { getTreeList, optionsListApi } from '/@/api/tigerapi/dept'; |
| | | |
| | | |
| | | //import { onKeyStroke } from '@vueuse/core'; |
| | | |
| | | |
| | | const ACol = Col; |
| | | const ARow = Row; |
| | |
| | | async function handleLogin() { |
| | | const data = await validForm(); |
| | | const orgData = await validate(); |
| | | console.log('data',data) |
| | | console.log('data', data); |
| | | if (!data) return; |
| | | try { |
| | | loading.value = true; |
| | | //const positionInfo = await getUserIpConfig(); |
| | | const Info = { ad_info: {}, ip: '' } //positionInfo.status === 110 ? { ad_info: {}, ip: '' } : positionInfo.result; |
| | | const Info = { ad_info: {}, ip: '' }; //positionInfo.status === 110 ? { ad_info: {}, ip: '' } : positionInfo.result; |
| | | const accountInfo: AccountInfo = { |
| | | useR_CODE: data.account, |
| | | password: data.password, |
| | |
| | | description: `${t('sys.login.loginSuccessDesc')}: ${userInfo.realName}`, |
| | | duration: 3, |
| | | }); |
| | | |
| | | |
| | | }else{ |
| | | createErrorModal({ |
| | | title: t('sys.api.errorTip'), |