style:上报样式修改
Showing
12 changed files
with
20 additions
and
21 deletions
| ... | @@ -7,5 +7,6 @@ | ... | @@ -7,5 +7,6 @@ |
| 7 | "SERVERAPI": "/bdcsjsb", | 7 | "SERVERAPI": "/bdcsjsb", |
| 8 | "calcHeight": 200, | 8 | "calcHeight": 200, |
| 9 | "echartTextColor": "#FFFFFF", | 9 | "echartTextColor": "#FFFFFF", |
| 10 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management" | 10 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management", |
| 11 | "IPCONFIG": "http://192.168.2.38:8027" | ||
| 11 | } | 12 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -7,5 +7,6 @@ | ... | @@ -7,5 +7,6 @@ |
| 7 | "SERVERAPI": "/bdcsjsb", | 7 | "SERVERAPI": "/bdcsjsb", |
| 8 | "calcHeight": 160, | 8 | "calcHeight": 160, |
| 9 | "echartTextColor": "#4A4A4A", | 9 | "echartTextColor": "#4A4A4A", |
| 10 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management" | 10 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management", |
| 11 | "IPCONFIG": "http://192.168.2.38:8027" | ||
| 11 | } | 12 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -7,5 +7,6 @@ | ... | @@ -7,5 +7,6 @@ |
| 7 | "SERVERAPI": "/bdcsjsb", | 7 | "SERVERAPI": "/bdcsjsb", |
| 8 | "calcHeight": 200, | 8 | "calcHeight": 200, |
| 9 | "echartTextColor": "#FFFFFF", | 9 | "echartTextColor": "#FFFFFF", |
| 10 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management" | 10 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management", |
| 11 | "IPCONFIG": "http://192.168.2.38:8027" | ||
| 11 | } | 12 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -7,5 +7,6 @@ | ... | @@ -7,5 +7,6 @@ |
| 7 | "SERVERAPI": "/bdcsjsb", | 7 | "SERVERAPI": "/bdcsjsb", |
| 8 | "calcHeight": 160, | 8 | "calcHeight": 160, |
| 9 | "echartTextColor": "#4A4A4A", | 9 | "echartTextColor": "#4A4A4A", |
| 10 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management" | 10 | "MANAGEMENTAPI": "http://192.168.2.38:8090/management", |
| 11 | "IPCONFIG": "http://192.168.2.38:8027" | ||
| 11 | } | 12 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: 引入配置文件 | 2 | * @Description: 引入配置文件 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-05-06 16:26:39 | 4 | * @LastEditTime: 2023-05-08 15:02:53 |
| 5 | --> | 5 | --> |
| 6 | <!DOCTYPE html> | 6 | <!DOCTYPE html> |
| 7 | <html> | 7 | <html> |
| ... | @@ -18,7 +18,7 @@ | ... | @@ -18,7 +18,7 @@ |
| 18 | </title> | 18 | </title> |
| 19 | </head> | 19 | </head> |
| 20 | <script> | 20 | <script> |
| 21 | fetch('/config.json') | 21 | fetch('<%= BASE_URL %>config.json') |
| 22 | .then(response => response.json()) | 22 | .then(response => response.json()) |
| 23 | .then(config => { | 23 | .then(config => { |
| 24 | window.config = config | 24 | window.config = config | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Description: 数据上报模块api文件 | 2 | * @Description: 数据上报模块api文件 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-04-27 13:52:53 | 4 | * @LastEditTime: 2023-05-06 10:29:06 |
| 5 | */ | 5 | */ |
| 6 | /* 引入axios请求文件 */ | 6 | /* 引入axios请求文件 */ |
| 7 | import request from '@/utils/request' | 7 | import request from '@/utils/request' | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-03-23 17:19:52 | 4 | * @LastEditTime: 2023-05-08 15:03:10 |
| 5 | */ | 5 | */ |
| 6 | import request from "@/utils/request"; | 6 | import request from "@/utils/request"; |
| 7 | // let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | ||
| 8 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
| 9 | // console.log(SERVER, 'SERVERSERVER'); | ||
| 10 | |||
| 11 | export function loginIn (username, password) { | 8 | export function loginIn (username, password) { |
| 12 | return request({ | 9 | return request({ |
| 13 | url: `${SERVER.MANAGEMENTAPI}/login?username=${username}&password=${password}`, | 10 | url: `${SERVER.MANAGEMENTAPI}/login?username=${username}&password=${password}`, | ... | ... |
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | * @Author: yangwei | 2 | * @Author: yangwei |
| 3 | * @Date: 2023-01-16 09:10:12 | 3 | * @Date: 2023-01-16 09:10:12 |
| 4 | * @LastEditors: Please set LastEditors | 4 | * @LastEditors: Please set LastEditors |
| 5 | * @LastEditTime: 2023-05-06 16:38:08 | 5 | * @LastEditTime: 2023-05-08 15:03:06 |
| 6 | * @FilePath: \bdcjg-web\src\main.js | 6 | * @FilePath: \bdcjg-web\src\main.js |
| 7 | * @Description: | 7 | * @Description: |
| 8 | * | 8 | * |
| ... | @@ -60,7 +60,8 @@ axios.get("./config.json") | ... | @@ -60,7 +60,8 @@ axios.get("./config.json") |
| 60 | .then((res) => { | 60 | .then((res) => { |
| 61 | Vue.prototype.BASE_API = res.data | 61 | Vue.prototype.BASE_API = res.data |
| 62 | localStorage.setItem('ApiUrl', JSON.stringify(res.data)); | 62 | localStorage.setItem('ApiUrl', JSON.stringify(res.data)); |
| 63 | window.TITLE = res.data.TITLE | 63 | process.env.TITLE = res.data.TITLE |
| 64 | process.env.IPCONFIG = res.data.IPCONFIG | ||
| 64 | require('./permission') | 65 | require('./permission') |
| 65 | new Vue({ | 66 | new Vue({ |
| 66 | el: '#app', | 67 | el: '#app', | ... | ... |
| ... | @@ -637,7 +637,7 @@ | ... | @@ -637,7 +637,7 @@ |
| 637 | 637 | ||
| 638 | .tab-pane-item { | 638 | .tab-pane-item { |
| 639 | line-height: 20px; | 639 | line-height: 20px; |
| 640 | color: #fff; | 640 | color: #FFFFFF; |
| 641 | 641 | ||
| 642 | p { | 642 | p { |
| 643 | text-align: center; | 643 | text-align: center; |
| ... | @@ -1016,4 +1016,4 @@ | ... | @@ -1016,4 +1016,4 @@ |
| 1016 | font-size: 20px; | 1016 | font-size: 20px; |
| 1017 | color: #4162D8 | 1017 | color: #4162D8 |
| 1018 | } | 1018 | } |
| 1019 | } | 1019 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | /* | 1 | /* |
| 2 | * @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器 | 2 | * @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器 |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-03-29 10:14:34 | 4 | * @LastEditTime: 2023-04-27 17:09:51 |
| 5 | */ | 5 | */ |
| 6 | import Vue from 'vue' | 6 | import Vue from 'vue' |
| 7 | import axios from "axios"; | 7 | import axios from "axios"; |
| ... | @@ -85,12 +85,9 @@ function handleErrorData (status) { | ... | @@ -85,12 +85,9 @@ function handleErrorData (status) { |
| 85 | }, | 85 | }, |
| 86 | }); | 86 | }); |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | } | 89 | } |
| 90 | break; | 90 | break; |
| 91 | case 403: | ||
| 92 | Message.error("拒绝访问"); | ||
| 93 | break; | ||
| 94 | case 404: | 91 | case 404: |
| 95 | Message.error("很抱歉,资源未找到!"); | 92 | Message.error("很抱歉,资源未找到!"); |
| 96 | break; | 93 | break; | ... | ... |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment