项目基本信息(楼栋管理):操作功能修复
This commit is contained in:
parent
5aa38fcb23
commit
11f59de289
@ -27,7 +27,10 @@
|
||||
<!-- 操作 -->
|
||||
<el-table-column :label="$t('message.projectInfo.operation')">
|
||||
<template slot-scope="scope">
|
||||
<el-button @click="handleClick(scope.row,scope.$index,index)" type="text" size="small" v-for="(item,index) in [$t('message.projectInfo.bindRoomType'),$t('message.projectInfo.edit'),$t('message.projectInfo.delete')]" :key="index">{{item}}</el-button>
|
||||
<el-button @click="handleClick(scope.row,scope.$index,index)"
|
||||
type="text" size="small"
|
||||
v-for="(item,index) in [$t('message.projectInfo.bindRoomType'),$t('message.projectInfo.edit'),$t('message.projectInfo.delete')]"
|
||||
:key="index">{{item}}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -515,20 +518,19 @@ export default {
|
||||
this.currentBuildId = row.id
|
||||
//绑定户型
|
||||
if(index === 0){
|
||||
|
||||
this.tableType = 1
|
||||
if(this.breadcrumbItem.length === 1){
|
||||
this.breadcrumbItem.push(row.name)
|
||||
this.getFloorAndRoom(this.tableData[buildingIndex].id)
|
||||
this.tableType = 1
|
||||
}
|
||||
}
|
||||
//编辑
|
||||
else if(index === 1){
|
||||
// this.currentBuildId = row.id
|
||||
this.tableType = 2
|
||||
if(this.breadcrumbItem.length === 1){
|
||||
this.breadcrumbItem.push(row.name,'编辑')
|
||||
this.getFloorAndRoom(this.tableData[buildingIndex].id)
|
||||
this.tableType = 2
|
||||
}
|
||||
}
|
||||
//删除
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user