diff --git a/src/api/iot/device.js b/src/api/iot/device.js
index dfec29db..d5dd5f71 100644
--- a/src/api/iot/device.js
+++ b/src/api/iot/device.js
@@ -265,3 +265,11 @@ export function deviceSendTimingConfig(data) {
data: data
});
}
+// 功能下发
+export function setFunctionControl(data) {
+ return request({
+ url: "/iot/dev/opt/function",
+ method: "post",
+ data: data
+ });
+}
diff --git a/src/views/iot/device/profile/functionWrap.vue b/src/views/iot/device/profile/functionWrap.vue
index 1991540d..537a8b59 100644
--- a/src/views/iot/device/profile/functionWrap.vue
+++ b/src/views/iot/device/profile/functionWrap.vue
@@ -333,7 +333,7 @@
+.enum-box {
+ border: 1px solid #d8d7d7;
+ padding: 10px;
+ margin-bottom: 10px;
+
+ .enum-header {
+ margin-bottom: 10px;
+ }
+}
+
+.is-error input {
+ border-color: #F56C6C;
+}
+
+.el-form-item__error {
+ color: #F56C6C;
+ font-size: 12px;
+ line-height: 1;
+ padding-top: 4px;
+ position: absolute;
+ top: 100%;
+ left: 0;
+}
+
+
+
diff --git a/src/views/profile/attribute/eventView.vue b/src/views/profile/attribute/eventView.vue
new file mode 100644
index 00000000..8e122ef0
--- /dev/null
+++ b/src/views/profile/attribute/eventView.vue
@@ -0,0 +1,440 @@
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+
+ {{ eventLevel[scope.row.expands.level] }}
+
+
+
+
+ {{
+ scope.row.valueType ? scope.row.valueType.properties.length : 0
+ }}
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/profile/attribute/functionFormModel.vue b/src/views/profile/attribute/functionFormModel.vue
index 0f38f8bb..d1367e85 100644
--- a/src/views/profile/attribute/functionFormModel.vue
+++ b/src/views/profile/attribute/functionFormModel.vue
@@ -35,9 +35,9 @@
{{ scope.row.expands.required ? '是' : '否'}}
-
+
- {{ funDataTypeOption[scope.row.funDataType] }}
+ {{ dataTypeOption[scope.row.valueType.type] }}
-
-
+
+
-
+