项目时间搜索

This commit is contained in:
zhangyc
2022-12-16 00:01:56 +08:00
parent e98d3cd5ea
commit b3e568176e
7 changed files with 146 additions and 119 deletions

View File

@@ -50,7 +50,7 @@
format="YYYY-MM-DD"
style="border-radius: 8px; height: 40px; margin-left: 5px"
:placeholder="[' 开始时间', ' 结束时间']"
valueFormat="X"
/>
</div>
<div style="display: flex; margin-bottom: 20px">
@@ -827,7 +827,7 @@ import * as moment from "moment";
import { changeOwnership } from "@/api/method";
import NameInput from "@/components/project/NameInput";
import { validateName } from "@/api/index1";
import { toDate } from "../../api/method";
//import { toDate } from "../../api/method";
export default {
name: "projectManage",
@@ -1697,16 +1697,13 @@ export default {
beginTime:
state.searchParam.valueDate &&
state.searchParam.valueDate.length === 2
? toDate(
new Date(state.searchParam.valueDate[0].$d).getTime() / 1000,
"Y-M-D")
? dayjs(state.searchParam.valueDate[0]).format("YYYY-MM-DD")
: "",
endTime:
state.searchParam.valueDate &&
state.searchParam.valueDate.length === 2
? toDate(
new Date(state.searchParam.valueDate[1].$d).getTime() / 1000,
"Y-M-D")
? dayjs(state.searchParam.valueDate[1]).format("YYYY-MM-DD")
: "",
})
.then((res) => {