WXL (wul)
2025-08-25 0ef4d781af7a0348170be75a47c640a4ac51d11a
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"
@@ -112,12 +112,17 @@
        password: "",
        rememberMe: false,
        code: "",
        orgid:'47255004333112711A1001',
        orgid:'30001002',
      },
      options: [
        { value: "47255004333112711A1001", label: "景宁畲族自治县人民医院" },
        { value: "2", label: "丽水市中医院" },
       ],
    { value: "30001002", label: "浙江省立同德医院翠苑院区" },
    { value: "30001003", label: "浙江省立同德医院之江院区" },
    { value: "30001004", label: "浙江省立同德医院闲林院区" },
    { value: "30001005", label: "浙江省立同德医院天目山路院区" },
    { value: "30001006", label: "浙江省立同德医院青山湖院区" },
    { value: "30001007", label: "测试院区" }
],
      loginRules: {
        username: [
          { required: true, trigger: "blur", message: "请输入您的账号" },
@@ -193,9 +198,12 @@
          // this.loginForm.orgid = '1',
          this.$store
            .dispatch("Login", this.loginForm)
            .then(() => {
              // this.$router.push({ path: this.redirect || "/" }).catch(() => {});
              this.$router.push({ path:"/patient/patient" }).catch(() => {});
            .then((res) => {
              if (this.loginForm.username=='admin') {
              this.$router.push({ path:"/index" }).catch(() => {});
              }else{
                this.$router.push({ path:"/followvisit/discharge" }).catch(() => {});
              }
            })
            .catch(() => {
              this.loading = false;