保存进度!
This commit is contained in:
		@@ -3,7 +3,7 @@
 | 
				
			|||||||
 * @Author: Kane
 | 
					 * @Author: Kane
 | 
				
			||||||
 * @Date: 2022-12-14 15:23:54
 | 
					 * @Date: 2022-12-14 15:23:54
 | 
				
			||||||
 * @LastEditors: Kane
 | 
					 * @LastEditors: Kane
 | 
				
			||||||
 * @LastEditTime: 2022-12-25 20:27:50
 | 
					 * @LastEditTime: 2022-12-26 16:50:02
 | 
				
			||||||
 * @FilePath: \admin_system\src\views\account\Login.vue
 | 
					 * @FilePath: \admin_system\src\views\account\Login.vue
 | 
				
			||||||
 * @Description: 
 | 
					 * @Description: 
 | 
				
			||||||
 * 
 | 
					 * 
 | 
				
			||||||
@@ -43,9 +43,10 @@
 | 
				
			|||||||
          </el-row>
 | 
					          </el-row>
 | 
				
			||||||
        </el-form-item>
 | 
					        </el-form-item>
 | 
				
			||||||
        <el-form-item>
 | 
					        <el-form-item>
 | 
				
			||||||
          <el-button type="primary" class="el-button-block" @click="login">{{ current_menu === "login" ? "登录" :
 | 
					          <el-button type="primary" class="el-button-block" @click="login" :disabled="submit_btn_disable"
 | 
				
			||||||
              "注册"
 | 
					            :loading="submit_btn_loading">
 | 
				
			||||||
          }}</el-button>
 | 
					            {{ current_menu === "login" ? "登录" : "注册" }}
 | 
				
			||||||
 | 
					          </el-button>
 | 
				
			||||||
        </el-form-item>
 | 
					        </el-form-item>
 | 
				
			||||||
      </el-form>
 | 
					      </el-form>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
@@ -73,6 +74,8 @@ export default {
 | 
				
			|||||||
      ],
 | 
					      ],
 | 
				
			||||||
      current_menu: "",
 | 
					      current_menu: "",
 | 
				
			||||||
      staffInfo: null,
 | 
					      staffInfo: null,
 | 
				
			||||||
 | 
					      submit_btn_disable: false,
 | 
				
			||||||
 | 
					      submit_btn_loading: false,
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  methods: {
 | 
					  methods: {
 | 
				
			||||||
@@ -91,6 +94,9 @@ export default {
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    login()
 | 
					    login()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
 | 
					      this.submit_btn_disable = true;
 | 
				
			||||||
 | 
					      this.submit_btn_loading = true;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      const userInfo = {
 | 
					      const userInfo = {
 | 
				
			||||||
        p13account: "588",
 | 
					        p13account: "588",
 | 
				
			||||||
        password: "Kane@19831",
 | 
					        password: "Kane@19831",
 | 
				
			||||||
@@ -120,6 +126,9 @@ export default {
 | 
				
			|||||||
              center: true,
 | 
					              center: true,
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          this.submit_btn_disable = false;
 | 
				
			||||||
 | 
					          this.submit_btn_loading = false;
 | 
				
			||||||
        })
 | 
					        })
 | 
				
			||||||
        .catch((error) =>
 | 
					        .catch((error) =>
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@@ -130,6 +139,9 @@ export default {
 | 
				
			|||||||
            type: "error",
 | 
					            type: "error",
 | 
				
			||||||
            center: true,
 | 
					            center: true,
 | 
				
			||||||
          });
 | 
					          });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          this.submit_btn_disable = false;
 | 
				
			||||||
 | 
					          this.submit_btn_loading = false;
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user