diff --git a/src/utils/request.js b/src/utils/request.js
index 771970c..141f86b 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -16,8 +16,8 @@ axios.defaults.headers["Content-Type"] = "application/json;charset=utf-8";
const service = axios.create({
// axios中请求配置有baseURL选项,表示请求URL公共部分
// baseURL: import.meta.env.VITE_APP_BASE_API,
- baseURL: "http://118.31.7.2:9868/",
- // baseURL:'http://192.168.2.14:9868/',
+ // baseURL: "http://118.31.7.2:9868/",
+ baseURL:'http://192.168.2.14:9868/',
// 超时
timeout: 100000,
});
diff --git a/src/views/digitalMarketingAlgorithms/components/regressionAnalysis.vue b/src/views/digitalMarketingAlgorithms/components/regressionAnalysis.vue
index b83ce27..d8561bf 100644
--- a/src/views/digitalMarketingAlgorithms/components/regressionAnalysis.vue
+++ b/src/views/digitalMarketingAlgorithms/components/regressionAnalysis.vue
@@ -50,7 +50,7 @@
三、模型参数设置
-
聚类方法:
+
回归模型:
@@ -343,10 +343,10 @@ const task = () => {
errorNumber=1
}
}else if(input4.value==="Logistic逻辑回归"){
- if(formInline3.value1!==tableData3.value[0].intercept.toString()){
+ if(parseFloat(formInline3.value1)!==parseFloat(tableData3.value[0].intercept)){
errorNumber=1
}
- if(formInline3.value2!==tableData3.value[0].slope){
+ if(parseFloat(formInline3.value2)!==parseFloat(tableData3.value[0].slope)){
errorNumber=1
}
if(parseFloat(formInline3.value3)!==parseFloat(predictionResults.value)){
@@ -557,7 +557,7 @@ const computation = () => {
proxy.$modal.msgError("y变量数量有误!");
return;
}
- if (input6.value.length > 2) {
+ if (input6.value.length > 1) {
proxy.$modal.msgError("x变量数量有误!");
return;
}
@@ -613,19 +613,19 @@ const handleClick = (item) => {
};
const predictionResults = ref("");
const Forecasting = () => {
- if (nowData.value.type === "线性回归") {
- const sendData = {
- intercept: nowData.value.intercept,
- type: nowData.value.type,
- slopes: nowData.value.slopes.split(",").map(Number),
- raX: formInline2.user.split(",").map(Number),
- };
- API.logisticRegressionPrediction(sendData).then((res) => {
- dialogVisible2.value = false;
- predictionResults.value = res.data;
- });
- }
- if (nowData.value.type === "逻辑回归") {
+ // if (nowData.value.type === "线性回归") {
+ // const sendData = {
+ // intercept: nowData.value.intercept,
+ // type: nowData.value.type,
+ // slopes: nowData.value.slopes.split(",").map(Number),
+ // raX: formInline2.user.split(",").map(Number),
+ // };
+ // API.logisticRegressionPrediction(sendData).then((res) => {
+ // dialogVisible2.value = false;
+ // predictionResults.value = res.data;
+ // });
+ // }
+ // if (nowData.value.type === "逻辑回归") {
const sendData = {
intercept: nowData.value.intercept,
type: nowData.value.type,
@@ -636,7 +636,7 @@ const Forecasting = () => {
dialogVisible2.value = false;
predictionResults.value = res.data;
});
- }
+ // }
};
const upLoad = () => {
const tableDom = exportTableRef.value?.$el;