fix: 增加动量趋势

dev
laixingyu 3 years ago
parent ea8e4b59c1
commit b81c19efe7

@ -70,6 +70,14 @@ export function trendPlate(data) {
data,
});
}
// 动量趋势板块
export function trends(data) {
return request({
url: "/stock/trends",
method: "post",
data,
});
}
// 个股涨跌分页查询
export function riseLossesDetail(data) {
return request({

@ -441,6 +441,7 @@
<script>
import {
trendPlate,
trends,
riseLossesStatistics,
stockDetails,
kLine,
@ -723,7 +724,23 @@ export default {
},
methods: {
rending() {
trendPlate({
// trendPlate({
// pageModel: {
// pageNo: 1,
// pageSize: 10,
// sortField: "",
// sortWay: "",
// },
// trendType: 1,
// })
// .then((res) => {
// this.tendencyList = res.data.list;
// console.log(res);
// })
// .catch(() => {
// // this.shareLoading = false;
// });
trends({
pageModel: {
pageNo: 1,
pageSize: 10,
@ -758,8 +775,23 @@ export default {
handleChange(e) {
console.log(e);
},
//id5 10
getTendencyList(id) {
trendPlate({
// trendPlate({
// pageModel: {
// pageNo: 1,
// pageSize: 10,
// sortField: "",
// sortWay: "",
// },
// trendType: id,
// })
// .then((res) => {
// this.tendencyList = res.data.list;
// console.log(res);
// })
// .catch(() => {});
trends({
pageModel: {
pageNo: 1,
pageSize: 10,
@ -933,7 +965,24 @@ export default {
selectRankChange() {
this.rankChange = !this.rankChange;
console.log(this.rankChange);
trendPlate({
// trendPlate({
// pageModel: {
// pageNo: 1,
// pageSize: 10,
// sortField: "sort,sortChange",
// sortWay:
// (this.plateRank ? "asc" : "desc") +
// "," +
// (this.rankChange ? "asc" : "desc"),
// },
// trendType: this.tendencyNavIndex,
// })
// .then((res) => {
// this.tendencyList = res.data.list;
// console.log(res);
// })
// .catch(() => {});
trends({
pageModel: {
pageNo: 1,
pageSize: 10,
@ -954,7 +1003,25 @@ export default {
// or
selectPlateRank() {
this.plateRank = !this.plateRank;
trendPlate({
// trendPlate({
// pageModel: {
// pageNo: 1,
// pageSize: 10,
// sortField: "sort,sortChange",
// sortWay:
// (this.plateRank ? "asc" : "desc") +
// "," +
// (this.rankChange ? "asc" : "desc"),
// },
// trendType: this.tendencyNavIndex,
// })
// .then((res) => {
// this.tendencyList = res.data.list;
// console.log(res);
// })
// .catch(() => {});
//
trends({
pageModel: {
pageNo: 1,
pageSize: 10,

Loading…
Cancel
Save