保安服务单位许可和备案申请系统
tangzy
2021-08-14 42fe31bc65d52172643a03f79023317c257f50d5
src/page/login/codelogin.vue
@@ -34,27 +34,6 @@
        <i slot="prefix" class="icon-mima"/>
      </el-input>
    </el-form-item>
    <el-form-item prop="sname">
      <el-input size="small"
                @keyup.enter.native="handleLogin"
                v-model="loginForm.sname"
                auto-complete="off"
                :placeholder="$t('login.name')">
        <i slot="prefix" class="icon-yonghu"/>
      </el-input>
    </el-form-item>
    <el-form-item prop="phone">
      <el-input size="small"
                v-model="loginForm.phone"
                auto-complete="off"
                :placeholder="$t('login.phone')">
        <i slot="prefix" class="icon-shouji"/>
      </el-input>
    </el-form-item>
    <div style="margin-top: 16px">
      <el-radio v-model="loginForm.sex" label="1" border size="medium">男</el-radio>
      <el-radio v-model="loginForm.sex" label="2" border size="medium">女</el-radio>
    </div>
    <el-form-item class="z-login-submit-prv">
      <el-button size="small"
                 type="primary"
@@ -72,6 +51,7 @@
<script>
import {isvalidatemobile} from "@/util/validate";
import {mapGetters} from "vuex";
import {zc} from "@/api/system/user"
export default {
  name: "codelogin",
@@ -112,12 +92,8 @@
      dic: [],
      msgKey: false,
      loginForm: {
        phone: "",
        username: "",
        sname: "",
        password: "",
        sex: null,
        deptid: '',
        password2: ""
      },
      value: '',
@@ -187,17 +163,12 @@
      this.$refs[formName].clearValidate();
    },
    refreshCode(row) {
      console.log(this.loginForm)
      inster(row).then(res => {
        this.loginForm.phone = ""
      zc(row.username,row.password).then(res => {
        this.loginForm.username = ""
        this.loginForm.sname = ""
        this.loginForm.sex = null
        this.loginForm.password = ""
        this.loginForm.password2 = ""
        this.loginForm.deptid = ""
        this.$notify({
          title: '注册成功,待审核',
          title: '注册成功',
          type: 'warning'
        });
      })
@@ -207,13 +178,9 @@
      this.clearValidate('loginForm')
    },
    gb() {
      this.loginForm.phone = ""
      this.loginForm.username = ""
      this.loginForm.sname = ""
      this.loginForm.sex = null
      this.loginForm.password = ""
      this.loginForm.password2 = ""
      this.loginForm.deptid = ""
      var zs = document.querySelector('.z');
      zs.style.display = 'none';
      this.clearValidate('loginForm')