From 01ab826dcf5f6b3bffd3945f61a9a29ca7cdd59d Mon Sep 17 00:00:00 2001
From: Pengxiansen <2422914688@qq.com>
Date: Fri, 21 Feb 2025 14:04:17 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/configGrowth.js | 4 +-
src/api/growthpath.js | 2 +-
.../growthpath/GrowthActiveAttendance.vue | 2 +-
src/components/growthpath/GrowthCase.vue | 4 +-
.../growthpath/GrowthCommonImport.vue | 4 +-
src/components/growthpath/GrowthDrawer.vue | 14 +++--
src/components/growthpath/GrowthExa.vue | 4 +-
src/components/growthpath/GrowthFaceStu.vue | 53 ++++++++++++-------
.../growthpath/GrowthFaceTaskManage.vue | 9 +++-
.../growthpath/GrowthOpenCourse.vue | 13 ++---
src/components/growthpath/ImportStu.vue | 4 +-
src/components/growthpath/StudentManage.vue | 2 +-
src/components/growthpath/UpdateRecord.vue | 3 --
src/views/growthpath/EditingTasks.vue | 1 -
src/views/growthpath/GrowthPath.vue | 12 ++---
src/views/growthpath/PathManage.vue | 35 ++++++++----
vue.config.js | 16 +++---
17 files changed, 107 insertions(+), 75 deletions(-)
diff --git a/src/api/configGrowth.js b/src/api/configGrowth.js
index ab3fedbe..2f010b28 100644
--- a/src/api/configGrowth.js
+++ b/src/api/configGrowth.js
@@ -18,8 +18,8 @@ import { boeRequest } from "@/api/request";
// "application/x-www-form-urlencoded";
axios.defaults.withCredentials = true;
const http = axios.create({
- // baseURL: '/growth',
- baseURL: process.env.VUE_APP_BASE_API_GROWTH,
+ baseURL: '/growth',
+ // baseURL: process.env.VUE_APP_BASE_API_GROWTH,
timeout: 1000 * 15,
// headers: { "Content-Type": "multipart/form-data" },
headers: { "Content-Type": "application/json" },
diff --git a/src/api/growthpath.js b/src/api/growthpath.js
index 40eaecbf..7378c185 100644
--- a/src/api/growthpath.js
+++ b/src/api/growthpath.js
@@ -81,7 +81,7 @@ export const taskInformation = (growthId) => http.get('/professional/managementO
export const taskCompletionRate = (growthId) => http.get('/professional/managementOverview/taskCompletionRate/' + growthId)
// 运营数据概览
-export const getStudyStatisticsList = (data) => http.post('/professional/statics/getStudyStatisticsList',)
+export const getStudyStatisticsList = (data) => http.post('/professional/statics/getStudyStatisticsList', data)
// 专业力列表
export const boeuGrowthPlatePageList = (obj) => http.post('/boeu/growth/pageList', obj)
diff --git a/src/components/growthpath/GrowthActiveAttendance.vue b/src/components/growthpath/GrowthActiveAttendance.vue
index d63ffb96..a09340bd 100644
--- a/src/components/growthpath/GrowthActiveAttendance.vue
+++ b/src/components/growthpath/GrowthActiveAttendance.vue
@@ -445,7 +445,7 @@ export default {
console.log(obj);
state.tableDataTotalLoading = true;
- taskLeave(obj)
+ taskSign(obj)
.then((res) => {
console.log("签到结果", res, obj);
if (res.data.code === 200) {
diff --git a/src/components/growthpath/GrowthCase.vue b/src/components/growthpath/GrowthCase.vue
index 929b855a..01212077 100644
--- a/src/components/growthpath/GrowthCase.vue
+++ b/src/components/growthpath/GrowthCase.vue
@@ -131,7 +131,7 @@ const params = useResetRef({
orderAsc: true,
});
-const { data, loading, total, fetch } = useBoeApiPage(CASE_PAGE, params.value, {
+const { data, loading, total, fetch } = useBoeApiPage(CASE_PAGE, params, {
init: false,
result: (res) => res.result.list,
totalPage: (res) => res.result.totalPages,
@@ -157,7 +157,7 @@ function search() {
}
function reset() {
- params.reset();
+ params.reset()
fetch();
}
diff --git a/src/components/growthpath/GrowthCommonImport.vue b/src/components/growthpath/GrowthCommonImport.vue
index f70a356a..e6446027 100644
--- a/src/components/growthpath/GrowthCommonImport.vue
+++ b/src/components/growthpath/GrowthCommonImport.vue
@@ -101,6 +101,7 @@
+
@@ -138,7 +139,7 @@ const { start } = useTimeout(async ({ uuid, file }) => {
fileList.value = [...fileList.value];
if (upData && upData.status !== "START" && upData.status !== "NULL") {
emit("change", "end");
- // message.success("导入成功");
+ message.success("导入成功");
// closeDrawer();
throw Error("查询任务结束");
}
@@ -170,6 +171,7 @@ function handleChange({ file }) {
overflow-x: auto;
display: flex;
flex-direction: column;
+ height: 100%;
.main {
.minatitl {
diff --git a/src/components/growthpath/GrowthDrawer.vue b/src/components/growthpath/GrowthDrawer.vue
index 3eeb35cd..1f355534 100644
--- a/src/components/growthpath/GrowthDrawer.vue
+++ b/src/components/growthpath/GrowthDrawer.vue
@@ -4,7 +4,7 @@
class="drawerStyle"
placement="right"
destroyOnClose
- width="60%"
+ :width="width"
>
-
+
@@ -897,12 +896,10 @@ const closeDrawer = () => {
type: props.type,
offcourseId: params.value.offcourseId,
});
+ emit("refresh");
}
};
-const emit = defineEmits(["call-parent-method"]);
-const confirm = async () => {
- closeDrawer();
-};
+const emit = defineEmits(["call-parent-method", "refresh"]);
const createNewCourse = () => {
changeName.value = true;
diff --git a/src/components/growthpath/ImportStu.vue b/src/components/growthpath/ImportStu.vue
index 6a4f77f9..b368995b 100644
--- a/src/components/growthpath/ImportStu.vue
+++ b/src/components/growthpath/ImportStu.vue
@@ -238,6 +238,7 @@ export default {
importStudent: `${process.env.VUE_APP_BOE_API_URL}${
process.env.VUE_APP_BASE_API_GROWTH || ""
}/professional/allocation/importLearner`,
+
timers: "", // 定时器,用于清空定时器使用
isAddStudent: false, // 用于判断用户是否关闭弹框需要重新获取学员列表
uploadpercent: -1,
@@ -342,11 +343,12 @@ export default {
console.log("上传成功返回的UUID----->", info);
console.log("我是导入学员接口传递的参数", {
file: info.file.originFileObj,
- targetId: props.courseId,
+ targetId: props.courseId,
type: 14,
});
state.fileName = info.file.name;
let i = 0;
+ message.success("上传成功");
if (info.file.response.code == 1) {
state.fileList = [];
state.addLoading = false;
diff --git a/src/components/growthpath/StudentManage.vue b/src/components/growthpath/StudentManage.vue
index 878989da..f60e9c78 100644
--- a/src/components/growthpath/StudentManage.vue
+++ b/src/components/growthpath/StudentManage.vue
@@ -280,7 +280,7 @@
:courseId="id"
:courseType="type"
/>
-
+
{
width: 100%;
display: flex;
flex-direction: column;
- min-width: 933px;
background-color: rgba(245, 247, 250, 1);
.tableBox {
margin-top: 21px;
diff --git a/src/views/growthpath/GrowthPath.vue b/src/views/growthpath/GrowthPath.vue
index 2763f1c8..3486a2df 100644
--- a/src/views/growthpath/GrowthPath.vue
+++ b/src/views/growthpath/GrowthPath.vue
@@ -510,9 +510,9 @@ export default {
message.error(err.data.msg);
}
})
- .catch((err) => {
- message.error(err.data.msg);
- });
+ // .catch((err) => {
+ // message.error(err.data.msg);
+ // });
},
});
};
@@ -546,7 +546,6 @@ export default {
title: "标准岗位",
dataIndex: "stdPositionName",
key: "stdPositionName",
- width: 100,
align: "center",
ellipsis: true,
customRender: ({ record }) => {
@@ -559,7 +558,6 @@ export default {
title: "任职资格等级",
dataIndex: "qualsLevelDesr",
key: "qualsLevelDesr",
- width: 120,
align: "center",
ellipsis: true,
},
@@ -568,7 +566,6 @@ export default {
title: "状态",
dataIndex: "isPublished",
key: "isPublished",
- width: 100,
align: "center",
ellipsis: true,
customRender: ({ record }) => {
@@ -587,7 +584,6 @@ export default {
title: "数据来源",
dataIndex: "dataSource",
key: "dataSource",
- width: 100,
align: "center",
ellipsis: true,
customRender: ({ record }) => {
@@ -596,7 +592,6 @@ export default {
},
{
title: "操作",
- width: 160,
align: "right",
slots: { customRender: "listData" },
},
@@ -776,7 +771,6 @@ export default {
// 查看修改记录
const UpdateRecordRef = ref(null);
const updateList = (record) => {
- console.log(record, "record");
UpdateRecordRef.value.open(record);
};
return {
diff --git a/src/views/growthpath/PathManage.vue b/src/views/growthpath/PathManage.vue
index 82f7caaa..869325a0 100644
--- a/src/views/growthpath/PathManage.vue
+++ b/src/views/growthpath/PathManage.vue
@@ -299,11 +299,13 @@
"
>
+
+