mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 23:36:46 +08:00
bug
This commit is contained in:
@@ -2894,7 +2894,9 @@ export default defineComponent({
|
||||
function onDateSelect(date) {
|
||||
const month = String(date.$M+1).padStart(2, '0')
|
||||
const day = String(date.$D).padStart(2, '0')
|
||||
state.xjkkinputV3[0]=date.$y+'-'+month+'-'+day+' '+date.$H+':'+date.$m
|
||||
const hour = String(date.$D).padStart(2, '0')
|
||||
const minute = String(date.$D).padStart(2, '0')
|
||||
state.xjkkinputV3[0]=date.$y+'-'+month+'-'+day+' '+hour+':'+minute
|
||||
}
|
||||
function onBlurStart(){
|
||||
onFocusStart()
|
||||
@@ -2916,7 +2918,9 @@ function onFocusStart(){
|
||||
function onDateEnd(date) {
|
||||
const month = String(date.$M+1).padStart(2, '0')
|
||||
const day = String(date.$D).padStart(2, '0')
|
||||
state.xjkkinputV3[1]=date.$y+'-'+month+'-'+day+' '+date.$H+':'+date.$m
|
||||
const hour = String(date.$D).padStart(2, '0')
|
||||
const minute = String(date.$D).padStart(2, '0')
|
||||
state.xjkkinputV3[1]=date.$y+'-'+month+'-'+day+' '+hour+':'+minute
|
||||
}
|
||||
function onFocusEnd(){
|
||||
if(!state.xjkkinputV3[1]){
|
||||
@@ -3886,6 +3890,7 @@ function onFocusEnd(){
|
||||
if(state.offteachers.some(item => !item.teacherName)){
|
||||
return message.error("请填写教师名称和设置权重");
|
||||
}
|
||||
inputWeightChange()
|
||||
if(state.offteachers.length==1&& totalWeightSum.value!=100){
|
||||
message.error('单名教师您设置的权重应该是100%')
|
||||
return
|
||||
@@ -3893,6 +3898,11 @@ function onFocusEnd(){
|
||||
message.error('多名教师权重合计值为100%')
|
||||
return
|
||||
}
|
||||
const teacherNames = new Set(state.offteachers.map(item => item.teacherName));
|
||||
if (teacherNames.size !== state.offteachers.length) {
|
||||
message.error('教师重复,请检查');
|
||||
return;
|
||||
}
|
||||
if(state.offteachers.some(item => item.weight==0)){
|
||||
message.error('权重值不能为0%')
|
||||
return
|
||||
@@ -3945,7 +3955,7 @@ function onFocusEnd(){
|
||||
// }
|
||||
console.log("获取面授课开课详情", item);
|
||||
state.xjkkinputV2 = item.address;
|
||||
state.duration = item.duration;
|
||||
// state.duration = item.duration;
|
||||
state.checked1 = item.applyFlag === 1 ? true : false;
|
||||
state.attach = item.attach;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user