Browse Source

feat: show res chart

icenaked 3 years ago
parent
commit
4bcc2ba60c
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/views/unused/BaseCharts.vue

+ 5 - 2
src/views/unused/BaseCharts.vue

@@ -16,7 +16,10 @@
 
 
     <div class="mytTable">
     <div class="mytTable">
          <el-table :data="tableData" border style="width: 100%">
          <el-table :data="tableData" border style="width: 100%">
-         <el-table-column prop="event_type" label="目标字段" width="180" />
+<!--         <el-table-column prop="event_type" label="目标字段" width="180" />-->
+           <el-table-column label="预测结果">
+             <template #default="scope">{{ scope.row }}</template>
+           </el-table-column>
         </el-table>
         </el-table>
     </div>
     </div>
             <div class="pagination">
             <div class="pagination">
@@ -63,7 +66,7 @@ export default {
           }
           }
           use(data).then(res=>{
           use(data).then(res=>{
             console.log(res.data);
             console.log(res.data);
-            tableData.value=res.data.data
+            tableData.value=res.data
           })
           })
             console.log("getData被调用了")
             console.log("getData被调用了")