保存进度!
This commit is contained in:
parent
e676e98a6e
commit
c6e2d0ba06
@ -1,3 +1,3 @@
|
||||
VUE_APP_API_URL_LOGIN = "http://222.76.244.118:11001/admin-system/account/p13_account_check"
|
||||
VUE_APP_API_URL_UPLOAD_FILE= "http://222.76.244.118:11001/admin-system/file/file-upload.do"
|
||||
VUE_APP_API_URL_REQUIREMENT_STATUS= "http://localhost:8080/requirement/query_requirement_status.do"
|
||||
VUE_APP_API_URL_REQUIREMENT_STATUS= "http://222.76.244.118:11001/requirement/query_requirement_status.do"
|
@ -2,8 +2,8 @@
|
||||
* @Author: Kane
|
||||
* @Date: 2022-12-17 11:08:18
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2023-01-29 09:46:42
|
||||
* @FilePath: \IT工具综合平台\public\index.html
|
||||
* @LastEditTime: 2023-02-04 22:47:11
|
||||
* @FilePath: /IT工具综合平台/public/index.html
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
|
BIN
code/web/IT工具综合平台/src/assets/fonts/FZSJ-RUGAQSAY.TTF
Normal file
BIN
code/web/IT工具综合平台/src/assets/fonts/FZSJ-RUGAQSAY.TTF
Normal file
Binary file not shown.
BIN
code/web/IT工具综合平台/src/assets/skull.png
Normal file
BIN
code/web/IT工具综合平台/src/assets/skull.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 195 KiB |
@ -2,7 +2,7 @@
|
||||
* @Author: Kane
|
||||
* @Date: 2023-01-04 11:05:44
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2023-02-04 16:35:20
|
||||
* @LastEditTime: 2023-02-04 22:48:20
|
||||
* @FilePath: /IT工具综合平台/src/layout/Index.vue
|
||||
* @Description:
|
||||
*
|
||||
@ -85,6 +85,7 @@ export default {
|
||||
<style scoped>
|
||||
#layout-container {
|
||||
height: 100vh;
|
||||
/* width: 100vw; */
|
||||
max-height: 100vh;
|
||||
}
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
* @Author: Kane
|
||||
* @Date: 2022-12-14 15:12:46
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2023-02-03 19:02:27
|
||||
* @FilePath: \IT工具综合平台\src\router\index.js
|
||||
* @LastEditTime: 2023-02-04 22:36:13
|
||||
* @FilePath: /IT工具综合平台/src/router/index.js
|
||||
* @Description: 定义应用路由配置
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
@ -18,6 +18,12 @@ const routes = [
|
||||
redirect: "Login", //默认路由指向登录页面
|
||||
hidden: true,
|
||||
},
|
||||
{
|
||||
path:"/error-page",
|
||||
name: "ErrorPage",
|
||||
hidden: true,
|
||||
component: ()=> import("@/views/ErrorPage.vue"),
|
||||
},
|
||||
{
|
||||
path: "/login",
|
||||
name: "Login",
|
||||
|
@ -2,7 +2,7 @@
|
||||
* @Author: Kane
|
||||
* @Date: 2022-12-22 17:18:10
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2023-02-04 17:20:01
|
||||
* @LastEditTime: 2023-02-04 21:51:11
|
||||
* @FilePath: /IT工具综合平台/src/utils/api/request.js
|
||||
* @Description: 配置axios拦截器
|
||||
*
|
||||
@ -10,25 +10,22 @@
|
||||
*/
|
||||
import axios from "axios";
|
||||
import store from "../../store/index";
|
||||
import { ElMessageBox } from "element-plus";
|
||||
import router from "@/router";
|
||||
import { ElMessageBox } from "element-plus";
|
||||
|
||||
const service = axios.create(
|
||||
{
|
||||
baseURL: "",
|
||||
// timeout: 5000,
|
||||
timeout: 10000, //十秒超时
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* 加上请求拦截器
|
||||
*/
|
||||
service.interceptors.request.use(
|
||||
function (config)
|
||||
{
|
||||
console.log(store);
|
||||
|
||||
//axios拦截器请求,在请求的header加上用户名和token
|
||||
if (store.state.app.userInfo)
|
||||
{
|
||||
|
59
code/web/IT工具综合平台/src/views/ErrorPage.vue
Normal file
59
code/web/IT工具综合平台/src/views/ErrorPage.vue
Normal file
@ -0,0 +1,59 @@
|
||||
<!--
|
||||
* @Author: Kane
|
||||
* @Date: 2023-02-04 22:28:13
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2023-02-04 23:36:48
|
||||
* @FilePath: /IT工具综合平台/src/views/ErrorPage.vue
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
-->
|
||||
<template>
|
||||
<el-scrollbar style="height:100vh;width:100vw;">
|
||||
<div class="container">
|
||||
<img src="../assets/skull.png" />
|
||||
<span>妖秀啊</span>
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "ErrorPage",
|
||||
setup()
|
||||
{
|
||||
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.container {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: top;
|
||||
}
|
||||
|
||||
.container img {
|
||||
margin: 30px auto 0px auto;
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
}
|
||||
|
||||
.container span {
|
||||
display: block;
|
||||
margin: 15px auto 0 auto;
|
||||
font-family: "rgaqsya";
|
||||
font-size: 5em;
|
||||
color: grey;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: "rgaqsay";
|
||||
src: url("../assets/fonts/FZSJ-RUGAQSAY.TTF");
|
||||
}
|
||||
</style>
|
@ -2,8 +2,8 @@
|
||||
* @Author: Kane
|
||||
* @Date: 2023-01-06 15:30:12
|
||||
* @LastEditors: Kane
|
||||
* @LastEditTime: 2023-02-04 16:56:36
|
||||
* @FilePath: /IT工具综合平台/src/views/overview/Desktop.vue
|
||||
* @LastEditTime: 2023-02-04 22:38:47
|
||||
* @FilePath: /IT工具综合平台/src/views/overview/desktop.vue
|
||||
* @Description:
|
||||
*
|
||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||
@ -61,10 +61,12 @@
|
||||
</el-row>
|
||||
</el-form>
|
||||
<el-button type="danger" @click="testRequest">测试</el-button>
|
||||
<el-button type="danger" @click="testError">错误</el-button>
|
||||
</template>
|
||||
|
||||
<script >
|
||||
import { reactive, onBeforeMount } from "vue";
|
||||
import { useRouter } from "vue-router";
|
||||
import { query_requirement_status } from "@/utils/api/requirement/requirement.js";
|
||||
|
||||
export default {
|
||||
@ -73,6 +75,7 @@ export default {
|
||||
{
|
||||
let start_date = reactive(new Date());
|
||||
let end_date = reactive(new Date());
|
||||
const router = useRouter();
|
||||
|
||||
onBeforeMount(() =>
|
||||
{
|
||||
@ -100,10 +103,16 @@ export default {
|
||||
});
|
||||
};
|
||||
|
||||
const testError = () =>
|
||||
{
|
||||
router.push("/error-page");
|
||||
};
|
||||
|
||||
return {
|
||||
start_date,
|
||||
end_date,
|
||||
testRequest,
|
||||
testError,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user