diff --git a/package.json b/package.json index 79fb35f..defb6bf 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "md-editor-v3": "^4.18.1", "nprogress": "0.2.0", "pinia": "2.0.22", - "video.js": "^8.17.3", + "video.js": "7.x", "vue": "^3.2.47", "vue-cropper": "1.0.3", "vue-router": "4.1.4", diff --git a/src/api/AI.js b/src/api/AI.js index b091f74..5f02e30 100644 --- a/src/api/AI.js +++ b/src/api/AI.js @@ -60,7 +60,7 @@ export function clusterAnalysisPlot(data) { //关联规则挖掘 export function associationRuleMining(data) { return request({ - url: '/api/model/apriori', + url: '/api/python/associationRules', method: 'post', data:data, }) @@ -120,4 +120,12 @@ export function knowledgeProfileScore(data) { method: "post", data: data, }); +} +//聚类分析 +export function clusterAnalysis2(data) { + return request({ + url: "/api/python/clusterAnalysis", + method: "post", + data: data, + }); } \ No newline at end of file diff --git a/src/api/portraitModel.js b/src/api/portraitModel.js index 86686ec..5951885 100644 --- a/src/api/portraitModel.js +++ b/src/api/portraitModel.js @@ -146,3 +146,11 @@ export function timeCountSubmit(data) { data: data, }); } +//聚类分析 +export function clusterAnalysis(data) { + return request({ + url: "/api/python/clusterAnalysis", + method: "post", + data: data, + }); +} diff --git a/src/assets/images/xz按钮.png b/src/assets/images/xz按钮.png new file mode 100644 index 0000000..458e9cb Binary files /dev/null and b/src/assets/images/xz按钮.png differ diff --git a/src/assets/images/xz按钮2.png b/src/assets/images/xz按钮2.png new file mode 100644 index 0000000..8e3165d Binary files /dev/null and b/src/assets/images/xz按钮2.png differ diff --git a/src/components/codemirror/index.vue b/src/components/codemirror/index.vue new file mode 100644 index 0000000..04ae26e --- /dev/null +++ b/src/components/codemirror/index.vue @@ -0,0 +1,211 @@ + + + + \ No newline at end of file diff --git a/src/layout/index.vue b/src/layout/index.vue index 8ff99b3..4be6328 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -2,7 +2,8 @@
- 天 择 数 字 营 销 实 训 系 统 - 教 师 端 + 天 择 数 字 营 销 实 训 系 统 + 天 择 数 字 营 销 实 训 系 统 - 教 师 端
diff --git a/src/store/modules/algorithm.js b/src/store/modules/algorithm.js index aa5d814..cb63501 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-28 14:59:50 + * @LastEditTime: 2025-04-02 17:55:19 * @FilePath: \digital-marketing\src\store\modules\algorithm.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ diff --git a/src/views/digitalMarketingAlgorithms/components/associationRuleMining.vue b/src/views/digitalMarketingAlgorithms/components/associationRuleMining.vue index d425309..21659c7 100644 --- a/src/views/digitalMarketingAlgorithms/components/associationRuleMining.vue +++ b/src/views/digitalMarketingAlgorithms/components/associationRuleMining.vue @@ -50,6 +50,9 @@
三、模型参数设置
+
+ 代码设置 +
聚类方法:
@@ -322,9 +325,17 @@
+ + + diff --git a/src/views/portraitModel/components/abcAnalysis.vue b/src/views/portraitModel/components/abcAnalysis.vue index adc9919..1d660f5 100644 --- a/src/views/portraitModel/components/abcAnalysis.vue +++ b/src/views/portraitModel/components/abcAnalysis.vue @@ -1244,7 +1244,7 @@ defineExpose({ }); const openKnowledge = () => { dialogVisible.value = true; - startCount(); + // startCount(); }; const handlClose = () => { console.log('123'); @@ -1266,15 +1266,15 @@ const startCount = () => { }, 1000); }; const submitTimeCount = () => { - portraitModel - .timeCountSubmit({ - stuScoreDetailsDTO: { - userId: JSON.parse(getUserInfo()).userId, - viewingTime: timeCount.value, - }, - }) - .then((res) => {}) - .catch((error) => {}); + // portraitModel + // .timeCountSubmit({ + // stuScoreDetailsDTO: { + // userId: JSON.parse(getUserInfo()).userId, + // viewingTime: timeCount.value, + // }, + // }) + // .then((res) => {}) + // .catch((error) => {}); }; diff --git a/src/views/portraitModel/components/basketAnalysis.vue b/src/views/portraitModel/components/basketAnalysis.vue index bb7335b..39f36a8 100644 --- a/src/views/portraitModel/components/basketAnalysis.vue +++ b/src/views/portraitModel/components/basketAnalysis.vue @@ -1145,7 +1145,7 @@ defineExpose({ }); const openKnowledge = () => { dialogVisible.value = true; - startCount(); + // startCount(); }; const handlClose = () => { console.log('123'); @@ -1164,15 +1164,15 @@ const startCount = () => { }, 1000); }; const submitTimeCount = () => { - portraitModel - .timeCountSubmit({ - stuScoreDetailsDTO: { - userId: JSON.parse(getUserInfo()).userId, - viewingTime: timeCount.value, - }, - }) - .then((res) => {}) - .catch((error) => {}); + // portraitModel + // .timeCountSubmit({ + // stuScoreDetailsDTO: { + // userId: JSON.parse(getUserInfo()).userId, + // viewingTime: timeCount.value, + // }, + // }) + // .then((res) => {}) + // .catch((error) => {}); }; diff --git a/src/views/portraitModel/components/bostonAnalysis.vue b/src/views/portraitModel/components/bostonAnalysis.vue index ae2b959..a51c33c 100644 --- a/src/views/portraitModel/components/bostonAnalysis.vue +++ b/src/views/portraitModel/components/bostonAnalysis.vue @@ -1935,7 +1935,7 @@ defineExpose({ }); const openKnowledge = () => { dialogVisible.value = true; - startCount(); + // startCount(); }; const handlClose = () => { console.log('123'); @@ -1954,15 +1954,15 @@ const startCount = () => { }, 1000); }; const submitTimeCount = () => { - portraitModel - .timeCountSubmit({ - stuScoreDetailsDTO: { - userId: JSON.parse(getUserInfo()).userId, - viewingTime: timeCount.value, - }, - }) - .then((res) => {}) - .catch((error) => {}); + // portraitModel + // .timeCountSubmit({ + // stuScoreDetailsDTO: { + // userId: JSON.parse(getUserInfo()).userId, + // viewingTime: timeCount.value, + // }, + // }) + // .then((res) => {}) + // .catch((error) => {}); }; diff --git a/src/views/portraitModel/components/funnelAnalysis.vue b/src/views/portraitModel/components/funnelAnalysis.vue index 64fa939..3a21d6d 100644 --- a/src/views/portraitModel/components/funnelAnalysis.vue +++ b/src/views/portraitModel/components/funnelAnalysis.vue @@ -1217,7 +1217,7 @@ defineExpose({ }); const openKnowledge = () => { dialogVisible.value = true; - startCount(); + // startCount(); }; const handlClose = () => { console.log('123'); @@ -1236,15 +1236,15 @@ const startCount = () => { }, 1000); }; const submitTimeCount = () => { - portraitModel - .timeCountSubmit({ - stuScoreDetailsDTO: { - userId: JSON.parse(getUserInfo()).userId, - viewingTime: timeCount.value, - }, - }) - .then((res) => {}) - .catch((error) => {}); + // portraitModel + // .timeCountSubmit({ + // stuScoreDetailsDTO: { + // userId: JSON.parse(getUserInfo()).userId, + // viewingTime: timeCount.value, + // }, + // }) + // .then((res) => {}) + // .catch((error) => {}); }; diff --git a/src/views/portraitModel/components/portraitAnalysis.vue b/src/views/portraitModel/components/portraitAnalysis.vue index 3fcc1db..be4bbc6 100644 --- a/src/views/portraitModel/components/portraitAnalysis.vue +++ b/src/views/portraitModel/components/portraitAnalysis.vue @@ -1232,7 +1232,7 @@ defineExpose({ }); const openKnowledge = () => { dialogVisible.value = true; - startCount(); + // startCount(); }; const handlClose = () => { console.log('123'); @@ -1251,15 +1251,15 @@ const startCount = () => { }, 1000); }; const submitTimeCount = () => { - portraitModel - .timeCountSubmit({ - stuScoreDetailsDTO: { - userId: JSON.parse(getUserInfo()).userId, - viewingTime: timeCount.value, - }, - }) - .then((res) => {}) - .catch((error) => {}); + // portraitModel + // .timeCountSubmit({ + // stuScoreDetailsDTO: { + // userId: JSON.parse(getUserInfo()).userId, + // viewingTime: timeCount.value, + // }, + // }) + // .then((res) => {}) + // .catch((error) => {}); }; diff --git a/src/views/portraitModel/components/repurchaseAnalysis.vue b/src/views/portraitModel/components/repurchaseAnalysis.vue index 2764fc0..4918fa2 100644 --- a/src/views/portraitModel/components/repurchaseAnalysis.vue +++ b/src/views/portraitModel/components/repurchaseAnalysis.vue @@ -2236,7 +2236,7 @@ defineExpose({ }); const openKnowledge = () => { dialogVisible.value = true; - startCount(); + // startCount(); }; const handlClose = () => { console.log('123'); @@ -2255,15 +2255,15 @@ const startCount = () => { }, 1000); }; const submitTimeCount = () => { - portraitModel - .timeCountSubmit({ - stuScoreDetailsDTO: { - userId: JSON.parse(getUserInfo()).userId, - viewingTime: timeCount.value, - }, - }) - .then((res) => {}) - .catch((error) => {}); + // portraitModel + // .timeCountSubmit({ + // stuScoreDetailsDTO: { + // userId: JSON.parse(getUserInfo()).userId, + // viewingTime: timeCount.value, + // }, + // }) + // .then((res) => {}) + // .catch((error) => {}); }; diff --git a/src/views/portraitModel/components/retainAnalysis.vue b/src/views/portraitModel/components/retainAnalysis.vue index 8f7b850..ceed03f 100644 --- a/src/views/portraitModel/components/retainAnalysis.vue +++ b/src/views/portraitModel/components/retainAnalysis.vue @@ -1762,7 +1762,7 @@ defineExpose({ }); const openKnowledge = () => { dialogVisible.value = true; - startCount(); + // startCount(); }; const handlClose = () => { console.log('123'); @@ -1781,15 +1781,15 @@ const startCount = () => { }, 1000); }; const submitTimeCount = () => { - portraitModel - .timeCountSubmit({ - stuScoreDetailsDTO: { - userId: JSON.parse(getUserInfo()).userId, - viewingTime: timeCount.value, - }, - }) - .then((res) => {}) - .catch((error) => {}); + // portraitModel + // .timeCountSubmit({ + // stuScoreDetailsDTO: { + // userId: JSON.parse(getUserInfo()).userId, + // viewingTime: timeCount.value, + // }, + // }) + // .then((res) => {}) + // .catch((error) => {}); }; diff --git a/src/views/portraitModel/components/rfmAnalysis.vue b/src/views/portraitModel/components/rfmAnalysis.vue index 2df1d14..1d67e99 100644 --- a/src/views/portraitModel/components/rfmAnalysis.vue +++ b/src/views/portraitModel/components/rfmAnalysis.vue @@ -37,7 +37,7 @@ 第一步,确定“近一段时间”的时间间隔
- 计划分析最近30天的用户,假设现在是2025.05.30,需要对数据进行筛选,筛选出统计样本 + 计划分析最近30天的用户,假设现在是2024.05.30,需要对数据进行筛选,筛选出统计样本
{ dialogVisible.value = true; - startCount(); + // startCount(); }; const handlClose = () => { console.log('123'); @@ -1956,15 +1956,15 @@ const startCount = () => { }, 1000); }; const submitTimeCount = () => { - portraitModel - .timeCountSubmit({ - stuScoreDetailsDTO: { - userId: JSON.parse(getUserInfo()).userId, - viewingTime: timeCount.value, - }, - }) - .then((res) => {}) - .catch((error) => {}); + // portraitModel + // .timeCountSubmit({ + // stuScoreDetailsDTO: { + // userId: JSON.parse(getUserInfo()).userId, + // viewingTime: timeCount.value, + // }, + // }) + // .then((res) => {}) + // .catch((error) => {}); };