|
|
@@ -228,40 +228,19 @@ export default {
|
|
|
|
|
|
config.value=res.data;
|
|
|
form.modelTypeId=config.value.modelTypeId;
|
|
|
- console.log(config.value.modelTypeId);
|
|
|
- if(config.value.modelTypeId==6){
|
|
|
- console.log("this ture")
|
|
|
+ if (form.modelTypeId==='1') {
|
|
|
+ showMaxIter.value = true;
|
|
|
+ showRegParam.value = true;
|
|
|
+ showElasticNetParam.value = true;
|
|
|
+ }else if (form.modelTypeId==='2') {
|
|
|
+ showCategory.value = true;
|
|
|
+ showTrainingSetOccupy.value = true;
|
|
|
+ }else if (form.modelTypeId==='5') {
|
|
|
+ showNumOfCluster.value=true;
|
|
|
+ showSeed.value=true;
|
|
|
+ }else {
|
|
|
showCategory.value=true;
|
|
|
showTrainingDataSetOccupy.value=true;
|
|
|
- }
|
|
|
- switch (form.modelTypeId
|
|
|
-
|
|
|
-
|
|
|
- ){
|
|
|
- case '1':
|
|
|
- showMaxIter.value=true;
|
|
|
- showRegParam.value=true;
|
|
|
- showElasticNetParam.value=true;
|
|
|
- break;
|
|
|
- case '2':
|
|
|
- showCategory.value=true;
|
|
|
- showTrainingSetOccupy.value=true;
|
|
|
- break;
|
|
|
- case '3'||'4':
|
|
|
- showMaxIter.value=true;
|
|
|
- showRegParam.value=true;
|
|
|
- showElasticNetParam.value=true;
|
|
|
- break;
|
|
|
- case '5'||6||'7':
|
|
|
- showCategory.value=true;
|
|
|
- showTrainingDataSetOccupy.value=true;
|
|
|
- console.log("this ture")
|
|
|
- break;
|
|
|
- case '8':
|
|
|
- showNumOfCluster.value=true;
|
|
|
- showSeed.value=true;
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
console.log("form",form);
|
|
|
//console.log("config",config.value.modelTypeId);
|
|
|
@@ -328,18 +307,13 @@ export default {
|
|
|
}
|
|
|
const arg2={
|
|
|
Category:form.Category,
|
|
|
- TrainingDataSetOccupy:form.TrainingDataSetOccupy
|
|
|
+ TrainingSetOccupy:form.TrainingSetOccupy
|
|
|
}
|
|
|
const arg3={
|
|
|
- MaxIter:form.MaxIter,
|
|
|
- RegParam:form.RegParam,
|
|
|
- ElasticNetParam:form.ElasticNetParam
|
|
|
- }
|
|
|
- const arg4={
|
|
|
Category:form.Category,
|
|
|
TrainingDataSetOccupy:form.TrainingDataSetOccupy
|
|
|
}
|
|
|
- const arg5={
|
|
|
+ const arg4={
|
|
|
NumOfCluster:form.NumOfCluster,
|
|
|
Seed:form.Seed
|
|
|
}
|
|
|
@@ -350,18 +324,13 @@ export default {
|
|
|
case '2':
|
|
|
payload.argument=arg2;
|
|
|
break;
|
|
|
- case '3'||'4':
|
|
|
+ case '3'||'4'||'6'||'7'||'8':
|
|
|
payload.argument=arg3;
|
|
|
break;
|
|
|
- case '6'||'7'||'8':
|
|
|
+ case '5':
|
|
|
payload.argument=arg4;
|
|
|
|
|
|
- break;
|
|
|
- case '9':
|
|
|
- payload.argument=arg5;
|
|
|
-
|
|
|
}
|
|
|
- ElMessage.success(`已成功生成模型`);
|
|
|
console.log("here",payload);
|
|
|
addModel(payload).then(res=>{
|
|
|
|