WXL
5 天以前 c97bd0d3b646611474faf6017aebbe34180a0e92
src/views/login.vue
@@ -6,7 +6,7 @@
      :rules="loginRules"
      class="login-form"
    >
      <h3 class="title">浙中医大二院智慧随访平台</h3>
      <h3 class="title">智慧随访系统</h3>
      <el-form-item prop="username">
        <el-input
          v-model="loginForm.username"
@@ -115,8 +115,10 @@
        orgid:'1',
      },
      options: [
        { value: "1", label: "景宁畲族自治县人民医院" },
        { value: "2", label: "丽水市中医院" },
        { value: "47255004333112711A1001", label: "景宁畲族自治县人民医院" },
        { value: "47231022633110211A2101", label: "丽水市中医院" },
        { value: "47246102433112211A2101", label: "缙云县中医医院 " },
        { value: "47240018433118111A2101", label: "龙泉市中医医院 " },
       ],
      loginRules: {
        username: [
@@ -125,7 +127,7 @@
        password: [
          { required: true, trigger: "blur", message: "请输入您的密码" },
        ],
        // orgid: [{ required: true, trigger: "blur", message: "请选择院区" }],
        orgid: [{ required: true, trigger: "blur", message: "请选择院区" }],
      },
      loading: false,
      // 验证码开关
@@ -195,7 +197,7 @@
            .dispatch("Login", this.loginForm)
            .then(() => {
              // this.$router.push({ path: this.redirect || "/" }).catch(() => {});
              this.$router.push({ path:"/patient/patient" }).catch(() => {});
              this.$router.push({ path:"/followvisit/discharge" }).catch(() => {});
            })
            .catch(() => {
              this.loading = false;