Commit ef6a16b7 authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 26d69b95 63e569e1
......@@ -39,6 +39,11 @@
return {
config: {
search: [
{
name: 'title',
type: 'text',
label: '标题',
},
],
columns: [
{type: "selection", width: 60},
......
......@@ -80,7 +80,15 @@ export default {
formatter: (row) => (row.roomCode ? row.roomCode : "--"),
},
{ label: "房间类型", prop: "roomType", formatter: this.formatter },
{ label: "房间类型", prop: "roomType", formatter: (row)=>{
console.log(this.tableData.dict.roomType);
if(this.tableData.dict.roomType){
return (this.tableData.dict.roomType[row.roomType]?this.tableData.dict.roomType[row.roomType]:'--')
}else{
return '--'
}
}
},
{
label: "绑定设备",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment