Commit bf330c42b3dfb5dfc098d7650fb21ee2f60cfe17
Merge branch 'ft' into 'main'
fix:[DEFECT-329] 修复设备配置批量删除不提示问题 See merge request huang/yun-teng-iot-front!193
Showing
8 changed files
with
36 additions
and
22 deletions
... | ... | @@ -81,7 +81,7 @@ |
81 | 81 | </div> |
82 | 82 | </template> |
83 | 83 | <script lang="ts"> |
84 | - import { defineComponent, ref, reactive } from 'vue'; | |
84 | + import { defineComponent, ref, reactive, nextTick } from 'vue'; | |
85 | 85 | import { BasicForm, useForm } from '/@/components/Form'; |
86 | 86 | import { modeApiForm, modeApiInseretKeyAndValueForm } from '../config'; |
87 | 87 | import { InboxOutlined } from '@ant-design/icons-vue'; |
... | ... | @@ -150,8 +150,10 @@ |
150 | 150 | }); |
151 | 151 | }; |
152 | 152 | const customClearStepTwoValueFunc = async () => { |
153 | - defineClearFunc(); | |
154 | - defineClearKeyAndValueFunc(); | |
153 | + nextTick(() => { | |
154 | + defineClearFunc(); | |
155 | + defineClearKeyAndValueFunc(); | |
156 | + }); | |
155 | 157 | }; |
156 | 158 | async function customResetFunc() { |
157 | 159 | emit('prev'); | ... | ... |
... | ... | @@ -26,7 +26,7 @@ |
26 | 26 | </div> |
27 | 27 | </template> |
28 | 28 | <script lang="ts"> |
29 | - import { defineComponent, ref, reactive } from 'vue'; | |
29 | + import { defineComponent, ref, reactive, nextTick } from 'vue'; | |
30 | 30 | import { BasicForm, useForm } from '/@/components/Form'; |
31 | 31 | import { modeKafkaForm, modeKafkaInseretKeyAndValueForm } from '../config'; |
32 | 32 | import { Alert, Divider, Descriptions } from 'ant-design-vue'; |
... | ... | @@ -102,8 +102,10 @@ |
102 | 102 | }; |
103 | 103 | |
104 | 104 | const customClearStepTwoValueFunc = async () => { |
105 | - defineClearFunc(); | |
106 | - defineClearKeyAndValueFunc(); | |
105 | + nextTick(() => { | |
106 | + defineClearFunc(); | |
107 | + defineClearKeyAndValueFunc(); | |
108 | + }); | |
107 | 109 | }; |
108 | 110 | async function customResetFunc() { |
109 | 111 | emit('prev'); | ... | ... |
... | ... | @@ -62,7 +62,7 @@ |
62 | 62 | </div> |
63 | 63 | </template> |
64 | 64 | <script lang="ts"> |
65 | - import { defineComponent, ref, reactive } from 'vue'; | |
65 | + import { defineComponent, ref, reactive, nextTick } from 'vue'; | |
66 | 66 | import { BasicForm, useForm } from '/@/components/Form'; |
67 | 67 | import { CredentialsEnum, modeMqttForm } from '../config'; |
68 | 68 | import { InboxOutlined } from '@ant-design/icons-vue'; |
... | ... | @@ -115,7 +115,9 @@ |
115 | 115 | }); |
116 | 116 | }; |
117 | 117 | const customClearStepTwoValueFunc = async () => { |
118 | - defineClearFunc(); | |
118 | + nextTick(() => { | |
119 | + defineClearFunc(); | |
120 | + }); | |
119 | 121 | }; |
120 | 122 | async function customResetFunc() { |
121 | 123 | emit('prev'); | ... | ... |
... | ... | @@ -24,7 +24,7 @@ |
24 | 24 | </div> |
25 | 25 | </template> |
26 | 26 | <script lang="ts"> |
27 | - import { defineComponent, ref, reactive } from 'vue'; | |
27 | + import { defineComponent, ref, reactive, nextTick } from 'vue'; | |
28 | 28 | import { BasicForm, useForm } from '/@/components/Form'; |
29 | 29 | import { modeRabbitMqForm, modeKafkaInseretKeyAndValueForm } from '../config'; |
30 | 30 | |
... | ... | @@ -84,7 +84,9 @@ |
84 | 84 | }); |
85 | 85 | }; |
86 | 86 | const customClearStepTwoValueFunc = async () => { |
87 | - defineClearFunc(); | |
87 | + nextTick(() => { | |
88 | + defineClearFunc(); | |
89 | + }); | |
88 | 90 | }; |
89 | 91 | async function customResetFunc() { |
90 | 92 | emit('prev'); | ... | ... |
... | ... | @@ -4,7 +4,7 @@ |
4 | 4 | </div> |
5 | 5 | </template> |
6 | 6 | <script lang="ts"> |
7 | - import { defineComponent, ref } from 'vue'; | |
7 | + import { defineComponent, ref, nextTick } from 'vue'; | |
8 | 8 | import { BasicForm, useForm } from '/@/components/Form'; |
9 | 9 | import { modeForm } from './config'; |
10 | 10 | import { Select, Input, Divider } from 'ant-design-vue'; |
... | ... | @@ -46,7 +46,9 @@ |
46 | 46 | |
47 | 47 | //清空数据 |
48 | 48 | const customResetStepOneFunc = () => { |
49 | - resetFields(); | |
49 | + nextTick(() => { | |
50 | + resetFields(); | |
51 | + }); | |
50 | 52 | }; |
51 | 53 | const getSonValueFunc = async () => { |
52 | 54 | sonValues.value = await validateFields(); | ... | ... |
... | ... | @@ -17,7 +17,7 @@ |
17 | 17 | </div> |
18 | 18 | </template> |
19 | 19 | <script lang="ts"> |
20 | - import { defineComponent, watch, ref, getCurrentInstance } from 'vue'; | |
20 | + import { defineComponent, watch, ref, getCurrentInstance, nextTick } from 'vue'; | |
21 | 21 | import TransferConfigKafka from '../cpns/cpns/transferConfigKafka.vue'; |
22 | 22 | import TransferConfigMqtt from '../cpns/cpns/transferConfigMqtt.vue'; |
23 | 23 | import TransferConfigRabbitMq from '../cpns/cpns/transferConfigRabbitMq.vue'; |
... | ... | @@ -57,14 +57,16 @@ |
57 | 57 | } |
58 | 58 | ); |
59 | 59 | const clearSonValueDataFunc = () => { |
60 | - try { | |
61 | - proxy.$refs.refTransferConfigKafka?.customClearStepTwoValueFunc(); | |
62 | - proxy.$refs.refTransferConfigMqtt?.customClearStepTwoValueFunc(); | |
63 | - proxy.$refs.refTransferConfigRabbitMq?.customClearStepTwoValueFunc(); | |
64 | - proxy.$refs.refTransferConfigApi?.customClearStepTwoValueFunc(); | |
65 | - } catch (e) { | |
66 | - return e; | |
67 | - } | |
60 | + nextTick(() => { | |
61 | + try { | |
62 | + proxy.$refs.refTransferConfigKafka?.customClearStepTwoValueFunc(); | |
63 | + proxy.$refs.refTransferConfigMqtt?.customClearStepTwoValueFunc(); | |
64 | + proxy.$refs.refTransferConfigRabbitMq?.customClearStepTwoValueFunc(); | |
65 | + proxy.$refs.refTransferConfigApi?.customClearStepTwoValueFunc(); | |
66 | + } catch (e) { | |
67 | + return e; | |
68 | + } | |
69 | + }); | |
68 | 70 | }; |
69 | 71 | const clearSonValueValidateFunc = () => { |
70 | 72 | try { | ... | ... |