保安服务单位许可和备案申请系统
tangzy
2021-08-14 42fe31bc65d52172643a03f79023317c257f50d5
许可备案系统
4 files modified
58 ■■■■■ changed files
src/api/system/user.js 14 ●●●●● patch | view | raw | blame | history
src/lang/zh.js 1 ●●●● patch | view | raw | blame | history
src/page/login/codelogin.vue 39 ●●●●● patch | view | raw | blame | history
src/views/home/index.vue 4 ●●●● patch | view | raw | blame | history
src/api/system/user.js
@@ -118,3 +118,17 @@
    }
  })
}
export const zc = (deptname,username, password, sname, phone) => {
  return request({
    url: '/api/blade-user/zc',
    method: 'get',
    params: {
      deptname,
      username,
      password,
      sname,
      phone,
    }
  })
}
src/lang/zh.js
@@ -72,6 +72,7 @@
    username: '请输入账号',
    password: '请输入密码',
    password2: '请再次输入密码',
    deptname: '单位名称',
    name: '请输入姓名',
    wechat: '微信',
    qq: 'QQ',
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')
src/views/home/index.vue
@@ -641,7 +641,7 @@
      this.userName =this.$store.getters.userInfo.user_name
    },
    convert: function () {
      var caridid = this.$store.getters.userInfo.dept_id;
      var caridid = this.$store.getters.userInfo.Id;
      selectIn(caridid).then(res => {
        this.option.column[1].value = res.data.data.creditCode
        this.option.column[2].value = res.data.data.jurisdiction
@@ -694,7 +694,7 @@
      }
      this.data0 = d;
      this.data0.ptype = this.$refs.name.value
      this.data0.deptid = this.$store.getters.userInfo.dept_id
      this.data0.cardid = this.$store.getters.userInfo.Id
      add(this.data0).then(() => {
        this.tipover();
      });