mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
提交
This commit is contained in:
@@ -87,7 +87,7 @@ export const taskCompletionRate = (growthId) => http.get('/professional/manageme
|
|||||||
export const getStudyStatisticsList = (data) => http.post('/professional/statics/getStudyStatisticsList', data)
|
export const getStudyStatisticsList = (data) => http.post('/professional/statics/getStudyStatisticsList', data)
|
||||||
|
|
||||||
// 专业力列表
|
// 专业力列表
|
||||||
export const boeuGrowthPlatePageList = (obj) => http.post('/boeu/growth/pageList', obj)
|
export const boeuGrowthPlatePageList = (obj) => http.post('/boeu/grow/pageList', obj)
|
||||||
|
|
||||||
|
|
||||||
// 是否按顺序学习
|
// 是否按顺序学习
|
||||||
|
|||||||
@@ -32,4 +32,4 @@ export const boeuCasePlatePageList = (obj) => http.post('/boeu/case/pageList', o
|
|||||||
|
|
||||||
|
|
||||||
// 专业力列表
|
// 专业力列表
|
||||||
export const boeuGrowthPlatePageList = (obj) => http.post('/boeu/growth/pageList', obj)
|
export const boeuGrowthPlatePageList = (obj) => http.post('/boeu/grow/pageList', obj)
|
||||||
@@ -68,7 +68,7 @@
|
|||||||
<div class="echartsTwo">
|
<div class="echartsTwo">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<div class="left">学习情况</div>
|
<div class="left">学习情况</div>
|
||||||
<div class="right" @click="exportTwoData" v-show="towParmasn.type != 2">
|
<div class="right" @click="exportTwoData" v-show="towParmasn.type != 2 && towParmasn.type != 7">
|
||||||
<img src="../../assets/images/coursewareManage/export1.png" alt="" />
|
<img src="../../assets/images/coursewareManage/export1.png" alt="" />
|
||||||
<span>导出学习情况</span>
|
<span>导出学习情况</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<a-input
|
<a-input
|
||||||
v-model:value="stdPositionDesr"
|
v-model:value="stdPositionDesr"
|
||||||
:disabled="editId"
|
:disabled="editId"
|
||||||
style=" height: 40px; border-radius: 8px"
|
style="height: 40px; border-radius: 8px"
|
||||||
allowClear
|
allowClear
|
||||||
placeholder="填写标准岗位"
|
placeholder="填写标准岗位"
|
||||||
/>
|
/>
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
<a-input
|
<a-input
|
||||||
v-model:value="qualsLevelDesr"
|
v-model:value="qualsLevelDesr"
|
||||||
:disabled="editId"
|
:disabled="editId"
|
||||||
style=" height: 40px; border-radius: 8px"
|
style="height: 40px; border-radius: 8px"
|
||||||
allowClear
|
allowClear
|
||||||
placeholder="填写任职资格等级"
|
placeholder="填写任职资格等级"
|
||||||
/>
|
/>
|
||||||
@@ -460,7 +460,19 @@ export default {
|
|||||||
if (!state.selectedRowKeys?.length) {
|
if (!state.selectedRowKeys?.length) {
|
||||||
return message.warning("请至少选择一条数据进行导出");
|
return message.warning("请至少选择一条数据进行导出");
|
||||||
} else {
|
} else {
|
||||||
if (state.currentTab === 5) {
|
if (state.currentTab === 6) {
|
||||||
|
axios({
|
||||||
|
method: "get",
|
||||||
|
url: "/report/boeu/grow/export",
|
||||||
|
params: { ids: `${state.selectedRowKeys}` },
|
||||||
|
responseType: "blob",
|
||||||
|
headers: {
|
||||||
|
token: Cookies.get("token"),
|
||||||
|
},
|
||||||
|
}).then((res) => {
|
||||||
|
downLoad(res.data, "专业力必修.xlsx");
|
||||||
|
});
|
||||||
|
} else if (state.currentTab === 5) {
|
||||||
axios({
|
axios({
|
||||||
method: "get",
|
method: "get",
|
||||||
url: "/report/boeu/case/export",
|
url: "/report/boeu/case/export",
|
||||||
@@ -537,7 +549,32 @@ export default {
|
|||||||
};
|
};
|
||||||
// 全部导出接口
|
// 全部导出接口
|
||||||
const exportClickAll = async () => {
|
const exportClickAll = async () => {
|
||||||
if (state.currentTab === 5) {
|
if (state.currentTab === 6) {
|
||||||
|
axios({
|
||||||
|
method: "post",
|
||||||
|
url: "/report/boeu/grow/exportAll",
|
||||||
|
data: {
|
||||||
|
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",
|
||||||
|
qualsLevelDesr: state.qualsLevelDesr,
|
||||||
|
stdPositionDesr: state.stdPositionDesr,
|
||||||
|
page: state.pageNo,
|
||||||
|
size: state.pageSize,
|
||||||
|
},
|
||||||
|
responseType: "blob",
|
||||||
|
headers: {
|
||||||
|
token: Cookies.get("token"),
|
||||||
|
},
|
||||||
|
}).then((res) => {
|
||||||
|
downLoad(res.data, "专业力必修.xlsx");
|
||||||
|
});
|
||||||
|
} else if (state.currentTab === 5) {
|
||||||
axios({
|
axios({
|
||||||
method: "post",
|
method: "post",
|
||||||
url: "/report/boeu/case/exportAll",
|
url: "/report/boeu/case/exportAll",
|
||||||
@@ -1670,15 +1707,15 @@ export default {
|
|||||||
];
|
];
|
||||||
} else if (index === 6) {
|
} else if (index === 6) {
|
||||||
columns.value = [
|
columns.value = [
|
||||||
{
|
// {
|
||||||
title: "专业力必修",
|
// title: "专业力必修",
|
||||||
dataIndex: "growthName",
|
// dataIndex: "growthName",
|
||||||
key: "growthName",
|
// key: "growthName",
|
||||||
width: 200,
|
// width: 200,
|
||||||
ellipsis: true,
|
// ellipsis: true,
|
||||||
align: "center",
|
// align: "center",
|
||||||
fixed: "left",
|
// fixed: "left",
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: "标准岗位名称",
|
title: "标准岗位名称",
|
||||||
dataIndex: "stdPositionDesr",
|
dataIndex: "stdPositionDesr",
|
||||||
|
|||||||
@@ -48,7 +48,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 以下为导出按钮 -->
|
<!-- 以下为导出按钮 -->
|
||||||
<!-- <div class="btnzs">
|
<div class="btnzs">
|
||||||
<div class="btnz btnz3" @click="exportAllbtnz">
|
<div class="btnz btnz3" @click="exportAllbtnz">
|
||||||
<div>
|
<div>
|
||||||
<img src="../../assets/images/coursewareManage/export1.png" alt="" />
|
<img src="../../assets/images/coursewareManage/export1.png" alt="" />
|
||||||
@@ -61,11 +61,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btnzText">导出详细信息</div>
|
<div class="btnzText">导出详细信息</div>
|
||||||
</div>
|
</div>
|
||||||
</div> -->
|
</div>
|
||||||
<!-- 以下为table表格 -->
|
<!-- 以下为table表格 -->
|
||||||
<div class="tableBox">
|
<div class="tableBox">
|
||||||
<a-table
|
<a-table
|
||||||
rowKey="boeRouterInfoId"
|
rowKey="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:data-source="tableData"
|
:data-source="tableData"
|
||||||
:loading="tableLoading"
|
:loading="tableLoading"
|
||||||
@@ -130,9 +130,7 @@ import { ref, toRefs, reactive, onMounted } from "vue";
|
|||||||
import downLoad from "../../utils/downLoad";
|
import downLoad from "../../utils/downLoad";
|
||||||
import Cookies from "vue-cookies";
|
import Cookies from "vue-cookies";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import {
|
import { listData } from "@/api/growthpath";
|
||||||
listData,
|
|
||||||
} from "@/api/growthpath";
|
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { useStore } from "vuex";
|
import { useStore } from "vuex";
|
||||||
export default {
|
export default {
|
||||||
@@ -202,7 +200,7 @@ export default {
|
|||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
key: "band",
|
key: "band",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 90,
|
width: 110,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "总人数",
|
title: "总人数",
|
||||||
@@ -244,7 +242,7 @@ export default {
|
|||||||
align: "center",
|
align: "center",
|
||||||
width: 90,
|
width: 90,
|
||||||
customRender: ({ record: { comLearnNum, learnNum } }) =>
|
customRender: ({ record: { comLearnNum, learnNum } }) =>
|
||||||
`${((comLearnNum / learnNum) * 100).toFixed()}%`,
|
learnNum && `${((comLearnNum / learnNum) * 100).toFixed()}%`,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "发布时间",
|
title: "发布时间",
|
||||||
@@ -252,7 +250,7 @@ export default {
|
|||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
key: "publishTime",
|
key: "publishTime",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 120,
|
width: 140,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "发布状态",
|
title: "发布状态",
|
||||||
@@ -270,38 +268,38 @@ export default {
|
|||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
key: "createTime",
|
key: "createTime",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 120,
|
width: 140,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "操作",
|
||||||
|
dataIndex: "operation",
|
||||||
|
key: "operation",
|
||||||
|
width: 200,
|
||||||
|
align: "center",
|
||||||
|
fixed: "right",
|
||||||
|
customRender: ({ record }) => {
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<a
|
||||||
|
key="export"
|
||||||
|
onClick={() => {
|
||||||
|
oneCurrentExport(record);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
导出学习记录
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
// {
|
|
||||||
// title: "操作",
|
|
||||||
// dataIndex: "operation",
|
|
||||||
// key: "operation",
|
|
||||||
// width: 200,
|
|
||||||
// align: "center",
|
|
||||||
// fixed: "right",
|
|
||||||
// customRender: (record) => {
|
|
||||||
// return (
|
|
||||||
// <div>
|
|
||||||
// <a
|
|
||||||
// key="export"
|
|
||||||
// onClick={() => {
|
|
||||||
// oneCurrentExport(record);
|
|
||||||
// }}
|
|
||||||
// >
|
|
||||||
// 导出学习记录
|
|
||||||
// </a>
|
|
||||||
// </div>
|
|
||||||
// );
|
|
||||||
// },
|
|
||||||
// },
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// 导出当前数据
|
// 导出当前数据
|
||||||
const oneCurrentExport = (record) => {
|
const oneCurrentExport = (record) => {
|
||||||
axios({
|
axios({
|
||||||
method: "post",
|
method: "get",
|
||||||
url: "/report/boeu/router/exportCurrentRecord",
|
url: "/report/boeu/grow/exportGrowth",
|
||||||
data: { routerId: `${record.record.boeRouterInfoId}` },
|
params: { ids: `${record.id}` },
|
||||||
responseType: "blob",
|
responseType: "blob",
|
||||||
headers: {
|
headers: {
|
||||||
token: Cookies.get("token"),
|
token: Cookies.get("token"),
|
||||||
@@ -357,103 +355,73 @@ export default {
|
|||||||
};
|
};
|
||||||
//导出详细信息
|
//导出详细信息
|
||||||
const exportbtnz = async () => {
|
const exportbtnz = async () => {
|
||||||
if (state.selectedRowKeys?.length > 0) {
|
if (!state.selectedRowKeys?.length) {
|
||||||
axios({
|
message.warning("请选择要导出的数据");
|
||||||
method: "post",
|
return;
|
||||||
url: "/report/boeu/router/exportCurrentRecord",
|
|
||||||
data: { routerIdList: state.selectedRowKeys },
|
|
||||||
responseType: "blob",
|
|
||||||
headers: {
|
|
||||||
token: Cookies.get("token"),
|
|
||||||
},
|
|
||||||
}).then((res) => {
|
|
||||||
downLoad(res.data, "专业力详细信息.xlsx");
|
|
||||||
}),
|
|
||||||
(err) => {
|
|
||||||
message.error(err);
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
const params = {
|
|
||||||
createName: state.createName,
|
|
||||||
// publishTime: state.publishTime,
|
|
||||||
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",
|
|
||||||
routerName: state.routerName,
|
|
||||||
orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
|
||||||
};
|
|
||||||
axios({
|
|
||||||
method: "post",
|
|
||||||
url: "/report/boeu/router/exportCurrentRecord",
|
|
||||||
data: params,
|
|
||||||
responseType: "blob",
|
|
||||||
headers: {
|
|
||||||
token: Cookies.get("token"),
|
|
||||||
},
|
|
||||||
}).then((res) => {
|
|
||||||
if (res.data.status && res.data.status == 600) {
|
|
||||||
message.error(res.data.status);
|
|
||||||
} else {
|
|
||||||
downLoad(res.data, "专业力必修详细信息.xlsx");
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
(err) => {
|
|
||||||
message.error(err);
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
const params = {
|
||||||
|
pageNum: state.pageNum,
|
||||||
|
pageSize: state.pageSize,
|
||||||
|
stdPositionDesr: state.stdPositionDesr,
|
||||||
|
qualsLevelDesr: state.qualsLevelDesr,
|
||||||
|
isPublished: state.isPublished,
|
||||||
|
ids: state.selectedRowKeys.toString(),
|
||||||
|
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",
|
||||||
|
};
|
||||||
|
axios({
|
||||||
|
method: "get",
|
||||||
|
url: "/report/boeu/grow/exportGrowth",
|
||||||
|
params,
|
||||||
|
responseType: "blob",
|
||||||
|
headers: {
|
||||||
|
token: Cookies.get("token"),
|
||||||
|
},
|
||||||
|
}).then((res) => {
|
||||||
|
downLoad(res.data, "专业力详细信息.xlsx");
|
||||||
|
}),
|
||||||
|
(err) => {
|
||||||
|
message.error(err);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
// 导出列表信息
|
// 导出列表信息
|
||||||
const exportAllbtnz = async () => {
|
const exportAllbtnz = async () => {
|
||||||
if (state.selectedRowKeys?.length > 0) {
|
const params = {
|
||||||
axios({
|
pageNum: state.pageNum,
|
||||||
method: "post",
|
pageSize: state.pageSize,
|
||||||
url: "/report/boeu/router/exportList",
|
stdPositionDesr: state.stdPositionDesr,
|
||||||
data: { routerIdList: state.selectedRowKeys },
|
qualsLevelDesr: state.qualsLevelDesr,
|
||||||
responseType: "blob",
|
isPublished: state.isPublished,
|
||||||
headers: {
|
ids: state.selectedRowKeys.toString(),
|
||||||
token: Cookies.get("token"),
|
startTime:
|
||||||
},
|
typeof state.publishTime[0] === "undefined"
|
||||||
}).then((res) => {
|
? null
|
||||||
downLoad(res.data, "专业力必修列表信息.xlsx");
|
: state.publishTime[0] + " 00:00:01",
|
||||||
}),
|
endTime:
|
||||||
(err) => {
|
typeof state.publishTime[1] == "undefined"
|
||||||
message.error(err);
|
? null
|
||||||
};
|
: state.publishTime[1] + " 23:59:59",
|
||||||
} else {
|
};
|
||||||
const params = {
|
axios({
|
||||||
createName: state.createName,
|
method: "post",
|
||||||
// publishTime: state.publishTime,
|
url: "/report/boeu/grow/exportGrowthAll",
|
||||||
startTime:
|
data: params,
|
||||||
typeof state.publishTime[0] === "undefined"
|
responseType: "blob",
|
||||||
? null
|
headers: {
|
||||||
: state.publishTime[0] + " 00:00:01",
|
token: Cookies.get("token"),
|
||||||
endTime:
|
},
|
||||||
typeof state.publishTime[1] == "undefined"
|
}).then((res) => {
|
||||||
? null
|
downLoad(res.data, "专业力必修信息.xlsx");
|
||||||
: state.publishTime[1] + " 23:59:59",
|
}),
|
||||||
routerName: state.routerName,
|
(err) => {
|
||||||
orgId: state.orgId ? state.orgId[state.orgId.length - 1] : null,
|
message.error(err);
|
||||||
};
|
};
|
||||||
axios({
|
|
||||||
method: "post",
|
|
||||||
url: "/report/boeu/router/exportList",
|
|
||||||
data: params,
|
|
||||||
responseType: "blob",
|
|
||||||
headers: {
|
|
||||||
token: Cookies.get("token"),
|
|
||||||
},
|
|
||||||
}).then((res) => {
|
|
||||||
downLoad(res.data, "专业力必修信息.xlsx");
|
|
||||||
}),
|
|
||||||
(err) => {
|
|
||||||
message.error(err);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
state.tableLoading = true;
|
state.tableLoading = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user