From e2e347bd142e93436f894f9298b77bea3efad772 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 7 Mar 2023 15:52:23 +0800 Subject: [PATCH] BUG 54 --- .../AppConflictMediation.vue | 35 +------ .../components/Detail.vue | 93 ++++++------------- .../AppConflictMediation/components/List.vue | 19 +--- 3 files changed, 31 insertions(+), 116 deletions(-) diff --git a/project/qujing/app/AppConflictMediation/AppConflictMediation.vue b/project/qujing/app/AppConflictMediation/AppConflictMediation.vue index 6721a42c..bc0e25b0 100644 --- a/project/qujing/app/AppConflictMediation/AppConflictMediation.vue +++ b/project/qujing/app/AppConflictMediation/AppConflictMediation.vue @@ -1,7 +1,7 @@ @@ -13,45 +13,16 @@ import Detail from './components/Detail' export default { name: 'AppConflictMediation', label: '矛盾调解', - props: { instance: Function, dict: Object }, - - data() { - return { - component: 'List', - params: {} - } + computed: { + currentPage: v => v.$route.hash == "#add" ? Detail : List }, - components: { List, Detail - }, - - mounted() { - }, - - methods: { - onChange(data) { - if (data.type === 'Detail') { - this.component = 'Detail' - this.params = data.params - } - - if (data.type === 'list') { - this.component = 'List' - this.params = data.params - - this.$nextTick(() => { - if (data.isRefresh) { - this.$refs.component.getList() - } - }) - } - } } } diff --git a/project/qujing/app/AppConflictMediation/components/Detail.vue b/project/qujing/app/AppConflictMediation/components/Detail.vue index b9b89cb2..224e8e82 100644 --- a/project/qujing/app/AppConflictMediation/components/Detail.vue +++ b/project/qujing/app/AppConflictMediation/components/Detail.vue @@ -18,7 +18,7 @@ {{ detail.girdName }} -
+
@@ -28,7 +28,7 @@