Browse Source

任务管控新增类型

dev
wangxingyuan 8 months ago
parent
commit
fc8d218fd4
2 changed files with 9 additions and 4 deletions
  1. +1
    -1
      src/views/basedata/patrolpointmnt/patrolpointpreset/index.vue
  2. +8
    -3
      src/views/point/site_management.vue

+ 1
- 1
src/views/basedata/patrolpointmnt/patrolpointpreset/index.vue View File

@ -469,7 +469,7 @@ export default {
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.fatherID { .fatherID {
color: blue; color: blue;


+ 8
- 3
src/views/point/site_management.vue View File

@ -247,6 +247,7 @@
<el-button <el-button
@click="bindingMonitorBtn(0)" @click="bindingMonitorBtn(0)"
style="margin-top: 10px" style="margin-top: 10px"
:disabled="RightBtnShow"
>{{ >{{
$t("site_management.BindVisibleLightMonitoringPoints") $t("site_management.BindVisibleLightMonitoringPoints")
}}</el-button }}</el-button
@ -254,6 +255,7 @@
<el-button <el-button
@click="bindingMonitorBtn(1)" @click="bindingMonitorBtn(1)"
style="margin-top: 10px" style="margin-top: 10px"
:disabled="RightBtnShow"
>{{ >{{
$t("site_management.BindThermalImagingMonitoringPoints") $t("site_management.BindThermalImagingMonitoringPoints")
}}</el-button }}</el-button
@ -262,7 +264,7 @@
</el-tab-pane> </el-tab-pane>
<el-tab-pane :label="$t('site_management.tabsTwo')" name="second"> <el-tab-pane :label="$t('site_management.tabsTwo')" name="second">
<div class="tabsBtn"> <div class="tabsBtn">
<el-button @click="InspectionBtn">{{
<el-button @click="InspectionBtn" :disabled="RightBtnShow">{{
$t("site_management.BindMonitoringDevices") $t("site_management.BindMonitoringDevices")
}}</el-button> }}</el-button>
@ -972,6 +974,7 @@ export default {
deviceIdShow: true, deviceIdShow: true,
TreeItem: {}, TreeItem: {},
type: 0, type: 0,
RightBtnShow: true,
}; };
}, },
mounted() { mounted() {
@ -999,6 +1002,7 @@ export default {
}, },
handleNodeClick(data, e) { handleNodeClick(data, e) {
this.TreeItem = data; this.TreeItem = data;
this.RightBtnShow = true;
this.monitorPointForm.areaId = data.areaId; this.monitorPointForm.areaId = data.areaId;
this.monitorPointForm.deviceId = data.deviceId; this.monitorPointForm.deviceId = data.deviceId;
if (data.deviceId) { if (data.deviceId) {
@ -1016,8 +1020,8 @@ export default {
if (res.code == 200) { if (res.code == 200) {
this.tableData = res.rows; this.tableData = res.rows;
this.tableData.forEach((item) => { 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) { changeCurrentRow(row) {
this.currentRowId = row.id; // ID this.currentRowId = row.id; // ID
this.RightBtnShow=false
this.rowStyle(row); this.rowStyle(row);
}, },
// //


Loading…
Cancel
Save