Showing
2 changed files
with
8 additions
and
5 deletions
@@ -39,10 +39,13 @@ export default { | @@ -39,10 +39,13 @@ export default { | ||
39 | let data=editTbaleData.value; | 39 | let data=editTbaleData.value; |
40 | let arr=[]; | 40 | let arr=[]; |
41 | data.map(item=>{ | 41 | data.map(item=>{ |
42 | - item.proto.map(item=>{ | ||
43 | - item.paramValue=item.defaultValue; | ||
44 | - item.protocol=item.protocolId; | ||
45 | - }) | 42 | + if(item.proto && item.proto.length>0){ |
43 | + item.proto.map(item=>{ | ||
44 | + item.paramValue=item.defaultValue; | ||
45 | + item.protocol=item.protocolId; | ||
46 | + }) | ||
47 | + } | ||
48 | + | ||
46 | arr.push({ | 49 | arr.push({ |
47 | bean:item, | 50 | bean:item, |
48 | proto:item.proto | 51 | proto:item.proto |
@@ -55,7 +55,7 @@ | @@ -55,7 +55,7 @@ | ||
55 | </div> | 55 | </div> |
56 | </div> | 56 | </div> |
57 | <div class="search-table"> | 57 | <div class="search-table"> |
58 | - <cm-table-page v-if="tableData.dataList && tableData.dataList.length>0" :columns="tableData.columns" :dataList="tableData.dataList" | 58 | + <cm-table-page v-if="tableData.dataList " :columns="tableData.columns" :dataList="tableData.dataList" |
59 | :showIndex="true" | 59 | :showIndex="true" |
60 | :total="tableData.count" | 60 | :total="tableData.count" |
61 | @loaddata = "loaddata" | 61 | @loaddata = "loaddata" |
-
Please register or login to post a comment