1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
| <template>
| <div style="width: 100%;height: 100%;overflow: auto;">
| <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-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="activeName == 'first'"></BiLu>
| </el-tab-pane>
| <el-tab-pane label="责令限期改正通知书" name="second">
| <GaiZheng v-if="activeName == 'second'"></GaiZheng>
| </el-tab-pane>
| <el-tab-pane label="处罚决定书" name="third">
| <JueDingShu v-if="activeName == 'third'"></JueDingShu>
| </el-tab-pane>
| </el-tabs>
| </div>
| </template>
|
| <script>
| 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: {
| BiLu,
| GaiZheng,
| JueDingShu,
| },
| data() {
| return {
| form:{
| id:''
| },
| name1: "",
| activeName: 'first'
| }
| },
| created() {
| if (this.$route.query) {
| this.$nextTick(() => {
| this.name1 = this.$route.query.name
| })
| }
| },
| methods: {
| goHome() {
| this.$router.push({
| path: '/pad',
| })
| },
| submit() {
| submitcase(this.id).then(res => {
| this.goHome()
| })
| },
| /*goToBL() {
| this.$router.push({
| path: '/padWord',
| query: {
| id: row.id,
| }
| })
| },*/
| handleClick(tab, event) {
| console.log(tab, event);
| this.activeName = tab.name
| }
| }
| }
| </script>
|
| <style lang="scss">
| .el-tabs__content {
| height: calc(100vh - 110px);
| overflow-y: auto;
| }
|
| #navs {
| display: flex;
| flex-direction: row;
| justify-content: space-between;
| align-items: center;
| }
|
| #box {
| width: 80%;
| display: flex;
| justify-content: space-between;
| align-items: center;
| margin: 0 auto;
| }
| </style>
|
|