From ce3c9d345a27d3a86e6c096d927f3ee619b6e68f Mon Sep 17 00:00:00 2001 From: zhangxiaoxu123 <819527061@qq.com> Date: 星期三, 26 十月 2022 13:46:50 +0800 Subject: [PATCH] 细节 --- src/views/padSunmaryProcedure/padWord.vue | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/views/padSunmaryProcedure/padWord.vue b/src/views/padSunmaryProcedure/padWord.vue index 39ad152..b8d3d2c 100644 --- a/src/views/padSunmaryProcedure/padWord.vue +++ b/src/views/padSunmaryProcedure/padWord.vue @@ -8,13 +8,13 @@ <el-tabs type="border-card" style="margin-top: 10px!important;" v-model="activeName" @tab-click="handleClick" :stretch="true"> <el-tab-pane label="璋冩煡璇㈤棶绗斿綍" name="first"> - <BiLu v-if="id" :id="id"></BiLu> + <BiLu v-if="activeName == 'first'"></BiLu> </el-tab-pane> <el-tab-pane label="璐d护闄愭湡鏀规閫氱煡涔�" name="second"> - <GaiZheng v-if="id" :id="id"></GaiZheng> + <GaiZheng v-if="activeName == 'second'"></GaiZheng> </el-tab-pane> <el-tab-pane label="澶勭綒鍐冲畾涔�" name="third"> - <JueDingShu v-if="id" :id="id"></JueDingShu> + <JueDingShu v-if="activeName == 'third'"></JueDingShu> </el-tab-pane> </el-tabs> </div> @@ -35,7 +35,6 @@ }, data() { return { - id: '', form:{ id:'' }, @@ -46,8 +45,6 @@ created() { if (this.$route.query) { this.$nextTick(() => { - this.id = this.$route.query.id - console.log(this.id,'id==========') this.name1 = this.$route.query.name }) } @@ -73,6 +70,7 @@ },*/ handleClick(tab, event) { console.log(tab, event); + this.activeName = tab.name } } } -- Gitblit v1.9.1