mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
时间日期调整
This commit is contained in:
@@ -60,7 +60,7 @@ function debounce(func, wait) {
|
||||
timeout = setTimeout(() => func.apply(this, args), wait);
|
||||
};
|
||||
}
|
||||
const memberParam = ref({name: '', pageNo:1, pageSize: 999,teacherType:2})
|
||||
const memberParam = ref({name: '', pageNo:1, pageSize: 999,teacherType:2 ,status:1})
|
||||
|
||||
const userList = ref([])
|
||||
const loading = ref(false)
|
||||
|
||||
@@ -168,7 +168,7 @@
|
||||
<a-row :gutter="16">
|
||||
<a-col :span="12">
|
||||
<a-form-item label="授课/课程日期 :" name="teachingDate">
|
||||
<a-date-picker class="draitem" v-model:value="teachingDate" style="width:100%" format="YYYY-MM-DD"
|
||||
<a-date-picker class="draitem" v-model:value="teachingDate" style="width:100%" format="YYYY-MM-DD HH:mm" :show-time="{ format: 'HH:mm' }"
|
||||
placeholder="请选择课程日期" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -666,7 +666,7 @@ export default {
|
||||
}
|
||||
//保存
|
||||
const createTeacherDialog = async () => {
|
||||
state.formParam.teachingDate = state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD").toString() : ""
|
||||
state.formParam.teachingDate = state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD HH:mm").toString() : ""
|
||||
console.log(state.formParam)
|
||||
const formItemNames = Object.keys(rules);
|
||||
for (let i = 0; i < formItemNames.length; i++) {
|
||||
@@ -778,7 +778,7 @@ export default {
|
||||
const TeacherSystem = () => {
|
||||
getTeacherCourseList({ id: state.lookTeacherId }).then((res) => {
|
||||
state.formParam = res.data.data
|
||||
state.teachingDate = dayjs(res.data.data.teachingDate, 'YYYY-MM-DD'),
|
||||
state.teachingDate = dayjs(res.data.data.teachingDate, 'YYYY-MM-DD HH:mm'),
|
||||
state.formParam.name=state.formParam.teacherName
|
||||
console.log(state.formParam);
|
||||
})
|
||||
|
||||
@@ -229,7 +229,7 @@
|
||||
<a-row :gutter="16">
|
||||
<a-col :span="12">
|
||||
<a-form-item label="授课/课程日期 :" name="teachingDate">
|
||||
<a-date-picker class="draitem" v-model:value="teachingDate" style="width:100%" format="YYYY-MM-DD"
|
||||
<a-date-picker class="draitem" v-model:value="teachingDate" style="width:100%" format="YYYY-MM-DD HH:mm" :show-time="{ format: 'HH:mm' }"
|
||||
type="datetime"
|
||||
placeholder="请选择课程日期" />
|
||||
<!-- <a-time-picker v-model:value="value" format="HH:mm" /> -->
|
||||
@@ -894,7 +894,7 @@ export default {
|
||||
state.formParam.userNo =state.formParam.name?.split('/')[1]
|
||||
state.formParam.tsystemName = state.tSystemNames.systemName
|
||||
state.formParam.tsystemId = state.tSystemNames?.systemId
|
||||
state.formParam.teachingDate=state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD").toString() : " "
|
||||
state.formParam.teachingDate=state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD HH:mm").toString() : " "
|
||||
const formItemNames = Object.keys(rules);
|
||||
for(let i=0;i<formItemNames.length;i++){
|
||||
const result = await validateField(formItemNames[i]);
|
||||
@@ -1051,7 +1051,7 @@ export default {
|
||||
state.formParam.levelId = res.data.data.levelId
|
||||
state.formParam.name = res.data.data.teacherName+'/'+res.data.data.userNo
|
||||
state.formParam.orgLists = res.data.data.expertiseNames?.split(',').map(item=>({ name: item }))
|
||||
state.teachingDate=dayjs(res.data.data.teachingDate, 'YYYY-MM-DD'),
|
||||
state.teachingDate=dayjs(res.data.data.teachingDate, 'YYYY-MM-DD HH:mm' ),
|
||||
console.log( state.formParam);
|
||||
})
|
||||
.catch((err) => {
|
||||
|
||||
Reference in New Issue
Block a user