|
@@ -662,30 +662,18 @@ export default {
|
|
this.preViewData = preViewData
|
|
this.preViewData = preViewData
|
|
await this.onPreview()
|
|
await this.onPreview()
|
|
let obj = this.fommatDate();
|
|
let obj = this.fommatDate();
|
|
- console.log(preViewData, obj, 'open preview look at')
|
|
|
|
- // if (this.$route.query.calenderId) {
|
|
|
|
- // obj.calenderId = this.$route.query.calenderId;
|
|
|
|
- // try {
|
|
|
|
- // const res = await musicGroupresetCalender(obj);
|
|
|
|
- // this.$message.success("修改缴费成功");
|
|
|
|
- // this.goback();
|
|
|
|
- // } catch (e) {
|
|
|
|
- // console.log(e);
|
|
|
|
- // }
|
|
|
|
- // } else {
|
|
|
|
- // try {
|
|
|
|
- // const res = await musicGroupcreateCalender(obj);
|
|
|
|
- // this.$message.success("创建缴费成功");
|
|
|
|
- // this.goback();
|
|
|
|
- // } catch (e) {
|
|
|
|
- // console.log(e);
|
|
|
|
- // }
|
|
|
|
- // }
|
|
|
|
|
|
+ }else {
|
|
|
|
+
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ this.scrollView(obj);
|
|
|
|
+ });
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
onSubmit() {
|
|
onSubmit() {
|
|
|
|
+ console.log('提交')
|
|
this.$refs.form.validate(async (isok) => {
|
|
this.$refs.form.validate(async (isok) => {
|
|
|
|
+ console.log('isok',isok)
|
|
if (isok) {
|
|
if (isok) {
|
|
let obj = this.fommatDate();
|
|
let obj = this.fommatDate();
|
|
if (this.$route.query.calenderId) {
|
|
if (this.$route.query.calenderId) {
|
|
@@ -706,15 +694,11 @@ export default {
|
|
console.log(e);
|
|
console.log(e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- this.$nextTick(() => {
|
|
|
|
- this.scrollView(obj);
|
|
|
|
- });
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
scrollView(object) {
|
|
scrollView(object) {
|
|
-
|
|
|
|
|
|
+ console.log(object)
|
|
for (const i in object) {
|
|
for (const i in object) {
|
|
let dom = this.$refs[i];
|
|
let dom = this.$refs[i];
|
|
// 这里是针对遍历的情况(多个输入框),取值为数组
|
|
// 这里是针对遍历的情况(多个输入框),取值为数组
|