From f98f61927b1091d2e93dd4d1c4982af540359858 Mon Sep 17 00:00:00 2001 From: zhangyao Date: Fri, 7 Jul 2023 10:53:31 +0800 Subject: [PATCH] feat: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 接口对接 --- src/components/manual-distribution/form.vue | 10 +- src/components/warn-detail/env.js | 4 +- src/components/warn-detail/tab.vue | 13 +- .../main/forewarning/list/detail/index.vue | 42 +++-- src/page/main/forewarning/list/index.vue | 172 ++++++++---------- .../business-ticket-manage/add/index.vue | 4 +- .../business-ticket-manage/edit/index.vue | 4 +- .../modules/interface.js | 1 + 8 files changed, 118 insertions(+), 132 deletions(-) diff --git a/src/components/manual-distribution/form.vue b/src/components/manual-distribution/form.vue index adfdae6..04d7d98 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 c8c7e0e..57d1c15 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 1615ab4..417ba4e 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"> -