|
|
@@ -199,7 +199,7 @@ export default {
|
|
|
const handlePipeline = (modelId) => {
|
|
|
pipelineVisible.value = true
|
|
|
const payload = {
|
|
|
- userId: 1,
|
|
|
+ userId: localStorage.getItem("ms_userId"),
|
|
|
modelId: modelId
|
|
|
}
|
|
|
getOneModel(payload).then(res =>{
|
|
|
@@ -207,7 +207,7 @@ export default {
|
|
|
pplForm.machineLearningAlgorithm = res.result.machineLearningAlgorithm
|
|
|
pplForm.trainParams = res.result.trainParams
|
|
|
const data = {
|
|
|
- userId: 1,
|
|
|
+ userId: localStorage.getItem("ms_userId"),
|
|
|
configId: pplForm.configId
|
|
|
}
|
|
|
getOneConfig(data).then(resConfig =>{
|
|
|
@@ -218,7 +218,7 @@ export default {
|
|
|
}
|
|
|
const pipeline = () => {
|
|
|
const payload = {
|
|
|
- userId: 1,
|
|
|
+ userId: localStorage.getItem("ms_userId"),
|
|
|
pipelineName: pplForm.pipelineName,
|
|
|
features: pplForm.features,
|
|
|
label: pplForm.label,
|
|
|
@@ -246,12 +246,12 @@ export default {
|
|
|
// 获取表格数据
|
|
|
|
|
|
const getpage=()=> {
|
|
|
- const uid=1;
|
|
|
- GetAllFile(uid).then(res=>{
|
|
|
+ const userId=localStorage.getItem("ms_userId");
|
|
|
+ GetAllFile(userId).then(res=>{
|
|
|
fileList.value=res.result;
|
|
|
})
|
|
|
getAllModel({
|
|
|
- userId: uid
|
|
|
+ userId: userId
|
|
|
}).then(res => {
|
|
|
tableData.value = res.result;
|
|
|
pageTotal.value=tableData.value.length
|
|
|
@@ -300,7 +300,7 @@ export default {
|
|
|
console.log("modelId: "+idx);
|
|
|
const payload={
|
|
|
modelId: idx,
|
|
|
- userId: 1,
|
|
|
+ userId: localStorage.getItem("ms_userId")
|
|
|
}
|
|
|
console.log(payload)
|
|
|
train(payload).then(res=>{
|
|
|
@@ -360,7 +360,7 @@ export default {
|
|
|
let payload={
|
|
|
modelId:usemodelId.value,
|
|
|
fileInfoId:fileId,
|
|
|
- userId: 1,
|
|
|
+ userId: localStorage.getItem("ms_userId"),
|
|
|
}
|
|
|
ElMessageBox( {
|
|
|
title: "确定要预测吗?",
|