diff --git a/vue/gold-system/src/views/workspace/index.vue b/vue/gold-system/src/views/workspace/index.vue
index fc64065..ea1b65e 100644
--- a/vue/gold-system/src/views/workspace/index.vue
+++ b/vue/gold-system/src/views/workspace/index.vue
@@ -211,13 +211,13 @@ const get = async function () {
ERPData.value.forEach((item, index) =>
item == ""
? (ERPData.value[index] = {
- value: 0,
- name: "第" + (index + 1) + "学科" + 0,
- })
+ value: 0,
+ name: "第" + (index + 1) + "学科" + 0,
+ })
: (ERPData.value[index] = {
- value: item[0],
- name: "第" + (index + 1) + "学科" + item[0],
- })
+ value: item[0],
+ name: "第" + (index + 1) + "学科" + item[0],
+ })
);
console.log("ERPData", ERPData.value);
HCData.value = [
@@ -237,13 +237,13 @@ const get = async function () {
HCData.value.forEach((item, index) =>
item == ""
? (HCData.value[index] = {
- value: 0,
- name: "第" + (index + 1) + "学科" + 0,
- })
+ value: 0,
+ name: "第" + (index + 1) + "学科" + 0,
+ })
: (HCData.value[index] = {
- value: item[0],
- name: "第" + (index + 1) + "学科" + item[0],
- })
+ value: item[0],
+ name: "第" + (index + 1) + "学科" + item[0],
+ })
);
console.log("HCData", HCData.value);
LinkData.value = [
@@ -263,13 +263,13 @@ const get = async function () {
LinkData.value.forEach((item, index) =>
item == ""
? (LinkData.value[index] = {
- value: 0,
- name: "第" + (index + 1) + "学科" + 0,
- })
+ value: 0,
+ name: "第" + (index + 1) + "学科" + 0,
+ })
: (LinkData.value[index] = {
- value: item[0],
- name: "第" + (index + 1) + "学科" + item[0],
- })
+ value: item[0],
+ name: "第" + (index + 1) + "学科" + item[0],
+ })
);
console.log("LinkData", LinkData.value);
goldData.value = [
@@ -289,13 +289,13 @@ const get = async function () {
goldData.value.forEach((item, index) =>
item == ""
? (goldData.value[index] = {
- value: 0,
- name: "第" + (index + 1) + "学科" + 0,
- })
+ value: 0,
+ name: "第" + (index + 1) + "学科" + 0,
+ })
: (goldData.value[index] = {
- value: item[0],
- name: "第" + (index + 1) + "学科" + item[0],
- })
+ value: item[0],
+ name: "第" + (index + 1) + "学科" + item[0],
+ })
);
console.log("goldData", goldData.value);
allData.value = [
@@ -365,12 +365,8 @@ const get = async function () {
// 获取中间柱状图数据
const getMiddleBar = async function () {
const result = await API.post(
- "http://192.168.8.93:10010/statistics/getCoinTime?" +
- "searchEndTime=" +
- getMiddleBarObj.value.searchEndTime +
- "&searchStartTime=" +
- getMiddleBarObj.value.searchStartTime,
- {}
+ "http://192.168.8.93:10010/statistics/getCoinTime",
+ getMiddleBarObj.value
);
getMiddleBarData.value = result.data;
@@ -378,7 +374,7 @@ const getMiddleBar = async function () {
// 柱状图数据处理
middleCategory.value = getMiddleBarData.value.map((item) =>
- item.day == null ? item.month : item.day.substring(0, 10)
+ item.day == null ? item.month : item.day.substring(5, 10)
);
middleRecharge.value = getMiddleBarData.value.map((item) =>
Math.abs(item.rechargeSumCoin)
@@ -423,7 +419,8 @@ const getMiddleBar = async function () {
},
},
legend: {
- show: false,
+ right: "-5%",
+ orient: "vertical",
},
grid: {
left: "3%",
@@ -445,7 +442,7 @@ const getMiddleBar = async function () {
type: "bar",
stack: "total",
label: {
- show: true,
+ show: false,
},
emphasis: {
focus: "series",
@@ -458,7 +455,7 @@ const getMiddleBar = async function () {
type: "bar",
stack: "total",
label: {
- show: true,
+ show: false,
},
emphasis: {
focus: "series",
@@ -471,7 +468,7 @@ const getMiddleBar = async function () {
type: "bar",
stack: "total",
label: {
- show: true,
+ show: false,
},
emphasis: {
focus: "series",
@@ -495,7 +492,8 @@ const getMiddleBar = async function () {
},
},
legend: {
- show: false,
+ right: "-5%",
+ orient: "vertical",
},
grid: {
left: "3%",
@@ -517,7 +515,7 @@ const getMiddleBar = async function () {
type: "bar",
stack: "total",
label: {
- show: true,
+ show: false,
},
emphasis: {
focus: "series",
@@ -530,7 +528,7 @@ const getMiddleBar = async function () {
type: "bar",
stack: "total",
label: {
- show: true,
+ show: false,
},
emphasis: {
focus: "series",
@@ -543,7 +541,7 @@ const getMiddleBar = async function () {
type: "bar",
stack: "total",
label: {
- show: true,
+ show: false,
},
emphasis: {
focus: "series",
@@ -722,8 +720,8 @@ const search = function () {
console.log(
"searchTime",
moment(searchTime.value[0]).format("YYYY-MM-DD") +
- "至" +
- moment(searchTime.value[1]).format("YYYY-MM-DD")
+ "至" +
+ moment(searchTime.value[1]).format("YYYY-MM-DD")
);
getMiddleBarObj.value.searchStartTime = moment(searchTime.value[0]).format(
@@ -883,7 +881,8 @@ onMounted(async function () {
},
},
legend: {
- show: false,
+ right: "-5%",
+ orient: "vertical",
},
grid: {
left: "3%",
@@ -905,7 +904,7 @@ onMounted(async function () {
type: "bar",
stack: "total",
label: {
- show: true,
+ show: false,
},
emphasis: {
focus: "series",
@@ -918,7 +917,7 @@ onMounted(async function () {
type: "bar",
stack: "total",
label: {
- show: true,
+ show: false,
},
emphasis: {
focus: "series",
@@ -931,7 +930,7 @@ onMounted(async function () {
type: "bar",
stack: "total",
label: {
- show: true,
+ show: false,
},
emphasis: {
focus: "series",
@@ -1093,37 +1092,26 @@ onMounted(async function () {