| | |
| | | <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="1" icon="el-icon-caret-top" @click="ShowHide(0)"></el-button> |
| | | <el-button v-if="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"> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | id:'', |
| | | form:{ |
| | | id:'' |
| | | btn: 1, |
| | | id: '', |
| | | form: { |
| | | id: '' |
| | | }, |
| | | name1: "", |
| | | activeName: 'first' |
| | | } |
| | | }, |
| | | created() { |
| | | this.id = this.$store.state.user.id |
| | | this.id = this.$store.state.user.id |
| | | if (this.$route.query) { |
| | | this.$nextTick(() => { |
| | | this.name1 = this.$route.query.name |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | ShowHide(type) { |
| | | this.btn = type; |
| | | window.android.toShowHide() |
| | | } |
| | | goHome() { |
| | | this.$router.push({ |
| | | path: '/pad', |
| | | }) |
| | | }, |
| | | submit() { |
| | | submitcase({id:this.id}).then(res => { |
| | | submitcase({id: this.id}).then(res => { |
| | | this.goHome() |
| | | }) |
| | | }, |