mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -75,7 +75,7 @@
|
|||||||
<a-range-picker
|
<a-range-picker
|
||||||
v-model:value="projectTime"
|
v-model:value="projectTime"
|
||||||
style="width: 420px"
|
style="width: 420px"
|
||||||
valueFormat="X"
|
format="YYYY-MM-DD"
|
||||||
separator="至"
|
separator="至"
|
||||||
:placeholder="[' 开始时间', ' 结束时间']"
|
:placeholder="[' 开始时间', ' 结束时间']"
|
||||||
/>
|
/>
|
||||||
@@ -2958,26 +2958,26 @@ const columns1 = [
|
|||||||
return text ? text : "-";
|
return text ? text : "-";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: "学习人数",
|
// title: "学习人数",
|
||||||
width: 130,
|
// width: 130,
|
||||||
dataIndex: "stunum",
|
// dataIndex: "stunum",
|
||||||
key: "4",
|
// key: "4",
|
||||||
align: "center",
|
// align: "center",
|
||||||
customRender: ({ text }) => {
|
// customRender: ({ text }) => {
|
||||||
return text ? text : "0";
|
// // return text ? text : "0";
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
title: "评分",
|
// title: "评分",
|
||||||
width: 130,
|
// width: 130,
|
||||||
dataIndex: "grade",
|
// dataIndex: "grade",
|
||||||
key: "5",
|
// key: "5",
|
||||||
align: "center",
|
// align: "center",
|
||||||
customRender: ({ text }) => {
|
// customRender: ({ text }) => {
|
||||||
return text ? text : "0";
|
// return text ? text : "0";
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: "状态",
|
title: "状态",
|
||||||
width: 130,
|
width: 130,
|
||||||
@@ -3632,7 +3632,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
imageUrl: "",
|
imageUrl: "",
|
||||||
imgList: [],
|
imgList: [],
|
||||||
validate: false,
|
validate:true,
|
||||||
|
|
||||||
pageSize2: 10,
|
pageSize2: 10,
|
||||||
currentPage2: 0,
|
currentPage2: 0,
|
||||||
@@ -3984,8 +3984,16 @@ export default defineComponent({
|
|||||||
let startTime = "";
|
let startTime = "";
|
||||||
let endTime = "";
|
let endTime = "";
|
||||||
if (state.projectTime) {
|
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({
|
let res = await list({
|
||||||
pageNo: state.currentPage1,
|
pageNo: state.currentPage1,
|
||||||
|
|||||||
@@ -1499,14 +1499,14 @@ export default {
|
|||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// title: "进度",
|
title: "进度",
|
||||||
// dataIndex: "jin",
|
dataIndex: "jin",
|
||||||
// key: "jin",
|
key: "jin",
|
||||||
// width: 110,
|
width: 110,
|
||||||
// align: "center",
|
align: "center",
|
||||||
// className: "h",
|
className: "h",
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
title: "开始时间",
|
title: "开始时间",
|
||||||
dataIndex: "time",
|
dataIndex: "time",
|
||||||
|
|||||||
@@ -1547,14 +1547,14 @@ export default {
|
|||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
},
|
},
|
||||||
// {
|
{
|
||||||
// title: "进度",
|
title: "进度",
|
||||||
// dataIndex: "jin",
|
dataIndex: "jin",
|
||||||
// key: "jin",
|
key: "jin",
|
||||||
// width: 110,
|
width: 110,
|
||||||
// align: "center",
|
align: "center",
|
||||||
// className: "h",
|
className: "h",
|
||||||
// },
|
},
|
||||||
{
|
{
|
||||||
title: "开始时间",
|
title: "开始时间",
|
||||||
dataIndex: "time",
|
dataIndex: "time",
|
||||||
|
|||||||
@@ -47,12 +47,7 @@
|
|||||||
<div class="addTime">创建时间:</div>
|
<div class="addTime">创建时间:</div>
|
||||||
<a-range-picker
|
<a-range-picker
|
||||||
v-model:value="searchParam.valueDate"
|
v-model:value="searchParam.valueDate"
|
||||||
:show-time="{
|
format="YYYY-MM-DD"
|
||||||
defaultValue: [
|
|
||||||
moment('00:00:00', 'HH:mm:ss'),
|
|
||||||
moment('23:59:59', 'HH:mm:ss'),
|
|
||||||
],
|
|
||||||
}"
|
|
||||||
style="border-radius: 8px; height: 40px; margin-left: 5px"
|
style="border-radius: 8px; height: 40px; margin-left: 5px"
|
||||||
:placeholder="[' 开始时间', ' 结束时间']"
|
:placeholder="[' 开始时间', ' 结束时间']"
|
||||||
valueFormat="X"
|
valueFormat="X"
|
||||||
@@ -832,6 +827,7 @@ import * as moment from "moment";
|
|||||||
import { changeOwnership } from "@/api/method";
|
import { changeOwnership } from "@/api/method";
|
||||||
import NameInput from "@/components/project/NameInput";
|
import NameInput from "@/components/project/NameInput";
|
||||||
import { validateName } from "@/api/index1";
|
import { validateName } from "@/api/index1";
|
||||||
|
import { toDate } from "../../api/method";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "projectManage",
|
name: "projectManage",
|
||||||
@@ -1701,12 +1697,16 @@ export default {
|
|||||||
beginTime:
|
beginTime:
|
||||||
state.searchParam.valueDate &&
|
state.searchParam.valueDate &&
|
||||||
state.searchParam.valueDate.length === 2
|
state.searchParam.valueDate.length === 2
|
||||||
? state.searchParam.valueDate[0]
|
? toDate(
|
||||||
|
new Date(state.searchParam.valueDate[0].$d).getTime() / 1000,
|
||||||
|
"Y-M-D")
|
||||||
: "",
|
: "",
|
||||||
endTime:
|
endTime:
|
||||||
state.searchParam.valueDate &&
|
state.searchParam.valueDate &&
|
||||||
state.searchParam.valueDate.length === 2
|
state.searchParam.valueDate.length === 2
|
||||||
? state.searchParam.valueDate[1]
|
? toDate(
|
||||||
|
new Date(state.searchParam.valueDate[1].$d).getTime() / 1000,
|
||||||
|
"Y-M-D")
|
||||||
: "",
|
: "",
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|||||||
@@ -3108,7 +3108,7 @@ export default {
|
|||||||
title: "姓名",
|
title: "姓名",
|
||||||
dataIndex: "name",
|
dataIndex: "name",
|
||||||
key: "name",
|
key: "name",
|
||||||
// width: 30,
|
width:"20%",
|
||||||
align: "left",
|
align: "left",
|
||||||
className: "h",
|
className: "h",
|
||||||
// scopedSlots: { customRender: "action" }, //引入的插槽
|
// scopedSlots: { customRender: "action" }, //引入的插槽
|
||||||
@@ -3145,9 +3145,10 @@ export default {
|
|||||||
title: "部门",
|
title: "部门",
|
||||||
dataIndex: "bum",
|
dataIndex: "bum",
|
||||||
key: "bum",
|
key: "bum",
|
||||||
// width: 50,
|
width:"10%",
|
||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// title: "岗位",
|
// title: "岗位",
|
||||||
@@ -3165,14 +3166,15 @@ export default {
|
|||||||
// align: "center",
|
// align: "center",
|
||||||
// className: "h",
|
// className: "h",
|
||||||
// },
|
// },
|
||||||
// {
|
{
|
||||||
// title: "进度",
|
title: "进度",
|
||||||
// dataIndex: "progress",
|
dataIndex: "progress",
|
||||||
// key: "progress",
|
key: "progress",
|
||||||
// width: 30,
|
width:"10%",
|
||||||
// align: "center",
|
align: "center",
|
||||||
// className: "h",
|
className: "h",
|
||||||
// },
|
ellipsis: true,
|
||||||
|
},
|
||||||
// {
|
// {
|
||||||
// title: "证书",
|
// title: "证书",
|
||||||
// dataIndex: "diploma",
|
// dataIndex: "diploma",
|
||||||
@@ -3185,7 +3187,7 @@ export default {
|
|||||||
title: "最近学习时间",
|
title: "最近学习时间",
|
||||||
dataIndex: "stutime",
|
dataIndex: "stutime",
|
||||||
key: "stutime",
|
key: "stutime",
|
||||||
// width: 50,
|
width:"20%",
|
||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
// sorter: {
|
// sorter: {
|
||||||
@@ -3197,15 +3199,16 @@ export default {
|
|||||||
title: "加入方式",
|
title: "加入方式",
|
||||||
dataIndex: "putin",
|
dataIndex: "putin",
|
||||||
key: "putin",
|
key: "putin",
|
||||||
// width: 40,
|
width:"10%",
|
||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
dataIndex: "operation",
|
dataIndex: "operation",
|
||||||
key: "operation",
|
key: "operation",
|
||||||
// width: 60,
|
width:"20%",
|
||||||
align: "center",
|
align: "center",
|
||||||
className: "h",
|
className: "h",
|
||||||
scopedSlots: { customRender: "action" }, //引入的插槽
|
scopedSlots: { customRender: "action" }, //引入的插槽
|
||||||
|
|||||||
Reference in New Issue
Block a user