mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 21:36:44 +08:00
选用模板编辑下项目保存时间bug
This commit is contained in:
@@ -43,10 +43,11 @@
|
|||||||
>创建人:
|
>创建人:
|
||||||
<span class="data">{{ assessment.creator }}</span>
|
<span class="data">{{ assessment.creator }}</span>
|
||||||
</span>
|
</span>
|
||||||
|
<!--
|
||||||
<span class="title"
|
<span class="title"
|
||||||
>创建时间:
|
>创建时间:
|
||||||
<span class="data">{{ assessment.time }}</span>
|
<span class="data">{{ assessment.time }}</span>
|
||||||
</span>
|
</span>-->
|
||||||
</div>
|
</div>
|
||||||
<!--
|
<!--
|
||||||
<div v-else>
|
<div v-else>
|
||||||
|
|||||||
@@ -63,12 +63,13 @@
|
|||||||
批量删除
|
批量删除
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
<!--
|
||||||
<a-col :span="1.5" v-if="type == 2">
|
<a-col :span="1.5" v-if="type == 2">
|
||||||
<a-button class="cus-btn white" @click="showChangeModal">
|
<a-button class="cus-btn white" @click="showChangeModal">
|
||||||
<template #icon></template>
|
<template #icon></template>
|
||||||
批量调整关卡
|
批量调整关卡
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-col>
|
</a-col>-->
|
||||||
</a-row>
|
</a-row>
|
||||||
<div style="margin-top: 20px">
|
<div style="margin-top: 20px">
|
||||||
<a-table
|
<a-table
|
||||||
@@ -81,7 +82,7 @@
|
|||||||
>
|
>
|
||||||
<template #action="{ record }">
|
<template #action="{ record }">
|
||||||
<div style="display: flex; justify-content: center">
|
<div style="display: flex; justify-content: center">
|
||||||
<div
|
<!-- <div v-if="type == 2"
|
||||||
@click="del(record.id)"
|
@click="del(record.id)"
|
||||||
style="
|
style="
|
||||||
color: #4ea6ff;
|
color: #4ea6ff;
|
||||||
@@ -93,6 +94,7 @@
|
|||||||
>
|
>
|
||||||
查看
|
查看
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
@click="showChangeModal"
|
@click="showChangeModal"
|
||||||
style="
|
style="
|
||||||
@@ -104,7 +106,7 @@
|
|||||||
"
|
"
|
||||||
>
|
>
|
||||||
调整
|
调整
|
||||||
</div>
|
</div> -->
|
||||||
<div
|
<div
|
||||||
@click="del(record.id)"
|
@click="del(record.id)"
|
||||||
style="
|
style="
|
||||||
@@ -300,9 +302,9 @@ function submitCall(flag) {
|
|||||||
|
|
||||||
// 调整关卡;
|
// 调整关卡;
|
||||||
const visiblene = ref(false);
|
const visiblene = ref(false);
|
||||||
const showChangeModal = () => {
|
//const showChangeModal = () => {
|
||||||
visiblene.value = true;
|
// visiblene.value = true;
|
||||||
};
|
//};
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
.studentopea1 {
|
.studentopea1 {
|
||||||
|
|||||||
@@ -78,6 +78,7 @@
|
|||||||
|
|
||||||
<div class="in">
|
<div class="in">
|
||||||
<a-range-picker
|
<a-range-picker
|
||||||
|
show-time
|
||||||
separator="至"
|
separator="至"
|
||||||
:placeholder="[' 开始时间', ' 结束时间']"
|
:placeholder="[' 开始时间', ' 结束时间']"
|
||||||
v-model:value="projectInfo.rangeTime"
|
v-model:value="projectInfo.rangeTime"
|
||||||
@@ -214,7 +215,7 @@ import TrainClass from "@/components/project/TrainClass";
|
|||||||
import OrgClass from "@/components/project/OrgClass";
|
import OrgClass from "@/components/project/OrgClass";
|
||||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||||
import ProjectLevel from "@/components/project/ProjectLevel";
|
import ProjectLevel from "@/components/project/ProjectLevel";
|
||||||
|
import dayjs from "dayjs";
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
@@ -240,9 +241,8 @@ const getDetail = () =>
|
|||||||
route.query.projectTemplateId &&
|
route.query.projectTemplateId &&
|
||||||
api.templateDetail(route.query.projectTemplateId).then((res) => {
|
api.templateDetail(route.query.projectTemplateId).then((res) => {
|
||||||
projectInfo.value = res.data.data.projectTemplateInfo;
|
projectInfo.value = res.data.data.projectTemplateInfo;
|
||||||
projectInfo.value.rangeTime = [
|
projectInfo.value.rangeTime = [dayjs(projectInfo.value.beginTime).format("YYYY-MM-DD HH:mm"),
|
||||||
projectInfo.value.beginTime,
|
dayjs(projectInfo.value.endTime).format("YYYY-MM-DD HH:mm"),
|
||||||
projectInfo.value.endTime,
|
|
||||||
];
|
];
|
||||||
projectInfo.value.courseSyncFlag = !!projectInfo.value.courseSyncFlag
|
projectInfo.value.courseSyncFlag = !!projectInfo.value.courseSyncFlag
|
||||||
});
|
});
|
||||||
@@ -253,8 +253,8 @@ const backPage = () => {
|
|||||||
|
|
||||||
function timeChange(e) {
|
function timeChange(e) {
|
||||||
if (e && e.length === 2) {
|
if (e && e.length === 2) {
|
||||||
projectInfo.value.beginTime = e[0];
|
projectInfo.value.beginTime = dayjs(e[0]).format("YYYY-MM-DD HH:mm"),
|
||||||
projectInfo.value.endTime = e[1];
|
projectInfo.value.endTime =dayjs(e[1]).format("YYYY-MM-DD HH:mm")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -281,6 +281,8 @@ const createProject = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
projectInfo.value.courseSyncFlag = courseSyncFlag.value ? 1 : 0;
|
projectInfo.value.courseSyncFlag = courseSyncFlag.value ? 1 : 0;
|
||||||
|
projectInfo.value.beginTime = dayjs(projectInfo.value.beginTime).format("YYYY-MM-DD HH:mm"),
|
||||||
|
projectInfo.value.endTime =dayjs(projectInfo.value.endTime).format("YYYY-MM-DD HH:mm")
|
||||||
api
|
api
|
||||||
.templateEdit({
|
.templateEdit({
|
||||||
...projectInfo.value,
|
...projectInfo.value,
|
||||||
|
|||||||
Reference in New Issue
Block a user