a4b488eb by renchao@pashanhoo.com

style:上报样式修改

2 parents 97f9e0db d0ddb155
......@@ -7,5 +7,6 @@
"SERVERAPI": "/bdcsjsb",
"calcHeight": 200,
"echartTextColor": "#FFFFFF",
"MANAGEMENTAPI": "http://192.168.2.38:8090/management"
"MANAGEMENTAPI": "http://192.168.2.38:8090/management",
"IPCONFIG": "http://192.168.2.38:8027"
}
\ No newline at end of file
......
......@@ -7,5 +7,6 @@
"SERVERAPI": "/bdcsjsb",
"calcHeight": 160,
"echartTextColor": "#4A4A4A",
"MANAGEMENTAPI": "http://192.168.2.38:8090/management"
"MANAGEMENTAPI": "http://192.168.2.38:8090/management",
"IPCONFIG": "http://192.168.2.38:8027"
}
\ No newline at end of file
......
......@@ -7,5 +7,6 @@
"SERVERAPI": "/bdcsjsb",
"calcHeight": 200,
"echartTextColor": "#FFFFFF",
"MANAGEMENTAPI": "http://192.168.2.38:8090/management"
"MANAGEMENTAPI": "http://192.168.2.38:8090/management",
"IPCONFIG": "http://192.168.2.38:8027"
}
\ No newline at end of file
......
......@@ -7,5 +7,6 @@
"SERVERAPI": "/bdcsjsb",
"calcHeight": 160,
"echartTextColor": "#4A4A4A",
"MANAGEMENTAPI": "http://192.168.2.38:8090/management"
"MANAGEMENTAPI": "http://192.168.2.38:8090/management",
"IPCONFIG": "http://192.168.2.38:8027"
}
\ No newline at end of file
......
<!--
* @Description: 引入配置文件
* @Autor: renchao
* @LastEditTime: 2023-05-06 16:26:39
* @LastEditTime: 2023-05-08 15:02:53
-->
<!DOCTYPE html>
<html>
......@@ -18,7 +18,7 @@
</title>
</head>
<script>
fetch('/config.json')
fetch('<%= BASE_URL %>config.json')
.then(response => response.json())
.then(config => {
window.config = config
......
/*
* @Description: 数据上报模块api文件
* @Autor: renchao
* @LastEditTime: 2023-04-27 13:52:53
* @LastEditTime: 2023-05-06 10:29:06
*/
/* 引入axios请求文件 */
import request from '@/utils/request'
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-23 17:19:52
* @LastEditTime: 2023-05-08 15:03:10
*/
import request from "@/utils/request";
// let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
// console.log(SERVER, 'SERVERSERVER');
export function loginIn (username, password) {
return request({
url: `${SERVER.MANAGEMENTAPI}/login?username=${username}&password=${password}`,
......
......@@ -2,7 +2,7 @@
* @Author: yangwei
* @Date: 2023-01-16 09:10:12
* @LastEditors: Please set LastEditors
* @LastEditTime: 2023-05-06 16:38:08
* @LastEditTime: 2023-05-08 15:03:06
* @FilePath: \bdcjg-web\src\main.js
* @Description:
*
......@@ -60,7 +60,8 @@ axios.get("./config.json")
.then((res) => {
Vue.prototype.BASE_API = res.data
localStorage.setItem('ApiUrl', JSON.stringify(res.data));
window.TITLE = res.data.TITLE
process.env.TITLE = res.data.TITLE
process.env.IPCONFIG = res.data.IPCONFIG
require('./permission')
new Vue({
el: '#app',
......
......@@ -420,7 +420,7 @@
.tab-pane-item {
line-height: 20px;
color: #02d9fd;
color: #FFFFFF;
p {
text-align: center;
......
......@@ -637,7 +637,7 @@
.tab-pane-item {
line-height: 20px;
color: #fff;
color: #FFFFFF;
p {
text-align: center;
......@@ -1016,4 +1016,4 @@
font-size: 20px;
color: #4162D8
}
}
}
\ No newline at end of file
......
/*
* @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器
* @Autor: renchao
* @LastEditTime: 2023-03-29 10:14:34
* @LastEditTime: 2023-04-27 17:09:51
*/
import Vue from 'vue'
import axios from "axios";
......@@ -85,12 +85,9 @@ function handleErrorData (status) {
},
});
}
}
break;
case 403:
Message.error("拒绝访问");
break;
case 404:
Message.error("很抱歉,资源未找到!");
break;
......