This commit is contained in:
yanran200730
2021-12-22 16:51:11 +08:00
parent 242bc9a759
commit a2208f04c3
2 changed files with 6 additions and 6 deletions

View File

@@ -83,11 +83,11 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column slot="options" label="操作" align="center" fixed="right" width="130"> <el-table-column slot="options" label="操作" align="center" fixed="right" width="140">
<template slot-scope="{ row }"> <div class="table-options" slot-scope="{ row }">
<el-button type="text" @click="toEdit(row.id, 'edit')">编辑</el-button> <el-button type="text" @click="toEdit(row.id, 'edit')">编辑</el-button>
<el-button type="text" @click="toEdit(row.id, 'detail')">详情</el-button> <el-button type="text" @click="toEdit(row.id, 'detail')">详情</el-button>
</template> </div>
</el-table-column> </el-table-column>
</ai-table> </ai-table>

View File

@@ -46,15 +46,15 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column slot="options" label="操作" align="center" width="300px" fixed="right"> <el-table-column slot="options" label="操作" align="center" width="240px" fixed="right">
<template slot-scope="{ row }"> <div class="table-options" slot-scope="{ row }">
<el-button type="text" @click="onAdd(row.id)">编辑</el-button> <el-button type="text" @click="onAdd(row.id)">编辑</el-button>
<el-button type="text" @click="remove(row.id)">删除</el-button> <el-button type="text" @click="remove(row.id)">删除</el-button>
<el-button type="text" @click="toBuildMsg(row)">房屋信息</el-button> <el-button type="text" @click="toBuildMsg(row)">房屋信息</el-button>
<el-button type="text" @click="$router.push({ name: '房屋地图', query: { communityId: row.communityId, buildingId: row.id, unitNum: 1, buildingNumber: row.buildingNumber } })"> <el-button type="text" @click="$router.push({ name: '房屋地图', query: { communityId: row.communityId, buildingId: row.id, unitNum: 1, buildingNumber: row.buildingNumber } })">
楼栋模型 楼栋模型
</el-button> </el-button>
</template> </div>
</el-table-column> </el-table-column>
</ai-table> </ai-table>
</div> </div>