保存进度!
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_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_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
|
* @Author: Kane
|
||||||
* @Date: 2022-12-17 11:08:18
|
* @Date: 2022-12-17 11:08:18
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-01-29 09:46:42
|
* @LastEditTime: 2023-02-04 22:47:11
|
||||||
* @FilePath: \IT工具综合平台\public\index.html
|
* @FilePath: /IT工具综合平台/public/index.html
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
* 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
|
* @Author: Kane
|
||||||
* @Date: 2023-01-04 11:05:44
|
* @Date: 2023-01-04 11:05:44
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-02-04 16:35:20
|
* @LastEditTime: 2023-02-04 22:48:20
|
||||||
* @FilePath: /IT工具综合平台/src/layout/Index.vue
|
* @FilePath: /IT工具综合平台/src/layout/Index.vue
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
@ -85,6 +85,7 @@ export default {
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
#layout-container {
|
#layout-container {
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
/* width: 100vw; */
|
||||||
max-height: 100vh;
|
max-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
* @Author: Kane
|
* @Author: Kane
|
||||||
* @Date: 2022-12-14 15:12:46
|
* @Date: 2022-12-14 15:12:46
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-02-03 19:02:27
|
* @LastEditTime: 2023-02-04 22:36:13
|
||||||
* @FilePath: \IT工具综合平台\src\router\index.js
|
* @FilePath: /IT工具综合平台/src/router/index.js
|
||||||
* @Description: 定义应用路由配置
|
* @Description: 定义应用路由配置
|
||||||
*
|
*
|
||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||||
@ -18,6 +18,12 @@ const routes = [
|
|||||||
redirect: "Login", //默认路由指向登录页面
|
redirect: "Login", //默认路由指向登录页面
|
||||||
hidden: true,
|
hidden: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path:"/error-page",
|
||||||
|
name: "ErrorPage",
|
||||||
|
hidden: true,
|
||||||
|
component: ()=> import("@/views/ErrorPage.vue"),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "/login",
|
path: "/login",
|
||||||
name: "Login",
|
name: "Login",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* @Author: Kane
|
* @Author: Kane
|
||||||
* @Date: 2022-12-22 17:18:10
|
* @Date: 2022-12-22 17:18:10
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-02-04 17:20:01
|
* @LastEditTime: 2023-02-04 21:51:11
|
||||||
* @FilePath: /IT工具综合平台/src/utils/api/request.js
|
* @FilePath: /IT工具综合平台/src/utils/api/request.js
|
||||||
* @Description: 配置axios拦截器
|
* @Description: 配置axios拦截器
|
||||||
*
|
*
|
||||||
@ -10,25 +10,22 @@
|
|||||||
*/
|
*/
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import store from "../../store/index";
|
import store from "../../store/index";
|
||||||
import { ElMessageBox } from "element-plus";
|
|
||||||
import router from "@/router";
|
import router from "@/router";
|
||||||
|
import { ElMessageBox } from "element-plus";
|
||||||
|
|
||||||
const service = axios.create(
|
const service = axios.create(
|
||||||
{
|
{
|
||||||
baseURL: "",
|
baseURL: "",
|
||||||
// timeout: 5000,
|
timeout: 10000, //十秒超时
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 加上请求拦截器
|
* 加上请求拦截器
|
||||||
*/
|
*/
|
||||||
service.interceptors.request.use(
|
service.interceptors.request.use(
|
||||||
function (config)
|
function (config)
|
||||||
{
|
{
|
||||||
console.log(store);
|
|
||||||
|
|
||||||
//axios拦截器请求,在请求的header加上用户名和token
|
//axios拦截器请求,在请求的header加上用户名和token
|
||||||
if (store.state.app.userInfo)
|
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
|
* @Author: Kane
|
||||||
* @Date: 2023-01-06 15:30:12
|
* @Date: 2023-01-06 15:30:12
|
||||||
* @LastEditors: Kane
|
* @LastEditors: Kane
|
||||||
* @LastEditTime: 2023-02-04 16:56:36
|
* @LastEditTime: 2023-02-04 22:38:47
|
||||||
* @FilePath: /IT工具综合平台/src/views/overview/Desktop.vue
|
* @FilePath: /IT工具综合平台/src/views/overview/desktop.vue
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
||||||
@ -61,10 +61,12 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-button type="danger" @click="testRequest">测试</el-button>
|
<el-button type="danger" @click="testRequest">测试</el-button>
|
||||||
|
<el-button type="danger" @click="testError">错误</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script >
|
<script >
|
||||||
import { reactive, onBeforeMount } from "vue";
|
import { reactive, onBeforeMount } from "vue";
|
||||||
|
import { useRouter } from "vue-router";
|
||||||
import { query_requirement_status } from "@/utils/api/requirement/requirement.js";
|
import { query_requirement_status } from "@/utils/api/requirement/requirement.js";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -73,6 +75,7 @@ export default {
|
|||||||
{
|
{
|
||||||
let start_date = reactive(new Date());
|
let start_date = reactive(new Date());
|
||||||
let end_date = reactive(new Date());
|
let end_date = reactive(new Date());
|
||||||
|
const router = useRouter();
|
||||||
|
|
||||||
onBeforeMount(() =>
|
onBeforeMount(() =>
|
||||||
{
|
{
|
||||||
@ -100,10 +103,16 @@ export default {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const testError = () =>
|
||||||
|
{
|
||||||
|
router.push("/error-page");
|
||||||
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
start_date,
|
start_date,
|
||||||
end_date,
|
end_date,
|
||||||
testRequest,
|
testRequest,
|
||||||
|
testError,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user