| | |
| | | <template #prefix><svg-icon icon-class="password" class="el-input__icon input-icon" /></template>
|
| | | </el-input>
|
| | | </el-form-item>
|
| | | <el-form-item prop="currentFatoryId">
|
| | | <el-select v-model="loginForm.currentFatoryId" placeholder="请选择公司" >
|
| | | <el-option v-for="item in factoryList" :key="item.deptId" :label="item.deptName" :value="item.deptId" />
|
| | | </el-select>
|
| | | </el-form-item>
|
| | | <!-- <el-form-item prop="currentFatoryId">-->
|
| | | <!-- <el-select v-model="loginForm.currentFatoryId" placeholder="请选择公司" filterable>-->
|
| | | <!-- <el-option v-for="item in factoryList" :key="item.deptId" :label="item.deptName" :value="item.deptId" />-->
|
| | | <!-- </el-select>-->
|
| | | <!-- </el-form-item>-->
|
| | | <!-- <el-form-item prop="code" v-if="captchaEnabled">-->
|
| | | <!-- <el-input-->
|
| | | <!-- v-model="loginForm.code"-->
|
| | |
| | | const { proxy } = getCurrentInstance()
|
| | |
|
| | | const loginForm = ref({
|
| | | username: "admin",
|
| | | password: "admin123",
|
| | | username: "",
|
| | | password: "",
|
| | | rememberMe: false,
|
| | | currentFatoryId:'',
|
| | | })
|
| | |
|
| | | const loginRules = {
|
| | |
| | | const redirect = ref(undefined)
|
| | |
|
| | | const factoryList = ref([])
|
| | | const currentFatoryId = ref('')
|
| | |
|
| | | watch(route, (newRoute) => {
|
| | | redirect.value = newRoute.query && newRoute.query.redirect
|
| | |
| | | height: 500px;
|
| | | padding: 40px;
|
| | | z-index: 1;
|
| | | box-shadow: 0 0 5px 1px #ccc;
|
| | | .el-input {
|
| | | height: 40px;
|
| | | input {
|