diff --git a/src/components/video/index.vue b/src/components/video/index.vue
new file mode 100644
index 0000000..9e54013
--- /dev/null
+++ b/src/components/video/index.vue
@@ -0,0 +1,82 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index c63fbf3..0f0e47a 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -140,7 +140,7 @@ export const dynamicRoutes = [
},
],
},
-
+
{
path: "",
component: Layout,
@@ -180,6 +180,21 @@ export const dynamicRoutes = [
},
],
},
+ // 资源视频
+ {
+ path: "",
+ // component: Layout,
+ hidden: true,
+ redirect: "/video",
+ children: [
+ {
+ path: "/video",
+ component: () => import("@/components/video/index.vue"),
+ name: "video",
+ meta: { title: "视频中心", icon: "视频中心", affix: true },
+ },
+ ],
+ },
];
const router = createRouter({
diff --git a/src/store/modules/algorithm.js b/src/store/modules/algorithm.js
index 1363bc8..6056052 100644
--- a/src/store/modules/algorithm.js
+++ b/src/store/modules/algorithm.js
@@ -2,7 +2,7 @@
* @Author: qinzhenpen qzp1807@126.com
* @Date: 2024-08-16 17:56:32
* @LastEditors: qinzhenpen qzp1807@126.com
- * @LastEditTime: 2024-08-26 15:26:20
+ * @LastEditTime: 2024-08-28 14:59:50
* @FilePath: \digital-marketing\src\store\modules\algorithm.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
@@ -16,7 +16,7 @@ const useAlgorithmStore = defineStore("algorithm", {
tableData: [],
tableKey:[],
userDataLabel:["用户属性表", "用户登录活跃表", "用户消费能力表", "用户行为表", "用户评论表"], //用户数据标签
- userDataLabel2:["用户评论表"],
+ userDataLabel2:["用户商品评论数据"],
indexLibrary: [],
analysisData: [],
}),
diff --git a/src/views/digitalMarketingAlgorithms/components/associationRuleMining.vue b/src/views/digitalMarketingAlgorithms/components/associationRuleMining.vue
index 80372bd..347a4ba 100644
--- a/src/views/digitalMarketingAlgorithms/components/associationRuleMining.vue
+++ b/src/views/digitalMarketingAlgorithms/components/associationRuleMining.vue
@@ -358,6 +358,9 @@ const task = () => {
if(formData.value1||formData.value4||formData.value5){
errorNumber=1
}
+ if(input.value!=="购物车数据"){
+ errorNumber=1
+ }
portraitModel
.submit({
userId: JSON.parse(getUserInfo()).userId,
@@ -576,7 +579,6 @@ const computation = () => {
return;
}
if (input5.value && input6.value && input4.value) {
- loading1.value = true;
const sendData = {
confidence: parseFloat(input5.value) / 100,
support: parseFloat(input6.value) / 100,
@@ -585,6 +587,7 @@ const computation = () => {
};
API.associationRuleMining(sendData)
.then((res) => {
+ loading1.value = true;
uplodFlag.value = true;
tableData3.value = [];
tableLabel2.length = 0;
@@ -616,6 +619,7 @@ const computation = () => {
});
} else {
proxy.$modal.msgWarning("请模型参数进行设置!");
+ loading1.value = false;
}
};
const upload = () => {
@@ -640,6 +644,7 @@ const startOver = () => {
tableLabel.length = 0;
tableLabel2.length = 0;
uplodFlag.value = false;
+ loading1.value = false;
};
diff --git a/src/views/digitalMarketingAlgorithms/components/clusterAnalysis.vue b/src/views/digitalMarketingAlgorithms/components/clusterAnalysis.vue
index 60f1bfb..25ec78d 100644
--- a/src/views/digitalMarketingAlgorithms/components/clusterAnalysis.vue
+++ b/src/views/digitalMarketingAlgorithms/components/clusterAnalysis.vue
@@ -92,6 +92,7 @@
+
最大迭代次数:{{iterations}}
@@ -310,11 +311,14 @@ const task = () => {
return;
}
}
- if (formInline2.value1 !== "3") {
- errorNumber = 1;
+ if(parseFloat(formInline2.value1)!==parseFloat(input5.value)){
+ errorNumber=1
}
- if (formInline2.value2 !== input6.value) {
- errorNumber = 1;
+ if(parseFloat(formInline2.value2)!==parseFloat(iterations.value)){
+ errorNumber=1
+ }
+ if(input.value!=="客户细分数据表"){
+ errorNumber=1
}
portraitModel
.submit({
@@ -544,6 +548,7 @@ const optionData2 = () => {
};
const showChart = ref(false);
//生产表格
+const iterations=ref(0)
const nowData = ref([]);
const clusterAnalysisCalculation = () => {
if (tableData2.value.length === 0 || input2.value == "" || input3.value == "") {
@@ -563,8 +568,8 @@ const clusterAnalysisCalculation = () => {
showChart.value = true;
let sex = 1;
tableData3.value = [];
- nowData.value = res.data;
- res.data.forEach((item, index) => {
+ nowData.value = res.data.clusters;
+ res.data.clusters.forEach((item, index) => {
const newItem = {};
tableLabel.forEach((label, index) => {
if (index === 0) {
@@ -577,6 +582,7 @@ const clusterAnalysisCalculation = () => {
sex++;
tableData3.value.push(newItem);
tableData3.value[index].children = [];
+ iterations.value=res.data.iterations
const children = ref([]);
item.forEach((item2, sexx) => {
const newItem2 = {};
diff --git a/src/views/digitalMarketingAlgorithms/components/descriptiveStatistics.vue b/src/views/digitalMarketingAlgorithms/components/descriptiveStatistics.vue
index d2fa796..2e93bd5 100644
--- a/src/views/digitalMarketingAlgorithms/components/descriptiveStatistics.vue
+++ b/src/views/digitalMarketingAlgorithms/components/descriptiveStatistics.vue
@@ -1,7 +1,7 @@
任务描述
-
使用“客户细分数据”,对“消费得分(Spending Score)”指标进行描述性统计分析,并提交实训任务。
+
使用“客户细分数据”,对“消费得分(Spending Score)”指标进行描述性统计分析,并提交实训任务。
@@ -93,7 +93,7 @@
-
+