diff --git a/src/views/basic/ask/analysis.vue b/src/views/basic/ask/analysis.vue
index a743ec9..dd2bc86 100644
--- a/src/views/basic/ask/analysis.vue
+++ b/src/views/basic/ask/analysis.vue
@@ -44,7 +44,7 @@
导出
-
+
@@ -136,6 +136,7 @@ export default {
query: {
id: JSON.stringify([obj.id]),
types: types,
+ params: this.$route.query.params
},
});
},
@@ -151,7 +152,8 @@ export default {
path: "/askAnalysis",
query: {
id: JSON.stringify(ids),
- types: subjectArr.length == 1 ? 2 : 3,
+ types: this.multipleSelection.length == 1 ? 1 : subjectArr.length == 1 ? 2 : 3,
+ params: this.$route.query.params
},
});
},
diff --git a/src/views/basic/dataSync/index.vue b/src/views/basic/dataSync/index.vue
index 18cb7b1..3dcf761 100644
--- a/src/views/basic/dataSync/index.vue
+++ b/src/views/basic/dataSync/index.vue
@@ -11,17 +11,8 @@
本功能帮助无法上网的授课端软件,将本地数据同步到云平台。
-
+
选择文件
@@ -31,26 +22,34 @@
数据导出至U盘
-
本功能将云平台的数据导出到U盘。
+
本功能将云平台的数据导出到U盘。
-
-
文件下载
+
+
+ 班级信息
+ 备题组卷数据
+ 报表数据
+
+
+
+
+ 全部
+ 最近一个月
+
+
+
文件下载
- {{tipData.paperNum}}
- {{tipData.periodNum}}
- {{tipData.examNum}}
+ {{ tipData.paperNum }}
+ {{ tipData.periodNum }}
+ {{ tipData.examNum }}
@@ -61,6 +60,7 @@ import { formatDate } from "@/utils";
export default {
data() {
return {
+ role: "",
downLoading: false,
url: "/api_html/teaching/importData",
file: {},
@@ -70,13 +70,36 @@ export default {
periodNum: 0,
examNum: 0,
},
+ type: [0, 1, 2],
+ dateType: 0
};
},
+ created() {
+ this.role =
+ this.$store.getters.info.showRole ||
+ this.$store.getters.info.permissions[0].role;
+ if (this.role == "ROLE_PERSONAL") {
+ this.url = "/api_html/personal/importData"
+ }
+ },
methods: {
async downloadFile() {
if (this.downLoading) return;
this.downLoading = true;
- const data = await this.$request.exportData();
+
+ let query = {}
+ if (this.type.length == 3 || this.type.length == 0) {
+ query.type = []
+ } else {
+ query.type = this.type
+ }
+ if (this.dateType == 1) {
+ let times = new Date().getTime() - 30 * 24 * 60 * 60 * 1000
+ query.exportData = formatDate(times, "yyyy-MM-dd");
+ query.exportData = query.exportData.replaceAll("-", "")
+ }
+ const exportData = this.role == "ROLE_PERSONAL" ? this.$request.pExportData : this.$request.exportData
+ const data = await exportData();
this.downLoading = false;
console.log(data);
if (data) {
@@ -138,18 +161,21 @@ export default {
padding: 50px;
display: flex;
justify-content: center;
+
.down-item {
width: 400px;
- height:330px;
+ height: 330px;
border-radius: 20px;
margin: 20px;
background: #f8f8f8;
box-shadow: 2px 2px 5px #ccc;
+
.h-title {
font-size: 16px;
color: #667ffd;
padding: 16px 0 16px 12px;
}
+
.txt {
height: 80px;
padding: 0 20px;
@@ -158,22 +184,35 @@ export default {
line-height: 24px;
text-align: center;
}
+
+ .txt2 {
+ height: 60px;
+ }
+
+ .p1 {
+ margin-bottom: 30px;
+ }
}
+
.upload-demo {
- padding:0 20px 20px;
- :deep(.el-upload--text){
+ padding: 0 20px 20px;
+
+ :deep(.el-upload--text) {
display: block;
}
}
+
:deep(.el-upload) {
margin: 0 auto;
}
+
.btn-box {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding-bottom: 10px;
+
.fa {
font-size: 80px;
color: #aeaeae;
@@ -181,6 +220,7 @@ export default {
cursor: pointer;
}
}
+
.btn-box {
width: 100%;
}