diff --git a/api/deepExploration/deepExploration.js b/api/deepExploration/deepExploration.js
index e73c35c..616d832 100644
--- a/api/deepExploration/deepExploration.js
+++ b/api/deepExploration/deepExploration.js
@@ -101,6 +101,15 @@ export const RecordListApi = (data) => {
data:data
})
}
+
+//历史记录删除
+export const RecordListDeleteApi = (data) => {
+ return http({
+ method: 'POST',
+ url: '/api/coze/deleteRecord',
+ data:data
+ })
+}
// 选股策略
export const stocSelectApi = (data) => {
return http({
diff --git a/components/deepExploration_header.vue b/components/deepExploration_header.vue
index 94ea260..db2188d 100644
--- a/components/deepExploration_header.vue
+++ b/components/deepExploration_header.vue
@@ -91,6 +91,7 @@
import {
RecordListApi,
RecordInfoApi,
+ RecordListDeleteApi
} from "../api/deepExploration/deepExploration";
import { ref, onMounted, computed } from "vue";
import { useDeepExplorationStore } from "../stores/modules/deepExploration";
@@ -140,8 +141,9 @@ const openHistoryDrawer = async () => {
};
const clearAllHistory = () => {
- searchHistory.value = [];
-
+ historyList.value = [];
+ RecordListDeleteApi({
+ })
// uni.setStorageSync("search_history", []);
};
diff --git a/pages/deepExploration/MainForceActions.vue b/pages/deepExploration/MainForceActions.vue
index 97fd330..3c32ab8 100644
--- a/pages/deepExploration/MainForceActions.vue
+++ b/pages/deepExploration/MainForceActions.vue
@@ -415,9 +415,13 @@
stockPrice.value = result.data.StockInformation.Price || '435.900'
if (result.data.chartData) {
-
+ const rawData = JSON.parse(JSON.stringify(result.data.chartData));
+ if (rawData.categories.length > 1) { // 确保至少保留一个日期
+ rawData.categories[rawData.categories.length - 1] = ''; // 删除最后一个日期
+ console.log('删了;');
+ }
chartData.value = {
- ...JSON.parse(JSON.stringify(result.data.chartData))
+ ...rawData
}
chartKey.value++;
console.log('chartData', chartData.value);
@@ -430,24 +434,25 @@
rotate: false,
rotateLock: false,
color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4", "#ea7ccc"],
- padding: [15, 15, 0, 15],
+ padding: [15, 30, 0, 15],
dataLabel: false,
enableScroll: true,
enableMarkLine: false,
legend: {},
xAxis: {
labelCount: 4,
- itemCount: 30,
+ itemCount: 20,
disableGrid: true,
gridColor: "#CCCCCC",
gridType: "solid",
dashLength: 4,
scrollShow: false,
+ rotate: 45,
scrollAlign: "left",
scrollColor: "#A6A6A6",
scrollBackgroundColor: "#EFEBEF",
labelColor: "#8C8C8C",
- fontSize: 9
+ fontSize: 9,
},
yAxis: {
labelColor: "#8C8C8C",
@@ -565,6 +570,9 @@
htmlContent.value = marked.parse(markdownContent.value);
//k线
+ if (historyData.value.stockData.chartData.categories.length > 1) { // 确保至少保留一个日期
+ historyData.value.stockData.chartData.categories[historyData.value.stockData.chartData.categories.length - 1] = ''; // 删除最后一个日期
+ }
chartData.value = {
...JSON.parse(JSON.stringify(historyData.value.stockData.chartData))
}
@@ -763,6 +771,7 @@
.charts-box {
width: 100%;
height: 100%;
+ overflow: visible;
}
}
}
@@ -792,7 +801,7 @@
}
.txtContent {
- min-height: 200rpx;
+ min-height: 300rpx;
padding: 20rpx 30rpx;
margin-bottom: 100rpx;
diff --git a/pages/deepExploration/deepExploration.vue b/pages/deepExploration/deepExploration.vue
index 7f9a698..f523971 100644
--- a/pages/deepExploration/deepExploration.vue
+++ b/pages/deepExploration/deepExploration.vue
@@ -7,7 +7,7 @@
+ placeholder-style="color: #A6A6A6; font-size: 28rpx; " />
@@ -307,6 +307,7 @@
.searchInput {
color: #111;
+ width: 100%;
}
}
@@ -367,11 +368,12 @@
padding: 6rpx 20rpx;
color: #ffffff;
font-family: "PingFang SC";
- font-size: 10rpx;
+ font-size: 24rpx;
font-style: normal;
font-weight: 100;
line-height: 29rpx;
height: 40rpx;
+ width: 140rpx;
}
}