项目基本信息(楼栋管理):操作功能修复

This commit is contained in:
骆乐 2022-09-26 14:37:47 +08:00
parent 5aa38fcb23
commit 11f59de289

View File

@ -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
}
}
//