diff --git a/src/App.vue b/src/App.vue
index 7ca7582f..eaa77157 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -44,7 +44,7 @@ export default defineComponent({
const store = useStore();
const isLogin = ref(false);
// console.log("router", router.getRoutes(), route);
- console.log("版本2.1.5------------");
+ console.log("版本2.1.6------------");
const routes = computed(() => {
return router.getRoutes().filter((e) => e.meta?.isLink);
});
diff --git a/src/components/drawers/AddHomework.vue b/src/components/drawers/AddHomework.vue
index 1f70b2d9..b68e77fd 100644
--- a/src/components/drawers/AddHomework.vue
+++ b/src/components/drawers/AddHomework.vue
@@ -72,10 +72,10 @@
-
+
+
diff --git a/src/components/drawers/ExportScore.vue b/src/components/drawers/ExportScore.vue
index 3c3f18c4..c06a1061 100644
--- a/src/components/drawers/ExportScore.vue
+++ b/src/components/drawers/ExportScore.vue
@@ -298,6 +298,12 @@ export default {
console.log("查询导入状态失败", err);
});
}, 500);
+ setTimeout(() => {
+ clearInterval(timer)
+ state.addLoading = false;
+ message.destroy();
+ message.error(`文件导入超时`);
+ }, 30000);
} else if (status === "error") {
state.uploadErr = true;
message.error(`${info.file.name}上传失败`);
diff --git a/src/components/drawers/NoticeHis.vue b/src/components/drawers/NoticeHis.vue
index 329ff3f9..eb3343a3 100644
--- a/src/components/drawers/NoticeHis.vue
+++ b/src/components/drawers/NoticeHis.vue
@@ -7,7 +7,7 @@
发布时间
-
+
+ (allDepartShow(studentOrgName, studentDepartName)),
},
{
title: "加入方式",
@@ -466,7 +468,7 @@ const tablecolumns = ref([
align: "center",
customRender: ({ record: { source } }) =>
// ({ 1: "快速添加", 2: "组织", 3: "受众", 4: "报名" }[source]),
- ({ 1: "手动加入", 2: "手动加入", 3: "手动加入", 4: "报名" }[source]),
+ ({ 0: "手动加入", 1: "手动加入", 2: "手动加入", 3: "手动加入", 4: "报名", 5: "手动加入", 6: "手动加入"}[source]),
},
...props.columns,
{
@@ -478,6 +480,14 @@ const tablecolumns = ref([
slots: { customRender: "action" },
},
]);
+
+function allDepartShow(a,b) {
+ let org = (a=="" || a == null || a == undefined) ? a = "" : a.slice(0,1) =='/' ? a.slice(1,a.length) : a;
+ let depart = (b=="" || b == null || b == undefined) ? b = "" : b;
+ let allname = org == "" && depart == "" ? '-' : org + depart;
+ return allname;
+}
+
const tableParam = ref({
studentName: "", //学员名称
groupName: "", //学员小组
diff --git a/src/views/DownLoad.vue b/src/views/DownLoad.vue
index 2507bdb2..af7fe54b 100644
--- a/src/views/DownLoad.vue
+++ b/src/views/DownLoad.vue
@@ -59,7 +59,7 @@
'0%': countCMB>2?'#FF0000 ':'#45B058',
'100%': countCMB>2?'#FF0000 ':'#45B058',
}" />
- 容量已满,请删除文件
+ 容量已满,请删除文件
@@ -176,6 +176,12 @@ export default {
return CMB
}
+ function formatCapacityGB(data) {
+ let num = Number(data);
+ let CMB = (num / (1048576*1024)).toFixed(2);
+ return CMB
+ }
+
// 下载文件
function downLoadFile(data) {
console.log(data)
@@ -226,7 +232,8 @@ export default {
changePaginationStu,
searchDownloadList,
reseatDownloadList,
- formatCapacity
+ formatCapacity,
+ formatCapacityGB
};
},
};