|
@@ -0,0 +1,250 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="crumbs">
|
|
|
|
|
+ <el-breadcrumb separator="/">
|
|
|
|
|
+ <el-breadcrumb-item>
|
|
|
|
|
+ <i class="el-icon-lx-cascades"></i> 数据统计配置详情
|
|
|
|
|
+ </el-breadcrumb-item>
|
|
|
|
|
+ </el-breadcrumb>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="container">
|
|
|
|
|
+ <div class="form-box" >
|
|
|
|
|
+ <el-form ref="formRef" label-width="120px">
|
|
|
|
|
+ <el-form-item label="统计配置名:" >
|
|
|
|
|
+ {{config.configName}}
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ <el-form-item label="选中字段:" >
|
|
|
|
|
+ <el-table :data="tableData" border class="table" ref="fieldTable" header-cell-class-name="table-header" @selection-change="handleSelectChange">
|
|
|
|
|
+ <el-table-column label="字段名" width="120%">
|
|
|
|
|
+ <template #default="scope"><span>{{ scope.row }}</span></template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ <el-table-column label="取值类型">
|
|
|
|
|
+ <template #default="scope">{{ scope.row.fieldType }}</template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+
|
|
|
|
|
+<!-- <el-form-item label="分析记录:" >-->
|
|
|
|
|
+<!-- <el-table :data="modelData" border class="table" ref="fieldTable" header-cell-class-name="table-header" @selection-change="handleSelectChange">-->
|
|
|
|
|
+<!-- <el-table-column label="分析id" width="150%">-->
|
|
|
|
|
+<!-- <template #default="scope"><span>{{ scope.row.modelName }}</span></template>-->
|
|
|
|
|
+<!-- </el-table-column>-->
|
|
|
|
|
+<!-- <el-table-column label="分析算法" width="150%">-->
|
|
|
|
|
+<!-- <template #default="scope">{{ scope.row.modelDetailName }}</template>-->
|
|
|
|
|
+<!-- </el-table-column>-->
|
|
|
|
|
+<!-- <el-table-column label="分析状态">-->
|
|
|
|
|
+<!-- <template #default="scope" >-->
|
|
|
|
|
+<!-- <div v-if="scope.row.trainedStatus===-1">未训练</div>-->
|
|
|
|
|
+<!-- <div v-else="">已训练</div></template>-->
|
|
|
|
|
+<!-- </el-table-column>-->
|
|
|
|
|
+<!-- <el-table-column label="操作" width="180" align="center">-->
|
|
|
|
|
+<!-- <template #default="scope">-->
|
|
|
|
|
+
|
|
|
|
|
+<!-- <router-link :to="{path:'/modelList',query:{modelId:scope.row.id}}">-->
|
|
|
|
|
+<!-- <el-button type="text" icon="el-icon-view" >查看分析结果-->
|
|
|
|
|
+<!-- </el-button>-->
|
|
|
|
|
+<!-- </router-link>-->
|
|
|
|
|
+
|
|
|
|
|
+<!-- </template>-->
|
|
|
|
|
+<!-- </el-table-column>-->
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+<!-- </el-table>-->
|
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
+
|
|
|
|
|
+ <el-form-item>
|
|
|
|
|
+ <el-button type="primary" @click="createModel()">进行分析</el-button>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-form>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+<!-- <el-dialog title="新建模型" v-model="modelVisiable" width="30%">-->
|
|
|
|
|
+<!-- <el-form label-width="120px">-->
|
|
|
|
|
+<!-- <el-form-item label="文件Id" required>-->
|
|
|
|
|
+<!-- <el-input v-model="form.fileInfoId" ></el-input>-->
|
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
+<!-- <el-form-item label="模型名称" required>-->
|
|
|
|
|
+<!-- <el-input v-model="form.modelName"></el-input>-->
|
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
+<!-- <el-form-item label="MaxIter" v-model="showMaxIter" v-if="showMaxIter===true">-->
|
|
|
|
|
+<!-- <el-input v-model="form.MaxIter"></el-input>-->
|
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
+<!-- <el-form-item label="RegParam" v-model="showRegParam" v-if="showRegParam===true">-->
|
|
|
|
|
+<!-- <el-input v-model="form.RegParam"></el-input>-->
|
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
+<!-- <el-form-item label="ElasticNetParam" v-model="showElasticNetParam" v-if="showElasticNetParam===true">-->
|
|
|
|
|
+<!-- <el-input v-model="form.ElasticNetParam"></el-input>-->
|
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
+<!-- <el-form-item label="Category" v-model="showCategory" v-if="showCategory===true">-->
|
|
|
|
|
+<!-- <el-input v-model="form.Category"></el-input>-->
|
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
+<!-- <el-form-item label="DataSetOccupy" v-model="showTrainingDataSetOccupy" v-if="showTrainingDataSetOccupy===true">-->
|
|
|
|
|
+<!-- <el-input v-model="form.TrainingDataSetOccupy"></el-input>-->
|
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
+<!-- <el-form-item label="NumOfCluster" v-model="showNumOfCluster" v-if="showNumOfCluster===true">-->
|
|
|
|
|
+<!-- <el-input v-model="form.NumOfCluster"></el-input>-->
|
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
+<!-- <el-form-item label="Seed" v-model="showSeed" v-if="showSeed===true">-->
|
|
|
|
|
+<!-- <el-input v-model="form.Seed"></el-input>-->
|
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
+
|
|
|
|
|
+<!-- </el-form>-->
|
|
|
|
|
+<!-- <template #footer>-->
|
|
|
|
|
+<!-- <span class="dialog-footer">-->
|
|
|
|
|
+<!-- <el-button @click="modelVisiable = false">取 消</el-button>-->
|
|
|
|
|
+<!-- <el-button type="primary" @click="saveModel">确 定</el-button>-->
|
|
|
|
|
+<!-- </span>-->
|
|
|
|
|
+<!-- </template>-->
|
|
|
|
|
+<!-- </el-dialog>-->
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ </div>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script>
|
|
|
|
|
+import {reactive, ref} from "vue";
|
|
|
|
|
+import {getOneConfig} from "../../api/config";
|
|
|
|
|
+import {useRoute} from "vue-router";
|
|
|
|
|
+
|
|
|
|
|
+export default {
|
|
|
|
|
+ name: "AnalysisConfigDetail",
|
|
|
|
|
+ setup(){
|
|
|
|
|
+ const query = reactive({
|
|
|
|
|
+ address: "",
|
|
|
|
|
+ name: "",
|
|
|
|
|
+ pageIndex: 1,
|
|
|
|
|
+ pageSize: 10,
|
|
|
|
|
+ });
|
|
|
|
|
+ const fileId=ref(1);
|
|
|
|
|
+ const tableData = ref([]);
|
|
|
|
|
+ const selectData = ref([]);
|
|
|
|
|
+ const pageTotal = ref(0);
|
|
|
|
|
+ const modelData=ref([]);
|
|
|
|
|
+ const config=ref({});
|
|
|
|
|
+ const route=useRoute()
|
|
|
|
|
+ const showMaxIter=ref(false);
|
|
|
|
|
+ const showRegParam=ref(false);
|
|
|
|
|
+ const showElasticNetParam=ref(false);
|
|
|
|
|
+ const showCategory=ref(false);
|
|
|
|
|
+ const showTrainingDataSetOccupy=ref(false);
|
|
|
|
|
+ const showNumOfCluster=ref(false);
|
|
|
|
|
+ const showSeed=ref(false);
|
|
|
|
|
+
|
|
|
|
|
+ let form = reactive({
|
|
|
|
|
+ modelTypeId:"",
|
|
|
|
|
+ configId:route.query.configId,
|
|
|
|
|
+ fileInfoId:"",
|
|
|
|
|
+ modelName:"",
|
|
|
|
|
+ MaxIter:"",
|
|
|
|
|
+ RegParam:"",
|
|
|
|
|
+ ElasticNetParam:"",
|
|
|
|
|
+ Category:"",
|
|
|
|
|
+ TrainingDataSetOccupy:"",
|
|
|
|
|
+ NumOfCluster:"",
|
|
|
|
|
+ Seed:"",
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ const getData = () => {
|
|
|
|
|
+ // console.log("queryId",route.query.configId);
|
|
|
|
|
+ if(route.query.configId!=null) {
|
|
|
|
|
+ getOneConfig({configId:route.query.configId}).then(res => {
|
|
|
|
|
+ // console.log("configdetail",route.query.configId);
|
|
|
|
|
+ config.value=res.data;
|
|
|
|
|
+ form.modelTypeId=config.value.modelTypeId;
|
|
|
|
|
+ if (form.modelTypeId==='1') {
|
|
|
|
|
+ showMaxIter.value = true;
|
|
|
|
|
+ showRegParam.value = true;
|
|
|
|
|
+ showElasticNetParam.value = true;
|
|
|
|
|
+ }else if (form.modelTypeId==='5') {
|
|
|
|
|
+ showNumOfCluster.value=true;
|
|
|
|
|
+ showSeed.value=true;
|
|
|
|
|
+ }else {
|
|
|
|
|
+ showCategory.value=true;
|
|
|
|
|
+ showTrainingDataSetOccupy.value=true;
|
|
|
|
|
+ }
|
|
|
|
|
+ console.log("form",form);
|
|
|
|
|
+ //console.log("config",config.value.modelTypeId);
|
|
|
|
|
+ tableData.value = res.data.featureList;
|
|
|
|
|
+ for (var i = 0; i < tableData.value.length; i++) {
|
|
|
|
|
+ if (tableData.value[i].conOrDis === 1) {
|
|
|
|
|
+ tableData.value[i].conOrDis = "连续值"
|
|
|
|
|
+ } else {
|
|
|
|
|
+ tableData.value[i].conOrDis = "离散值"
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ //console.log(tableData)
|
|
|
|
|
+
|
|
|
|
|
+ modelData.value=res.data.modelInfos;
|
|
|
|
|
+ console.log("tableData",tableData);
|
|
|
|
|
+ fileId.value=tableData.value[0].fileInfoId;
|
|
|
|
|
+ form.fileInfoId=(String)(fileId.value)
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ };
|
|
|
|
|
+ //getData();
|
|
|
|
|
+ config.value= {id: 1, userId: 822, fileId: 1, configName: 'zyq', createdTime: 23.08, chosenColumn: ['好瓜','色泽']} ;
|
|
|
|
|
+ tableData.value=config.value.chosenColumn;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ return{
|
|
|
|
|
+ config,
|
|
|
|
|
+ query,
|
|
|
|
|
+ tableData,
|
|
|
|
|
+ pageTotal,
|
|
|
|
|
+ modelData,
|
|
|
|
|
+ form,
|
|
|
|
|
+ fileId,
|
|
|
|
|
+ showMaxIter,
|
|
|
|
|
+
|
|
|
|
|
+ showRegParam,
|
|
|
|
|
+ showElasticNetParam,
|
|
|
|
|
+ showCategory,
|
|
|
|
|
+ showNumOfCluster,
|
|
|
|
|
+ showSeed,
|
|
|
|
|
+ showTrainingDataSetOccupy,
|
|
|
|
|
+ selectData,
|
|
|
|
|
+ };
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
|
|
+<style scoped>
|
|
|
|
|
+.handle-box {
|
|
|
|
|
+ margin-bottom: 20px;
|
|
|
|
|
+}
|
|
|
|
|
+.handle-table{
|
|
|
|
|
+ margin-bottem: 40px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.handle-select {
|
|
|
|
|
+ width: 120px;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.handle-input {
|
|
|
|
|
+ width: 300px;
|
|
|
|
|
+ display: inline-block;
|
|
|
|
|
+}
|
|
|
|
|
+.table {
|
|
|
|
|
+ width: 100%;
|
|
|
|
|
+ font-size: 14px;
|
|
|
|
|
+}
|
|
|
|
|
+.red {
|
|
|
|
|
+ color: #ff0000;
|
|
|
|
|
+}
|
|
|
|
|
+.mr10 {
|
|
|
|
|
+ margin-right: 10px;
|
|
|
|
|
+}
|
|
|
|
|
+.table-td-thumb {
|
|
|
|
|
+ display: block;
|
|
|
|
|
+ margin: auto;
|
|
|
|
|
+ width: 40px;
|
|
|
|
|
+ height: 40px;
|
|
|
|
|
+}
|
|
|
|
|
+</style>
|