diff --git a/src/api/notice/config.ts b/src/api/notice/config.ts index d3e4854a..31432454 100644 --- a/src/api/notice/config.ts +++ b/src/api/notice/config.ts @@ -42,7 +42,7 @@ export default { // 不分页-列表 queryListNoPaging: (data: any) => post(`/notifier/config/_query/no-paging?paging=false`, data), // - queryDingTalkUsers: (id: string) => get(`/notifier/dingtalk/corp/${id}/users?sorts[0].name='name'&sorts[0].order=asc`), + queryDingTalkUsers: (id: string) => get(`/notifier/dingtalk/corp/${id}/users?sorts[0].name="name"&sorts[0].order=asc`), // - queryWechatUsers: (id: string) => get(`/notifier/wechat/corp/${id}/users?sorts[0].name='name'&sorts[0].order=asc`), + queryWechatUsers: (id: string) => get(`/notifier/wechat/corp/${id}/users?sorts[0].name="name"&sorts[0].order=asc`), } \ No newline at end of file diff --git a/src/views/Northbound/AliCloud/index.vue b/src/views/Northbound/AliCloud/index.vue index b97b262a..ec33051d 100644 --- a/src/views/Northbound/AliCloud/index.vue +++ b/src/views/Northbound/AliCloud/index.vue @@ -149,8 +149,8 @@ const columns = [ }, { title: '说明', - dataIndex: 'describe', - key: 'describe', + dataIndex: 'description', + key: 'description', search: { type: 'string', }, diff --git a/src/views/Northbound/DuerOS/index.vue b/src/views/Northbound/DuerOS/index.vue index ffebf7f8..7d4b4f02 100644 --- a/src/views/Northbound/DuerOS/index.vue +++ b/src/views/Northbound/DuerOS/index.vue @@ -191,8 +191,8 @@ const columns = [ }, { title: '说明', - dataIndex: 'describe', - key: 'describe', + dataIndex: 'description', + key: 'description', }, { title: '状态', diff --git a/src/views/edge/Device/index.vue b/src/views/edge/Device/index.vue index b14641ab..11c53a0a 100644 --- a/src/views/edge/Device/index.vue +++ b/src/views/edge/Device/index.vue @@ -144,7 +144,7 @@ diff --git a/src/views/rule-engine/Scene/Save/action/Delay/index.vue b/src/views/rule-engine/Scene/Save/action/Delay/index.vue index 8bc0657a..5845c728 100644 --- a/src/views/rule-engine/Scene/Save/action/Delay/index.vue +++ b/src/views/rule-engine/Scene/Save/action/Delay/index.vue @@ -7,7 +7,7 @@ @ok="onOk" :maskClosable="false" > - - + 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 9f88a95d..f51b9990 100644 --- a/src/views/rule-engine/Scene/Save/action/Device/Product.vue +++ b/src/views/rule-engine/Scene/Save/action/Device/Product.vue @@ -1,12 +1,12 @@ diff --git a/src/views/rule-engine/Scene/Save/action/Device/actions/EditTable.vue b/src/views/rule-engine/Scene/Save/action/Device/actions/EditTable.vue index e0774a9b..1481ff82 100644 --- a/src/views/rule-engine/Scene/Save/action/Device/actions/EditTable.vue +++ b/src/views/rule-engine/Scene/Save/action/Device/actions/EditTable.vue @@ -15,13 +15,16 @@ diff --git a/src/views/rule-engine/Scene/Save/action/Device/actions/WriteProperty.vue b/src/views/rule-engine/Scene/Save/action/Device/actions/WriteProperty.vue index b1ed87ed..d4ac0fba 100644 --- a/src/views/rule-engine/Scene/Save/action/Device/actions/WriteProperty.vue +++ b/src/views/rule-engine/Scene/Save/action/Device/actions/WriteProperty.vue @@ -1,6 +1,6 @@ diff --git a/src/views/rule-engine/Scene/Save/action/Device/actions/index.vue b/src/views/rule-engine/Scene/Save/action/Device/actions/index.vue index 5697da00..c4f27a45 100644 --- a/src/views/rule-engine/Scene/Save/action/Device/actions/index.vue +++ b/src/views/rule-engine/Scene/Save/action/Device/actions/index.vue @@ -1,6 +1,6 @@ - + @@ -211,6 +211,7 @@ watch( watch( () => props.values?.message, (newVal) => { + console.log(newVal) if (newVal?.messageType) { modelRef.message = newVal; if (newVal.messageType === 'INVOKE_FUNCTION' && newVal.functionId) { diff --git a/src/views/rule-engine/Scene/Save/action/Device/device/Device.vue b/src/views/rule-engine/Scene/Save/action/Device/device/Device.vue index 0dd67d5a..00eb1e33 100644 --- a/src/views/rule-engine/Scene/Save/action/Device/device/Device.vue +++ b/src/views/rule-engine/Scene/Save/action/Device/device/Device.vue @@ -1,12 +1,12 @@ - 点击配置执行动作 + 点击配置执行动作
{{ name + 1 }}
- +
-
+ diff --git a/src/views/rule-engine/Scene/Save/action/Notify/NotifyConfig.vue b/src/views/rule-engine/Scene/Save/action/Notify/NotifyConfig.vue index c1bfb504..400070dc 100644 --- a/src/views/rule-engine/Scene/Save/action/Notify/NotifyConfig.vue +++ b/src/views/rule-engine/Scene/Save/action/Notify/NotifyConfig.vue @@ -1,5 +1,5 @@ @@ -100,7 +85,7 @@ const props = defineProps({ }, }); -const emit = defineEmits(['update:value']); +const emit = defineEmits(['update:value', 'change']); const getLogo = (type: string, provider: string) => { return MSG_TYPE[type].find((f: any) => f.value === provider)?.logo; @@ -140,17 +125,39 @@ const columns = [ }, ]; +const query = (e: Record) => + ConfigApi.list({ + ...e, + terms: [ + ...e?.terms, + { + terms: [ + { + termType: 'eq', + column: 'type', + value: props.notifyType, + }, + ], + }, + ], + sorts: [ + { name: 'id', value: props.value }, + { name: 'createTime', order: 'desc' }, + ], + }); + const handleSearch = (_params: any) => { params.value = _params; }; -const cancelSelect = () => { - _selectedRowKeys.value = []; +const onSelectChange = (keys: string[]) => { + _selectedRowKeys.value = [...keys]; }; const handleClick = (dt: any) => { _selectedRowKeys.value = [dt.id]; emit('update:value', dt.id); + emit('change', { provider: dt?.provider }); }; watch( @@ -176,7 +183,7 @@ watch( padding-left: 0px; } -.logo{ +.logo { width: 88px; height: 88px; } diff --git a/src/views/rule-engine/Scene/Save/action/Notify/NotifyTemplate.vue b/src/views/rule-engine/Scene/Save/action/Notify/NotifyTemplate.vue index be71b31c..3905faf3 100644 --- a/src/views/rule-engine/Scene/Save/action/Notify/NotifyTemplate.vue +++ b/src/views/rule-engine/Scene/Save/action/Notify/NotifyTemplate.vue @@ -1,5 +1,5 @@ @@ -85,7 +85,7 @@ const props = defineProps({ }, }); -const emit = defineEmits(['update:value']); +const emit = defineEmits(['update:value', 'change']); const getLogo = (type: string, provider: string) => { return MSG_TYPE[type].find((f: any) => f.value === provider)?.logo; @@ -129,13 +129,14 @@ const handleSearch = (_params: any) => { params.value = _params; }; -const cancelSelect = () => { - _selectedRowKeys.value = []; -}; - const handleClick = (dt: any) => { _selectedRowKeys.value = [dt.id]; emit('update:value', dt.id); + emit('change', { templateName: dt?.name }); +}; + +const onSelectChange = (keys: string[]) => { + _selectedRowKeys.value = [...keys]; }; const handleData = async (e: any) => { @@ -178,8 +179,7 @@ watch(