fix/non-blocking-route-navigation
HeHaonan 2 years ago
parent e0ce12d2a5
commit 3198995fa3

@ -1235,12 +1235,13 @@ const submitData = () => {
.catch((error) => {}); .catch((error) => {});
}; };
const retrain = () => { const retrain = () => {
portraitModel showAnswerFlag.value = false;
.retrain({ // portraitModel
userId: JSON.parse(getUserInfo()).userId, // .retrain({
module: "AARRR用户运营分析", // userId: JSON.parse(getUserInfo()).userId,
}) // module: "AARRR用户运营分析",
.then((res) => { // })
// .then((res) => {
proxy.$modal.msgSuccess("重新实训成功"); proxy.$modal.msgSuccess("重新实训成功");
step1Params1.value = ""; step1Params1.value = "";
step1Params2.value = ""; step1Params2.value = "";
@ -1253,8 +1254,8 @@ const retrain = () => {
step4Params3.value = ""; step4Params3.value = "";
step4Params4.value = ""; step4Params4.value = "";
step5Params.value = ""; step5Params.value = "";
}) // })
.catch((error) => {}); // .catch((error) => {});
}; };
defineExpose({ defineExpose({
submitData, submitData,

@ -1024,7 +1024,7 @@ const getData = () => {
step4Data.value[1].data3 = step3Data.value[1].params2; step4Data.value[1].data3 = step3Data.value[1].params2;
step4Data.value[2].data3 = step3Data.value[2].params2; step4Data.value[2].data3 = step3Data.value[2].params2;
step4Data.value[3].data3 = step3Data.value[3].params2; step4Data.value[3].data3 = step3Data.value[3].params2;
step2AnswerFlag.value =true step2AnswerFlag.value = true;
step3AnswerFlag.value = true; step3AnswerFlag.value = true;
initCharts(); initCharts();
} }
@ -1164,12 +1164,13 @@ const submitData = () => {
.catch((error) => {}); .catch((error) => {});
}; };
const retrain = () => { const retrain = () => {
portraitModel showAnswerFlag.value = false;
.retrain({ // portraitModel
userId: JSON.parse(getUserInfo()).userId, // .retrain({
module: "帕累托/ABC分析", // userId: JSON.parse(getUserInfo()).userId,
}) // module: "帕累托/ABC分析",
.then((res) => { // })
// .then((res) => {
proxy.$modal.msgSuccess("重新实训成功"); proxy.$modal.msgSuccess("重新实训成功");
for (let i in step1Data.value) { for (let i in step1Data.value) {
step1Data.value[i].params = ""; step1Data.value[i].params = "";
@ -1186,8 +1187,12 @@ const retrain = () => {
// step5Data.value[i].params2 = ""; // step5Data.value[i].params2 = "";
// step5Data.value[i].params3 = ""; // step5Data.value[i].params3 = "";
// } // }
}) chartParam1.value = "";
.catch((error) => {}); chartParam2.value = "";
chartParam3.value = "";
chartParam4.value = "";
// })
// .catch((error) => {});
}; };
defineExpose({ defineExpose({
submitData, submitData,

@ -1102,13 +1102,14 @@ const submitData = () => {
.catch((error) => {}); .catch((error) => {});
}; };
const retrain = () => { const retrain = () => {
showAnswerFlag.value = false;
// console.log(66); // console.log(66);
portraitModel // portraitModel
.retrain({ // .retrain({
userId: JSON.parse(getUserInfo()).userId, // userId: JSON.parse(getUserInfo()).userId,
module: "购物篮分析", // module: "购物篮分析",
}) // })
.then((res) => { // .then((res) => {
proxy.$modal.msgSuccess("重新实训成功"); proxy.$modal.msgSuccess("重新实训成功");
list.value = ["-"]; list.value = ["-"];
for (let i in step2Data.value) { for (let i in step2Data.value) {
@ -1129,8 +1130,8 @@ const retrain = () => {
// step2Select5.value = ""; // step2Select5.value = "";
// step3Select1.value = ""; // step3Select1.value = "";
// step3Select2.value = ""; // step3Select2.value = "";
}) // })
.catch((error) => {}); // .catch((error) => {});
}; };
defineExpose({ defineExpose({
submitData, submitData,

@ -194,19 +194,20 @@
<div class="submit" @click="step4Submit">提交</div> <div class="submit" @click="step4Submit">提交</div>
<div class="drawPoint"> <div class="drawPoint">
<div class="point"> <div class="point">
<div class="pointItem" @click="drawPointStep4('E', '#009FF1')">绘制平均消费次数X,平均消费金额Y</div> <div class="pointItem" @click="drawPointStep4('y', '#009FF1')">绘制平均消费次数X:5</div>
<span>(5,1000)</span>
<div v-if="showAnswerFlag" style="margin-left: 3px; display: inline-block"> <div v-if="showAnswerFlag" style="margin-left: 3px; display: inline-block">
<span v-if="centerPointError" style="color: red">X</span> <span v-if="centerPointError" style="color: red">X</span>
<span v-if="!centerPointError" style="color: #00bb00">√</span> <span v-if="!centerPointError" style="color: #00bb00">√</span>
</div> </div>
</div> </div>
<!-- <div class="point"> <div class="point">
<div class="pointItem" @click="drawPointStep4('Y', '#FB54A1')"> <div class="pointItem" @click="drawPointStep4('x', '#FB54A1')">绘制平均消费金额Y:1000</div>
绘制平均消费金额Y <div v-if="showAnswerFlag" style="margin-left: 3px; display: inline-block">
<span v-if="centerPointError2" style="color: red">X</span>
<span v-if="!centerPointError2" style="color: #00bb00">√</span>
</div>
</div> </div>
<span>1000</span>
</div> -->
</div> </div>
</div> </div>
</div> </div>
@ -363,6 +364,7 @@ const pointBError = ref(false);
const pointCError = ref(false); const pointCError = ref(false);
const pointDError = ref(false); const pointDError = ref(false);
const centerPointError = ref(false); const centerPointError = ref(false);
const centerPointError2 = ref(false);
const markArea1Error = ref(false); const markArea1Error = ref(false);
const markArea2Error = ref(false); const markArea2Error = ref(false);
const markArea3Error = ref(false); const markArea3Error = ref(false);
@ -684,6 +686,7 @@ const drawPoint = (point, color) => {
// option.value && myChart.setOption(option.value); // option.value && myChart.setOption(option.value);
}; };
const drawPointStep4 = (point, color) => { const drawPointStep4 = (point, color) => {
// markCenterLineStep4.value.splice(0, 2);
drawPointNameStep4.value = point; drawPointNameStep4.value = point;
drawPointColorStep4.value = color; drawPointColorStep4.value = color;
}; };
@ -939,7 +942,10 @@ const step4EchartInit = () => {
chart2OptionData.value.splice(i, 1); chart2OptionData.value.splice(i, 1);
} }
} }
if (markCenterLineStep4.value.length >= 2) {
markCenterLineStep4.value.splice(0, 2); markCenterLineStep4.value.splice(0, 2);
}
const pointInPixel = [param.offsetX, param.offsetY]; const pointInPixel = [param.offsetX, param.offsetY];
console.log("pointInPixel4", pointInPixel); console.log("pointInPixel4", pointInPixel);
//将偏移值转化为坐标值 //将偏移值转化为坐标值
@ -955,17 +961,31 @@ const step4EchartInit = () => {
name: drawPointNameStep4.value, name: drawPointNameStep4.value,
color: drawPointColorStep4.value, color: drawPointColorStep4.value,
}); });
if (drawPointNameStep4.value == "y") {
markCenterLineStep4.value.push( markCenterLineStep4.value.push(
// {
// name: "y",
// xAxis: pointInGridStep4.value[0],
// },
{ {
name: "y", name: "",
xAxis: pointInGridStep4.value[0], xAxis: pointInGridStep4.value[0],
}, }
);
} else if (drawPointNameStep4.value == "x") {
markCenterLineStep4.value.push(
// {
// name: "y",
// xAxis: pointInGridStep4.value[0],
// },
{ {
name: "x", name: "",
yAxis: pointInGridStep4.value[1], yAxis: pointInGridStep4.value[1],
} }
); );
console.log(markCenterLineStep4.value); }
console.log(markCenterLineStep4.value, "-----");
// console.log(markCenterLineStep4.value); // console.log(markCenterLineStep4.value);
option2.value && myChart.setOption(option2.value); option2.value && myChart.setOption(option2.value);
}); });
@ -997,18 +1017,18 @@ const step5EchartInit = () => {
// 中心线 // 中心线
const centerLine = [ const centerLine = [
{ {
name: "y", name: "",
xAxis: 5, xAxis: 5,
}, },
{ {
name: "x", name: "",
yAxis: 1000, yAxis: 1000,
}, },
]; ];
// 中心点 // 中心点
const centerMark = [ const centerMark = [
{ {
value: "中心点", value: "",
coord: [5, 1000], coord: [5, 1000],
}, },
]; ];
@ -1411,18 +1431,37 @@ const step3Submit = () => {
}; };
const step4Submit = () => { const step4Submit = () => {
step4Error.value = 0; step4Error.value = 0;
for (let i in chart2OptionData.value) { // for (let i in chart2OptionData.value) {
// console.log(option2.value.series[0].data[i]); // // console.log(option2.value.series[0].data[i]);
// if (chart2OptionData.value[i].name == "E") {
// if (Math.round(chart2OptionData.value[i].value[0]) != 5 || Math.round(chart2OptionData.value[i].value[1]) != 1000) {
// console.log(chart2OptionData.value[i]);
// step4Error.value++;
// centerPointError.value = true;
// } else {
// centerPointError.value = false;
// }
// }
// }
// if (markCenterLineStep4.value[0].xAxis != 5 || markCenterLineStep4.value[1].yAxis != 1000) {
// step4Error.value++;
// centerPointError.value = true;
// } else {
// centerPointError.value = false;
// }
if (chart2OptionData.value[i].name == "E") { if (markCenterLineStep4.value[0].xAxis != 5) {
if (Math.round(chart2OptionData.value[i].value[0]) != 5 || Math.round(chart2OptionData.value[i].value[1]) != 1000) {
console.log(chart2OptionData.value[i]);
step4Error.value++; step4Error.value++;
centerPointError.value = true; centerPointError.value = true;
} else { } else {
centerPointError.value = false; centerPointError.value = false;
} }
} if (markCenterLineStep4.value[1].yAxis != 1000) {
step4Error.value++;
centerPointError2.value = true;
} else {
centerPointError2.value = false;
} }
console.log(step4Error.value, "错误数"); console.log(step4Error.value, "错误数");
proxy.$modal.msgSuccess("提交成功"); proxy.$modal.msgSuccess("提交成功");
@ -1637,7 +1676,49 @@ const getData = () => {
quadrant2Color.value = res.data.stepNineB; quadrant2Color.value = res.data.stepNineB;
quadrant3Color.value = res.data.stepNineC; quadrant3Color.value = res.data.stepNineC;
quadrant4Color.value = res.data.stepNineD; quadrant4Color.value = res.data.stepNineD;
// console.log(chart1OptionData.value,'666');
for (let i in chart2OptionData.value) {
console.log(chart2OptionData.value[i], "asdas");
if (chart2OptionData.value[i].name == "x") {
console.log(1);
markCenterLineStep4.value.push(
// {
// name: "y",
// xAxis: pointInGridStep4.value[0],
// },
{
name: "",
yAxis: chart2OptionData.value[i].value[1],
}
);
} else if (chart2OptionData.value[i].name == "y") {
console.log(2);
markCenterLineStep4.value.push(
// {
// name: "y",
// xAxis: pointInGridStep4.value[0],
// },
{
name: "",
xAxis: chart2OptionData.value[i].value[0],
} }
);
}
}
// else {
// console.log(789);
// chart1OptionData.value = JSON.parse('[]');
// // console.log(JSON.parse(res.data.stepSevenC),'666');
// chart2OptionData.value = JSON.parse('[]');
// quadrant1.value = "";
// quadrant2.value = "";
// quadrant3.value = "";
// quadrant4.value = "";
// quadrant1Color.value = "";
// quadrant2Color.value = "";
// quadrant3Color.value = "";
// quadrant4Color.value = "";
// }
// step2Data.value[14].params = res.data.stepTenA; // step2Data.value[14].params = res.data.stepTenA;
// step2Data.value[15].params = res.data.stepTenB; // step2Data.value[15].params = res.data.stepTenB;
@ -1666,6 +1747,10 @@ const getData = () => {
// step5DataTable3.value[4].params1 = res.data.stepNewSix; // step5DataTable3.value[4].params1 = res.data.stepNewSix;
// step5DataTable3.value[4].params2 = res.data.stepNewEight; // step5DataTable3.value[4].params2 = res.data.stepNewEight;
// console.log(JSON.parse(res.data.stepSevenC)); // console.log(JSON.parse(res.data.stepSevenC));
step3EchartInit();
step4EchartInit();
step5EchartInit();
if (res.data.subState & (res.data.subState == 1)) { if (res.data.subState & (res.data.subState == 1)) {
showAnswerFlag.value = true; showAnswerFlag.value = true;
if (step1Data.value[0].params1 && step1Data.value[0].params1 !== "3") { if (step1Data.value[0].params1 && step1Data.value[0].params1 !== "3") {
@ -1752,17 +1837,27 @@ const getData = () => {
} }
} }
for (let i in chart2OptionData.value) { if (markCenterLineStep4.value[0].xAxis != 5) {
// console.log(option2.value.series[0].data[i]);
if (chart2OptionData.value[i].name == "E") {
if (Math.round(chart2OptionData.value[i].value[0]) != 5 || Math.round(chart2OptionData.value[i].value[1]) != 1000) {
centerPointError.value = true; centerPointError.value = true;
} else { } else {
centerPointError.value = false; centerPointError.value = false;
} }
if (markCenterLineStep4.value[1].yAxis != 1000) {
centerPointError2.value = true;
} else {
centerPointError2.value = false;
} }
} // for (let i in chart2OptionData.value) {
// // console.log(option2.value.series[0].data[i]);
// if (chart2OptionData.value[i].name == "E") {
// if (Math.round(chart2OptionData.value[i].value[0]) != 5 || Math.round(chart2OptionData.value[i].value[1]) != 1000) {
// centerPointError.value = true;
// } else {
// centerPointError.value = false;
// }
// }
// }
if (quadrant1.value != "明星客户") { if (quadrant1.value != "明星客户") {
markArea1Error.value = true; markArea1Error.value = true;
@ -1785,20 +1880,19 @@ const getData = () => {
markArea4Error.value = false; markArea4Error.value = false;
} }
} }
step3EchartInit(); }
step4EchartInit();
step5EchartInit();
}) })
.catch((error) => {}); .catch((error) => {});
}; };
const retrain = () => { const retrain = () => {
showAnswerFlag.value = false;
// console.log(666); // console.log(666);
portraitModel // portraitModel
.retrain({ // .retrain({
userId: JSON.parse(getUserInfo()).userId, // userId: JSON.parse(getUserInfo()).userId,
module: "波士顿矩阵分析", // module: "波士顿矩阵分析",
}) // })
.then((res) => { // .then((res) => {
proxy.$modal.msgSuccess("重新实训成功"); proxy.$modal.msgSuccess("重新实训成功");
for (let i in step1Data.value) { for (let i in step1Data.value) {
step1Data.value[i].params1 = ""; step1Data.value[i].params1 = "";
@ -1806,8 +1900,24 @@ const retrain = () => {
} }
step2Data.value[4].params1 = ""; step2Data.value[4].params1 = "";
step2Data.value[4].params2 = ""; step2Data.value[4].params2 = "";
}) chart1OptionData.value = JSON.parse("[]");
.catch((error) => {}); // console.log(JSON.parse(res.data.stepSevenC),'666');
chart2OptionData.value = JSON.parse("[]");
markCenterLineStep4.value.splice(0, 2);
quadrant1.value = "";
quadrant2.value = "";
quadrant3.value = "";
quadrant4.value = "";
quadrant1Color.value = "";
quadrant2Color.value = "";
quadrant3Color.value = "";
quadrant4Color.value = "";
// })
// .catch((error) => {});
step3EchartInit();
step4EchartInit();
step5EchartInit();
}; };
defineExpose({ defineExpose({
submitData, submitData,

@ -314,7 +314,9 @@ import * as echarts from "echarts";
import { downBlobFile } from "@/utils/index.js"; import { downBlobFile } from "@/utils/index.js";
import { onMounted } from "vue"; import { onMounted } from "vue";
const { proxy } = getCurrentInstance(); const { proxy } = getCurrentInstance();
const funnelData = ref([223, 235, 284, 622, 2071]); // const funnelData = ref([223, 235, 284, 622, 2071]);
const funnelData = ref(["", "", "", "", ""]);
const funnelYAxis = ref(["", "", "", "", ""]);
const dialogVisible = ref(false); const dialogVisible = ref(false);
const step2Select1 = ref(""); const step2Select1 = ref("");
const step2Select2 = ref(""); const step2Select2 = ref("");
@ -586,7 +588,26 @@ const typeData = ref([
// }, // },
// ], // ],
// }; // };
const option = ref({
const step1Error = ref(0);
const step2Error = ref(0);
const step3Error = ref(0);
const step1AnswerFlag = ref(false);
const step2AnswerFlag = ref(false);
const step3AnswerFlag = ref(false);
const showAnswerFlag = ref(false);
const errorNum = ref(0);
const option = ref({});
const baseUrl = import.meta.env.VITE_APP_BASE_API;
onBeforeUnmount(() => {
saveData();
});
onMounted(() => {
getData();
initEchart()
});
const initEchart = () => {
option.value = {
title: { title: {
text: "漏斗图", text: "漏斗图",
textStyle: { textStyle: {
@ -618,7 +639,8 @@ const option = ref({
}, },
yAxis: { yAxis: {
type: "category", type: "category",
data: ["", "", "", "", ""], // data: ["1", "2", "3", "4", "5"],
data: funnelYAxis.value,
position: "center", position: "center",
}, },
series: [ series: [
@ -640,6 +662,10 @@ const option = ref({
}, },
}, },
{ {
label: {
show: true, // 显示数值
// position: 'top' // 在柱状图上方显示
},
stack: "one", stack: "one",
name: "", name: "",
type: "bar", type: "bar",
@ -660,45 +686,37 @@ const option = ref({
}, },
}, },
], ],
}); };
const step1Error = ref(0);
const step2Error = ref(0);
const step3Error = ref(0);
const step1AnswerFlag = ref(false);
const step2AnswerFlag = ref(false);
const step3AnswerFlag = ref(false);
const showAnswerFlag = ref(false);
const errorNum = ref(0);
const baseUrl = import.meta.env.VITE_APP_BASE_API;
onBeforeUnmount(() => {
saveData();
});
onMounted(() => {
getData();
var chartDom = document.getElementById("funnel"); var chartDom = document.getElementById("funnel");
var myChart = echarts.init(chartDom); var myChart = echarts.init(chartDom);
option.value && myChart.setOption(option.value); option.value && myChart.setOption(option.value);
}); };
const selectData = (item, index) => { const selectData = (item, index) => {
console.log(item, index); console.log(item, index);
if (item == "浏览2071") { if (item == "浏览2071") {
funnelData.value[index] = 2071; funnelData.value[index] = 2071;
funnelYAxis.value[index] = "浏览";
} }
if (item == "购物车622") { if (item == "购物车622") {
funnelData.value[index] = 622; funnelData.value[index] = 622;
funnelYAxis.value[index] = "购物车";
} }
if (item == "订单284") { if (item == "订单284") {
funnelData.value[index] = 284; funnelData.value[index] = 284;
funnelYAxis.value[index] = "订单";
} }
if (item == "支付235") { if (item == "支付235") {
funnelData.value[index] = 235; funnelData.value[index] = 235;
funnelYAxis.value[index] = "支付";
} }
if (item == "完成交易223") { if (item == "完成交易223") {
funnelData.value[index] = 223; funnelData.value[index] = 223;
funnelYAxis.value[index] = "完成交易";
} }
var chartDom = document.getElementById("funnel"); // var chartDom = document.getElementById("funnel");
var myChart = echarts.init(chartDom); // var myChart = echarts.init(chartDom);
option.value && myChart.setOption(option.value); // option.value && myChart.setOption(option.value);
initEchart();
}; };
const moveUp = (index, row) => { const moveUp = (index, row) => {
console.log("上移", index, row); console.log("上移", index, row);
@ -902,11 +920,11 @@ const saveData = () => {
stepNineD: step2Select5.value, stepNineD: step2Select5.value,
stepTenA: step3Select1.value, stepTenA: step3Select1.value,
stepTenB: step3Select2.value, stepTenB: step3Select2.value,
// stepTenC: step4Data.value[2].params1, stepTenC: funnelData.value[0],
// stepTenD: step4Data.value[2].params2, stepTenD: funnelData.value[1],
// stepElevenA: step4Data.value[2].params3, stepElevenA: funnelData.value[2],
// stepOneA: step5Data.value[0].params1, stepOneA: funnelData.value[3],
// stepOneB: step5Data.value[0].params2, stepOneB: funnelData.value[4],
// stepOneC: step5Data.value[0].params3, // stepOneC: step5Data.value[0].params3,
// stepOneD: step6Data.value[0].params1, // stepOneD: step6Data.value[0].params1,
// stepTwoA: step6Data.value[0].params2, // stepTwoA: step6Data.value[0].params2,
@ -959,11 +977,25 @@ const getData = () => {
step2Select5.value = res.data.stepNineD; step2Select5.value = res.data.stepNineD;
step3Select1.value = res.data.stepTenA; step3Select1.value = res.data.stepTenA;
step3Select2.value = res.data.stepTenB; step3Select2.value = res.data.stepTenB;
// step4Data.value[2].params1 = res.data.stepTenC;
// step4Data.value[2].params2 = res.data.stepTenD; funnelYAxis.value[4] = step2Select1.value;
// step4Data.value[2].params3 = res.data.stepElevenA;
// step5Data.value[0].params1 = res.data.stepOneA; funnelYAxis.value[3] = step2Select2.value;
// step5Data.value[0].params2 = res.data.stepOneB;
funnelYAxis.value[2] = step2Select3.value;
funnelYAxis.value[1] = step2Select4.value;
funnelYAxis.value[0] = step2Select5.value;
funnelData.value[0] = res.data.stepTenC;
funnelData.value[1] = res.data.stepTenD;
funnelData.value[2] = res.data.stepElevenA;
funnelData.value[3] = res.data.stepOneA;
funnelData.value[4] = res.data.stepOneB;
// var chartDom = document.getElementById("funnel");
// var myChart = echarts.init(chartDom);
// option.value && myChart.setOption(option.value);
initEchart();
// step5Data.value[0].params3 = res.data.stepOneC; // step5Data.value[0].params3 = res.data.stepOneC;
// step6Data.value[0].params1 = res.data.stepOneD; // step6Data.value[0].params1 = res.data.stepOneD;
// step6Data.value[0].params2 = res.data.stepTwoA; // step6Data.value[0].params2 = res.data.stepTwoA;
@ -1137,12 +1169,13 @@ const saveDataSubmit = () => {
.catch((error) => {}); .catch((error) => {});
}; };
const retrain = () => { const retrain = () => {
portraitModel showAnswerFlag.value = false;
.retrain({ // portraitModel
userId: JSON.parse(getUserInfo()).userId, // .retrain({
module: "转化分析-漏斗模型", // userId: JSON.parse(getUserInfo()).userId,
}) // module: "转化分析-漏斗模型",
.then((res) => { // })
// .then((res) => {
proxy.$modal.msgSuccess("重新实训成功"); proxy.$modal.msgSuccess("重新实训成功");
for (let i in step1Data.value) { for (let i in step1Data.value) {
step1Data.value[i].params1 = ""; step1Data.value[i].params1 = "";
@ -1158,8 +1191,14 @@ const retrain = () => {
step2Select5.value = ""; step2Select5.value = "";
step3Select1.value = ""; step3Select1.value = "";
step3Select2.value = ""; step3Select2.value = "";
}) funnelData.value = ["", "", "", "", ""];
.catch((error) => {}); funnelYAxis.value = ["", "", "", "", ""];
// var chartDom = document.getElementById("funnel");
// var myChart = echarts.init(chartDom);
// option.value && myChart.setOption(option.value);
initEchart();
// })
// .catch((error) => {});
}; };
defineExpose({ defineExpose({
submitData, submitData,

@ -1200,13 +1200,14 @@ const submitData = () => {
.catch((error) => {}); .catch((error) => {});
}; };
const retrain = () => { const retrain = () => {
showAnswerFlag.value = false;
// console.log(66666); // console.log(66666);
portraitModel // portraitModel
.retrain({ // .retrain({
userId: JSON.parse(getUserInfo()).userId, // userId: JSON.parse(getUserInfo()).userId,
module: "用户画像分析", // module: "用户画像分析",
}) // })
.then((res) => { // .then((res) => {
proxy.$modal.msgSuccess("重新实训成功"); proxy.$modal.msgSuccess("重新实训成功");
step1SelectParams1.value = ""; step1SelectParams1.value = "";
step1SelectParams2.value = ""; step1SelectParams2.value = "";
@ -1217,8 +1218,8 @@ const retrain = () => {
for (let i in step2Data.value) { for (let i in step2Data.value) {
step2Data.value[i].params = ""; step2Data.value[i].params = "";
} }
}) // })
.catch((error) => {}); // .catch((error) => {});
}; };
defineExpose({ defineExpose({
submitData, submitData,

@ -2201,12 +2201,13 @@ const submitData = () => {
// console.log(666); // console.log(666);
}; };
const retrain = () => { const retrain = () => {
portraitModel showAnswerFlag.value = false;
.retrain({ // portraitModel
userId: JSON.parse(getUserInfo()).userId, // .retrain({
module: "复购分析", // userId: JSON.parse(getUserInfo()).userId,
}) // module: "复购分析",
.then((res) => { // })
// .then((res) => {
proxy.$modal.msgSuccess("重新实训成功"); proxy.$modal.msgSuccess("重新实训成功");
for (let i in step1Data.value) { for (let i in step1Data.value) {
step1Data.value[i].params = ""; step1Data.value[i].params = "";
@ -2227,8 +2228,8 @@ const retrain = () => {
step5DataTable3.value[i].params1 = ""; step5DataTable3.value[i].params1 = "";
step5DataTable3.value[i].params2 = ""; step5DataTable3.value[i].params2 = "";
} }
}) // })
.catch((error) => {}); // .catch((error) => {});
}; };
defineExpose({ defineExpose({
submitData, submitData,

@ -1727,12 +1727,13 @@ const submitData = () => {
.catch((error) => {}); .catch((error) => {});
}; };
const retrain = () => { const retrain = () => {
portraitModel showAnswerFlag.value = false;
.retrain({ // portraitModel
userId: JSON.parse(getUserInfo()).userId, // .retrain({
module: "留存分析", // userId: JSON.parse(getUserInfo()).userId,
}) // module: "留存分析",
.then((res) => { // })
// .then((res) => {
proxy.$modal.msgSuccess("重新实训成功"); proxy.$modal.msgSuccess("重新实训成功");
for (let i in step1Data.value.slice(0, step1Data.value.length - 1)) { for (let i in step1Data.value.slice(0, step1Data.value.length - 1)) {
@ -1745,8 +1746,8 @@ const retrain = () => {
step2Data.value[i].params4 = ""; step2Data.value[i].params4 = "";
} }
dayValue.value = ""; dayValue.value = "";
}) // })
.catch((error) => {}); // .catch((error) => {});
}; };
defineExpose({ defineExpose({
submitData, submitData,

@ -1233,7 +1233,7 @@ const saveDataSubmit = () => {
}) })
.then((res) => {}) .then((res) => {})
.catch((error) => {}); .catch((error) => {});
} };
const getData = () => { const getData = () => {
portraitModel portraitModel
.getData({ .getData({
@ -1458,12 +1458,13 @@ const getData = () => {
.catch((error) => {}); .catch((error) => {});
}; };
const retrain = () => { const retrain = () => {
portraitModel showAnswerFlag.value = false;
.retrain({ // portraitModel
userId: JSON.parse(getUserInfo()).userId, // .retrain({
module: "RFM分析", // userId: JSON.parse(getUserInfo()).userId,
}) // module: "RFM分析",
.then((res) => { // })
// .then((res) => {
proxy.$modal.msgSuccess("重新实训成功"); proxy.$modal.msgSuccess("重新实训成功");
for (let i in fileTable1.value) { for (let i in fileTable1.value) {
fileTable1.value[i].params = ""; fileTable1.value[i].params = "";
@ -1489,8 +1490,8 @@ const retrain = () => {
for (let i in step7Data.value) { for (let i in step7Data.value) {
step7Data.value[i].params = ""; step7Data.value[i].params = "";
} }
}) // })
.catch((error) => {}); // .catch((error) => {});
}; };
defineExpose({ defineExpose({
submitData, submitData,

@ -1888,12 +1888,13 @@ const submitData = () => {
.catch((error) => {}); .catch((error) => {});
}; };
const retrain = () => { const retrain = () => {
portraitModel showAnswerFlag.value = false;
.retrain({ // portraitModel
userId: JSON.parse(getUserInfo()).userId, // .retrain({
module: "用户粘性分析", // userId: JSON.parse(getUserInfo()).userId,
}) // module: "用户粘性分析",
.then((res) => { // })
// .then((res) => {
proxy.$modal.msgSuccess("重新实训成功"); proxy.$modal.msgSuccess("重新实训成功");
for (let i in step1Data.value) { for (let i in step1Data.value) {
@ -1920,8 +1921,8 @@ const retrain = () => {
analysisConclusionStep3.value = ""; analysisConclusionStep3.value = "";
analysisConclusionStep4.value = ""; analysisConclusionStep4.value = "";
// dayValue.value = ""; // dayValue.value = "";
}) // })
.catch((error) => {}); // .catch((error) => {});
}; };
defineExpose({ defineExpose({
submitData, submitData,

Loading…
Cancel
Save