Compare commits

..

No commits in common. "c868ea87a6ba56d2a850d786ddbdb8522e9cc662" and "62a18469e4b1f9e2a4b0bfec7d32a8876b7f566b" have entirely different histories.

4 changed files with 28 additions and 57 deletions

View File

@ -1,41 +1,34 @@
import request from "@/utils/request"; import request from '@/utils/request'
// 可调负荷资源 // 可调负荷资源
export function GetKdfhzy() { export function GetKdfhzy () {
return request({ return request({
url: `/api/GetAdjustableload`, url: `/GetAdjustableload`,
method: "GET", method: 'GET'
}); })
} }
// 可调负荷策略 // 可调负荷策略
export function GetKdfhcl() { export function GetKdfhcl () {
return request({ return request({
url: `/GetLoadControlStrategy`, url: `/GetLoadControlStrategy`,
method: "GET", method: 'GET'
}); })
} }
// 可调负荷分析 // 可调负荷分析
export function GetKdfhfx() { export function GetKdfhfx () {
return request({ return request({
url: `//GetAdjustableLoadAnalysis`, url: `//GetAdjustableLoadAnalysis`,
method: "GET", method: 'GET'
}); })
} }
// 刚性可调负荷 // 刚性可调负荷
export function GetGang() { export function GetGang () {
return request({ return request({
url: `//GetRigidAdjustableLoads`, url: `//GetRigidAdjustableLoads`,
method: "GET", method: 'GET'
}); })
} }
// 柔性可调负荷 // 柔性可调负荷
<<<<<<< HEAD
export function GetRou() {
return request({
url: `//GetFlexibleAdjustableLoad`,
method: "GET",
});
=======
export function GetRou () { export function GetRou () {
return request({ return request({
url: `//GetFlexibleAdjustableLoad`, url: `//GetFlexibleAdjustableLoad`,
@ -48,5 +41,4 @@ export function GetKdsb () {
url: `//GetAdjustableDevice`, url: `//GetAdjustableDevice`,
method: 'GET' method: 'GET'
}) })
>>>>>>> 62a18469e4b1f9e2a4b0bfec7d32a8876b7f566b
} }

View File

@ -2,7 +2,8 @@
import axios from "axios"; import axios from "axios";
import { Message } from "element-ui"; // 请确保你的项目中已经安装了 Element UI import { Message } from "element-ui"; // 请确保你的项目中已经安装了 Element UI
const request = axios.create({ const request = axios.create({
timeout: 50000, // 请求超时当5s没有响应就会结束请求 baseURL: "https://localhost:44352/api/", // 设置基地址,博主这个请求跨域了因此我设置了代理服务器,因此基地址才这么短
timeout: 5000, // 请求超时当5s没有响应就会结束请求
}); });
// 添加请求拦截器一下内容是axios的拦截器可以不用写 // 添加请求拦截器一下内容是axios的拦截器可以不用写

View File

@ -1180,20 +1180,10 @@ export default {
this.ganglist = res.data[0]; this.ganglist = res.data[0];
let percent = (res.data[0].Rigidity / res.data[0].GrossValue).toFixed(2); let percent = (res.data[0].Rigidity / res.data[0].GrossValue).toFixed(2);
this.option.series[0].data[0].value = percent; this.option.series[0].data[0].value = percent;
<<<<<<< HEAD
this.ganglist = res.data[0];
=======
>>>>>>> 62a18469e4b1f9e2a4b0bfec7d32a8876b7f566b
}, },
async getrou() { async getrou() {
let res = await GetRou(); let res = await GetRou();
console.log(res); console.log(res);
<<<<<<< HEAD
this.ganglist = res.data[0];
let percent = (res.data[0].Flexible / res.data[0].GrossValue).toFixed(2);
this.option.series[0].data[0].value = percent;
this.roulist = res.data[0];
=======
let percent = (res.data[0].Flexible / res.data[0].GrossValue).toFixed(2); let percent = (res.data[0].Flexible / res.data[0].GrossValue).toFixed(2);
this.option.series[0].data[0].value = percent; this.option.series[0].data[0].value = percent;
this.roulist = res.data[0]; this.roulist = res.data[0];
@ -1202,7 +1192,6 @@ export default {
let res = await GetKdsb(); let res = await GetKdsb();
console.log(res); console.log(res);
this.devices = res.data; this.devices = res.data;
>>>>>>> 62a18469e4b1f9e2a4b0bfec7d32a8876b7f566b
}, },
}, },
created() { created() {
@ -1227,7 +1216,7 @@ export default {
this.xf(); this.xf();
this.tg(); this.tg();
this.kdfhzy(); this.kdfhzy();
this.getkdfhzy(); // this.getkdfhzy();
}, },
}; };
</script> </script>

View File

@ -3,16 +3,5 @@ const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({ module.exports = defineConfig({
transpileDependencies: true, transpileDependencies: true,
lintOnSave: false, lintOnSave: false,
publicPath: "./", publicPath: './',
devServer: {
proxy: {
"/api": {
target: "http://111.229.30.246:32761",
changeOrigin: true,
pathRewrite: {
"^/api": "/api",
},
},
},
},
}); });