From fe044e84d18dee6ebf1244e622b2ad0c918872cb Mon Sep 17 00:00:00 2001 From: chenzeping <ChenZeping02609@163.com> Date: 星期五, 16 四月 2021 23:57:55 +0800 Subject: [PATCH] 固废弹框数据传递 --- src/components/BaseNav/WasteSolid/WasteSolidIndex.vue | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/components/BaseNav/WasteSolid/WasteSolidIndex.vue b/src/components/BaseNav/WasteSolid/WasteSolidIndex.vue index 4cd11d4..89c6c51 100644 --- a/src/components/BaseNav/WasteSolid/WasteSolidIndex.vue +++ b/src/components/BaseNav/WasteSolid/WasteSolidIndex.vue @@ -1,11 +1,10 @@ <template> <public-sector> <template v-slot:tabs> - <!-- <public-tabs></public-tabs>--> - <div>{{ storagePlaceId }}</div> + <public-tabs ref='refsTabsData'></public-tabs> </template> <template v-slot:table> - <public-table ref="table"></public-table> + <public-table ref="refsTableData"></public-table> </template> <template v-slot:video> <public-video></public-video> @@ -15,7 +14,7 @@ <script> -// import PublicTabs from '@components/BaseNav/WasteSolid/PublicTabs' +import PublicTabs from '@components/BaseNav/WasteSolid/PublicTabs' import PublicTable from '@components/BaseNav/WasteSolid/PublicTable' import PublicVideo from '@components/BaseNav/PublicVideo' import PublicSector from '@components/BaseNav/PublicSector' @@ -24,14 +23,15 @@ name: 'WasteSolidIndex', props: ['storagePlaceId'], components: { - // WasteSolid, PublicSector, - // PublicTabs, + PublicTabs, PublicTable, PublicVideo }, mounted () { - console.log(this.title) + this.$nextTick(() => { + this.refsData() + }) }, data () { return { @@ -46,6 +46,11 @@ } }, methods: { + refsData () { + const data = this.storagePlaceId + this.$refs.refsTabsData.refsDataTabs(data) + this.$refs.refsTableData.refsDataTable(data) + }, // 鍥哄簾鐩稿叧淇℃伅璁剧疆 setData (title, dataBasic, dataDetailed, value) { this.flag = true -- Gitblit v1.8.0