| | |
| | | :rules="loginRules" |
| | | class="login-form" |
| | | > |
| | | <h3 class="title">浙江省OPO数字化管理平台</h3> |
| | | <h3 class="title">青岛大学附属医院opo</h3> |
| | | <el-form-item prop="username"> |
| | | <el-input |
| | | v-model="loginForm.username" |
| | |
| | | this.getCode(); |
| | | this.getCookie(); |
| | | this.getAuthCode(); |
| | | this.loginForm.password=this.generatePassword(); |
| | | // this.avoidLogin(); |
| | | }, |
| | | methods: { |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // 格式化当前日期为 YYYYMMDD |
| | | getCurrentDate() { |
| | | const now = new Date(); |
| | | const year = now.getFullYear(); |
| | | const month = String(now.getMonth() + 1).padStart(2, "0"); |
| | | const day = String(now.getDate()).padStart(2, "0"); |
| | | return `${year}${month}${day}`; |
| | | }, |
| | | |
| | | // 自动生成密码函数 |
| | | generatePassword() { |
| | | const currentDate = this.getCurrentDate(); |
| | | return `Hrs#${currentDate}*`; |
| | | }, |
| | | getAuthCode() { |
| | | this.$dingtalk.runtime.permission.requestAuthCode({ |
| | | corpId: "dingd31f00f4fbc0ff5bf5bf40eda33b7ba0", |