- {{ instanceStore.current?.name }}
+
+ {{ instanceStore.current?.name }}
+
@@ -322,4 +324,14 @@ const jumpProduct = () => {
onUnmounted(() => {
statusRef.value && statusRef.value.unsubscribe();
});
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/src/views/device/Instance/Save/index.vue b/src/views/device/Instance/Save/index.vue
index a0267b67..11aa6087 100644
--- a/src/views/device/Instance/Save/index.vue
+++ b/src/views/device/Instance/Save/index.vue
@@ -13,7 +13,7 @@
-
+
diff --git a/src/views/edge/Device/Save/index.vue b/src/views/edge/Device/Save/index.vue
index be2b47d3..d1636e08 100644
--- a/src/views/edge/Device/Save/index.vue
+++ b/src/views/edge/Device/Save/index.vue
@@ -13,7 +13,7 @@
-
+
diff --git a/src/views/edge/Resource/Issue/index.vue b/src/views/edge/Resource/Issue/index.vue
index 0cac4972..d9e73ac9 100644
--- a/src/views/edge/Resource/Issue/index.vue
+++ b/src/views/edge/Resource/Issue/index.vue
@@ -123,6 +123,7 @@ const columns = [
search: {
type: 'select',
rename: 'productId',
+ first: true,
options: () =>
new Promise((resolve) => {
queryNoPagingPost({ paging: false }).then((resp: any) => {
@@ -141,6 +142,9 @@ const columns = [
ellipsis: true,
dataIndex: 'name',
key: 'name',
+ search: {
+ type: 'string',
+ },
},
{
title: '注册时间',
diff --git a/src/views/rule-engine/Scene/Save/action/Device/Product.vue b/src/views/rule-engine/Scene/Save/action/Device/Product.vue
index 0a670218..8ca557e1 100644
--- a/src/views/rule-engine/Scene/Save/action/Device/Product.vue
+++ b/src/views/rule-engine/Scene/Save/action/Device/Product.vue
@@ -1,269 +1,292 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+ />
+
+
+
+
+
+
{{ slotProps.name }}
-
-
-
-
- 设备类型
- {{ slotProps.deviceType?.text }}
-
-
- 接入方式
- {{ slotProps?.accessName || '未接入' }}
-
-
+
+
+
+
+ 设备类型
+ {{
+ slotProps.deviceType?.text
+ }}
+
+
+ 接入方式
+ {{
+ slotProps?.accessName || '未接入'
+ }}
+
+
+
+
-
-
-
+
\ No newline at end of file
diff --git a/src/views/rule-engine/Scene/Save/action/Device/device/Tag.vue b/src/views/rule-engine/Scene/Save/action/Device/device/Tag.vue
index 5835f980..b49db279 100644
--- a/src/views/rule-engine/Scene/Save/action/Device/device/Tag.vue
+++ b/src/views/rule-engine/Scene/Save/action/Device/device/Tag.vue
@@ -173,7 +173,7 @@ const onValueChange = () => {
const newValue = _data.map((item: any) => {
return {
column: item.id,
- type: item?.type,
+ type: item?.valueType,
value: item?.value,
};
});
diff --git a/src/views/rule-engine/Scene/Save/action/Device/index.vue b/src/views/rule-engine/Scene/Save/action/Device/index.vue
index 488a1c00..be4f9e8c 100644
--- a/src/views/rule-engine/Scene/Save/action/Device/index.vue
+++ b/src/views/rule-engine/Scene/Save/action/Device/index.vue
@@ -165,16 +165,20 @@ const onSave = (_data: any) => {
_options.propertiesValue =
(typeof _options?.propertiesValue === 'object'
? JSON.stringify(_options?.propertiesValue)
- : `${_options?.propertiesValue}`) || DeviceModel?.selectorValues?.[0]?.value;
+ : `${_options?.propertiesValue}`) ||
+ DeviceModel?.selectorValues?.[0]?.value;
}
emit('save', item, _options);
};
-const onProductChange = (_val: any) => {
- DeviceModel.selectorValues = undefined;
- DeviceModel.message = {
- messageType: 'INVOKE_FUNCTION',
- };
+const onProductChange = (_val: any, bol: boolean) => {
+ if (!bol) {
+ DeviceModel.selectorValues = undefined;
+ DeviceModel.message = {
+ messageType: 'INVOKE_FUNCTION',
+ };
+ }
+ productDetail.value = _val
DeviceOptions.value.productName = _val?.name;
};
@@ -231,14 +235,7 @@ const saveClick = () => save();
watch(
() => props.value,
(newValue) => {
- Object.assign(DeviceModel, {...newValue});
- if (newValue?.productId) {
- detail(newValue.productId).then((resp) => {
- if (resp.status === 200) {
- productDetail.value = resp.result;
- }
- });
- }
+ Object.assign(DeviceModel, newValue);
},
{ immediate: true },
);