diff --git a/src/components/manual-distribution/form.vue b/src/components/manual-distribution/form.vue index adfdae646e43aabed5c8d728a5e51590700abd93..04d7d9885dd32461d4d8a9d1c72c29dee8dbbe31 100644 --- a/src/components/manual-distribution/form.vue +++ b/src/components/manual-distribution/form.vue @@ -97,7 +97,7 @@ const props = defineProps({ }, history: { type: Object, - default: () => ({}), + default: null, }, labelWidth: { type: String, @@ -212,10 +212,12 @@ const Remove = (index) => { watch( () => props.history, (n) => { - let history = { ...n }; getUserLists(); - state.form.method = history?.method || []; - state.form.lists = history?.lists || []; + if (n) { + let history = { ...n }; + state.form.method = history?.method || []; + state.form.lists = history?.lists || []; + } // 如果没有默认下发用户则创建一条空数据 if (state.form.lists.length == 0) { Add(0); diff --git a/src/components/warn-detail/env.js b/src/components/warn-detail/env.js index c8c7e0e86d7f2ce5736da9f07e48d94ce9d23e4e..57d1c15305014d03b6f6c95e8d54de1ed4d481df 100644 --- a/src/components/warn-detail/env.js +++ b/src/components/warn-detail/env.js @@ -3,6 +3,6 @@ export const STATUS_OBJ = { error: '未恢复' } export const PUSH_STATUS = { - success: '成功', - error: '失败' + 1: '成功', + 2: '失败' } \ No newline at end of file diff --git a/src/components/warn-detail/tab.vue b/src/components/warn-detail/tab.vue index 1615ab4211a7f6d24a1b214e0792278349a4e7e5..417ba4e6449b3cb1963dcf3663399d5ebd220e9e 100644 --- a/src/components/warn-detail/tab.vue +++ b/src/components/warn-detail/tab.vue @@ -8,8 +8,8 @@ height="100%" :isIndex="true" :stripe="true"> -