课程报表

This commit is contained in:
weixiaobo@boe.com.cn
2023-08-21 18:25:34 +08:00
parent 88f0f3e315
commit d91308801f

View File

@@ -15,11 +15,12 @@
</div> </div>
<div class="select"> <div class="select">
<a-cascader <a-cascader
change-on-select
:options="option" :options="option"
placeholder="请选择组织"
v-model:value="orgId" v-model:value="orgId"
:allowClear="allowClear"
style="width: 100%" style="width: 100%"
placeholder="请选择归属组织"
:allowClear="allowClear"
:fieldNames="{ :fieldNames="{
label: 'orgName', label: 'orgName',
value: 'organizationId', value: 'organizationId',
@@ -54,6 +55,15 @@
> >
</a-input> </a-input>
</div> </div>
<div class="select">
<a-range-picker
v-model:value="publishTime"
type="date"
valueFormat="YYYY-MM-DD"
:placeholder="['发布开始时间','结束时间']"
style="width: 100%; margin-right: 0px"
/>
</div>
<div style="display: flex; margin-bottom: 20px"> <div style="display: flex; margin-bottom: 20px">
<div class="btnzx btnzx1" @click="searchData"> <div class="btnzx btnzx1" @click="searchData">
<div class="search"></div> <div class="search"></div>
@@ -156,6 +166,7 @@ export default {
name: "", name: "",
type: null, type: null,
createName: "", createName: "",
publishTime: "", // 发布时间
allowClear: true, allowClear: true,
option: [], option: [],
selectedRowKeys: [], selectedRowKeys: [],
@@ -194,6 +205,9 @@ export default {
pageSize: state.pageSize, pageSize: state.pageSize,
type: state.type ? state.type[state.type.length - 1]:null, type: state.type ? state.type[state.type.length - 1]:null,
createName: state.createName, createName: state.createName,
// publishTime: state.publishTime,
startTime: state.publishTime[0],
endTime: state.publishTime[1],
}; };
const res = await api.boeuCourseListPageV2(params); const res = await api.boeuCourseListPageV2(params);
if (res) { if (res) {
@@ -209,14 +223,14 @@ export default {
}; };
// cloumns 表头 // cloumns 表头
const columns = ref([ const columns = ref([
{ // {
title: "编号", // title: "编号",
dataIndex: "num", // dataIndex: "num",
ellipsis: true, // ellipsis: true,
key: "num", // key: "num",
align: "center", // align: "center",
width: 80, // width: 80,
}, // },
{ {
title: "课程名称", title: "课程名称",
dataIndex: "name", dataIndex: "name",
@@ -226,7 +240,7 @@ export default {
width: 120, width: 120,
}, },
{ {
title: "类型", title: "课程类型",
dataIndex: "courseType", dataIndex: "courseType",
ellipsis: true, ellipsis: true,
key: "courseType", key: "courseType",
@@ -241,14 +255,6 @@ export default {
align: "center", align: "center",
width: 120, width: 120,
}, },
{
title: "归属路径图",
dataIndex: "routerName",
ellipsis: true,
key: "routerName",
align: "center",
width: 120,
},
{ {
title: "归属项目", title: "归属项目",
dataIndex: "projectName", dataIndex: "projectName",
@@ -257,6 +263,14 @@ export default {
align: "center", align: "center",
width: 120, width: 120,
}, },
{
title: "归属路径图",
dataIndex: "routerName",
ellipsis: true,
key: "routerName",
align: "center",
width: 120,
},
{ {
title: "一级分类", title: "一级分类",
dataIndex: "oneType", dataIndex: "oneType",
@@ -298,7 +312,7 @@ export default {
width: 120, width: 120,
}, },
{ {
title: "学习人数", title: "学习人数",
dataIndex: "learnerNumber", dataIndex: "learnerNumber",
ellipsis: true, ellipsis: true,
key: "learnerNumber", key: "learnerNumber",
@@ -399,6 +413,7 @@ export default {
state.pageSize = 10; state.pageSize = 10;
state.type = null; state.type = null;
state.createName = ""; state.createName = "";
state.publishTime = [];
getTableData(); getTableData();
}; };
const exportList = () => { const exportList = () => {
@@ -429,6 +444,9 @@ export default {
pageSize: state.pageSize, pageSize: state.pageSize,
type: state.type ? state.type[state.type.length - 1]:null, type: state.type ? state.type[state.type.length - 1]:null,
createName: state.createName, createName: state.createName,
// publishTime: state.publishTime,
startTime: state.publishTime[0],
endTime: state.publishTime[1],
}; };
axios({ axios({
method: "post", method: "post",
@@ -476,6 +494,9 @@ export default {
pageSize: state.pageSize, pageSize: state.pageSize,
type: state.type ? state.type[state.type.length - 1]:null, type: state.type ? state.type[state.type.length - 1]:null,
createName: state.createName, createName: state.createName,
// publishTime: state.publishTime,
startTime: state.publishTime[0],
endTime: state.publishTime[1],
}; };
axios({ axios({
method: "post", method: "post",
@@ -541,6 +562,9 @@ export default {
pageSize: state.pageSize, pageSize: state.pageSize,
type: state.type ? state.type[state.type.length - 1]:null, type: state.type ? state.type[state.type.length - 1]:null,
createName: state.createName, createName: state.createName,
// publishTime: state.publishTime,
startTime: state.publishTime[0],
endTime: state.publishTime[1],
}; };
axios({ axios({
method: "post", method: "post",
@@ -617,7 +641,7 @@ export default {
.select { .select {
margin-right: 20px; margin-right: 20px;
margin-bottom: 20px; margin-bottom: 20px;
width: calc((100% - 76px - 240px) / 4); width: calc((100% - 76px - 220px) / 3);
} }
.btnz { .btnz {