mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 12:26:47 +08:00
课程搜索
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
<a-range-picker
|
||||
v-model:value="projectTime"
|
||||
style="width: 420px"
|
||||
valueFormat="X"
|
||||
format="YYYY-MM-DD"
|
||||
separator="至"
|
||||
:placeholder="[' 开始时间', ' 结束时间']"
|
||||
/>
|
||||
@@ -2958,26 +2958,26 @@ const columns1 = [
|
||||
return text ? text : "-";
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "学习人数",
|
||||
width: 130,
|
||||
dataIndex: "stunum",
|
||||
key: "4",
|
||||
align: "center",
|
||||
customRender: ({ text }) => {
|
||||
return text ? text : "0";
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "评分",
|
||||
width: 130,
|
||||
dataIndex: "grade",
|
||||
key: "5",
|
||||
align: "center",
|
||||
customRender: ({ text }) => {
|
||||
return text ? text : "0";
|
||||
},
|
||||
},
|
||||
// {
|
||||
// title: "学习人数",
|
||||
// width: 130,
|
||||
// dataIndex: "stunum",
|
||||
// key: "4",
|
||||
// align: "center",
|
||||
// customRender: ({ text }) => {
|
||||
// // return text ? text : "0";
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// title: "评分",
|
||||
// width: 130,
|
||||
// dataIndex: "grade",
|
||||
// key: "5",
|
||||
// align: "center",
|
||||
// customRender: ({ text }) => {
|
||||
// return text ? text : "0";
|
||||
// },
|
||||
// },
|
||||
{
|
||||
title: "状态",
|
||||
width: 130,
|
||||
@@ -3632,7 +3632,7 @@ export default defineComponent({
|
||||
|
||||
imageUrl: "",
|
||||
imgList: [],
|
||||
validate: false,
|
||||
validate:true,
|
||||
|
||||
pageSize2: 10,
|
||||
currentPage2: 0,
|
||||
@@ -3984,8 +3984,16 @@ export default defineComponent({
|
||||
let startTime = "";
|
||||
let endTime = "";
|
||||
if (state.projectTime) {
|
||||
startTime = state.projectTime[0];
|
||||
endTime = state.projectTime[1];
|
||||
|
||||
startTime = toDate(
|
||||
new Date(state.projectTime[0].$d).getTime() / 1000,
|
||||
"Y-M-D"
|
||||
);
|
||||
endTime = toDate(
|
||||
new Date(state.projectTime[1].$d).getTime() / 1000,
|
||||
"Y-M-D"
|
||||
);
|
||||
|
||||
}
|
||||
let res = await list({
|
||||
pageNo: state.currentPage1,
|
||||
|
||||
Reference in New Issue
Block a user