|
@@ -71,7 +71,8 @@ export default defineComponent({
|
|
|
studentStatus: false,
|
|
|
studentConfirm: false,
|
|
|
studentChangeObject: {} as any,
|
|
|
- background: 'transparent'
|
|
|
+ background: 'transparent',
|
|
|
+ setLoading: false
|
|
|
}
|
|
|
},
|
|
|
async mounted() {
|
|
@@ -118,12 +119,15 @@ export default defineComponent({
|
|
|
},
|
|
|
async getList() {
|
|
|
try {
|
|
|
+ if (this.setLoading) return
|
|
|
+ this.setLoading = true
|
|
|
const res = await request.post(
|
|
|
'/api-teacher/courseSchedule/selectCourseList',
|
|
|
{
|
|
|
data: this.params
|
|
|
}
|
|
|
)
|
|
|
+ this.setLoading = false
|
|
|
this.loading = false
|
|
|
const result = res.data || {}
|
|
|
// 处理重复请求数据
|
|
@@ -241,10 +245,7 @@ export default defineComponent({
|
|
|
class={styles.chargeTimer}
|
|
|
onClick={() => {
|
|
|
this.$router.push({
|
|
|
- path: '/accountRechargeTimer',
|
|
|
- query: {
|
|
|
- remainTime: this.remain.remainTime
|
|
|
- }
|
|
|
+ path: '/accountRechargeTimer'
|
|
|
})
|
|
|
}}
|
|
|
>
|
|
@@ -334,6 +335,7 @@ export default defineComponent({
|
|
|
{this.list.map((item: any) => (
|
|
|
<Course
|
|
|
item={item}
|
|
|
+ operation={item.status === 'NOT_START' ? true : false}
|
|
|
onCourseDelete={this.onCourseDelete}
|
|
|
onStudentAdjust={(item: any) => {
|
|
|
console.log(item)
|
|
@@ -419,8 +421,9 @@ export default defineComponent({
|
|
|
<StudentConfirm
|
|
|
courseInfo={this.timeUpdateInfo}
|
|
|
studentObject={this.studentChangeObject}
|
|
|
- onSubmit={(item: any) => {
|
|
|
- this.onStudentChange(item)
|
|
|
+ onSubmit={async (item: any) => {
|
|
|
+ await this.onStudentChange(item)
|
|
|
+ await this._init()
|
|
|
}}
|
|
|
/>
|
|
|
</Popup>
|