gaoluyang
6 天以前 bc07cf1a936795d229a0f51d24cd2032580db542
src/views/login.vue
@@ -28,11 +28,11 @@
          <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"-->
@@ -86,10 +86,9 @@
const { proxy } = getCurrentInstance()
const loginForm = ref({
  username: "admin",
  password: "admin123",
  username: "",
  password: "",
  rememberMe: false,
  currentFatoryId:'',
})
const loginRules = {
@@ -107,7 +106,6 @@
const redirect = ref(undefined)
const factoryList = ref([])
const currentFatoryId = ref('')
watch(route, (newRoute) => {
    redirect.value = newRoute.query && newRoute.query.redirect
@@ -204,6 +202,7 @@
  height: 500px;
  padding: 40px;
  z-index: 1;
   box-shadow: 0 0 5px 1px #ccc;
  .el-input {
    height: 40px;
    input {