Compare commits
No commits in common. "7439c9759a69f237831635bf739fd6afc4e6c591" and "7ae8547d41a39201df7718b1fdb261f8d32aa53c" have entirely different histories.
7439c9759a
...
7ae8547d41
|
@ -10,13 +10,13 @@
|
||||||
<div v-loading="setLoading">
|
<div v-loading="setLoading">
|
||||||
<el-form :model="form" label-width="80px" ref="ruleFormRef" :rules="rules">
|
<el-form :model="form" label-width="80px" ref="ruleFormRef" :rules="rules">
|
||||||
<el-form-item label="班级" prop="grade">
|
<el-form-item label="班级" prop="grade">
|
||||||
<el-scrollbar max-height="150px" style="width: 100%">
|
<el-scrollbar max-height="200px" style="width: 100%">
|
||||||
<el-tree :props="defaultProps" :load="getLoad" node-key="id" highlight-current @check="handleCheckChange"
|
<el-tree :props="defaultProps" :load="getLoad" node-key="id" highlight-current @check="handleCheckChange"
|
||||||
lazy show-checkbox />
|
lazy show-checkbox />
|
||||||
</el-scrollbar>
|
</el-scrollbar>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="选中学生" prop="student">
|
<el-form-item label="选中学生" prop="student">
|
||||||
<el-scrollbar max-height="130px">
|
<el-scrollbar max-height="200px">
|
||||||
<el-tag v-for="(tag, index) in studentList" :key="tag.studentid" closable type="primary"
|
<el-tag v-for="(tag, index) in studentList" :key="tag.studentid" closable type="primary"
|
||||||
@close="delStudent(index)">
|
@close="delStudent(index)">
|
||||||
{{ tag.name }}
|
{{ tag.name }}
|
||||||
|
@ -53,7 +53,6 @@ import { ElMessage } from 'element-plus'
|
||||||
import { listClassmain, listClassgroup } from '@/api/classManage/index'
|
import { listClassmain, listClassgroup } from '@/api/classManage/index'
|
||||||
import { saveByClassWorkArray } from '@/api/teaching/classwork'
|
import { saveByClassWorkArray } from '@/api/teaching/classwork'
|
||||||
import useUserStore from '@/store/modules/user'
|
import useUserStore from '@/store/modules/user'
|
||||||
import { getCurrentTime } from '@/utils/date'
|
|
||||||
import { uniqBy, groupBy } from 'lodash'
|
import { uniqBy, groupBy } from 'lodash'
|
||||||
|
|
||||||
const model = defineModel({ type: Boolean, default: false })
|
const model = defineModel({ type: Boolean, default: false })
|
||||||
|
@ -234,7 +233,7 @@ const onSubmit = (formEl) => {
|
||||||
timelength: form.timelength,
|
timelength: form.timelength,
|
||||||
weights: 1,
|
weights: 1,
|
||||||
deaddate: form.deaddate,
|
deaddate: form.deaddate,
|
||||||
workdate: getCurrentTime('YYYY-MM-DD'),
|
workdate: getCurrentDate(),
|
||||||
uniquekey: props.row.uniquekey,
|
uniquekey: props.row.uniquekey,
|
||||||
entpcourseworklist: '[' + props.row.entpcourseworklist + ']',
|
entpcourseworklist: '[' + props.row.entpcourseworklist + ']',
|
||||||
needMsgNotifine: 'false',
|
needMsgNotifine: 'false',
|
||||||
|
@ -276,10 +275,24 @@ const cloneDialog = (formEl) => {
|
||||||
formEl.resetFields()
|
formEl.resetFields()
|
||||||
model.value = false
|
model.value = false
|
||||||
}
|
}
|
||||||
|
// 获取当前年月日
|
||||||
|
const getCurrentDate = () => {
|
||||||
|
const now = new Date()
|
||||||
|
const year = now.getFullYear()
|
||||||
|
let month = now.getMonth() + 1 // 月份是从0开始的,所以需要+1
|
||||||
|
let day = now.getDate()
|
||||||
|
if (month < 10) {
|
||||||
|
month = '0' + month
|
||||||
|
}
|
||||||
|
if (day < 10) {
|
||||||
|
day = '0' + day
|
||||||
|
}
|
||||||
|
return `${year}-${month}-${day}`
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// 默认当前
|
// 默认当前
|
||||||
form.deaddate = getCurrentTime('YYYY-MM-DD HH:mm')
|
form.deaddate = getCurrentDate() + ' ' + '10:00:00'
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue