|
|
|
@ -247,6 +247,7 @@ |
|
|
|
<el-button |
|
|
|
@click="bindingMonitorBtn(0)" |
|
|
|
style="margin-top: 10px" |
|
|
|
:disabled="RightBtnShow" |
|
|
|
>{{ |
|
|
|
$t("site_management.BindVisibleLightMonitoringPoints") |
|
|
|
}}</el-button |
|
|
|
@ -254,6 +255,7 @@ |
|
|
|
<el-button |
|
|
|
@click="bindingMonitorBtn(1)" |
|
|
|
style="margin-top: 10px" |
|
|
|
:disabled="RightBtnShow" |
|
|
|
>{{ |
|
|
|
$t("site_management.BindThermalImagingMonitoringPoints") |
|
|
|
}}</el-button |
|
|
|
@ -262,7 +264,7 @@ |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane :label="$t('site_management.tabsTwo')" name="second"> |
|
|
|
<div class="tabsBtn"> |
|
|
|
<el-button @click="InspectionBtn">{{ |
|
|
|
<el-button @click="InspectionBtn" :disabled="RightBtnShow">{{ |
|
|
|
$t("site_management.BindMonitoringDevices") |
|
|
|
}}</el-button> |
|
|
|
|
|
|
|
@ -972,6 +974,7 @@ export default { |
|
|
|
deviceIdShow: true, |
|
|
|
TreeItem: {}, |
|
|
|
type: 0, |
|
|
|
RightBtnShow: true, |
|
|
|
}; |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
@ -999,6 +1002,7 @@ export default { |
|
|
|
}, |
|
|
|
handleNodeClick(data, e) { |
|
|
|
this.TreeItem = data; |
|
|
|
this.RightBtnShow = true; |
|
|
|
this.monitorPointForm.areaId = data.areaId; |
|
|
|
this.monitorPointForm.deviceId = data.deviceId; |
|
|
|
if (data.deviceId) { |
|
|
|
@ -1016,8 +1020,8 @@ export default { |
|
|
|
if (res.code == 200) { |
|
|
|
this.tableData = res.rows; |
|
|
|
this.tableData.forEach((item) => { |
|
|
|
let id=item.algSubtypeIds.split(","); |
|
|
|
item.patrolTypeId = id.map(Number) |
|
|
|
let id = item.algSubtypeIds.split(","); |
|
|
|
item.patrolTypeId = id.map(Number); |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
@ -1025,6 +1029,7 @@ export default { |
|
|
|
|
|
|
|
changeCurrentRow(row) { |
|
|
|
this.currentRowId = row.id; // 更新当前点击的行ID |
|
|
|
this.RightBtnShow=false |
|
|
|
this.rowStyle(row); |
|
|
|
}, |
|
|
|
// 更改选中行背景色 |
|
|
|
|