-
+
-
{{
+
{{
month.total[d.val]
}}
@@ -42,7 +42,7 @@
const currentMonth = now.getMonth() + 1; // 月份从0开始
// 如果是今年,只取到当前月;否则取12个月
- const endMonth = year == currentYear ? currentMonth - 1 : 12;
+ const endMonth = year == currentYear ? currentMonth : 12;
let months = [];
for (let i = 1; i <= endMonth; i++) {
@@ -55,7 +55,7 @@
export default {
name: "FullYearCalendar",
props: {
- year: {
+ selectYear: {
type: Number,
default: new Date().getFullYear()
},
@@ -90,32 +90,12 @@
};
},
computed: {
- // months() {
- // let months = [];
- // for (let m = 0; m < 12; m++) {
- // let firstDay = new Date(this.year, m, 1);
- // let lastDay = new Date(this.year, m + 1, 0);
- // let daysInMonth = lastDay.getDate();
- // let startWeek1 = (firstDay.getDay() + 6) % 7; // 转换为 Mon=0
- // let startWeek = (firstDay.getDay() + 6) % 7; // 转换为 Mon=0
- // let days = [];
- // for (let d = 1; d <= daysInMonth; d++) {
- // let dateStr = `${this.year}-${String(m+1).padStart(2,"0")}-${String(d).padStart(2,"0")}`;
- // days.push({
- // number: d,
- // date: dateStr,
- // color: this.marks[dateStr] || ""
- // });
- // }
- // months.push({ startWeek, days });
- // }
- // return months;
- // }
+
},
async created() {
- await this.getMonthsByYear(this.year)
+ await this.getMonthsByYear(this.selectYear)
await this.fetchAllMonthData()
},
methods: {
@@ -134,10 +114,10 @@
return this.$http({
url: this.$http.adornUrl(this.urlList.export),
method: "post",
- data: this.$http.adornData({ date: `${this.year}-${m}` }),
+ data: this.$http.adornData({ date: this.$commonJS.getDate(this.selectYear,m) }),
responseType: "blob"
}).then(res => {
- const filename = `VIP报表_${this.year}年${m}月下载文件.xlsx`
+ const filename = `VIP报表_${this.selectYear}年${m}月下载文件.xlsx`
const blob = new Blob([res.data], {
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
})
@@ -175,7 +155,7 @@
async handleExport(mIndex) {
console.log('mIndex at line 120:', mIndex)
- var filename = `VIP报表_${this.year}年${this.pad(mIndex)}月下载文件.xlsx`;
+ var filename = `VIP报表_${this.selectYear}年${this.pad(mIndex)}月下载文件.xlsx`;
this.$message({
message: "请耐心等待...",
type: "info",
@@ -189,7 +169,7 @@
),
method: "post",
data: this.$http.adornData({
- date: `${this.year}-${this.pad(mIndex)}`
+ date: this.$commonJS.getDate(this.selectYear,this.pad(mIndex))
}),
responseType: "blob" // ⚡⚡⚡一定要加上
}).then(res => {
@@ -235,7 +215,7 @@
async init(){
this.showCurrentMonth = ''
this.showCurrentMonthDate = ''
- await this.getMonthsByYear(this.year)
+ await this.getMonthsByYear(this.selectYear)
await this.fetchAllMonthData()
},
getMonthsByYear(year) {
@@ -254,7 +234,7 @@
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0.7)"
});
- const year = this.year
+ const year = this.selectYear
const months = getMonths(year)
console.log('months', months)
// 构造请求数组
@@ -263,7 +243,7 @@
return this.$http({
url: this.$http.adornUrl(this.urlList.list),
method: "post",
- data: this.$http.adornData({ date: `${year}-${m}` })
+ data: this.$http.adornData({ date: this.$commonJS.getDate(year,m) })
}).then(res => {
if (res.data && res.data.code === 0) {
return { month: monthNum, total: res.data.total }
@@ -290,7 +270,7 @@
showClose: true
});
}
- if (this.year == new Date().getFullYear()) {
+ if (this.selectYear == new Date().getFullYear()) {
const now = new Date()
const year = now.getFullYear()
const month = this.pad(now.getMonth() + 1)
@@ -332,7 +312,7 @@
.days {
display: grid;
grid-template-columns: repeat(4, 1fr);
- font-size: 16px;
+ font-size: 17px;
}
.day {
text-align: center;
@@ -349,8 +329,11 @@
.day.blue { background: #ddeeff; color: #004; }
.day.yellow { background: #fff6cc; color: #665500; }
/deep/ .el-card .el-card__header{
-padding: 8px 20px !important;
+padding: 4px 20px !important;
}
-
+ /deep/ .el-card .el-card__body {
+ padding: 15px !important;
+ overflow-x: auto !important;
+}
\ No newline at end of file
diff --git a/src/views/modules/reportList/FullYearCalendarCoin copy.vue b/src/views/modules/reportList/FullYearCalendarCoin copy.vue
new file mode 100644
index 0000000..2818dc1
--- /dev/null
+++ b/src/views/modules/reportList/FullYearCalendarCoin copy.vue
@@ -0,0 +1,443 @@
+
+
+
+ 下载 {{ year }} 年全部天医币报表
+
+
+
+
+
+ {{ month.month }} 月
+ 下载报表
+
+
+
+
+
+
+
+
+ 暂无数据
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/reportList/FullYearCalendarCoin.vue b/src/views/modules/reportList/FullYearCalendarCoin.vue
index 0019feb..8cb5c7d 100644
--- a/src/views/modules/reportList/FullYearCalendarCoin.vue
+++ b/src/views/modules/reportList/FullYearCalendarCoin.vue
@@ -1,30 +1,87 @@
-
-
下载 {{year}} 年全部天医币报表
-
-
-
-
{{month.month }} 月 下载报表
-
+
+
+ 下载 {{ selectYear }} 年全部天医币报表
-
+
+
+
+
+ {{ month.month }} 月
+ 下载报表
+
+
+
-
-
-
-
-
-
\ No newline at end of file
+
diff --git a/src/views/modules/reportList/FullYearCalendarCourse.vue b/src/views/modules/reportList/FullYearCalendarCourse.vue
new file mode 100644
index 0000000..2c44ae9
--- /dev/null
+++ b/src/views/modules/reportList/FullYearCalendarCourse.vue
@@ -0,0 +1,473 @@
+
+
+
+ 下载 {{ selectYear }} 年全部课程报表
+
+
+
+
+
+ {{ month.month }} 月
+ 下载报表
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/reportList/FullYearCalendarEntity.vue b/src/views/modules/reportList/FullYearCalendarEntity.vue
index 30990ad..a497d6f 100644
--- a/src/views/modules/reportList/FullYearCalendarEntity.vue
+++ b/src/views/modules/reportList/FullYearCalendarEntity.vue
@@ -7,7 +7,7 @@
@click="handleExportAll()"
style="position: absolute;left: 360px;top:30px;cursor: pointer;color: #006699;font-size: 14px;"
>
- 下载 {{ year }} 年全部实物报表
+ 下载 {{ selectYear }} 年全部实物报表
@@ -27,14 +27,14 @@
-
共计:{{
allMonthData[mIndex].total.filter(
item => item.payType == d.title
@@ -94,7 +94,7 @@ function getMonths(year) {
const currentMonth = now.getMonth() + 1; // 月份从0开始
// 如果是今年,只取到当前月;否则取12个月
- const endMonth = year == currentYear ? currentMonth - 1 : 12;
+ const endMonth = year == currentYear ? currentMonth : 12;
let months = [];
for (let i = 1; i <= endMonth; i++) {
@@ -107,7 +107,7 @@ function getMonths(year) {
export default {
name: "FullYearCalendar",
props: {
- year: {
+ selectYear: {
type: Number,
default: new Date().getFullYear()
},
@@ -153,30 +153,10 @@ export default {
};
},
computed: {
- // months() {
- // let months = [];
- // for (let m = 0; m < 12; m++) {
- // let firstDay = new Date(this.year, m, 1);
- // let lastDay = new Date(this.year, m + 1, 0);
- // let daysInMonth = lastDay.getDate();
- // let startWeek1 = (firstDay.getDay() + 6) % 7; // 转换为 Mon=0
- // let startWeek = (firstDay.getDay() + 6) % 7; // 转换为 Mon=0
- // let days = [];
- // for (let d = 1; d <= daysInMonth; d++) {
- // let dateStr = `${this.year}-${String(m+1).padStart(2,"0")}-${String(d).padStart(2,"0")}`;
- // days.push({
- // number: d,
- // date: dateStr,
- // color: this.marks[dateStr] || ""
- // });
- // }
- // months.push({ startWeek, days });
- // }
- // return months;
- // }
+
},
async created() {
- await this.getMonthsByYear(this.year);
+ await this.getMonthsByYear(this.selectYear);
await this.fetchAllMonthData();
},
methods: {
@@ -195,11 +175,11 @@ export default {
return this.$http({
url: this.$http.adornUrl(this.urlList.export),
method: "post",
- data: this.$http.adornData({ date: `${this.year}-${m}` }),
+ data: this.$http.adornData({ date:this.$commonJS.getDate(this.selectYear,m) }),
responseType: "blob"
})
.then(res => {
- const filename = `实物报表_${this.year}年${m}月下载文件.xlsx`;
+ const filename = `实物报表_${this.selectYear}年${m}月下载文件.xlsx`;
const blob = new Blob([res.data], {
type:
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@@ -241,7 +221,7 @@ export default {
async handleExport(mIndex) {
console.log("mIndex at line 120:", mIndex);
- var filename = `实物报表_${this.year}年${this.pad(
+ var filename = `实物报表_${this.selectYear}年${this.pad(
mIndex
)}月下载文件.xlsx`;
this.$message({
@@ -255,16 +235,11 @@ export default {
url: this.$http.adornUrl(this.urlList.export),
method: "post",
data: this.$http.adornData({
- date: `${this.year}-${this.pad(mIndex)}`
+ date:this.$commonJS.getDate(this.selectYear,this.pad(mIndex))
}),
responseType: "blob" // ⚡⚡⚡一定要加上
}).then(res => {
- // this.$message({
- // message: "实物报表文件下载中,下载完成后文件会自动下载,请耐心等待...",
- // type: "info",
- // duration: 6000,
- // showClose: true
- // });
+
const blob = new Blob([res.data], {
type:
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
@@ -282,17 +257,7 @@ export default {
showClose: true
});
});
- // const res = await axios.post(
- // window.SITE_CONFIG.baseUrl+"/master/userContribution/exportContributionStatQuery",
- // {
- // current: this.current,
- // limit: this.limit
- // },
- // {
-
- // responseType: "blob" // 关键点:告诉 axios 返回的是二进制文件
- // }
- // );
+
} catch (err) {
this.$message.error("文件下载失败!");
// console.error("文件下载失败:", err);
@@ -301,7 +266,7 @@ export default {
async init() {
this.showCurrentMonth = "";
this.showCurrentMonthDate = "";
- await this.getMonthsByYear(this.year);
+ await this.getMonthsByYear(this.selectYear);
await this.fetchAllMonthData();
},
getMonthsByYear(year) {
@@ -318,7 +283,7 @@ export default {
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0.7)"
});
- const year = this.year;
+ const year = this.selectYear;
const months = getMonths(year);
console.log("months", months);
// 构造请求数组
@@ -327,7 +292,7 @@ export default {
return this.$http({
url: this.$http.adornUrl(this.urlList.list),
method: "post",
- data: this.$http.adornData({ date: `${year}-${m}` })
+ data: this.$http.adornData({ date: this.$commonJS.getDate(year,m) })
})
.then(res => {
if (res.data && res.data.code === 0) {
@@ -362,7 +327,7 @@ export default {
showClose: true
});
}
- if (this.year == new Date().getFullYear()) {
+ if (this.selectYear == new Date().getFullYear()) {
const now = new Date();
const year = now.getFullYear();
const month = this.pad(now.getMonth() + 1);
@@ -408,7 +373,7 @@ export default {
.days {
display: grid;
grid-template-columns: repeat(3, 1fr);
- font-size: 16px;
+ font-size: 18px;
}
.day {
text-align: center;
@@ -436,4 +401,7 @@ export default {
/deep/ .el-card .el-card__header {
padding: 8px 20px !important;
}
+/deep/ .el-card .el-card__body {
+ padding: 15px !important;overflow-x: auto !important;
+}
diff --git a/src/views/modules/reportList/coinList.vue b/src/views/modules/reportList/coinList.vue
index 81455ad..8b5083a 100644
--- a/src/views/modules/reportList/coinList.vue
+++ b/src/views/modules/reportList/coinList.vue
@@ -34,7 +34,7 @@
-
+
diff --git a/src/views/modules/reportList/courseList.vue b/src/views/modules/reportList/courseList.vue
new file mode 100644
index 0000000..3861a76
--- /dev/null
+++ b/src/views/modules/reportList/courseList.vue
@@ -0,0 +1,102 @@
+
+
+
+
+
+
+
+
+
+
+
+ 刷新
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/modules/reportList/entityList.vue b/src/views/modules/reportList/entityList.vue
index 0260a30..d637d2f 100644
--- a/src/views/modules/reportList/entityList.vue
+++ b/src/views/modules/reportList/entityList.vue
@@ -32,7 +32,7 @@
-
+
diff --git a/src/views/modules/reportList/vipList.vue b/src/views/modules/reportList/vipList.vue
index ee5e5ee..b60c816 100644
--- a/src/views/modules/reportList/vipList.vue
+++ b/src/views/modules/reportList/vipList.vue
@@ -32,7 +32,7 @@
>
-
+
diff --git a/src/views/modules/user/user-add-course.vue b/src/views/modules/user/user-add-course.vue
index 799387d..d61c17f 100644
--- a/src/views/modules/user/user-add-course.vue
+++ b/src/views/modules/user/user-add-course.vue
@@ -34,6 +34,55 @@
+
+
+
+
+
+ 微信
+ 支付宝
+ 银行支付
+ 海外支付
+ 其他
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+