mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-17 23:06:47 +08:00
提交
This commit is contained in:
@@ -80,4 +80,8 @@ export const taskInformation = (growthId) => http.get('/professional/managementO
|
|||||||
// 任务管理完成统计概览
|
// 任务管理完成统计概览
|
||||||
export const taskCompletionRate = (growthId) => http.get('/professional/managementOverview/taskCompletionRate/' + growthId)
|
export const taskCompletionRate = (growthId) => http.get('/professional/managementOverview/taskCompletionRate/' + growthId)
|
||||||
|
|
||||||
|
// 运营数据概览
|
||||||
|
export const getStudyStatisticsList = (data) => http.post('/professional/statics/getStudyStatisticsList',)
|
||||||
|
|
||||||
|
// 专业力列表
|
||||||
|
export const boeuGrowthPlatePageList = (obj) => http.post('/boeu/growth/pageList', obj)
|
||||||
@@ -29,3 +29,7 @@ export const boeuAllTotal = (obj) => http.get('/boeu/all/total', obj)
|
|||||||
export const boeuRouterPlatePageList = (obj) => http.post('/boeu/routerPlate/pageList', obj)
|
export const boeuRouterPlatePageList = (obj) => http.post('/boeu/routerPlate/pageList', obj)
|
||||||
// 案例列表
|
// 案例列表
|
||||||
export const boeuCasePlatePageList = (obj) => http.post('/boeu/case/pageList', obj)
|
export const boeuCasePlatePageList = (obj) => http.post('/boeu/case/pageList', obj)
|
||||||
|
|
||||||
|
|
||||||
|
// 专业力列表
|
||||||
|
export const boeuGrowthPlatePageList = (obj) => http.post('/boeu/growth/pageList', obj)
|
||||||
@@ -366,10 +366,10 @@ const getBasicInfoData = () => {
|
|||||||
|
|
||||||
// 发布
|
// 发布
|
||||||
const published = (element) => {
|
const published = (element) => {
|
||||||
if(basicData.value.isPublished){
|
// if(basicData.value.isPublished){
|
||||||
message.warning('该专业力必修已发布,不可发布学习任务')
|
// message.warning('该专业力必修已发布,不可发布学习任务')
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
dialog({
|
dialog({
|
||||||
content: "确定要发布该任务吗?",
|
content: "确定要发布该任务吗?",
|
||||||
ok: () => {
|
ok: () => {
|
||||||
@@ -382,10 +382,10 @@ const published = (element) => {
|
|||||||
};
|
};
|
||||||
// 撤回
|
// 撤回
|
||||||
const withdraw = (element) => {
|
const withdraw = (element) => {
|
||||||
if(basicData.value.isPublished){
|
// if(basicData.value.isPublished){
|
||||||
message.warning('该专业力必修已发布,不可撤回学习任务')
|
// message.warning('该专业力必修已发布,不可撤回学习任务')
|
||||||
return
|
// return
|
||||||
}
|
// }
|
||||||
dialog({
|
dialog({
|
||||||
content: "确定要撤回该任务吗?",
|
content: "确定要撤回该任务吗?",
|
||||||
ok: () => {
|
ok: () => {
|
||||||
|
|||||||
@@ -363,6 +363,14 @@ export default {
|
|||||||
width: 120,
|
width: 120,
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: "专业力学习",
|
||||||
|
dataIndex: "growthStudy",
|
||||||
|
ellipsis: true,
|
||||||
|
key: "growthStudy",
|
||||||
|
width: 120,
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "学习时长",
|
title: "学习时长",
|
||||||
dataIndex: "learningDuration",
|
dataIndex: "learningDuration",
|
||||||
|
|||||||
@@ -106,6 +106,10 @@
|
|||||||
label: '学习路径图',
|
label: '学习路径图',
|
||||||
value: 6,
|
value: 6,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '专业力必修',
|
||||||
|
value: 7,
|
||||||
|
},
|
||||||
]"
|
]"
|
||||||
></a-select>
|
></a-select>
|
||||||
</div>
|
</div>
|
||||||
@@ -322,6 +326,7 @@ import * as api from "../../api/indexProject";
|
|||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import Cookies from "vue-cookies";
|
import Cookies from "vue-cookies";
|
||||||
|
import { getStudyStatisticsList } from "@/api/growthpath.js"
|
||||||
import downLoad from "../../utils/downLoad";
|
import downLoad from "../../utils/downLoad";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
export default {
|
export default {
|
||||||
@@ -770,12 +775,24 @@ export default {
|
|||||||
const monthEnd = dayjs(state.towParmasn.time[1])
|
const monthEnd = dayjs(state.towParmasn.time[1])
|
||||||
.endOf("month")
|
.endOf("month")
|
||||||
.format("YYYY-MM-DD 23:59:59");
|
.format("YYYY-MM-DD 23:59:59");
|
||||||
const res = await api.boeuStudyDataGetStudyStaisticsList({
|
let res = null
|
||||||
beginTime: dayjs(state.towParmasn.time[0]).format("YYYY-MM-01 00:00:01"),
|
if(state.towParmasn.type == 7){
|
||||||
endTime: monthEnd,
|
// 专业力必修数据
|
||||||
dateType: state.towParmasn.dateType,
|
res = await getStudyStatisticsList({
|
||||||
type: state.towParmasn.type,
|
beginTime: dayjs(state.towParmasn.time[0]).format("YYYY-MM-01 00:00:01"),
|
||||||
});
|
endTime: monthEnd,
|
||||||
|
dateType: state.towParmasn.dateType,
|
||||||
|
type: state.towParmasn.type,
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
res = await api.boeuStudyDataGetStudyStaisticsList({
|
||||||
|
beginTime: dayjs(state.towParmasn.time[0]).format("YYYY-MM-01 00:00:01"),
|
||||||
|
endTime: monthEnd,
|
||||||
|
dateType: state.towParmasn.dateType,
|
||||||
|
type: state.towParmasn.type,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
state.topChartData = res?.data?.result;
|
state.topChartData = res?.data?.result;
|
||||||
if (
|
if (
|
||||||
@@ -872,12 +889,23 @@ export default {
|
|||||||
.startOf("day")
|
.startOf("day")
|
||||||
.format("YYYY-MM-DD 00:00:01");
|
.format("YYYY-MM-DD 00:00:01");
|
||||||
const dayEnd = dayjs(e[1]).endOf("day").format("YYYY-MM-DD 23:59:59");
|
const dayEnd = dayjs(e[1]).endOf("day").format("YYYY-MM-DD 23:59:59");
|
||||||
const res = await api.boeuStudyDataGetStudyStaisticsList({
|
let res = null
|
||||||
beginTime: dayStart,
|
if(state.towParmasn.type == 7){
|
||||||
endTime: dayEnd,
|
// 专业力必修数据
|
||||||
dateType: state.towParmasn.dateType,
|
res = await getStudyStatisticsList({
|
||||||
type: state.towParmasn.type,
|
beginTime: dayStart,
|
||||||
});
|
endTime: dayEnd,
|
||||||
|
dateType: state.towParmasn.dateType,
|
||||||
|
type: state.towParmasn.type,
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
res = await api.boeuStudyDataGetStudyStaisticsList({
|
||||||
|
beginTime: dayStart,
|
||||||
|
endTime: dayEnd,
|
||||||
|
dateType: state.towParmasn.dateType,
|
||||||
|
type: state.towParmasn.type,
|
||||||
|
});
|
||||||
|
}
|
||||||
if (res) {
|
if (res) {
|
||||||
state.topChartData = res?.data?.result;
|
state.topChartData = res?.data?.result;
|
||||||
if (
|
if (
|
||||||
|
|||||||
@@ -361,6 +361,7 @@ export default {
|
|||||||
{ text: "课程", num: res.data.result?.courseTotal },
|
{ text: "课程", num: res.data.result?.courseTotal },
|
||||||
{ text: "考试", num: res.data.result?.examTotal },
|
{ text: "考试", num: res.data.result?.examTotal },
|
||||||
{ text: "案例", num: res.data.result?.caseTotal },
|
{ text: "案例", num: res.data.result?.caseTotal },
|
||||||
|
{ text: "专业力", num: 10 },
|
||||||
];
|
];
|
||||||
tabData.value = list;
|
tabData.value = list;
|
||||||
});
|
});
|
||||||
@@ -627,6 +628,27 @@ export default {
|
|||||||
let tableData = ref([]);
|
let tableData = ref([]);
|
||||||
const getTableData = async () => {
|
const getTableData = async () => {
|
||||||
state.tableLoading = true;
|
state.tableLoading = true;
|
||||||
|
if (state.currentTab === 6) {
|
||||||
|
//专业力列表
|
||||||
|
const res = await api.boeuGrowthPlatePageList({
|
||||||
|
startTime: typeof state.publishTime[0] === 'undefined' ? null : state.publishTime[0] +" 00:00:01",
|
||||||
|
endTime: typeof state.publishTime[1] === 'undefined' ? null : state.publishTime[1]+" 23:59:59",
|
||||||
|
growthName: state.name,
|
||||||
|
page: state.pageNo,
|
||||||
|
size: state.pageSize,
|
||||||
|
});
|
||||||
|
if (res) {
|
||||||
|
state.tableDataTotal = res.data.result.total;
|
||||||
|
const list = res.data.result.rows?.map((item) => {
|
||||||
|
return {
|
||||||
|
key: item.id,
|
||||||
|
...item,
|
||||||
|
};
|
||||||
|
});
|
||||||
|
tableData.value = list;
|
||||||
|
state.tableLoading = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (state.currentTab === 4) {
|
if (state.currentTab === 4) {
|
||||||
//考试列表
|
//考试列表
|
||||||
const res = await api.boeuExamPageList({
|
const res = await api.boeuExamPageList({
|
||||||
@@ -877,6 +899,7 @@ export default {
|
|||||||
{ text: "课程", num: "11" },
|
{ text: "课程", num: "11" },
|
||||||
{ text: "考试", num: "10" },
|
{ text: "考试", num: "10" },
|
||||||
{ text: "案例", num: "10" },
|
{ text: "案例", num: "10" },
|
||||||
|
{ text: "专业力必修", num: "10" },
|
||||||
]);
|
]);
|
||||||
const tabClick = (index) => {
|
const tabClick = (index) => {
|
||||||
state.selectedRowKeys = [];
|
state.selectedRowKeys = [];
|
||||||
@@ -1535,6 +1558,102 @@ export default {
|
|||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
} else if (index === 6) {
|
||||||
|
columns.value = [
|
||||||
|
{
|
||||||
|
title: "专业力必修名称",
|
||||||
|
dataIndex: "growthName",
|
||||||
|
key: "growthName",
|
||||||
|
width: 120,
|
||||||
|
ellipsis: true,
|
||||||
|
align: "left",
|
||||||
|
fixed: "left",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "标准岗位名称",
|
||||||
|
dataIndex: "stdPositionDesr",
|
||||||
|
ellipsis: true,
|
||||||
|
key: "stdPositionDesr",
|
||||||
|
width: 120,
|
||||||
|
align: "center",
|
||||||
|
fixed: "left",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "任职资格等级名称",
|
||||||
|
dataIndex: "qualsLevelDesr",
|
||||||
|
ellipsis: true,
|
||||||
|
key: "qualsLevelDesr",
|
||||||
|
width: 120,
|
||||||
|
align: "center",
|
||||||
|
fixed: "left",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "任务数量",
|
||||||
|
dataIndex: "taskNum",
|
||||||
|
ellipsis: true,
|
||||||
|
key: "taskNum",
|
||||||
|
width: 120,
|
||||||
|
align: "center",
|
||||||
|
fixed: "left",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "必修数",
|
||||||
|
dataIndex: "requiredNum",
|
||||||
|
ellipsis: true,
|
||||||
|
key: "requiredNum",
|
||||||
|
width: 120,
|
||||||
|
align: "center",
|
||||||
|
fixed: "left",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "选修数",
|
||||||
|
dataIndex: "electivesNum",
|
||||||
|
ellipsis: true,
|
||||||
|
key: "electivesNum",
|
||||||
|
width: 120,
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "学习人数",
|
||||||
|
dataIndex: "learnerNum",
|
||||||
|
ellipsis: true,
|
||||||
|
key: "learnerNum",
|
||||||
|
width: 120,
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "完成人数",
|
||||||
|
dataIndex: "completedNum",
|
||||||
|
ellipsis: true,
|
||||||
|
key: "completedNum",
|
||||||
|
width: 120,
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "发布时间",
|
||||||
|
dataIndex: "publishedTime",
|
||||||
|
ellipsis: true,
|
||||||
|
key: "publishedTime",
|
||||||
|
width: 120,
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "归属人名称",
|
||||||
|
dataIndex: "attrPersonName",
|
||||||
|
ellipsis: true,
|
||||||
|
key: "attrPersonName",
|
||||||
|
width: 120,
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "状态",
|
||||||
|
dataIndex: "publishedStatus",
|
||||||
|
ellipsis: true,
|
||||||
|
key: "publishedStatus",
|
||||||
|
width: 120,
|
||||||
|
align: "center",
|
||||||
|
},
|
||||||
|
];
|
||||||
}
|
}
|
||||||
getTableData();
|
getTableData();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user