|
@@ -6,7 +6,7 @@
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
<a-form-item label="设备名称">
|
|
|
- <a-input placeholder="请输入设备名称" v-model="queryParam.deviceName" disabled></a-input>
|
|
|
+ <a-input placeholder="请输入设备名称" v-model="queryParam.deviceName"></a-input>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
@@ -117,6 +117,11 @@
|
|
|
</a-menu>
|
|
|
</a-dropdown>
|
|
|
</span>
|
|
|
+ <span slot="action2" slot-scope="text, item">
|
|
|
+ <a-popconfirm :title="item.deviceStatus == 3 ? '确定取消设备故障吗': '确定设备出现故障吗'" @confirm="() => handleGuzhang(item)">
|
|
|
+ <a>{{item.deviceStatus == 3 ? '取消故障': '故障'}}</a>
|
|
|
+ </a-popconfirm>
|
|
|
+ </span>
|
|
|
|
|
|
</a-table>
|
|
|
</div>
|
|
@@ -220,6 +225,13 @@
|
|
|
dataIndex: 'isRepair_dictText'
|
|
|
},
|
|
|
{
|
|
|
+ title: '故障判断',
|
|
|
+ dataIndex: 'action2',
|
|
|
+ align:"center",
|
|
|
+ fixed:"right",
|
|
|
+ scopedSlots: { customRender: 'action2' }
|
|
|
+ },
|
|
|
+ {
|
|
|
title: '操作',
|
|
|
dataIndex: 'action',
|
|
|
align:"center",
|
|
@@ -273,6 +285,9 @@
|
|
|
fieldList.push({type:'int',value:'specid',text:'区域',dictCode:''})
|
|
|
fieldList.push({type:'string',value:'remark',text:'备注',dictCode:''})
|
|
|
this.superFieldList = fieldList
|
|
|
+ },
|
|
|
+ handleGuzhang(item){
|
|
|
+ console.log(item)
|
|
|
}
|
|
|
}
|
|
|
}
|