Browse Source

修改接口

Rmengdi 10 months ago
parent
commit
19cce232b6
1 changed files with 10 additions and 8 deletions
  1. 10 8
      pdaaphm-ui/src/views/index.vue

+ 10 - 8
pdaaphm-ui/src/views/index.vue

@@ -16,7 +16,7 @@
           <el-table size="mini" :data="completionList">
             <el-table-column prop="resultDataName" label="数据" align="center">
               <template slot-scope="scope">
-                <span class="file" @click="handleFile(scope.row.resultDataId,scope.row.processType)">{{
+                <span class="file" @click="handleFile(scope.row.processedDataId,scope.row.processType)">{{
             scope.row.resultDataName
           }}</span>
               </template>
@@ -30,7 +30,7 @@
           <el-table size="mini" :data="featureExtractionList">
             <el-table-column prop="resultDataName" label="数据" align="center">
               <template slot-scope="scope">
-                <span class="file" @click="handleFile(scope.row.resultDataId,scope.row.processType)">{{
+                <span class="file" @click="handleFile(scope.row.processedDataId,scope.row.processType)">{{
             scope.row.resultDataName
           }}</span>
               </template>
@@ -96,7 +96,7 @@
           <el-table size="mini" :data="denoisingList">
             <el-table-column prop="resultDataName" label="数据" align="center">
               <template slot-scope="scope">
-                <span class="file" @click="handleFile(scope.row.resultDataId,scope.row.processType)">{{
+                <span class="file" @click="handleFile(scope.row.processedDataId,scope.row.processType)">{{
             scope.row.resultDataName
           }}</span>
               </template>
@@ -110,7 +110,7 @@
           <el-table size="mini" :data="expansionList">
             <el-table-column prop="resultDataName" label="数据" align="center">
               <template slot-scope="scope">
-                <span class="file" @click="handleFile(scope.row.resultDataId,scope.row.processType)">{{
+                <span class="file" @click="handleFile(scope.row.processedDataId,scope.row.processType)">{{
             scope.row.resultDataName
           }}</span>
               </template>
@@ -124,7 +124,7 @@
           <el-table size="mini" :data="assessmentList">
             <el-table-column prop="resultDataName" label="数据" align="center">
               <template slot-scope="scope">
-                <span class="file" @click="handleFile(scope.row.resultDataId,scope.row.processType)">{{
+                <span class="file" @click="handleFile(scope.row.processedDataId,scope.row.processType)">{{
             scope.row.resultDataName
           }}</span>
               </template>
@@ -275,17 +275,18 @@ export default {
       });
     },
     submitHandle() {
+      console.log("this.form",this.form);
       addProcess(this.form).then(response => {
         this.$modal.msgSuccess("开始执行");
         this.dialogVisible = false;
         this.getTableData()
       });
     },
-    handleFile(resultDataId,processType) {
+    handleFile(processedDataId,processType) {
       this.loading = true
-      this.resultFileId = resultDataId
+      this.resultFileId = processedDataId
       this.fileType = processType
-      getData(resultDataId).then(res => {
+      getData(processedDataId).then(res => {
         // this.optionalData = res.dataPath;
         const url = `${process.env.VUE_APP_BASE_API}${res.dataPath}`;
         this.fetchLogFile(url)
@@ -294,6 +295,7 @@ export default {
               this.chart.dispose();
               this.chart = null
             }
+            console.log("text",text);
             const color = ['#5470c6', '#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc']
             switch (res.dataType) {
               case '0':