|
@@ -1,3 +1,56 @@
|
|
|
<template>
|
|
|
- <div>login</div>
|
|
|
+ <div class="tw-h-screen tw-flex tw-justify-center tw-items-center">
|
|
|
+ <div class="tw-flex" style="width: 860px; height: 558px">
|
|
|
+ <div style="width: 400px" class="left-panel">
|
|
|
+ <div class="tw-text-2xl">欢迎登录,<br />考试成绩综合分析系统</div>
|
|
|
+ <div style="font-size: 12px">武汉启明泰和软件服务有限公司技术支持</div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="tw-bg-white" style="padding: 0 70px 0 90px">
|
|
|
+ <div style="padding: 80px 0">icon</div>
|
|
|
+
|
|
|
+ <div style="width: 300px">
|
|
|
+ <a-form-item>
|
|
|
+ <a-input v-model:value="accountValue" placeholder="请输入用户名" />
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item>
|
|
|
+ <a-input v-model:value="password" placeholder="请输入密码" />
|
|
|
+ </a-form-item>
|
|
|
+
|
|
|
+ <a-button type="primary" @click="login">立即登录</a-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
+
|
|
|
+<script setup lang="ts">
|
|
|
+import { loginByUsername } from "@/api/loginPage";
|
|
|
+import { ref } from "vue";
|
|
|
+
|
|
|
+let accountValue = ref("");
|
|
|
+let password = ref("");
|
|
|
+const rootOrgId = "1";
|
|
|
+
|
|
|
+async function login() {
|
|
|
+ const res = await loginByUsername({
|
|
|
+ accountValue: accountValue.value,
|
|
|
+ password: password.value,
|
|
|
+ rootOrgId: rootOrgId,
|
|
|
+ });
|
|
|
+ console.log(res);
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+.left-panel {
|
|
|
+ width: 400px;
|
|
|
+ padding: 58px 100px 30px 60px;
|
|
|
+ color: white;
|
|
|
+ background-image: url(./left.png);
|
|
|
+
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
+ justify-content: space-between;
|
|
|
+}
|
|
|
+</style>
|