diff --git a/src/components/AMapComponent/PathSimplifier.vue b/src/components/AMapComponent/PathSimplifier.vue
index a34d05d1..7f1c8147 100644
--- a/src/components/AMapComponent/PathSimplifier.vue
+++ b/src/components/AMapComponent/PathSimplifier.vue
@@ -79,6 +79,12 @@ export default defineComponent({
this.PathNavigatorRef?.moveToPoint(0, 0);
this.PathNavigatorRef?.stop();
},
+ pause() {
+ this.PathNavigatorRef?.pause()
+ },
+ resume() {
+ this.PathNavigatorRef?.resume()
+ }
},
watch: {
pathData: {
@@ -101,6 +107,6 @@ export default defineComponent({
deep: true,
},
},
- expose: ['start', 'stop']
+ expose: ['start', 'stop', 'pause', 'resume']
});
\ No newline at end of file
diff --git a/src/views/device/Instance/Detail/Diagnose/Message/Function/EditTable.vue b/src/views/device/Instance/Detail/Diagnose/Message/Function/EditTable.vue
index 5565822f..41091141 100644
--- a/src/views/device/Instance/Detail/Diagnose/Message/Function/EditTable.vue
+++ b/src/views/device/Instance/Detail/Diagnose/Message/Function/EditTable.vue
@@ -1,46 +1,60 @@
-
-
-
-
- {{ text }}
-
-
-
-
-
-
-
+
+
+
+
+
+ {{ text }}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
+const onSave = () =>
+ new Promise((resolve, reject) => {
+ formRef.value?.validate().then((_data: any) => {
+ _emit('update:modelValue', _data)
+ resolve(_data);
+ }).catch(() => {
+ reject(false)
+ })
+ });
+
+defineExpose({ onSave });
+
+
+
\ No newline at end of file
diff --git a/src/views/device/Instance/Detail/Diagnose/Message/Function/index.vue b/src/views/device/Instance/Detail/Diagnose/Message/Function/index.vue
index 671183c5..6afc44c2 100644
--- a/src/views/device/Instance/Detail/Diagnose/Message/Function/index.vue
+++ b/src/views/device/Instance/Detail/Diagnose/Message/Function/index.vue
@@ -104,7 +104,7 @@
modelRef.type === 'INVOKE_FUNCTION' && modelRef.function && modelRef.inputs.length
"
>
-
-
+ -->
+
参数列表
+
@@ -142,6 +144,8 @@ type Emits = {
};
const emit = defineEmits();
+const inputsRef = ref(null);
+
const modelRef = reactive({
type: undefined,
properties: undefined,
@@ -165,18 +169,23 @@ const funcChange = (val: string) => {
name: item.name,
value: undefined,
valueType: item?.valueType?.type,
+ required: item?.expands?.required
};
});
modelRef.inputs = list;
}
};
-const saveBtn = () => {
+const saveBtn = async () => {
+ const _inputs = await inputsRef.value.onSave();
+ if(!_inputs){
+ return
+ }
formRef.value.validate().then(async () => {
const values = toRaw(modelRef);
let _inputs: any[] = [];
if (modelRef.inputs.length) {
- _inputs = modelRef.inputs.filter((i: any) => !i.value);
+ _inputs = modelRef.inputs.filter((i: any) => !i.value && i?.required);
if (_inputs.length) {
return;
}
diff --git a/src/views/device/Instance/Detail/Running/Property/Detail/PropertyAMap.vue b/src/views/device/Instance/Detail/Running/Property/Detail/PropertyAMap.vue
index 265df71f..50cf5938 100644
--- a/src/views/device/Instance/Detail/Running/Property/Detail/PropertyAMap.vue
+++ b/src/views/device/Instance/Detail/Running/Property/Detail/PropertyAMap.vue
@@ -4,7 +4,8 @@
开始动画
- 停止动画
+ 暂停动画
+ 继续动画
@@ -32,16 +33,24 @@ const prop = defineProps({
},
});
+const stop = ref(false);
const geoList = ref([]);
const loading = ref(false);
const amapPath = ref()
const onStart = () => {
- amapPath.value.start()
+ amapPath.value?.start()
+ stop.value = false
}
const onStop = () => {
- amapPath.value.stop()
+ amapPath.value?.pause()
+ stop.value = true
+}
+
+const onResume = () => {
+ amapPath.value?.resume()
+ stop.value = false
}
const query = async () => {
diff --git a/src/views/rule-engine/Scene/Save/action/ListItem/Item.vue b/src/views/rule-engine/Scene/Save/action/ListItem/Item.vue
index 812d31ca..8afe39da 100644
--- a/src/views/rule-engine/Scene/Save/action/ListItem/Item.vue
+++ b/src/views/rule-engine/Scene/Save/action/ListItem/Item.vue
@@ -76,7 +76,7 @@
/>
钉钉
- 向{{
+ {{(options?.sendTo || options?.orgName) ? '向' : ""}}{{
options?.sendTo || ''
}}
{{
@@ -106,7 +106,7 @@
/>
微信
- 向{{
+ {{(options?.sendTo || options?.orgName || options?.tagName) ? '向' : ''}}{{
options?.sendTo || ''
}}
{{
@@ -138,7 +138,7 @@
/>
邮件
- 向
+ {{options?.sendTo ? '向' : ''}}
{{
options?.sendTo || ''
@@ -168,7 +168,7 @@
/>
语音
- 向{{
+ {{ options?.sendTo ? '向' : ''}}{{
options?.sendTo || ''
}}
发送
@@ -194,7 +194,7 @@
/>
短信
- 向{{
+ {{options?.sendTo ? '向' : ''}}{{
options?.sendTo || ''
}}
发送
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 d7837609..5130f853 100644
--- a/src/views/rule-engine/Scene/Save/action/Notify/NotifyTemplate.vue
+++ b/src/views/rule-engine/Scene/Save/action/Notify/NotifyTemplate.vue
@@ -129,15 +129,19 @@ const handleSearch = (_params: any) => {
params.value = _params;
};
+// const
+
const handleClick = (dt: any) => {
if (_selectedRowKeys.value.includes(dt.id)) {
_selectedRowKeys.value = [];
emit('update:value', undefined);
- emit('change', { templateName: undefined });
+ emit('change', { templateName: undefined, orgName: undefined, sendTo: undefined });
emit('update:detail', undefined);
} else {
+ // console.log(dt)
_selectedRowKeys.value = [dt.id];
emit('update:value', dt.id);
+ // emit('change', { templateName: dt?.name, orgName: dt.template?.departmentIdList, sendTo: dt.template?.userIdList });
emit('change', { templateName: dt?.name });
emit('update:detail', dt);
}
diff --git a/src/views/rule-engine/Scene/Save/action/Notify/index.vue b/src/views/rule-engine/Scene/Save/action/Notify/index.vue
index 69158602..c6a09f3d 100644
--- a/src/views/rule-engine/Scene/Save/action/Notify/index.vue
+++ b/src/views/rule-engine/Scene/Save/action/Notify/index.vue
@@ -60,7 +60,7 @@
:value="formModel.variables"
:notify="formModel"
:template="template"
- :options='options'
+ :options='formModel.options'
@change="(val) => onValChange(val, 'variables')"
ref="variableRef"
/>
@@ -148,13 +148,20 @@ const onValChange = (val: any, type: string) => {
formModel.templateId = '';
formModel.variables = [];
formModel.notifierId = '';
+ formModel.options = {}
} else if (type === 'notifierId') {
formModel.templateId = '';
formModel.variables = [];
+ formModel.options = {
+ ...val
+ }
} else if (type === 'templateId') {
formModel.variables = [];
+ formModel.options = {
+ provider: formModel?.options?.provider || '',
+ ...val
+ }
}
- console.log(val)
formModel.options = {
...unref(formModel.options),
...val,