作者 朱兆平

出港理货转树形结构

@@ -51,9 +51,16 @@ @@ -51,9 +51,16 @@
51 </el-col> 51 </el-col>
52 </el-row> 52 </el-row>
53 </div> 53 </div>
54 - <tree-table v-loading="listLoading" :data="tidyData" :eval-func="func" :expand-all="true" stripe  
55 - style="font-size: 12px" border @selection-change="handleSelectionChange">  
56 - <el-table-column label="运单号" width="110" align="center"> 54 + <el-table v-loading="listLoading" :data="tidyData" stripe
  55 + highlight-current-row
  56 + default-expand-all
  57 + row-key="uuid"
  58 + border
  59 + :tree-props="{children: 'children', hasChildren: 'hasChildren'}"
  60 + style="font-size: 12px" @selection-change="handleSelectionChange">
  61 + <el-table-column type="selection" width="55">
  62 + </el-table-column>
  63 + <el-table-column label="运单号" width="150" align="center">
57 <template slot-scope="scope"> 64 <template slot-scope="scope">
58 <span>{{scope.row.awba}}</span> 65 <span>{{scope.row.awba}}</span>
59 </template> 66 </template>
@@ -124,7 +131,7 @@ @@ -124,7 +131,7 @@
124 <!-- :disabled="scope.row.status ==='24'">发删除报</el-button>--> 131 <!-- :disabled="scope.row.status ==='24'">发删除报</el-button>-->
125 </template> 132 </template>
126 </el-table-column> 133 </el-table-column>
127 - </tree-table> 134 + </el-table>
128 <div class="btnFoot"> 135 <div class="btnFoot">
129 <el-row> 136 <el-row>
130 <el-button type="primary" size="mini" v-if="tidyQuery.flightno !== undefined || tidyData.length> 0" 137 <el-button type="primary" size="mini" v-if="tidyQuery.flightno !== undefined || tidyData.length> 0"