| | |
| | | import Cookies from "js-cookie"
|
| | | import { encrypt, decrypt } from "@/utils/jsencrypt"
|
| | | import useUserStore from '@/store/modules/user'
|
| | | import {userDeptList} from "@/api/system/user.js"
|
| | | import {userLoginFacotryList} from "@/api/system/user.js"
|
| | |
|
| | | const title = import.meta.env.VITE_APP_TITLE
|
| | | const userStore = useUserStore()
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | function deptListSearch() {
|
| | | function getUserLoginFacotryList() {
|
| | | if(loginForm.value.username){
|
| | | userDeptList({userName:loginForm.value.username}).then(res => {
|
| | | userLoginFacotryList({userName:loginForm.value.username}).then(res => {
|
| | | console.log('res', res)
|
| | | factoryList.value = res.data
|
| | | })
|
| | | }else {
|
| | | factoryList.value = []
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | getCode()
|
| | | getCookie()
|
| | | deptListSearch()
|
| | | getUserLoginFacotryList()
|
| | | </script>
|
| | |
|
| | | <style lang='scss' scoped>
|