1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
| <template> <div> <Table :tableData='tableData' :columnHeaders="columnHeaders"/> </div> </template>
<script> import Table from './Table' export default { components:{Table}, data(){ return{ tableData:[ { name: '王小虎', IDCard:"420122200201230215", StudentID:'202311415125',province1:"湖北省", city1:"武汉市", county1:"洪山区",cun1:"张家湾街道", province2:"湖北省", city2:"十堰市", county2:"郧西县",cun2:"城关" }, { name: '王小虎', IDCard:"420122200201230215", StudentID:'202311415125',province1:"湖北省", city1:"武汉市", county1:"洪山区",cun1:"张家湾街道", province2:"湖北省", city2:"武汉市", county2:"洪山区",cun2:"狮子山街道" }, { name: '王小虎', IDCard:"420122200201230215", StudentID:'202311415125',province1:"湖北省", city1:"武汉市", county1:"洪山区",cun1:"狮子山街道", province2:"湖北省", city2:"武汉市", county2:"洪山区",cun2:"张家湾街道" } ], columnHeaders:[ { label:"姓名", prop:"name", width:'100', align:"center", children:[] },{ label:"ID", prop:"ID", align:"center", children:[ { label:"学生证", prop:"StudentID", align:"center", width:'150', children:[] },{ label:"身份证", prop:"IDCard", align:"right", width:'180', children:[] } ] },{ label:"家庭住址", prop:"address", children:[ { label:"户籍住址", prop:"address1", children:[ { label: "省", prop:"province1", },{ label: "市", prop:"city1", },{ label: "县", prop:"county1", },{ label: "村", prop:"cun1", width:'180', },{ label: "组/楼栋", prop:"zu1", } ] },{ label:"现住址", prop:"address2", children:[ { label: "省", prop:"province2", },{ label: "市", prop:"city2", },{ label: "县", prop:"county2", },{ label: "村", prop:"cun2", width:'180', },{ label: "组/楼栋", prop:"zu2" } ] } ] } ] } } } </script> <style scoped>
</style>
|