mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-07 09:56:44 +08:00
讲师管理bug
This commit is contained in:
Binary file not shown.
@@ -216,7 +216,7 @@
|
||||
<a-form-item label="评分" name="score">
|
||||
<!-- <a-input class="draitem" v-model:value="formParam.score" @blur="clearscoreNumber" placeholder="" allowClear showSearch>
|
||||
</a-input> -->
|
||||
<a-input-number v-model:value="formParam.score" :min="0" :max="10"
|
||||
<a-input-number v-model:value="formParam.score" :precision="2" :min="0" :max="10"
|
||||
style="width:100%; height: 40px; border-radius: 8px ; " />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -426,7 +426,8 @@ export default {
|
||||
courseStatus: [{ required: true, message: '', log: '课程状态不能为空' }],
|
||||
teaching: [{ required: true, message: '', log: '授课时长不能为空' }],
|
||||
teachingDate: [{ required: true, message: '', log: '授课日期不能为空' }],
|
||||
|
||||
studys: [{ required: true, message: '', log: '参训人数不能为空' }],
|
||||
score: [{ required: true, message: '', log: '评分不能为空' }],
|
||||
}
|
||||
//获取开课场地
|
||||
|
||||
@@ -725,6 +726,14 @@ export default {
|
||||
const createTeacherDialog = async () => {
|
||||
state.formParam.teachingDate = state.teachingDate ? dayjs(state.teachingDate).format("YYYY-MM-DD HH:mm").toString() : ""
|
||||
console.log(state.formParam)
|
||||
if(state.formParam.studys==0){
|
||||
state.formParam.studys = null
|
||||
}
|
||||
if(state.formParam.score){
|
||||
state.formParam.score = String(state.formParam.score)
|
||||
}else{
|
||||
state.formParam.score = null
|
||||
}
|
||||
const formItemNames = Object.keys(rules);
|
||||
for (let i = 0; i < formItemNames.length; i++) {
|
||||
const result = await validateField(formItemNames[i]);
|
||||
|
||||
@@ -261,7 +261,7 @@
|
||||
<a-form-item label="评分" name="score">
|
||||
<!-- <a-input class="draitem" v-model:value="formParam.score" @blur="clearscoreNumber" placeholder="" allowClear showSearch>
|
||||
</a-input> -->
|
||||
<a-input-number v-model:value="formParam.score" :min="0" :max="10"
|
||||
<a-input-number v-model:value="formParam.score" :precision="2" :min="0" :max="10"
|
||||
style="width:100%; height: 40px; border-radius: 8px ; " />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
@@ -826,6 +826,8 @@ export default {
|
||||
teachingDate: [{ required: true, message: '', log: '授课日期不能为空' }],
|
||||
teaching: [{ required: true, message: '', log: '授课时长不能为空' }],
|
||||
courseStatus: [{ required: true, message: '', log: '开课状态不能为空' }],
|
||||
score: [{ required: true, message: '', log: '评分不能为空' }],
|
||||
studys: [{ required: true, message: '', log: '参训人数不能为空' }],
|
||||
}
|
||||
//展开切换
|
||||
const handlemoreid = () => {
|
||||
@@ -966,6 +968,14 @@ export default {
|
||||
state.formParam.userNo = state.formParam.name?.split('/')[1]
|
||||
state.formParam.tsystemName = state.tSystemNames.systemName
|
||||
state.formParam.tsystemId = state.tSystemNames?.systemId
|
||||
if(state.formParam.score){
|
||||
state.formParam.score = String(state.formParam.score)
|
||||
}else{
|
||||
state.formParam.score = null
|
||||
}
|
||||
if(state.formParam.studys==0){
|
||||
state.formParam.studys = null
|
||||
}
|
||||
const formItemNames = Object.keys(rules);
|
||||
for (let i = 0; i < formItemNames.length; i++) {
|
||||
const result = await validateField(formItemNames[i]);
|
||||
|
||||
@@ -525,8 +525,13 @@ export default {
|
||||
state.formParam.tsystemName = state.tSystemNames.systemName
|
||||
state.formParam.tsystemId = state.tSystemNames.systemId
|
||||
state.formParam.courseName = state.formParam.courseName?.trim()
|
||||
if(state.formParam.studys==0){
|
||||
state.formParam.studys = null
|
||||
}
|
||||
if(state.formParam.score){
|
||||
state.formParam.score = String(state.formParam.score)
|
||||
}else{
|
||||
state.formParam.score = null
|
||||
}
|
||||
if(state.formParam.levelPay){
|
||||
state.formParam.levelPay = String(state.formParam.levelPay)
|
||||
|
||||
@@ -1018,8 +1018,13 @@ getAllLevelList().then((res) => {
|
||||
state.formParam.tsystemName = state.tSystemNames.systemName
|
||||
state.formParam.tsystemId = state.tSystemNames.systemId
|
||||
state.formParam.courseName = state.formParam.courseName?.trim()
|
||||
if(state.formParam.studys==0){
|
||||
state.formParam.studys = null
|
||||
}
|
||||
if(state.formParam.score){
|
||||
state.formParam.score = String(state.formParam.score)
|
||||
}else{
|
||||
state.formParam.score = null
|
||||
}
|
||||
if(state.formParam.levelPay){
|
||||
state.formParam.levelPay = String(state.formParam.levelPay)
|
||||
|
||||
Reference in New Issue
Block a user