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
| <template>
| <div class="mod-config">
| <basic-container>
| <el-tabs type="border-card" v-model="activeName" @tab-click="handleClick">
| <el-tab-pane label="待检零件" name="PartList">
| <PartList />
| </el-tab-pane>
| <el-tab-pane label="检测汇报" name="qualifiedReport">
| <ReportList />
| </el-tab-pane>
| </el-tabs>
| </basic-container>
| </div>
| </template>
|
| <script>
| import { mapGetters } from 'vuex'
| import PartList from './PartList.vue'
| import ReportList from './ReportList.vue'
|
| export default {
| data() {
| return {
| activeName: 'PartList'
| }
| },
| provide() {
| return {
| applyTypeList: this.applyTypeList
| }
| },
| components: {
| PartList,
| ReportList
| },
| computed: {
| ...mapGetters(['permissions'])
| },
| created() {
| this.activeName =
| sessionStorage.getItem('ztt-newReport-activeName') || 'PartList'
| },
|
| activated() {},
| methods: {
| handleClick() {
| sessionStorage.setItem('ztt-newReport-activeName', this.activeName)
| }
| }
| }
| </script>
| <style lang="scss" scoped>
| /deep/ .el-card__body {
| padding-bottom: 0;
| }
| /deep/ .el-tabs__content {
| padding: 20px 0 0;
| }
| </style>
|
|