From 6f3cbab6a74ea6dbf419eca60d45715a0090263e Mon Sep 17 00:00:00 2001 From: yang <1441163367@qq.com> Date: 星期五, 28 十月 2022 14:56:05 +0800 Subject: [PATCH] 修改问题 --- src/views/padSunmaryProcedure/padWord.vue | 32 +++++++++++++++++++++++--------- 1 files changed, 23 insertions(+), 9 deletions(-) diff --git a/src/views/padSunmaryProcedure/padWord.vue b/src/views/padSunmaryProcedure/padWord.vue index 70714fc..3d32cce 100644 --- a/src/views/padSunmaryProcedure/padWord.vue +++ b/src/views/padSunmaryProcedure/padWord.vue @@ -3,18 +3,22 @@ <div id="navs"> <el-button icon="el-icon-arrow-left" @click="goHome">杩斿洖</el-button> <div>{{ name1 }}</div> - <el-button icon="el-icon-upload el-icon--right" @click="submit">鎻愪氦</el-button> + <div> + <el-button v-if="btn ==1" icon="el-icon-caret-top" @click="ShowHide(0)"></el-button> + <el-button v-if="btn ==0" icon="el-icon-caret-bottom" @click="ShowHide(1)"></el-button> + <el-button icon="el-icon-upload el-icon--right" @click="submit">鎻愪氦</el-button> + </div> </div> <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 :id="id"></BiLu> + <BiLu v-if="activeName == 'first'"></BiLu> </el-tab-pane> <el-tab-pane label="璐d护闄愭湡鏀规閫氱煡涔�" name="second"> - <GaiZheng :id="id"></GaiZheng> + <GaiZheng v-if="activeName == 'second'"></GaiZheng> </el-tab-pane> <el-tab-pane label="澶勭綒鍐冲畾涔�" name="third"> - <JueDingShu :id="id"></JueDingShu> + <JueDingShu v-if="activeName == 'third'"></JueDingShu> </el-tab-pane> </el-tabs> </div> @@ -35,27 +39,36 @@ }, data() { return { + btn: 1, id: '', + form: { + id: '' + }, name1: "", - activeName: 'second' + activeName: 'first' } }, created() { + this.id = this.$store.state.user.id if (this.$route.query) { - // this.$nextTick(() => { - this.id = this.$route.query.id + this.$nextTick(() => { this.name1 = this.$route.query.name - // }) + }) } }, methods: { + goHome() { this.$router.push({ path: '/pad', }) }, + ShowHide(type) { + this.btn = type; + window.android.toShowHide() + }, submit() { - submitcase(this.id).then(res => { + submitcase({id: this.id}).then(res => { this.goHome() }) }, @@ -69,6 +82,7 @@ },*/ handleClick(tab, event) { console.log(tab, event); + this.activeName = tab.name } } } -- Gitblit v1.9.1