From 2269640d26a7a9b21a3828c75fb5aaa56ccfd6f8 Mon Sep 17 00:00:00 2001 From: yang <1441163367@qq.com> Date: 星期三, 02 十一月 2022 09:26:40 +0800 Subject: [PATCH] 修改问题 --- src/views/padSunmaryProcedure/padWord.vue | 99 ++++++++++++++++++++++++++----------------------- 1 files changed, 52 insertions(+), 47 deletions(-) diff --git a/src/views/padSunmaryProcedure/padWord.vue b/src/views/padSunmaryProcedure/padWord.vue index 2c2d15d..885b1e3 100644 --- a/src/views/padSunmaryProcedure/padWord.vue +++ b/src/views/padSunmaryProcedure/padWord.vue @@ -1,92 +1,97 @@ <template> - <div style="width: 100vw;height: 100%;overflow: auto;font-size: 20px"> - <div id="navs"> + <basic-container> + <!--澶撮儴瀵艰埅--> + <div id="nav"> <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> + <p>{{ name }}</p> + <div> + <el-button v-show="btn ==1" icon="el-icon-caret-top" @click="ShowHide(0)"></el-button> + <el-button v-show="btn ==0" icon="el-icon-caret-bottom" @click="ShowHide(0)"></el-button> + <el-button icon="el-icon-upload" @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-tabs type="border-card" v-model="activeName" :stretch="true" + @tab-click="handleClick"> <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'">璐d护闄愭湡鏀规閫氱煡涔�</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> + </basic-container> </template> <script> -import {submitcase} from '../../api/News/pad' -import BiLu from './word_mange/mangeBL' +import {submitcase} from "../../api/News/pad"; +import BiLu from "./word_mange/mangeBL" import GaiZheng from './word_mange/mangeGZ' import JueDingShu from './word_mange/mangeJD' export default { - name: "padWord", - components:{ + name: "padWord1", + components: { BiLu, GaiZheng, - JueDingShu, + JueDingShu + }, + created() { + this.id = this.$store.state.user.id + if (this.$route.query) { + this.$nextTick(() => { + this.name = this.$route.query.name + // this.id = this.$route.params.id + }) + } }, data() { return { - id:'', - name1:"", - activeName: 'second' - } - }, - created() { - if (this.$route.query) { - this.id = this.$route.query.id - this.name1 = this.$route.query.name + name: "妗堜欢鍚嶇О",//灞曠ず鐨勬浠跺悕绉� + btn: 1,//灞曞紑鍜屾敹璧� + tabPosition: 'left',//榛樿宸︿晶閫夐」鍗� + activeName: "first"//閫夐」鍗¢粯璁ゆ墦寮�绗竴涓� } }, methods: { - goHome(){ + //杩斿洖妗堜欢鍒楄〃 + goHome() { this.$router.push({ path: '/pad', }) }, - submit(){ - /*submitcase().then(res =>{ - this.goHome() - })*/ - this.goHome() + //鏀剁缉椤堕儴 + ShowHide(type) { + this.btn = type; + window.android.toShowHide() }, - /*goToBL() { - this.$router.push({ - path: '/padWord', - query: { - id: row.id, - } + //鎻愪氦锛堝幓瀹℃牳锛� + submit() { + submitcase({id: this.id}).then(res => { + this.goHome() }) - },*/ + }, + //鐐瑰嚮閫夐」鍗℃晥鏋� handleClick(tab, event) { - console.log(tab, event); + this.activeName = tab.name } } } </script> -<style lang="scss" scoped> -.el-tabs__content{ +<style lang="scss"> +.el-tabs__content { height: calc(100vh - 110px); overflow-y: auto; } -#navs{ +</style> +<style scoped> +#nav { display: flex; justify-content: space-between; align-items: center; -} -#box { - width: 80%; - display: flex; - justify-content: space-between; - align-items: center; - margin: 0 auto; } </style> -- Gitblit v1.9.1