| | |
| | | <el-table |
| | | :data="tableData" |
| | | style="width: 100%; flex: 1" |
| | | height="250" |
| | | empty-text="No Data" |
| | | > |
| | | <el-table-column prop="stockSpell" :label="$t('hj313')"> |
| | |
| | | {{ scope.row.now_price }} |
| | | </span> |
| | | <div v-if="scope.row.stockGid != $mc"> |
| | | ≈ $ {{ (scope.row.now_price * rate(scope.row.stockGid)).toFixed(2) }} |
| | | ≈ $ |
| | | {{ (scope.row.now_price * rate(scope.row.stockGid)).toFixed(2) }} |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | opt: {}, // 列表参数,必须是opt和myMixins混入配合使用 |
| | | opt: { |
| | | state: 0, |
| | | }, // 列表参数,必须是opt和myMixins混入配合使用 |
| | | }; |
| | | }, |
| | | mixins: [mixins], |
| | |
| | | }, |
| | | watch: {}, |
| | | async created() { |
| | | await this.getExchangeRate(); // 获取汇率 |
| | | // await this.getExchangeRate(); // 获取汇率 |
| | | this.opt.stockType = this.type; |
| | | this.apiInterface = api.getchicang; // 赋值接口 |
| | | this.init(); // 获取记录列表 |