mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 10:56:46 +08:00
问答报表
This commit is contained in:
@@ -23,6 +23,15 @@
|
||||
>
|
||||
</a-input>
|
||||
</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 class="btnzx btnzx1" @click="searchData">
|
||||
<div class="search"></div>
|
||||
@@ -104,11 +113,13 @@ export default {
|
||||
pageSize: 10, // 每页条数
|
||||
pageNo: 1, //当前页码
|
||||
createName: "",
|
||||
publishTime: "", // 发布时间
|
||||
title: "",
|
||||
selectedRowKeys: [],
|
||||
});
|
||||
const reset = async () => {
|
||||
state.createName = "";
|
||||
state.publishTime = [];
|
||||
state.title = "";
|
||||
state.selectedRowKeys = []
|
||||
getTableData();
|
||||
@@ -118,13 +129,16 @@ export default {
|
||||
const params = {
|
||||
title: state.title,
|
||||
createName: state.createName,
|
||||
// publishTime: state.publishTime,
|
||||
startTime: state.publishTime[0],
|
||||
endTime: state.publishTime[1],
|
||||
pageNo: state.pageNo,
|
||||
pageSize: state.pageSize,
|
||||
};
|
||||
const res = await api.boeuQuestionPageList(params);
|
||||
if (res) {
|
||||
tableData.value = res.data.rows;
|
||||
state.tableDataTotal = res.data.total;
|
||||
tableData.value = res.data.result.rows;
|
||||
state.tableDataTotal = res.data.result.total;
|
||||
state.tableLoading = false;
|
||||
}
|
||||
};
|
||||
@@ -133,47 +147,47 @@ export default {
|
||||
// cloumns 表头
|
||||
const columns = ref([
|
||||
{
|
||||
title: "问答标题",
|
||||
title: "问答名称",
|
||||
dataIndex: "title",
|
||||
ellipsis: true,
|
||||
key: "title",
|
||||
align: "center",
|
||||
},
|
||||
// {
|
||||
// title: "归属组织",
|
||||
// dataIndex: "organizationName",
|
||||
// ellipsis: true,
|
||||
// key: "organizationName",
|
||||
// align: "center",
|
||||
// },
|
||||
{
|
||||
title: "归属组织",
|
||||
dataIndex: "organizationName",
|
||||
ellipsis: true,
|
||||
key: "organizationName",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "浏览量",
|
||||
title: "浏览数",
|
||||
dataIndex: "views",
|
||||
ellipsis: true,
|
||||
key: "views",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "评论数",
|
||||
title: "点赞数",
|
||||
dataIndex: "praises",
|
||||
ellipsis: true,
|
||||
key: "praises",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "回答数",
|
||||
dataIndex: "answers",
|
||||
ellipsis: true,
|
||||
key: "answers",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "分享量",
|
||||
title: "分享数",
|
||||
dataIndex: "shares",
|
||||
ellipsis: true,
|
||||
key: "shares",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "点赞量",
|
||||
dataIndex: "praises",
|
||||
ellipsis: true,
|
||||
key: "praises",
|
||||
align: "center",
|
||||
},
|
||||
{
|
||||
title: "收藏数",
|
||||
dataIndex: "favorites",
|
||||
@@ -227,6 +241,9 @@ export default {
|
||||
const params = {
|
||||
title: state.title,
|
||||
createName: state.createName,
|
||||
// publishTime: state.publishTime,
|
||||
startTime: state.publishTime[0],
|
||||
endTime: state.publishTime[1],
|
||||
pageNo: state.pageNo,
|
||||
pageSize: state.pageSize,
|
||||
};
|
||||
@@ -294,7 +311,7 @@ export default {
|
||||
.select {
|
||||
margin-right: 20px;
|
||||
margin-bottom: 20px;
|
||||
width: calc((100% - 76px - 200px) / 2);
|
||||
width: calc((100% - 76px - 220px) / 3);
|
||||
}
|
||||
.btnz {
|
||||
padding: 0px 26px 0px 26px;
|
||||
|
||||
Reference in New Issue
Block a user