1
PC-20250623MANY\Administrator
2025-08-21 25c1d10f03df05104e323494fefd5af1e94c98f7
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<template>
  <div class="io">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="All" name="all"></el-tab-pane>
      <el-tab-pane :label="$t('申购中')" name="1"></el-tab-pane>
      <el-tab-pane :label="$t('hj132')" name="2"></el-tab-pane>
      <el-tab-pane :label="$t('hj133')" name="3"></el-tab-pane>
      <el-tab-pane :label="$t('hj134')" name="4"></el-tab-pane>
      <el-tab-pane :label="$t('hj135')" name="5"></el-tab-pane>
      <el-tab-pane :label="$t('已上市')" name="6"></el-tab-pane>
    </el-tabs>
 
    <el-table
      height="250"
      :data="tableData"
      style="width: 100%"
      empty-text="No Data"
    >
      <el-table-column prop="newName" :label="$t('hj313')">
        <template slot-scope="scope">
          <el-tag
            :type="scope.row.stockType != $mc ? 'success' : ''"
            size="small"
            style="margin-right: 8px"
          >
            {{ scope.row.stockType }}
          </el-tag>
          <span>{{ scope.row.newName }}</span>
        </template>
      </el-table-column>
 
      <el-table-column prop="applyNums" :label="$t('hj270')"> </el-table-column>
 
      <el-table-column prop="applyNumber" :label="$t('sl')"> </el-table-column>
 
      <el-table-column prop="subscriptionTime" :label="$t('发行时间')">
        <template slot-scope="scope">
          <span>
            {{ scope.row.subscriptionTime | gettime }}
          </span>
        </template>
      </el-table-column>
 
      <el-table-column prop="listDate" :label="$t('上市时间')">
        <template slot-scope="scope">
          <span>
            {{ scope.row.listDate | gettime }}
          </span>
        </template>
      </el-table-column>
 
      <el-table-column prop="bond" :label="$t('总金额')">
        <template slot-scope="scope">
          <span class="sc_c" style="font-size: 18px">
            {{ scope.row.stockType | currencySymbol }} {{ scope.row.bond }}
          </span>
        </template>
      </el-table-column>
 
      <el-table-column prop="status" :label="$t('状态')">
        <template slot-scope="scope">
          <span>
            {{ dictionary.ipolx[scope.row.status] }}
          </span>
        </template>
      </el-table-column>
 
      <el-table-column prop="addTime" :label="$t('提交时间')">
      </el-table-column>
    </el-table>
 
    <div class="pagination">
      <el-pagination
        background
        layout="prev, pager, next"
        :total="total"
        :current-page="pageNum"
        :page-size="pageSize"
        @current-change="handleCurrentChange"
      >
      </el-pagination>
    </div>
  </div>
</template>
 
<script>
import mixins from "@/mixins/myMixins"; // 混入
import * as api from "@/axios/api";
import { mapState } from "vuex";
export default {
  mixins: [mixins],
  data() {
    return {
      activeName: "all",
      // 列表参数,必须是opt和myMixins混入配合使用
      opt: {
        status: "",
      },
    };
  },
  computed: {
    ...mapState(["userInfo"]),
  },
  watch: {},
  created() {
    this.apiInterface = api.getOneSubscribeByUserIdPage; // 赋值接口
    this.init(); // 获取记录列表
  },
  methods: {
    handleClick() {
      if (this.activeName === "all") this.opt.status = "";
      else this.opt.status = this.activeName;
    },
  },
};
</script>
 
<style lang="scss" scoped>
.io {
  width: 100%;
 
  .pagination {
    margin-top: 20px;
    text-align: center;
  }
}
</style>