|
@@ -287,9 +287,18 @@ export default defineComponent({
|
|
|
)
|
|
|
if (code === 200) {
|
|
|
confirmShow.value = false
|
|
|
- Toast({message: '排课成功', onClose: () => {
|
|
|
+
|
|
|
+
|
|
|
+ setTimeout(() => {
|
|
|
+ Toast({
|
|
|
+ message: '排课成功',
|
|
|
+ duration: 1000,
|
|
|
+ onClose: () => {
|
|
|
+ console.log(2)
|
|
|
+ }
|
|
|
+ })
|
|
|
router.back()
|
|
|
- }})
|
|
|
+ },100)
|
|
|
}
|
|
|
} catch (error) {}
|
|
|
}
|
|
@@ -371,13 +380,7 @@ export default defineComponent({
|
|
|
label: () => (
|
|
|
<RadioGroup class={styles.week} v-model={params.week}>
|
|
|
{Object.keys(week).map((n: string) => {
|
|
|
- return (
|
|
|
- <Radio
|
|
|
- name={n}
|
|
|
- >
|
|
|
- {n}
|
|
|
- </Radio>
|
|
|
- )
|
|
|
+ return <Radio name={n}>{n}</Radio>
|
|
|
})}
|
|
|
</RadioGroup>
|
|
|
)
|
|
@@ -468,13 +471,15 @@ export default defineComponent({
|
|
|
class={styles.voicePopup}
|
|
|
>
|
|
|
<Voice
|
|
|
- class={styles.voicePopupContent}
|
|
|
+ class={styles.voicePopupContent}
|
|
|
single
|
|
|
selectType={'Radio'}
|
|
|
subjectList={subjectList.value}
|
|
|
onChoice={val => {
|
|
|
- const voice: any = subjectList.value.filter((n: any) => n.id === val)[0]
|
|
|
- if(voice){
|
|
|
+ const voice: any = subjectList.value.filter(
|
|
|
+ (n: any) => n.id === val
|
|
|
+ )[0]
|
|
|
+ if (voice) {
|
|
|
params.subjectId = voice.id
|
|
|
params.subjectName = voice.name
|
|
|
voiceShow.value = false
|