diff --git a/src/views/model/heatapiconf/index.vue b/src/views/model/heatapiconf/index.vue
index 23c2baa..b6c8c00 100644
--- a/src/views/model/heatapiconf/index.vue
+++ b/src/views/model/heatapiconf/index.vue
@@ -17,13 +17,13 @@
class="my-custom-form">
-
-
+
+
@@ -34,12 +34,6 @@
@keyup.enter="handleQuery"/>
-
-
-
-
-
搜索
@@ -67,19 +61,11 @@
-
-
-
-
-
-
-
-
@@ -113,7 +99,7 @@
-
+
@@ -191,7 +177,7 @@
+ :close-on-click-modal="false" destroy-on-close>
@@ -216,7 +202,7 @@
+ :close-on-click-modal="false" destroy-on-close>
@@ -302,7 +288,13 @@ const data = reactive({
standard: null,
excludeDevices: [],
},
- rules: {}
+ rules: {
+ orgCode: [{required: true, message: "请选择热源", trigger: "change"}],
+ pushingCounterpart: [{required: true, message: "请选择推送方", trigger: "change"}],
+ standard: [{required: true, message: "请选择标准值", trigger: "blur"}],
+ dateRange: [{required: true, message: "请选择日期范围", trigger: "change"}],
+ pushingInterval: [{required: true, message: "请输入时间间隔", trigger: "blur"}],
+ }
});
const {queryParams, form, rules} = toRefs(data);
@@ -531,7 +523,7 @@ function handleNodeClick(data) {
queryParams.value.orgCode = data.id;
form.value.orgCode = data.id;
form.value.orgName = data.label;
- disabled.value = data.isLeaf
+ // disabled.value = data.isLeaf
treeSelected.value = data.id;
handleQuery();
}
@@ -758,14 +750,15 @@ function dateRangeChange(dataRange) {
function handleAddStrategyConf() {
deviceList.value = JSON.parse(JSON.stringify(listDevices.value));
- console.log("deviceList", deviceList.value, deviceStrategyConfList.value);
+ let deviceArr = [];
if (deviceStrategyConfList.value && deviceStrategyConfList.value.length > 0) {
deviceList.value.forEach(device => {
let arr = deviceStrategyConfList.value.filter(item => item.deviceUuid === device.uuid);
- if (arr && arr.length > 0) {
- device.disabled = true;
+ if (!arr || arr.length === 0) {
+ deviceArr.push(device);
}
})
+ deviceList.value = deviceArr;
}
strategyConfSaveForm.value.deviceList = [];
openStrategyConfAddForm.value = true;