|
@@ -18,6 +18,12 @@
|
|
|
v-model="loginInfo.password"
|
|
|
placeholder="密码"/>
|
|
|
</div>
|
|
|
+ <div class="password">
|
|
|
+ <em></em>
|
|
|
+ <input class="form-control comminput" @keyup.enter="login()" type="text" id="domain"
|
|
|
+ v-model="loginInfo.domain"
|
|
|
+ placeholder="机构域名"/>
|
|
|
+ </div>
|
|
|
<input type="button" value="登 录" class="btn comminput" style="background: #3ed798;color:white;" @click="login()"/>
|
|
|
<div class="errorInfo">{{errorInfo}}</div>
|
|
|
</div>
|
|
@@ -57,6 +63,15 @@
|
|
|
}
|
|
|
return true;
|
|
|
},
|
|
|
+
|
|
|
+ checkDomain() {
|
|
|
+ this.errorInfo = '';
|
|
|
+ if (!this.loginInfo.domain) {
|
|
|
+ this.errorInfo += '机构域名不能为空!\n'
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ },
|
|
|
|
|
|
login() {
|
|
|
if (!this.checkAccountValue()) {
|
|
@@ -65,6 +80,9 @@
|
|
|
if (!this.checkPassword()) {
|
|
|
return;
|
|
|
}
|
|
|
+ if (!this.checkDomain()) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (this.pending) {
|
|
|
return;
|
|
|
}
|
|
@@ -85,7 +103,6 @@
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
- this.loginInfo.domain = process.env.VUE_APP_DOMAIN;
|
|
|
sessionStorage.clear();
|
|
|
var params = this.$route.query;
|
|
|
this.loginInfo.rootOrgId = params.orgId;
|