diff --git a/.env.prod b/.env.prod index ab14c09c..8291a432 100644 --- a/.env.prod +++ b/.env.prod @@ -2,6 +2,8 @@ NODE_ENV=prod VUE_APP_BASE=/manage VUE_APP_BASE_API=/manageApi +VUE_APP_PROXY_URL=https://u.boe.com/ + VUE_APP_LOGIN_URL=https://u.boe.com/web VUE_APP_BOE_API_URL=https://u.boe.com diff --git a/.env.release b/.env.release index 887d9220..39b98c87 100644 --- a/.env.release +++ b/.env.release @@ -1,6 +1,8 @@ NODE_ENV=release VUE_APP_BASE=/manage-release VUE_APP_BASE_API=/manageApi-release + +VUE_APP_PROXY_URL=https://u-pre.boe.com/ VUE_APP_LOGIN_URL=https://u.boe.com/web-release VUE_APP_BOE_API_URL=https://u.boe.com diff --git a/src/api/index1.js b/src/api/index1.js index fdd23835..b2fdae52 100644 --- a/src/api/index1.js +++ b/src/api/index1.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-04 22:45:31 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2023-01-07 16:53:23 + * @LastEditTime: 2023-01-09 15:16:47 * @FilePath: /fe-manage/src/api/index1.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -176,4 +176,6 @@ export const batchUpdateStatus = (obj) => http.post('/admin/student/batchUpdateS export const batchImportScore = (obj) => http.post('/admin/student/importHomeWork', obj, { headers: { "Content-Type": "multipart/form-data" }, - }); \ No newline at end of file + }); +//数据导入状态 +export const getImportStatus = (uuid) => http.get('/admin/student/getImportStatus', { params: { uuid: uuid } }) \ No newline at end of file diff --git a/src/components/drawers/ExportScore.vue b/src/components/drawers/ExportScore.vue index 7ac029c8..20204dcc 100644 --- a/src/components/drawers/ExportScore.vue +++ b/src/components/drawers/ExportScore.vue @@ -28,12 +28,11 @@

@@ -48,7 +47,10 @@

支持扩展名:.xls/.xlsx
-->
-
+
@@ -56,18 +58,19 @@
京东方商业模型.xls
正在上传
-
+ +
-
55%
- + +
暂停
+
取消
-
+
@@ -75,12 +78,14 @@
京东方商业模型.xls
上传失败
-
+ +
+
-
55%
+
@@ -99,7 +104,7 @@
-
+
@@ -107,13 +112,14 @@
京东方商业模型.xls
上传成功
-
+ +
-
100%
- + +
删除
@@ -153,6 +159,10 @@ export default { setup(props, ctx) { const state = reactive({ fileType: ["xls", "xlsx"], + importHomeWork: + process.env.VUE_APP_BASE_API + "admin/student/importHomeWork", + uploadpercent: -1, + uploadErr: false, //上传失败 }); const closeDrawer = () => { ctx.emit("update:eScorevisible", false); @@ -164,10 +174,16 @@ export default { //上传文件 const handleChange = (info) => { - console.log("info", info, props.id); - setInterval(() => { - console.log("我是文件上传的进度---------->", info.file.percent); - }, 1000); + console.log("info11111", info); + state.uploadpercent = info.file.percent; + // let timer = setInterval(() => { + // state.uploadpercent = info.file.percent; + // if (state.uploadpercent === 100) { + // clearInterval(timer); + // } + // console.log("我是文件上传的进度---------->", info.file.percent); + // }, 1000); + console.log("我是文件上传的进度---------->", info.file.percent); const status = info.file.status; if (status !== "uploading") { console.log(info.file, info.fileList); @@ -177,14 +193,15 @@ export default { formData.append("uploadFile", info.file); // formData.append("offcoursePlanId", props.id); console.log("info.file", info.file); - // api.batchImportScore(formData).then((res) => { - // // if (res.data.code === 200) { - // // console.log('上传成功') - // // } - // console.log("上传成绩", res); - // }); + api.batchImportScore(formData).then((res) => { + if (res.data.code === 200) { + console.log("上传成功"); + } + console.log("上传成绩", res); + }); message.success(`${info.file.name} file uploaded successfully.`); } else if (status === "error") { + state.uploadErr = true; message.error(`${info.file.name} file upload failed.`); } }; @@ -355,7 +372,7 @@ export default { display: flex; width: 262px; justify-content: space-between; - margin-bottom: 8px; + // margin-bottom: 8px; .tit { font-size: 14px; font-weight: 400; diff --git a/src/components/drawers/router/RouterFaceStu.vue b/src/components/drawers/router/RouterFaceStu.vue index 8880c1bf..0e5ec00c 100644 --- a/src/components/drawers/router/RouterFaceStu.vue +++ b/src/components/drawers/router/RouterFaceStu.vue @@ -82,7 +82,11 @@
-
+
签到二维码
@@ -201,6 +205,15 @@
+ + + +