| | |
| | | </div> |
| | | <div class="bottom_price_title"> |
| | | <div class="start_price"> |
| | | <span>P/L(INR)</span> |
| | | <span>P/L(JPY)</span> |
| | | </div> |
| | | <div class="new_price"> |
| | | <span>{{ $t("shou") }}</span> |
| | |
| | | </div> |
| | | <div class="bottom_price_title"> |
| | | <div class="start_price"> |
| | | <span>P/L(INR)</span> |
| | | <span>P/L(JPY)</span> |
| | | </div> |
| | | <div class="new_price"> |
| | | <span>{{ $t("shou") }}</span> |
| | |
| | | @click=" |
| | | $router.push({ |
| | | path: '/trading-list', |
| | | query: { listid: 5 }, |
| | | query: { listid: 5 } |
| | | }) |
| | | " |
| | | > |
| | |
| | | this.$t("hj2"), |
| | | this.$t("hj109"), |
| | | this.$t("hj136"), |
| | | this.$t("hj3"), |
| | | this.$t("hj3") |
| | | ], |
| | | tabsCurrentIndex: 0, |
| | | titleName: this.$t("hj114"), |
| | |
| | | tabsXgArr: [], |
| | | cclist: [], |
| | | loadingXg: false, |
| | | finishedXg: false, |
| | | finishedXg: false |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | state: this.zjtype == 0 ? "0" : "1", |
| | | stockType: this.typeindex == 0 ? "IN" : "US", |
| | | pageNum: this.pageNum, |
| | | pageSize: this.pageSize, |
| | | pageSize: this.pageSize |
| | | }; |
| | | let data = await api.getchicang(opt); |
| | | if (data.status === 0) { |
| | |
| | | getrenjiao(val) { |
| | | MessageBox.confirm(this.$t("hj251") + "?", this.$t("hj165"), { |
| | | confirmButtonText: this.$t("hj161"), |
| | | cancelButtonText: this.$t("hj106"), |
| | | cancelButtonText: this.$t("hj106") |
| | | }) |
| | | .then(async () => { |
| | | let opt = { |
| | | id: val, |
| | | id: val |
| | | }; |
| | | let data = await api.submitSubscribe(opt); |
| | | if (data.status === 0) { |
| | |
| | | // 沪深京 |
| | | MessageBox.confirm(this.$t("hj139") + "?", this.$t("hj165"), { |
| | | confirmButtonText: this.$t("hj161"), |
| | | cancelButtonText: this.$t("hj106"), |
| | | cancelButtonText: this.$t("hj106") |
| | | }) |
| | | .then(async () => { |
| | | let opt = { |
| | | positionSn: val, |
| | | positionSn: val |
| | | }; |
| | | let data = await api.sell(opt); |
| | | if (data.status === 0) { |
| | |
| | | // 指数 |
| | | MessageBox.confirm(this.$t("hj139") + "?", this.$t("hj165"), { |
| | | confirmButtonText: this.$t("hj161"), |
| | | cancelButtonText: this.$t("hj106"), |
| | | cancelButtonText: this.$t("hj106") |
| | | }) |
| | | .then(async () => { |
| | | let opt = { |
| | | positionSn: val, |
| | | positionSn: val |
| | | }; |
| | | let data = await api.sellIndex(opt); |
| | | if (data.status === 0) { |
| | |
| | | }, |
| | | async gdClose(item) { |
| | | let opts = { |
| | | id: item.id, |
| | | id: item.id |
| | | }; |
| | | let data = await api.delGuaDan(opts); |
| | | if (data.status === 1) { |
| | |
| | | this.$router.push({ |
| | | path: "/trading-list", |
| | | query: { |
| | | listid: 5, |
| | | }, |
| | | listid: 5 |
| | | } |
| | | }); |
| | | }, |
| | | SetTitleIndex(index) { |
| | |
| | | let data = await api.getorderList(opts); |
| | | this.loadingss = false; |
| | | if (data.status === 0) { |
| | | data.data.forEach((element) => { |
| | | data.data.forEach(element => { |
| | | this.tabsOrderList.push(element); |
| | | }); |
| | | this.totalss = data.data.length; |
| | |
| | | stockCode: "", // 代码 |
| | | stockSpell: "", // 简拼 |
| | | pageNum: this.page, |
| | | pageSize: 15, |
| | | pageSize: 15 |
| | | }; |
| | | let data = await api.getOrderList(opt); |
| | | this.loading = false; |
| | |
| | | if (data.data.list.length < 15) { |
| | | this.finished = true; |
| | | } |
| | | data.data.list.forEach((element) => { |
| | | data.data.list.forEach(element => { |
| | | this.tabsPositionNumArr.push(element); |
| | | }); |
| | | this.total = data.data.total; |
| | |
| | | stockCode: "", // 代码 |
| | | stockSpell: "", // 简拼 |
| | | pageNum: this.pageNum, |
| | | pageSize: this.pageSize, |
| | | pageSize: this.pageSize |
| | | }; |
| | | let data = await api.getIndexOrderList(opt); |
| | | this.loading = false; |
| | |
| | | if (data.data.list.length < 15) { |
| | | this.finished = true; |
| | | } |
| | | data.data.list.forEach((element) => { |
| | | data.data.list.forEach(element => { |
| | | this.tabsPositionNumArr.push(element); |
| | | }); |
| | | this.total = data.data.total; |
| | |
| | | fnCode: "", // 代码 |
| | | fnName: "", // 简拼 |
| | | pageNum: this.pageNum, |
| | | pageSize: this.pageSize, |
| | | pageSize: this.pageSize |
| | | }; |
| | | let data = await api.getFuturesOrderList(opt); |
| | | this.loading = false; |
| | |
| | | if (data.data.list.length < 15) { |
| | | this.finished = true; |
| | | } |
| | | data.data.list.forEach((element) => { |
| | | data.data.list.forEach(element => { |
| | | this.tabsPositionNumArr.push(element); |
| | | }); |
| | | this.total = data.data.total; |
| | |
| | | stockCode: "", // 代码 |
| | | stockSpell: "", // 简拼 |
| | | pageNum: this.pages, |
| | | pageSize: 15, |
| | | pageSize: 15 |
| | | }; |
| | | let data = await api.getOrderList(opt); |
| | | this.loadings = false; |
| | |
| | | if (data.data.list.length < 15) { |
| | | this.finisheds = true; |
| | | } |
| | | data.data.list.forEach((element) => { |
| | | data.data.list.forEach(element => { |
| | | this.tabsPcArr.push(element); |
| | | }); |
| | | this.totals = data.data.total; |
| | |
| | | stockCode: "", // 代码 |
| | | stockSpell: "", // 简拼 |
| | | pageNum: this.pageNum, |
| | | pageSize: 15, |
| | | pageSize: 15 |
| | | }; |
| | | let data = await api.getIndexOrderList(opt); |
| | | this.loadings = false; |
| | |
| | | this.finisheds = true; |
| | | } |
| | | if (data.status === 0) { |
| | | data.data.list.forEach((element) => { |
| | | data.data.list.forEach(element => { |
| | | this.tabsPcArr.push(element); |
| | | }); |
| | | this.totals = data.data.total; |
| | |
| | | fnCode: "", // 代码 |
| | | fnName: "", // 简拼 |
| | | pageNum: this.pageNum, |
| | | pageSize: this.pageSize, |
| | | pageSize: this.pageSize |
| | | }; |
| | | let data = await api.getFuturesOrderList(opt); |
| | | this.loadings = false; |
| | |
| | | if (data.data.list.length < 15) { |
| | | this.finisheds = true; |
| | | } |
| | | data.data.list.forEach((element) => { |
| | | data.data.list.forEach(element => { |
| | | this.tabsPcArr.push(element); |
| | | }); |
| | | this.totals = data.data.total; |
| | |
| | | } else { |
| | | Toast(data.msg); |
| | | } |
| | | }, |
| | | } |
| | | }, |
| | | filters: { |
| | | gettime(time) { |
| | |
| | | // 17:35:2922-06-2022 |
| | | // return y + '/' + mm + '/' + d + ' ' + h + ':' + m + ':' + c |
| | | return mm + "/" + d + "/" + y + " " + h + ":" + m + ":" + c; |
| | | }, |
| | | }, |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | |
| | |
| | | right: 0.5rem; |
| | | top: calc(50% - 0.15rem); |
| | | } |
| | | </style> |
| | | </style> |