diff --git a/src/views/portraitModel/components/AARRRAnalysis.vue b/src/views/portraitModel/components/AARRRAnalysis.vue index 2120c45..279eea1 100644 --- a/src/views/portraitModel/components/AARRRAnalysis.vue +++ b/src/views/portraitModel/components/AARRRAnalysis.vue @@ -1263,8 +1263,31 @@ const submitData = () => { }) .catch((error) => {}); }; +const retrain = () => { + portraitModel + .retrain({ + userId: 492, + module: "AARRR用户运营分析", + }) + .then((res) => { + proxy.$modal.msgSuccess("重新实训成功"); + step1Params1.value = ""; + step1Params2.value = ""; + step2Params1.value = ""; + step2Params2.value = ""; + step3Params1.value = ""; + step3Params2.value = ""; + step4Params1.value = ""; + step4Params2.value = ""; + step4Params3.value = ""; + step4Params4.value = ""; + step5Params.value = ""; + }) + .catch((error) => {}); +}; defineExpose({ submitData, + retrain, // practicalTraining, }); diff --git a/src/views/portraitModel/components/basketAnalysis.vue b/src/views/portraitModel/components/basketAnalysis.vue index 95e1d46..0a2c843 100644 --- a/src/views/portraitModel/components/basketAnalysis.vue +++ b/src/views/portraitModel/components/basketAnalysis.vue @@ -861,7 +861,35 @@ const submitData = () => { .catch((error) => {}); }; const retrain = () => { - console.log(66); + // console.log(66); + portraitModel + .retrain({ + userId: 492, + module: "购物篮分析", + }) + .then((res) => { + proxy.$modal.msgSuccess("重新实训成功"); + list.value = ["-"]; + for (let i in step2Data.value) { + step2Data.value[i].params = ""; + } + for (let i in step3Data.value) { + step3Data.value[i].params1 = ""; + step3Data.value[i].params2 = ""; + step3Data.value[i].params3 = ""; + } + for (let i in step4Data.value) { + step4Data.value[i].params = ""; + } + // step2Select1.value = ""; + // step2Select2.value = ""; + // step2Select3.value = ""; + // step2Select4.value = ""; + // step2Select5.value = ""; + // step3Select1.value = ""; + // step3Select2.value = ""; + }) + .catch((error) => {}); }; defineExpose({ submitData, diff --git a/src/views/portraitModel/components/repurchaseAnalysis.vue b/src/views/portraitModel/components/repurchaseAnalysis.vue index 39bb6c2..819ccbe 100644 --- a/src/views/portraitModel/components/repurchaseAnalysis.vue +++ b/src/views/portraitModel/components/repurchaseAnalysis.vue @@ -1885,8 +1885,39 @@ const submitData = () => { .catch((error) => {}); // console.log(666); }; +const retrain = () => { + portraitModel + .retrain({ + userId: 492, + module: "复购分析", + }) + .then((res) => { + proxy.$modal.msgSuccess("重新实训成功"); + for (let i in step1Data.value) { + step1Data.value[i].params = ""; + } + for (let i in step2Data.value) { + step2Data.value[i].params = ""; + } + for (let i in step4Data.value) { + if (i % 2 == 0) { + step4Data.value[i].params1 = ""; + step4Data.value[i].params2 = ""; + } + } + for (let i in step5DataTable2.value) { + step5DataTable2.value[i].params = ""; + } + for (let i in step5DataTable3.value) { + step5DataTable3.value[i].params1 = ""; + step5DataTable3.value[i].params2 = ""; + } + }) + .catch((error) => {}); +}; defineExpose({ submitData, + retrain, // practicalTraining, }); diff --git a/src/views/portraitModel/components/retainAnalysis.vue b/src/views/portraitModel/components/retainAnalysis.vue index 0047bd0..ab43d6f 100644 --- a/src/views/portraitModel/components/retainAnalysis.vue +++ b/src/views/portraitModel/components/retainAnalysis.vue @@ -1663,8 +1663,31 @@ const submitData = () => { }) .catch((error) => {}); }; +const retrain = () => { + portraitModel + .retrain({ + userId: 492, + module: "留存分析", + }) + .then((res) => { + proxy.$modal.msgSuccess("重新实训成功"); + + for (let i in step1Data.value.slice(0, step1Data.value.length - 1)) { + step1Data.value[i].params = ""; + } + for (let i in step2Data.value) { + step2Data.value[i].params1 = ""; + step2Data.value[i].params2 = ""; + step2Data.value[i].params3 = ""; + step2Data.value[i].params4 = ""; + } + dayValue.value = ""; + }) + .catch((error) => {}); +}; defineExpose({ submitData, + retrain, // practicalTraining, }); diff --git a/src/views/portraitModel/components/viscosityAnalysis.vue b/src/views/portraitModel/components/viscosityAnalysis.vue index cca690e..6d0163a 100644 --- a/src/views/portraitModel/components/viscosityAnalysis.vue +++ b/src/views/portraitModel/components/viscosityAnalysis.vue @@ -1830,8 +1830,45 @@ const submitData = () => { }) .catch((error) => {}); }; +const retrain = () => { + portraitModel + .retrain({ + userId: 492, + module: "用户粘性分析", + }) + .then((res) => { + proxy.$modal.msgSuccess("重新实训成功"); + + for (let i in step1Data.value) { + step1Data.value[i].params1 = ""; + step1Data.value[i].params2 = ""; + step1Data.value[i].params3 = ""; + } + for (let i in step2Data.value) { + step2Data.value[i].params1 = ""; + step2Data.value[i].params2 = ""; + } + for (let i in step3Data.value) { + step3Data.value[i].params1 = ""; + step3Data.value[i].params2 = ""; + } + for (let i in step4Data.value) { + step4Data.value[i].params1 = ""; + } + for (let i in step4DataTable2.value) { + step4DataTable2.value[i].params1 = ""; + } + analysisConclusionStep1.value = ""; + analysisConclusionStep2.value = ""; + analysisConclusionStep3.value = ""; + analysisConclusionStep4.value = ""; + // dayValue.value = ""; + }) + .catch((error) => {}); +}; defineExpose({ submitData, + retrain, // practicalTraining, });