| | |
| | | .standard .el-table__body { |
| | | height: 100%; |
| | | } |
| | | .standard .el-table .el-table__row:not([class*="el-table__row--level-"]) td:nth-child(3){ |
| | | padding-left: 23px !important; |
| | | } |
| | | </style> |
| | | |
| | | <template> |
| | | <div class="standard"> |
| | | <el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange" row-key="id" border |
| | | <el-table :data="tableData" border style="width: 100%" @selection-change="handleSelectionChange" row-key="id" |
| | | default-expand-all :tree-props="{children: 'children', hasChildren: 'hasChildren'}"> |
| | | <el-table-column type="selection" width="50"> |
| | | </el-table-column> |
| | | <el-table-column type="index" label="序号" width="75"> |
| | | <el-table-column type="index" label="序号" width="70"> |
| | | </el-table-column> |
| | | <el-table-column prop="date" label="项目" width="350"> |
| | | <el-table-column prop="date" label="项目"> |
| | | </el-table-column> |
| | | <el-table-column prop="name" label="单位" width="180"> |
| | | <el-table-column prop="name" label="单位"> |
| | | </el-table-column> |
| | | <el-table-column prop="address" label="标准值"> |
| | | </el-table-column> |
| | |
| | | name: '王小虎', |
| | | address: '上海市普陀区金沙江路 1516 弄' |
| | | }], |
| | | tableData1: [{ |
| | | id: 1, |
| | | date: '2016-05-02', |
| | | name: '王小虎', |
| | | address: '上海市普陀区金沙江路 1518 弄' |
| | | }, { |
| | | id: 2, |
| | | date: '2016-05-04', |
| | | name: '王小虎', |
| | | address: '上海市普陀区金沙江路 1517 弄' |
| | | }, { |
| | | id: 3, |
| | | date: '2016-05-01', |
| | | name: '王小虎', |
| | | address: '上海市普陀区金沙江路 1519 弄', |
| | | hasChildren: true |
| | | }, { |
| | | id: 4, |
| | | date: '2016-05-03', |
| | | name: '王小虎', |
| | | address: '上海市普陀区金沙江路 1516 弄' |
| | | }], |
| | | selects: [] |
| | | } |
| | | }, |
| | |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | </script> |